Qt Build Issue
-
HI,
I am getting very strange QT build errors. Here are the error details.qt/service/D:/ClowdWork/clowdtrack-qt/service/../core_ui_common -I/include -IE:/C_Drive/QT5.15.2/5.15.2/mingw81_64/mkspecs/win32-g++ -o debuggermonitor.o ../../clowdtrack-qt/core_ui_common/debuggermonitor/debuggermonitor.cpp
g++: error: /W3: No such file or directory
g++: error: /D_USING_V110_SDK71_: No such file or directory
g++: error: /W3: No such file or directory
g++: error: /D_USING_V110_SDK71_: No such file or directory
mingw32-make[1]: *** [Makefile:3811: debuggermonitor.o] Error 1
mingw32-make[1]: Leaving directory 'D:/ClowdWork/build-usetime-qt-QT5_15_2-Debug/service'
mingw32-make: *** [Makefile:96: sub-D--ClowdWork-clowdtrack-qt-service-service-pro-make_first-ordered] Error 2
20:52:13: The process "E:\C_Drive\QT5.15.2\Tools\mingw810_64\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project usetime-qt (kit: QT5.15.2)
When executing step "Make"
20:52:13: Elapsed time: 00:02. -
You don't get a 'Qt build error' since you don't build Qt but your own app. Show the corresponding CMakeLists.txt - looks like you're adding MSVC options to your command line but using MinGW.
-
HI @Christian-Ehrlicher
Thank you so much for your reply. I don't find any CMakeLists.txt file in source code. Yes Im trying to build my own project which is actually written by some other developers. I just started work on it and no previous developer is here to help me out in building the app.Yes, I have configured MinGW kit using QT 5.15.2 to build this project.
What I get from your message " looks like you're adding MSVC options to your command line but using MinGW." is I have to use MSVC compiler/kit to build this app. Pls confirm and help me out to build this app. -
@Sikander-Rafiq
@Christian-Ehrlicher is not saying you have to use MSVC. He is saying you appear to be (mostly) using MinGW but some MSVC-style options are being passed to the compiler as well. Which won't work. You need to track down where those options are coming from in your kit/build selection. We don't know where your arguments like/W3
are specified. If you don't have aCMakeLists.txt
then maybe you are using qmake and your project has a.pro
file instead? -
Hi @JonB
Thanks for your comments. Yes we are using qmake and our project has .pro file. I have use Micorsoft Visual C++ Build Tools (x64) and then all those build errors goes away and build successfully, though now getting linker error(i.e. LINK : fatal error LNK1158: cannot run 'rc.exe').
Pls see screenshot attached.
Thank you so much all for your kind cooperation.
-
@Sikander-Rafiq
OK, you have now changed from MinGW to MSVC and that seems to suit you better.I suggest you Google for
error link 1158 rc
for the various possible solutions to why LINK cannot find rc to run. -
I am able to run my app through code. Thank you so much All. Special thanks to @Christian-Ehrlicher. Great help!.