[PyQt] makefile/build problem with Windows and PyQt
Skippy VonDrake
skippyvondrake at gmail.com
Thu Aug 30 15:33:15 BST 2012
Using Python2.7.3 x86 on Windows 7 to configure the build for Visual
Studio's nmake.
python configure.py
nmake
It looks like name doesn't like the target "QAxContainer.pyd" dependent upon the
lib "QAxContainer.lib"
Makefile from QAxContainer:
TARGET = QAxContainer.pyd
OFILES = sipQAxContainercmodule.obj sipQAxContainerQAxWidget.obj
sipQAxContainerQAxObject.obj sipQAxContainerQAxBase.obj
HFILES = sipAPIQAxContainer.h
CC = cl
CXX = cl
LINK = link
CPPFLAGS = -DNDEBUG -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I.
-ID:\PYTHON\x86\Python273\include
-ID:\QT\qt-everywhere-opensource-src-4.8.2\mkspecs\default
-ID:\QT\qt-everywhere-opensource-src-4.8.2\include\ActiveQt
-ID:\QT\qt-everywhere-opensource-src-4.8.2\include\QtGui
-ID:\QT\qt-everywhere-opensource-src-4.8.2\include\QtCore
-ID:\QT\qt-everywhere-opensource-src-4.8.2\include
CFLAGS = -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3
CXXFLAGS = -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3 -w34100 -w34189
LFLAGS = /NOLOGO /DYNAMICBASE /NXCOMPAT /DLL /MANIFEST
/MANIFESTFILE:$(TARGET).manifest /SUBSYSTEM:WINDOWS /INCREMENTAL:NO
LIBS = /LIBPATH:D:\PYTHON\x86\Python273\libs
/LIBPATH:D:\QT\qt-everywhere-opensource-src-4.8.2\lib python27.lib
QAxContainer.lib QtGui4.lib gdi32.lib comdlg32.lib oleaut32.lib
imm32.lib winmm.lib winspool.lib ws2_32.lib ole32.lib user32.lib
advapi32.lib QtCore4.lib kernel32.lib user32.lib shell32.lib uuid.lib
ole32.lib advapi32.lib ws2_32.lib
MOC = D:\QT\qt-everywhere-opensource-src-4.8.2\bin\\moc.exe
.SUFFIXES: .c .cpp .cc .cxx .C
{.}.cpp{}.obj::
$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo @<<
$<
<<
{.}.cc{}.obj::
$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo @<<
$<
<<
{.}.cxx{}.obj::
$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo @<<
$<
<<
{.}.C{}.obj::
$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo @<<
$<
<<
{.}.c{}.obj::
$(CC) -c $(CFLAGS) $(CPPFLAGS) -Fo @<<
$<
<<
all: $(TARGET)
$(OFILES): $(HFILES)
$(TARGET): $(OFILES)
$(LINK) $(LFLAGS) /OUT:$(TARGET) @<<
$(OFILES) $(LIBS)
<snip>
ERROR generated:
Generating Code...
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DLL /MANIFEST
/MANIFESTFILE:QtDesigner.pyd.manifest /SUBSYSTEM:WINDOWS
/INCREMENTAL:NO /OUT:QtDesigner.pyd
@C:\Users\skippy\AppData\Local\Temp\nmB50B.tmp
Creating library QtDesigner.lib and object QtDesigner.exp
mt -nologo -manifest QtDesigner.pyd.manifest
-outputresource:QtDesigner.pyd;2
cd QAxContainer
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"
cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3 -w34100 -w34189
-DNDEBUG -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I.
-ID:\PYTHON\x86\Python273\include
-ID:\QT\qt-everywhere-opensource-src-4.8.2\mkspecs\default
-ID:\QT\qt-everywhere-opensource-src-4.8.2\include\ActiveQt
-ID:\QT\qt-everywhere-opensource-src-4.8.2\include\QtGui
-ID:\QT\qt-everywhere-opensource-src-4.8.2\include\QtCore
-ID:\QT\qt-everywhere-opensource-src-4.8.2\include -Fo
@C:\Users\skippy\AppData\Local\Temp\nmB662.tmp
sipQAxContainercmodule.cpp
sipQAxContainerQAxWidget.cpp
sipQAxContainerQAxObject.cpp
sipQAxContainerQAxBase.cpp
Generating Code...
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DLL /MANIFEST
/MANIFESTFILE:QAxContainer.pyd.manifest /SUBSYSTEM:WINDOWS
/INCREMENTAL:NO /OUT:QAxContainer.pyd
@C:\Users\skippy\AppData\Local\Temp\nmC2A2.tmp
LINK : fatal error LNK1149: output filename matches input filename
'D:\QT\PyQt\PyQt-win-gpl-4.9.4\QAxContainer\QAxContainer.lib'
More information about the PyQt
mailing list