我正在尝试从源代码构建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
问题是因为它是通用二进制文件吗?
答案 0 :(得分:0)
不确定答案是什么,但它在您的链接行上显示您没有QtSvg框架。
您是否尝试在链接命令中添加-framework QtSvg
?