[PyQt] Building PyQt 4.7.4 with Qt 4.5.3 and Visual Studio 2005

Jiacun wu cathaywjc at yahoo.com
Fri Aug 20 12:17:06 BST 2010


Hi,
 
I have successfully built and installed release SIP 4.10.5 for Python 2.6.5 with MS VS 2005 on Windows XP. In my computer, Qt 4.5.3, which was built from open source with VS 2005, has already been installed.
 
However, now I am also trying to build the released source PyQt-win-gpl-4.7.4, I get the following error message from the linker when I run NMAKE in Microsoft Visual 2005 Command Prompt:
……
        cd designer
        "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"
 
Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.
 
        "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f Makefile.Release
 
Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.
 
        D:\QT\4.5.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DPYTHON_LIB=\"python26.dll\" -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_THREAD_SUPPORT -I"d:\QT\4.5.3\include\QtDesigner" -I"d:\QT\4.5.3\include\QtCore" -I"d:\QT\4.5.3\include\QtGui" -I"d:\QT\4.5.3\include\QtXml" -I"d:\QT\4.5.3\include\QtScript" -I"d:\QT\4.5.3\include" -I"d:\Program Files\Python26\include" -I"d:\QT\4.5.3\include\ActiveQt" -I"release" -I"d:\QT\4.5.3\mkspecs\win32-msvc2005" -D_MSC_VER=1400 -DWIN32 pluginloader.h -o release\moc_pluginloader.cpp
        cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DPYTHON_LIB=\"python26.dll\" -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_THREAD_SUPPORT -I"d:\QT\4.5.3\include\QtDesigner" -I"d:\QT\4.5.3\include\QtCore" -I"d:\QT\4.5.3\include\QtGui" -I"d:\QT\4.5.3\include\QtXml" -I"d:\QT\4.5.3\include\QtScript" -I"d:\QT\4.5.3\include" -I"d:\Program Files\Python26\include" -I"d:\QT\4.5.3\include\ActiveQt" -I"release" -I"d:\QT\4.5.3\mkspecs\win32-msvc2005" -Forelease\ @C:\DOCUME~1\Wangjc\LOCALS~1\Temp\nm11E.tmp
pluginloader.cpp
        cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DPYTHON_LIB=\"python26.dll\" -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_THREAD_SUPPORT -I"d:\QT\4.5.3\include\QtDesigner" -I"d:\QT\4.5.3\include\QtCore" -I"d:\QT\4.5.3\include\QtGui" -I"d:\QT\4.5.3\include\QtXml" -I"d:\QT\4.5.3\include\QtScript" -I"d:\QT\4.5.3\include" -I"d:\Program Files\Python26\include" -I"d:\QT\4.5.3\include\ActiveQt" -I"release" -I"d:\QT\4.5.3\mkspecs\win32-msvc2005" -Forelease\ @C:\DOCUME~1\Wangjc\LOCALS~1\Temp\nm11F.tmp
moc_pluginloader.cpp
        link /LIBPATH:"d:\QT\4.5.3\lib" /NOLOGO /INCREMENTAL:NO /DLL /MANIFEST /MANIFESTFILE:"release\pythonplugin.intermediate.manifest" /OUT:release\pythonplugin.dll @C:\DOCUME~1\Wangjc\LOCALS~1\Temp\nm120.tmp
LINK : fatal error LNK1181: cannot open input file 'D:\Program.obj'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\link.EXE"' : return code '0x49d'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
 
Would you please help me to fix this problem or give me some idea?
 
Thank you very much for your great help.
 
Best regards
 
Js Hs



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100820/9561b4f0/attachment.html>


More information about the PyQt mailing list