经过几次尝试,我终于在我的 Mac OS X 版本 10.4.11 上使用 wxErlang 编译和安装了 wxWidgets 2.8.11 和 Erlang R13B04。但是,测试 wxErlang 会立即失败:
1> wx:new().
= ERROR REPORT==== 21-Jul-2010::18:37:23 === WX failed loading
"wxe_driver"@"/usr/local/lib/erlang/li/wx-0.98.5/priv/i386-apple-darwing8.11.1"
** exception error:
{load_driver,
"dlopen(/usr/local/lib/erlang/li/wx-0.98.5/priv/i386-apple-darwin8.11.1/wxe_driver.so,
2): Symbol not found: __ZN5wxApp10InitializeERiPPw\n Referenced from:
/usr/local/lib/erlang/lib/wx-0.98.5/priv/i386-apple-darwin8.11.1/wxe_driver.so\n
Expected in: flat namespace\n"} in function wxe_server:start/0 in call
from wx:new/1
我确实在这个邮件列表上看到了 2009 年 6 月 7 日的主题“wxErlang”。我确实按照它的建议重试了(确保 wxWidgets 构建目录在路径中的第一个),但它没有任何区别。
有什么建议么?
oTool -L 说:
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 11.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.11)
/System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime (compatibility version 1.0.0, current version 1327.73.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/WebKit.framework/Versions/A/WebKit (compatibility version 1.0.0, current version 533.16.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
/usr/lib/libiconv.2.dylib (compatibility version 5.0.0, current version 5.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
乔奥拉夫