Unsolved 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?
-
@jsulm Yeah a new project works fine, but once i copy all the code files into the project and hit build it pops up these error still
-
@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.
-
@jsulm Ok good point, i will try to but they are all coupled together.
-
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
-
So i couldn't fit the problem at hand, so i rolled back the project to a working commit and managed to integrate the new code successfully.