[PyQt] Link failure when compiling with --debug on Mac

Stuart McNicholas mcnicholas at ysbl.york.ac.uk
Fri Mar 19 10:33:59 GMT 2010


Dear All,

I tried configuring with --debug on OS X 10.6 with sip 4.10.1/PyQt 
4.7.2, Qt 4.6.2 (built from source)

The linker tries to pull in -framework QtCore_debug. This does not 
exist. -lQtCore_debug could possibly work with libtool, I guess?


g++ -headerpad_max_install_names -bundle -undefined dynamic_lookup -arch 
i386 -o QtCore.so sipQtCorecmodule.o 
sipQtCoreQList0600QPair0100QByteArray0100QByteArray.o 
sipQtCoreQList0600QPair0100QString0100QString.o 
sipQtCoreQSet0101QAbstractState.o sipQtCoreQList0100QUrl.o 
sipQtCoreQList0101QAbstractAnimation.o 
sipQtCoreQList0101QAbstractState.o sipQtCoreQHash18000100QByteArray.o 
sipQtCoreQMap18000100QVariant.o sipQtCoreQList0100QByteArray.o 
sipQtCoreQVector0100QXmlStreamNotationDeclaration.o 
sipQtCoreQVector0100QXmlStreamNamespaceDeclaration.o 
sipQtCoreQVector0100QXmlStreamEntityDeclaration.o 
sipQtCoreQMap0100QString0100QVariant.o sipQtCoreQList0100QVariant.o 
sipQtCoreQHash0100QString0100QVariant.o 
sipQtCoreQVector0600QPair24000100QVariant.o sipQtCoreQList0101QObject.o 
sipQtCoreQList0100QModelIndex.o sipQtCoreQList0100QFileInfo.o 
sipQtCoreQXmlStreamWriter.o sipQtCoreQXmlStreamReader.o 
sipQtCoreQXmlStreamEntityResolver.o 
sipQtCoreQXmlStreamEntityDeclaration.o 
sipQtCoreQXmlStreamNotationDeclaration.o 
sipQtCoreQXmlStreamNamespaceDeclaration.o 
sipQtCoreQXmlStreamAttributes.o sipQtCoreQXmlStreamAttribute.o 
sipQtCoreQWaitCondition.o sipQtCoreQVector2400.o sipQtCoreQVector1900.o 
sipQtCoreQVariant_5.o sipQtCoreQVariant_4.o sipQtCoreQUuid.o 
sipQtCoreQUrlFormattingOptions.o sipQtCoreQUrl.o sipQtCoreQTranslator.o 
sipQtCoreQTimer.o sipQtCoreQTimeLine.o sipQtCoreQThreadPool.o 
sipQtCoreQThread.o sipQtCoreQTextStreamManipulator.o 
sipQtCoreQTextStreamNumberFlags.o sipQtCoreQTextStream.o 
sipQtCoreQTextDecoder.o sipQtCoreQTextEncoder.o 
sipQtCoreQTextCodecConverterState.o sipQtCoreQTextCodecConversionFlags.o 
sipQtCoreQTextCodec.o sipQtCoreQTextBoundaryFinderBoundaryReasons.o 
sipQtCoreQTextBoundaryFinder.o sipQtCoreQTemporaryFile.o 
sipQtCoreQSystemSemaphore.o sipQtCoreQStringMatcher_0.o 
sipQtCoreQStringList_0.o sipQtCoreQStringList_1.o 
sipQtCoreQStringRef_0.o sipQtCoreQStringRef_1.o 
sipQtCoreQLatin1String_0.o sipQtCoreQStringSectionFlags_0.o 
sipQtCoreQString_0.o sipQtCoreQString_1.o 
sipQtCoreQStateMachineWrappedEvent.o sipQtCoreQStateMachineSignalEvent.o 
sipQtCoreQStateMachine.o sipQtCoreQState.o sipQtCoreQSocketNotifier.o 
sipQtCoreQSizeF.o sipQtCoreQSize.o sipQtCoreQSignalTransition.o 
sipQtCoreQSignalMapper.o sipQtCoreQSharedMemory.o sipQtCoreQSettings.o 
sipQtCoreQSequentialAnimationGroup.o sipQtCoreQSemaphore.o 
sipQtCoreQRunnable.o sipQtCoreQResource.o sipQtCoreQRegExp.o 
sipQtCoreQRectF.o sipQtCoreQRect.o sipQtCoreQWriteLocker.o 
sipQtCoreQReadLocker.o sipQtCoreQReadWriteLock.o 
sipQtCoreQPropertyAnimation.o sipQtCoreQVariantAnimation.o 
sipQtCoreQProcessEnvironment.o sipQtCoreQProcess.o sipQtCoreQPointF.o 
sipQtCoreQPoint.o sipQtCoreQPluginLoader.o sipQtCoreQPauseAnimation.o 
sipQtCoreQParallelAnimationGroup.o sipQtCoreQPair18001800.o 
sipQtCoreQGenericReturnArgument.o sipQtCoreQGenericArgument.o 
sipQtCoreQMetaObject.o sipQtCoreQObjectCleanupHandler.o 
sipQtCoreQWidget.o sipQtCoreQMutexLocker.o sipQtCoreQMutex.o 
sipQtCoreQMimeData.o sipQtCoreQMetaType.o sipQtCoreQMetaClassInfo.o 
sipQtCoreQMetaProperty.o sipQtCoreQMetaEnum.o sipQtCoreQMetaMethod.o 
sipQtCoreQMargins.o sipQtCoreQList0100QLocaleCountry.o 
sipQtCoreQSystemLocale.o sipQtCoreQLocaleNumberOptions.o 
sipQtCoreQLocale.o sipQtCoreQList2400.o sipQtCoreQList1800.o 
sipQtCoreQList0600QPair24002400.o sipQtCoreQList0600QPair18001800.o 
sipQtCoreQLineF.o sipQtCoreQLine.o sipQtCoreQLibraryInfo.o 
sipQtCoreQLibraryLoadHints.o sipQtCoreQLibrary.o 
sipQtCoreQIODeviceOpenMode.o sipQtCoreQHistoryState.o 
sipQtCoreQFSFileEngine.o sipQtCoreQFinalState.o 
sipQtCoreQFileSystemWatcher.o sipQtCoreQFileInfo.o 
sipQtCoreQFilePermissions.o sipQtCoreQFile.o sipQtCoreQEventTransition.o 
sipQtCoreQEventLoopProcessEventsFlags.o sipQtCoreQEventLoop.o 
sipQtCoreQEasingCurve.o sipQtCoreQDirIteratorIteratorFlags.o 
sipQtCoreQDirIterator.o sipQtCoreQDirSortFlags.o sipQtCoreQDirFilters.o 
sipQtCoreQDir.o sipQtCoreQDateTime.o sipQtCoreQTime.o sipQtCoreQDate.o 
sipQtCoreQDataStream.o sipQtCoreQCryptographicHash.o 
sipQtCoreQDynamicPropertyChangeEvent.o sipQtCoreQChildEvent.o 
sipQtCoreQTimerEvent.o sipQtCoreQEvent.o sipQtCoreQCoreApplication.o 
sipQtCoreQChar_0.o sipQtCoreQChar_1.o sipQtCoreQLatin1Char_0.o 
sipQtCoreQByteArrayMatcher.o sipQtCoreQByteArray.o sipQtCoreQBuffer.o 
sipQtCoreQIODevice.o sipQtCoreQBitArray.o sipQtCoreQBasicTimer.o 
sipQtCoreQAnimationGroup.o sipQtCoreQAbstractTransition.o 
sipQtCoreQAbstractState.o sipQtCoreQAbstractListModel.o 
sipQtCoreQAbstractTableModel.o sipQtCoreQAbstractItemModel.o 
sipQtCoreQPersistentModelIndex.o sipQtCoreQModelIndex.o 
sipQtCoreQAbstractFileEngineIterator.o 
sipQtCoreQAbstractFileEngineHandler.o 
sipQtCoreQAbstractFileEngineFileFlags.o sipQtCoreQAbstractFileEngine.o 
sipQtCoreQAbstractEventDispatcher.o sipQtCoreQAbstractAnimation.o 
sipQtCoreQObject.o sipQtCoreQtGestureFlags.o 
sipQtCoreQtTouchPointStates.o sipQtCoreQtInputMethodHints.o 
sipQtCoreQtTextInteractionFlags.o sipQtCoreQtMatchFlags.o 
sipQtCoreQtItemFlags.o sipQtCoreQtDropActions.o 
sipQtCoreQtToolBarAreas.o sipQtCoreQtDockWidgetAreas.o 
sipQtCoreQtImageConversionFlags.o sipQtCoreQtWindowStates.o 
sipQtCoreQtWindowFlags.o sipQtCoreQtAlignment.o 
sipQtCoreQtOrientations.o sipQtCoreQtMouseButtons.o 
sipQtCoreQtKeyboardModifiers.o sipQtCoreQt.o sipQtCoreQSysInfo.o 
-F/Users/stuart/PyQt-mac-gpl-4.7.2/qpy/QtCore 
-L/Users/stuart/PyQt-mac-gpl-4.7.2/qpy/QtCore 
-F/usr/local/Trolltech/Qt-4.6.2/lib -L/usr/local/Trolltech/Qt-4.6.2/lib 
-lqpycore -framework QtCore_debug
ld: framework not found QtCore_debug
collect2: ld returned 1 exit status
make[1]: *** [QtCore.so] Error 1
make: *** [all] Error 2


