我想在运行Lion的Mac上从源代码编译完整的Erlang
包。源代码是最新版本(R14B04
)。在Mac OS X上启用wxWidgets编译Erlang Lion
$ ./configure
后,我得到了以下内容:
wx: Can not combine 64bits erlang with wxWidgets on MacOSX,
wx will not be useable
所以,我想,我的电脑安装的是wxWidgets
32位。一种可能的解决方案是将Erlang构建成32位二进制。 (WX是可选的Erlang的系统运行,但我真的需要它启用做。)所以我这样做:
$ ./configure --enable-m32-build
组态程序都很好,所以我开始建立它。
$ make
二郎建筑本身高兴地约三分钟后,我得到这个
...
...
gen/wxe_derived_dest.h: In constructor ‘EwxMDIClientWindow::EwxMDIClientWindow(wxMDIParentFrame*, long int)’:
gen/wxe_derived_dest.h:699: error: no matching function for call to ‘wxMDIClientWindow::wxMDIClientWindow(wxMDIParentFrame*&, long int&)’
/opt/local/include/wx-2.9/wx/osx/mdi.h:142: note: candidates are: wxMDIClientWindow::wxMDIClientWindow()
/opt/local/include/wx-2.9/wx/osx/mdi.h:140: note: wxMDIClientWindow::wxMDIClientWindow(const wxMDIClientWindow&)
make[3]: *** [i386-apple-darwin11.2.0/wxePrintout.o] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2
现在我卡住了,不知道该怎么办。有人在运行Lion的Mac上成功构建了Erlang吗?谢谢。
目前,我使用Erlang GS,http://www.erlang.org/doc/apps/gs/gs_chapter1.html – Ning 2012-02-22 03:27:06