我正在尝试从源代码构建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
但是,如果我file
在 QtSvg 上运行命令,它会告诉我有一个 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
问题是因为它是通用二进制文件吗?