我正在尝试使用 go-qml 或 gotk3 来构建一个可以在 OS X 下运行的非常简单的桌面应用程序。但是,当我尝试使用go get安装任一库时,它将尝试为 i386 构建并跳过已构建的库针对 x86_64。我可以尝试获取这些库的 32 位版本,但我更愿意为 64 位构建。我如何指示去这样做?
错误后的警告看起来是这样的:
go get gopkg.in/qml.v1
# gopkg.in/qml.v1
ld: warning: ld: warning: ld: warning: ignoring file /usr/local/Cellar/qt5/5.3.2/lib/QtWidgets.framework/QtWidgets, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/qt5/5.3.2/lib/QtWidgets.framework/QtWidgetsignoring file /usr/local/Cellar/qt5/5.3.2/lib/QtGui.framework/QtGui, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/qt5/5.3.2/lib/QtGui.framework/QtGuiignoring file /usr/local/Cellar/qt5/5.3.2/lib/QtQuick.framework/QtQuick, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/qt5/5.3.2/lib/QtQuick.framework/QtQuick
杨__羊羊
侃侃无极
相关分类