`
cryolite
  • 浏览: 579679 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Mac OS X(Leopard)下构建Erlang/OTP R13B02的问题

阅读更多
make时出错:
gen/wxe_events.cpp: In function 'void initEventTable()':
gen/wxe_events.cpp:277: error: 'wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_DOWN' was not declared in this scope
gen/wxe_events.cpp:278: error: 'wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP' was not declared in this scope
gen/wxe_events.cpp:279: error: 'wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN' was not declared in this scope
gen/wxe_events.cpp:280: error: 'wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP' was not declared in this scope
gen/wxe_events.cpp:281: error: 'wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSED' was not declared in this scope
gen/wxe_events.cpp:282: error: 'wxEVT_COMMAND_AUINOTEBOOK_DRAG_DONE' was not declared in this scope
gen/wxe_events.cpp:283: error: 'wxEVT_COMMAND_AUINOTEBOOK_BG_DCLICK' was not declared in this scope
make[3]: *** [i386-apple-darwin9.8.0/wxe_events.o] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2


错误与wxErlang有关,之前R13版本的都可以略过,这个新版本的不行了。
阅读otp_src_R13B02/lib/wx/README的指导:
1. 下载wxWidges 2.8.x,解压到某个目录下(例如/usr/local/wxMac-2.8.10)
2. 进入解压目录创建一个新的目录就叫MYBUILD
3. 进入MYBUILD目录后
../configure --with-opengl --enable-unicode --enable-graphics_ctx \
        --enable-gnomeprint \
        --disable-shared

构建:
make
sudo make install

然后进入这个目录继续构建:
cd contrib/src/stc/
make
sudo make install


4. 进入otp_src_R13B02目录:
export PATH=/usr/local/wxMac-2.8.10/MYBUILD/:$PATH

然后如常构建:
./configure
make
sudo make install

出于洁癖,我会把以前安装的版本(/usr/local/lib/erlang)全部删掉,然后make install

参考这里
还是很麻烦的说。不过wxErlang可以用了:
Erlang R13B02 (erts-5.7.3) [source] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]

Eshell V5.7.3  (abort with ^G)
1> wx:demo().



BTW:
for ubuntu:
apt-get install freeglut3-dev libwxgtk2.8-dev g++

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics