64bit Qt build on WIndows
-
Hi,
I'm trying to build 64bit Qt 5.2.0 from source with Visual Studio 2013. I configure the build with the following options:@configure.bat -c++11 -no-angle -opengl desktop -nomake examples -opensource -nomake tests -confirm-license@
Then I simply run nmake.
Unfortunately, the build stops almost immediately with the following error:@SOME_PATH\5.2.0-src\qtbase\src\corelib\codecs\qutfcodec.cpp : fatal error C1083: Cannot open compiler generated file: '.obj\release\qutfcodec.obj': No such file or directory@
32bit builds work ok. Did anyone encounter such behavior?
-
Hi,
I haven't encountered this message before, but...
If MSVC and/or Qt are in your system PATH, remove them. Make sure you do your compilation from the "Developer Command Prompt for VS2013"
Did you do a full clean of your build tree between compilation attempts?
-
Why do you want build Qt 5.2.0 for 64 bit on VS ? Do you want do something specific to 64 bit ? If you simply want to have 5.2.0 build on 64 bit system for you development, you can just install 32bit Mingw on 64 bit. It works perfectly. If you are trying something for production for 64 bit, you continue with build.
-
[quote author="JKSH" date="1389965053"]Hi,
I haven't encountered this message before, but...
If MSVC and/or Qt are in your system PATH, remove them. Make sure you do your compilation from the "Developer Command Prompt for VS2013"
Did you do a full clean of your build tree between compilation attempts?[/quote]
I'm using the command prompt. I've done 32 bit build earlier and did a nmake clean before 64.
-
After downloading git sources, the build fails on missing header files. I found that there are no headers, those without .h extension, present anywhere. I followed all git wiki instructions. Is there a way to build Qt on windows atm?
-
nmake clean does not do a full clean, because there are many layers of Makefiles. You need...
@
git clean -dfx
git submodule foreach "git clean -dfx"
@...as described in http://qt-project.org/wiki/Building_Qt_5_from_Git
I regularly build Qt on Windows and clean using the above command. No issues whatsoever. :)
-
I managed to find that the Perl script for generating headers did not work. For some reason, when run during full clean build, it doesn't generate any files and build just fails in the end. You have to manually execute it from qtbase first. Also there are some other errors in current git (ex. dom.cpp not seeing dom.h), but this is to be expected from a dev branch.
After some tweaking I managed to build qtbase but then failed on svg, due to syncqt.pl failing to generate anything beyond qtbase. -
The version of Perl that comes bundled with Git for Windows is old and buggy. Have you:
Installed a more recent version of Perl, and
Made sure that it is found in your PATH before the Git Perl?
Also, I recommend doing a successful compile of revision that is guaranteed to be good (e.g. the 'v5.2.0' tag in the stable branch), before trying to compile the dev branch.
-
I have the most recent version of Perl.
-
Is it found in your PATH before the Git Perl?
-
Yes, it is. ActivePerl to be exact, if it makes a difference.
-
ActivePerl 5.16 should work fine. This is quite odd. Could you please post the output of configure.bat, from the line that says "Running configuration tests..." onwards?
-
At the moment that would be quite difficult, since a clean git checkout involves me using two separate machines (don't ask...) and that takes some time. Will do that during the next few days.