Unsolved Error building main app
-
@Paul-Colby and @VRonin
Sorry for my miss understood,
But i dont recieve any LNK1112...
this is the Error i get: ( WHAT AM I MISSING HERE ? ... I already clean all and Rebuild...)
The system cannot find the path specified.
jom: C:\SivronCode\tcpTester\Debug\tcpTesterApp\Makefile.Debug [....\Debug\tcpTester.exe] Error 1
jom: C:\SivronCode\tcpTester\Debug\tcpTesterApp\Makefile [debug] Error 2
17:46:05: The process "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project tcpTester (kit: Desktop Qt 5.7.0 MSVC2013 64bit)
When executing step "Make"Thanks,
most appriciate your help..Nirh
-
@nirh From your first post:
"all the 3 libs had been build successfully but when trying to build the main app i got the next error:
....\Debug\main.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'"So, you do receive it.
Don't forget to rerun qmake after changing pro file. -
@nirh said in Error building main app:
The system cannot find the path specified.
This is not the actual error. What was printed before that line?
-
Hi @jsulm,
I think i got some advance ...
I Just open a new and empty project (console ) and i got the next error:
LNK1104: cannot open file 'kernel32.lib'
Please note that i compile for win32 using QT,
This is the empty project .pro file what is missing ?
QT += core
QT -= guiCONFIG += c++11
TARGET = test1Hello
CONFIG += console
CONFIG -= app_bundleTEMPLATE = app
SOURCES += main.cpp
-
@nirh You're using MSVC2013 compiler, right? Installed Qt is for MSVC2013 as well? Did you try to build a simple C++ project in MSVC2013?
-
Hi @jsulm,
It seems that there is something with regarding your answer,
After checking QT configuration i had found out that:This is the QT Version that i use: Qt 5.7.0 MSVC2013 64bit
The list of compilers Qt detected are:
1. Microsoft Visual C++ Compiler 10.0 (x86)
2. Microsoft Visual C++ Compiler 10.0 (amd64)
3. Microsoft Visual C++ Compiler 10.0 (x86_amd64)
4. Microsoft Visual C++ Compiler 12.0 (x86)
5. Microsoft Visual C++ Compiler 12.0 (amd64)
6. Microsoft Visual C++ Compiler 12.0 (x86_amd64)
7. Microsoft Visual C++ Compiler 12.0 (x86_arm)
8. Microsoft Visual C++ Compiler 12.0 (amd64_arm)It seems like that the Qt version is higher then the Compilers that Qt Auto-detected!!!!
Am i correct?
If so what do you think i should do?
Thanks,
nirh
-
If i am compiling the QT examples on windows,
Should it compiled with no errors, Or should i add anything else to the .pro file?
-
Don't mix Qt and Qt Creator. They are separated projects.
You have both VS2010 and VS2013 installed so you should be good to build.
The examples shouldn't require anything particular to build.
Did you check that your Kit + Qt version doesn't have any warning/error signaled ?
-
Thanks @SGaist ,
This is my test1.Hello.pro file:
QT += core
QT -= guiCONFIG += c++11
TARGET = test1Hello
CONFIG += console
CONFIG -= app_bundleTEMPLATE = app
SOURCES += main.cpp
This are the erros i get when i try to compile an empty console project:
09:35:13: Running steps for project test1Hello...
09:35:13: Starting: "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe" clean
C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe -f Makefile.Debug clean
del debug\main.obj
Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\debug\main.obj
del debug\test1Hello.exp debug\test1Hello.ilk debug\test1Hello.idb
Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\debug\test1Hello.exp
C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe -f Makefile.Release clean
del release\main.obj
del release\test1Hello.exp
Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\release\main.obj
Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\release\test1Hello.exp
del test1Hello.exp
Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\test1Hello.exp
del test1Hello.ilk
Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\test1Hello.ilk
del test1Hello.idb
Could Not Find C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\test1Hello.idb
09:35:13: The process "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe" exited normally.
09:35:13: Configuration unchanged, skipping qmake step.
09:35:13: Starting: "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe"
C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
cl -c -nologo -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -EHsc /Fddebug\test1Hello.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_QML_DEBUG -DQT_CORE_LIB -I..\test1Hello -I. -I....\Qt\Qt5.7.0\5.7\msvc2013_64\include -I....\Qt\Qt5.7.0\5.7\msvc2013_64\include\QtCore -Idebug -I....\Qt\Qt5.7.0\5.7\msvc2013_64\mkspecs\win32-msvc2013 -Fodebug\ @C:\Users\nir\AppData\Local\Temp\main.obj.2724.16.jom
main.cpp
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\test1Hello.exe @C:\Users\nir\AppData\Local\Temp\test1Hello.exe.2724.702.jom
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
jom: C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\Makefile.Debug [debug\test1Hello.exe] Error 1104
jom: C:\Temp\build-test1Hello-Desktop_Qt_5_7_0_MSVC2013_64bit-Debug\Makefile [debug] Error 2
09:35:14: The process "C:\Qt\Qt5.7.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project test1Hello (kit: Desktop Qt 5.7.0 MSVC2013 64bit)
When executing step "Make"
09:35:14: Elapsed time: 00:01.What do i miss or do wrong?
Thanks,
nirh
-