Building Qt project results in msxml.h and gl.h errors?
-
Hi, I'm working on a windows Qt project, the problem i have is that when i try to compile my qt project, i'm receiving the errors below:
So far i have tried:
- reinstalling Qt
- reinstalling the windows 10 sdk
- creating a new Qt project and copying the files across.
- creating a new Qt project and linking to the existing source files seperately.
- turning off jom to use nmake.
But the errors still appear.
Here is the full compile log:
https://pastebin.com/aQTcywz8And here is my Qt .pro qmake file:
https://pastebin.com/ShHgDr0tPlease help!
Thanks, Richard -
@RichardB2 Does a plain new Qt project compile?
-
@RichardB2 Then I suggest to add these additional files one by one until the build fails and check the content of the files which causes the build to fail. I guess there are some macros causing problems.
-
Building with just the libraries and it works ok.
When i move the main.cpp, mainwindow.cpp/.h and mainwindow.ui code files into the new project it breaks.
Initially it printed that it couldn't find any of the UI elements, then after i restarted QtCreator it came up with the original errors posted above.edit - I tried to copy and paste the contents of the main.cpp, mainwindow.cpp/.h and mainwindow.ui instead of overwriting the files but it had no effect.
edit - will all files in place it still comes up with the msxml.h and gl.h errors
edit - when i check the "clear environment" checkbox i get these errors