Schildkroet / Candle2

GRBL control interface in Qt.
GNU General Public License v3.0
197 stars 57 forks source link

Build instructions for windows 10 #25

Closed hunabapr closed 2 years ago

hunabapr commented 2 years ago

I've installed QT 5.15.2 MinGW, 32 bit and 64 bit version. From which I've opened Candel2 and tried to build a release version. For both MinGW 32 & 64 bits I get 46 issues reported.

Now, as there are no issues reported to do with build / installation here it would suggest to me my problems have something with my configuration. Any ideas? Is there a video telling me the steps for installation etc.....

I've never used QT. I'm using a relativly clean laptop with windows 10 installed, I also have Visual studio and Arduino IDE istalled.

Thanks in advance for your response.

ondabeach commented 2 years ago

I just installed QT as well, but I installed the latest version, is that Ok or do I need to install QT 5.15.2?

Schildkroet commented 2 years ago

Hello, do you only get "warnings" (no errors)? This is "normal" behaviour. The original project was started many years ago and is using code that is now considered deprecated, hence you get some warnings.

hunabapr commented 2 years ago

Hi, I get 45 issues, below are just two examples. I do get an output but it doesn't give a working application (and I'm running it through the windeplyqt process) whereas if I use the last version deployed this works OK for me. I wanted to tweak the jogging and have it read linear encoders hence why I'm trying to load the original code.

C:\Users\The_M\Downloads\Candle2-master\src\parser\gcodeparser.cpp:427: warning: variable 'j' set but not used [-Wunused-but-set-variable] ..\src\parser\gcodeparser.cpp: In member function 'PointSegment* GcodeParser::handleGCode(float, const QStringList&)': ..\src\parser\gcodeparser.cpp:427:16: warning: variable 'j' set but not used [-Wunused-but-set-variable] double j = qQNaN(); ^

C:\Users\The_M\Downloads\Candle2-master\src\frmmain.cpp:1447: warning: 'int QTime::elapsed() const' is deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations] ..\src\frmmain.cpp:1447:52: warning: 'int QTime::elapsed() const' is deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations] qDebug() << "Drawn false:" << time.elapsed(); ^

Schildkroet commented 2 years ago

You can ignore these warnings. The dont cause any problem. On win10 i use QT 5.12.2. Maybe there is a problem with newer versions.

hankecnc commented 2 years ago

您可以忽略这些警告。不要造成任何问题。 在 win10 上,我使用 QT 5.12.2。也许新版本有问题。

There is no problem with win10, qt5.99

hunabapr commented 2 years ago

HI, I've dropped back to QT 5.12.2 and it complies OK with the 32 bit version, not tried 64 bit yet.

Many thanks for your help. You may want to amend the instructions for the windows build from 5.15.2 to 5.12.2