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:
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.
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.
To copy to clipboard, switch view to plain text mode
The order of commands that I ran where as follows:
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
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
To copy to clipboard, switch view to plain text mode
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:
pathscn.jpg
Bookmarks