1 Attachment(s)
[Qt 5.0] Build and Compile Static Qt Libraries Error
Hello, I'm trying to statically compile the Qt5 libraries from the git repository. I'm more or less following this guide: http://qt-project.org/wiki/Building_Qt_5_from_Git
I already have a shared version of the Qt libraries built and ready to go, and they work perfectly. For the static libraries I am using a completely different folder called "Qt5_Static".
The folder locations are not inside each other:
Shared (working) C:\Development\Qt5
Static (error) C:\Development\Qt5_Static
I get an error when I run nmake a few minutes into it:
Code:
LINK : fatal error LNK1181: cannot open input file 'SDK\Lib\x86.obj'
NMAKE : fatal error U1077: '"c:\Development\Visual Studio 2010\VC\BIN\link.EXE"'
: return code '0x49d'
Stop.
NMAKE : fatal error U1077: '"c:\Development\Visual Studio 2010\VC\BIN\nmake.exe"
' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
The order of commands that I ran where as follows:
Code:
vsvars32.bat
cd C:\development
git clone git://gitorious.org/qt/qt5.git Qt5_Static
cd Qt5_Static
perl init-repository --no-webkit
configure -static -developer-build -nomake examples -nomake tests -mp -release -opensource
nmake
Now I read a forum post about that x86.obj file here: Forum Post
I'm thinking maybe I have to add the Qt5_Static folder to PATH? Here's a screenshot of my system PATH variable using Path Editor:
Attachment 8674
Re: [Qt 5.0] Build and Compile Static Qt Libraries Error
Problem solved:
I think there was some sort of corruption in the build path. I ended up reformatting my hard drive (I had some other problems along with programs I didn't feel like keeping) and it worked on the first try after that.