在 Mac OSX 10.10 上编译 WxWidgets [英] Compiling WxWidgets on Mac OSX 10.10

查看:104
本文介绍了在 Mac OSX 10.10 上编译 WxWidgets的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 mac OSX 10.10 上编译 WxWidgets 3.0.2我收到以下消息:

I'm trying to compile WxWidgets 3.0.2 on my mac OSX 10.10 and I get the following message:

块引用...ld:找不到架构 x86_64 的符号clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)make: *** [/Users/.../wxWidgets-3.0.2/build_rel/lib/libwx_osx_cocoau-3.0.0.2.0.dylib] 错误 1

Blockquote ... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/Users/.../wxWidgets-3.0.2/build_rel/lib/libwx_osx_cocoau-3.0.0.2.0.dylib] Error 1

我正在使用这些标志进行编译

I'm compiling using these flags

../configure --with-osx_cocoa --with-macosx-version-min=10.7 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk --prefix="$(pwd)" --with-opengl CC=clang CXX=clang++ CXXFLAGS="-stdlib=libc++ -std=c++11" OBJCXXFLAGS="-stdlib=libc++-std=c++11" LDFLAGS=-stdlib=libc++ --enable-universal-binary=x86_64 --enable-monolithic --enable-unicode --with-expat=builtin --with-zlib=builtin --with-libtiff=builtin --with-regex=builtin --with-libpng=builtin --with-libjpeg=builtin

../configure --with-osx_cocoa --with-macosx-version-min=10.7 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk --prefix="$(pwd)" --with-opengl CC=clang CXX=clang++ CXXFLAGS="-stdlib=libc++ -std=c++11" OBJCXXFLAGS="-stdlib=libc++ -std=c++11" LDFLAGS=-stdlib=libc++ --enable-universal-binary=x86_64 --enable-monolithic --enable-unicode --with-expat=builtin --with-zlib=builtin --with-libtiff=builtin --with-regex=builtin --with-libpng=builtin --with-libjpeg=builtin

如您所见,我按照其他主题中的建议添加了 enable-universal-binary=x86_64.

As you can see I added the enable-universal-binary=x86_64 as suggested in other topics.

如果你能建议我可能没有添加的其他标志,或者我应该删除那很好啊..谢谢

If you can suggest other flags that I might have not added or I should remove that would be great.. Thanks

推荐答案

另一种方式:

brew install wxwidgets

你将在 /usr/local/Cellar 中得到编译好的 wxWidgets.

you will get compiled wxWidgets in /usr/local/Cellar.

这篇关于在 Mac OSX 10.10 上编译 WxWidgets的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