Code Monkey home page Code Monkey logo

Comments (33)

Denvi avatar Denvi commented on August 28, 2024

I think it's possible.
But I haven't Mac, sorry.

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

you think I could try to do? knowing that I have no knowledge on the subject?

from candle.

Denvi avatar Denvi commented on August 28, 2024

Why not?

  1. Download Qt for OS X from here: http://download.qt.io/official_releases/qt/5.5/5.5.1/qt-opensource-mac-x64-clang-5.5.1.dmg.mirrorlist
  2. Install Qt.
  3. Download source code of grblControl.
  4. Start Qt Creator and open "grbl_control.pro" project file from "src" directory of sources.
  5. Build grblControl (look for image bellow).
  6. Post any compiling errors here.

qt_build_1

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

1 test and 1 error messages
1st test

from candle.

Denvi avatar Denvi commented on August 28, 2024

Try to replace "std::isnan" with "qIsNaN" in whole project.

Update: also "NAN" macro with "qQNaN()"

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

after changes

1st test

from candle.

Denvi avatar Denvi commented on August 28, 2024

#include <math.h> to top of interpolation.h

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

result
1st test

from candle.

Denvi avatar Denvi commented on August 28, 2024

If replace <math.h> with ?

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

1st test

from candle.

Denvi avatar Denvi commented on August 28, 2024

Sure using ? not <cmath.h>.

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

it's better with cmath
1st test

from candle.

Denvi avatar Denvi commented on August 28, 2024

Remove

#include "math.h"

from "gcodedrawer.cpp" source file. Or replace with #include if failed to compile.

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

same result with two
1st test

from candle.

Denvi avatar Denvi commented on August 28, 2024

Think need to repeat previous step for these files:
tooldrawer.cpp
gcodeparser.cpp
gcodepreprocessorutils.cpp

In "heightmapgriddrawer.cpp" line 32 looks the same as:

if (m_model == NULL || qIsNaN(m_model->data(m_model->index(i, j), Qt::UserRole).toDouble())) {

?

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

for "heightmapgriddrawer.cpp" line 50 and 64 also ?

from candle.

Denvi avatar Denvi commented on August 28, 2024

Lines 50 & 64 should also have "qIsNaN". Looks like you have "std::isnan" for now.

Use advanced search:
search1

Select "Current project", string to find "std::isnan", check "Case sensitive" and press "Find and replace" button:
search2

Enter "Replace to": "qIsNaN" and press "Replace" button:
search3

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

1st test

from candle.

Denvi avatar Denvi commented on August 28, 2024

It's easy, just repeat previous step to replace "NAN" with "qQNaN()"

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

successful compilation

from candle.

Denvi avatar Denvi commented on August 28, 2024

How about pressing big green triangle to try start?

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

the program starts without problems !!!!!
I just connect the milling machine,
it connects.
little problem:
in preferences: colors are all black.
but I can change them manually

from candle.

Denvi avatar Denvi commented on August 28, 2024

Need to apply "Default settings" after first start to get normal colors.

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

it is good with to apply "Default settings".
Now i go test command machine manually.

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

THE MACHINE MOOOOOOVE is too good

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

what should he do now?
to install on the Mac.

from candle.

Denvi avatar Denvi commented on August 28, 2024

You should use "macdeployqt" util from "QTDIR/bin/" folder to get .dmg file.

Open terminal, change directory to grbl_control build folder with "cd" command (it should be above sources like this one: "build-grbl_control-Desktop_Qt_5_4_2_MinGW_32bit-Release")

cd path_to_grbl_control.app

Then:

$QTDIR/bin/macdeployqt grbl_control.app -dmg

I beleive it will create .dmg file in build directory.

But i don't know what to do with settings file & translations for now.

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

it is complicated for me ....
I look at all this in one hour

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

Ok i understand for create a .dmg
but when i run .dmg i have error

"Dyld Error Message:
Library not loaded: @rpath/QtOpenGL.framework/Versions/5/QtOpenGL
Referenced from: /Applications/grbl_control.app/Contents/MacOS/grbl_control
Reason: image not found"

from candle.

Denvi avatar Denvi commented on August 28, 2024

May be change "grbl_control.pro" file:

unix: {
    DEFINES += UNIX #GL_GLEXT_PROTOTYPES
    QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN/libs\'"
}

to

unix:!macx {
    DEFINES += UNIX #GL_GLEXT_PROTOTYPES
    QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN/libs\'"
}

will help.

How about just run "grbl_control.app"? Or rebuild, run "macdeployqt" without "-dmg" flag and start "grbl_control.app".

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

grbl_control.app works.
I still tried to do the .dmg but without success.

Thank you anyway.

from candle.

Xav83130 avatar Xav83130 commented on August 28, 2024

When I disconnect the USB computer "grbl control" crash.

from candle.

Denvi avatar Denvi commented on August 28, 2024

Fixed in one of the latest commits.

from candle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.