我试图从源代码构建Quantum GIS,但遇到了一个依赖项的问题。我需要制作和安装PyQwt,并得到以下编译错误:
$ make
g++ -headerpad_max_install_names -single_module -dynamiclib -o libqwt_designer_plugin.dylib obj/qwt_designer_plugin.o obj/qwt_designer_plotdialog.o obj/moc_qwt_designer_plugin.o obj/moc_qwt_designer_plotdialog.o obj/qrc_qwt_designer_plugin.o -F/Library/Frameworks -L/Library/Frameworks -L../lib -lqwt -framework QtScript -framework QtCore -framework QtXml -framework QtGui -framework QtDesigner
ld: file not found: QtSvg.framework/Versions/4/QtSvg for architecture x86_64但是如果我在QtSvg上运行file命令,它会告诉我有一个x86_64版本可用:
$ file /Library/Frameworks/QtSvg.framework/Versions/4/QtSvg
/Library/Frameworks/QtSvg.framework/Versions/4/QtSvg: Mach-O universal binary with 2 architectures
/Library/Frameworks/QtSvg.framework/Versions/4/QtSvg (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
/Library/Frameworks/QtSvg.framework/Versions/4/QtSvg (for architecture i386): Mach-O dynamically linked shared library i386问题是不是因为它是通用二进制文件?
发布于 2011-08-23 16:43:19
我不确定这是不是答案,但在你的链接行上看起来你没有QtSvg框架。
你有没有试过在链接命令中添加-framework QtSvg?
https://stackoverflow.com/questions/6990836
复制相似问题