为什么 qwt-5.2 认为我没有安装适用于 x86_64 的 QtSvg?
我正在尝试从源代码构建 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 上的 /code> 命令告诉我 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
问题是因为它是通用二进制吗?
I'm trying to build Quantum GIS from source but am running into a problem with one of the dependencies. I need to make and install PyQwt and am getting the following compilation error:
$ 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
But if I run file
command on QtSvg it tells me an x86_64 version is available:
$ 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
Is the problem because it's a Universal Binary?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定这是答案,但在您的链接线上看起来您没有 QtSvg 框架。
您是否尝试过在链接命令中添加
-framework QtSvg
?Not sure it's the answer, but it looks on your link line that you don't have the QtSvg framework.
Have your tried adding
-framework QtSvg
on your link command ?