ping-viewer icon indicating copy to clipboard operation
ping-viewer copied to clipboard

Windows debug build is failing to run

Open patrickelectric opened this issue 5 years ago • 11 comments

It appears a mismatch between kcrash and ping-viewer Qt build versions

patrickelectric avatar Oct 10 '19 18:10 patrickelectric

Has anyone had any luck with the Debug build in Windows? 'KCrash' file not found line 10 main.cpp

samtempledev avatar May 18 '20 07:05 samtempledev

Hi @samtempledev we are not deploying anymore kcrash, this is something that we want to fix, but not in a near future.

Are you having any problems with ping-viewer ?

patrickelectric avatar May 18 '20 13:05 patrickelectric

Hi @patrickelectric yes the debug project will not build in Qt because of these lines:

#if defined(QT_DEBUG) && defined(Q_OS_WIN) #include <KCrash> #endif

Cannot open include file: 'KCrash':No such file or directory

samtempledev avatar May 18 '20 13:05 samtempledev

@patrickelectric also this issue:

D:\GitRepos\ping-viewer\src\waterfall\gradientscale.h:37: warning: Property declaration waterfallGradient has no READ accessor function or associated MEMBER variable. The property will be invalid.

samtempledev avatar May 18 '20 13:05 samtempledev

Ok, you are building the source code, now it's much clear. KCrash should be compiled and provided as primary buildstep, this is done via craft compile system. If you are doing your own test build for development debug, you can remove the kcrash includes, they are only necessary in distributed debug binaries.

patrickelectric avatar May 18 '20 13:05 patrickelectric

@patrickelectric I have successfully ran a build of the Release configuration but upon opening pingviewer.exe i get DLL issues: Qt5Charts.dll Qt5Widgets.dll Qt5QuickControls2.dll Qt5Quick.dll

All seem to be not found

samtempledev avatar May 18 '20 13:05 samtempledev

Please follow our build instructions here. For windows development, I highly recommend to use QtCreator, since it'll run the binary with the correct environment variables for you Qt Installation.

patrickelectric avatar May 18 '20 13:05 patrickelectric

@patrickelectric I have followed those instructions line by line and still no luck with building a debug or release configuration, this is in Windows 10 using Qt Creator and Qt 5.12.0

samtempledev avatar May 18 '20 14:05 samtempledev

What problem are you facing with release build ? Are you running the binary from QtCreator IDE or via terminal ? Try to do everything in QtCreator if you can.

patrickelectric avatar May 18 '20 16:05 patrickelectric

It seems that when I run it from the Green Play button it works fine, but trying to run it from the .exe file in the folder system it gets missing dll issues for these files:

Qt5Charts.dll Qt5Widgets.dll Qt5QuickControls2.dll Qt5Quick.dll

samtempledev avatar May 18 '20 16:05 samtempledev

Because you need to deploy your applicantion, I would recommend to get some some book or read the Qt documentation about C++ development using Qt. For the deployment documentation: https://wiki.qt.io/Deploy_an_Application_on_Windows

patrickelectric avatar May 18 '20 16:05 patrickelectric