dewinter:~> ls /usr/local/Trolltech/Qt-4.6.2/lib/
Qt3Support.framework		QtGui.framework			QtOpenGL.framework	 
QtSvg.framework			QtXmlPatterns.la		libQtCLucene_debug.dylib
Qt3Support.la			QtGui.la			QtOpenGL.la			QtSvg.la		 
QtXmlPatterns_debug.la		libQtCLucene_debug.la
Qt3Support_debug.la		QtGui_debug.la			QtOpenGL_debug.la	 
QtSvg_debug.la			QtXml_debug.la			libQtCLucene_debug.prl
QtAssistant.framework		QtHelp.framework		QtScript.framework	 
QtTest.framework		libQtCLucene.4.6.2.dylib	libQtUiTools.a
QtCore.framework		QtHelp.la			QtScript.la			QtTest.la		 
libQtCLucene.4.6.dylib		libQtUiTools.prl
QtCore.la			QtHelp_debug.la			QtScriptTools.framework	 
QtTest_debug.la			libQtCLucene.4.dylib		libQtUiTools_debug.a
QtCore_debug.la			QtMultimedia.framework		QtScriptTools.la	 
QtWebKit.framework		libQtCLucene.dylib		libQtUiTools_debug.prl
QtDBus.framework		QtMultimedia.la			QtScriptTools_debug.la	 
QtWebKit.la			libQtCLucene.la			phonon.framework
QtDBus.la			QtMultimedia_debug.la		QtScript_debug.la	 
QtWebKit_debug.la		libQtCLucene.prl		phonon.la
QtDBus_debug.la			QtNetwork.framework		QtSql.framework		 
QtXml.framework			libQtCLucene_debug.4.6.2.dylib	phonon_debug.la
QtDesigner.framework		QtNetwork.la			QtSql.la			QtXml.la		 
libQtCLucene_debug.4.6.dylib	pkgconfig
QtDesignerComponents.framework	QtNetwork_debug.la		QtSql_debug.la		 
QtXmlPatterns.framework		libQtCLucene_debug.4.dylib

Regards,
Stuart McNicholas


More information about the PyQt mailing list