Can not build application msvc2017, Qt 5.10.1, Qt creator 4.8.1
-
@aha_1980 Yes I did!
I'm trying for 2 days to get the compiler autodetected by removing and reinstalling qt several times and installing whatever I thought was relevant through visual studio installer.
When installing visual studio professional I just let the visual studio installer to do its job, I didn't change anything.
As I final solution I set it manually -
- Which Windows version is that exactly?
- Do you have any anti-virus running?
Qt Creator needs the
vcvarsXXX.bat
file the detect the compiler. Further, this file does set some environment variables, otherwise the compiler will not work. We have seen some problems with executing this batch file in the past, but things have improved in the latest Creator versions (4.7, 4.8).That makes me puzzle what's wrong on your system...
-
@Umbaman said in Can not build application msvc2017, Qt 5.10.1, Qt creator 4.8.1:
When installing visual studio professional I just let the visual studio installer to do its job, I didn't change anything.
I think this is the problem. By default C++ part is not installed, you need to select it explicitly.
-
No, Creator runs it for you. But you can check if you can open a Visual Studio command prompt from the Start Menu. That should exec the same batch file and set up the environment.
Does that work without problems?
-
After line 3 the qmake exited normally, it start the qmake again with "-f" param, I think it should be jom.exe not qmake.exe, qmake has no option "-f", did you change it?
-
@Jerry.Wilson
No I didn't! I don't even know how. I wanted to remove the -f option -
@Jerry.Wilson hmmm. Something seems to be happening.
This is what I am getting now
C:\Qt\5.10.1\msvc2017_64\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'type_traits': No such file or directory
Edit:
this guy here (https://nnarain.github.io/2017/11/10/Config-issues-with-Qt-and-Visual-Studio.html) nailed it!
The corresponding registry key was pointing to the community edition I had, before installing visual studio professional.I can see a few compilers now autodetected, but not a single kit autoconfigured...
Manually setting a compiler seems to be working but I cannot compile my project correctly.Example Output
:-1: error: LNK1181: cannot open input file 'debug\main.obj'
-
-
- Compilers
Kits
- A new project compiles, runs and can be debugged successfully using the Desktop Kit. I was getting the error mentioned due to white spaces in my path.
As for the UWP kit I get the following output
:-1: warning: winrt_manifest_install.path is not defined: install target not created
therefore nothing happens when I run the project.