wxErlang 加载驱动程序失败

发布于 2024-09-11 06:09:46 字数 2103 浏览 3 评论 0原文

经过多次尝试,我终于成功地在我的 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)

再见, 奥拉夫

After several attempts I finally managed to compile and install both wxWidgets 2.8.11 and Erlang R13B04 with wxErlang on my Mac OS X, Version 10.4.11. However, testing wxErlang fails immediately:

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

I did see the thread "wxErlang" from Jun 7, 2009 on this mailing list. I did retry following it's advise (ensuring wxWidgets build directory is first in the path), but it didn't make any difference.

Any suggestions?

oTool -L says:

    /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)

Ciao,
Olaf

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

野心澎湃 2024-09-18 06:09:47

您可以通过命令

./configure --enable-m32-build 来实现此目的。

它可以在我的带有 Lion (OSX 10.7.2) 的 Mac 上运行

You can achieve this by the command

./configure --enable-m32-build.

It worked on my Mac with Lion (OSX 10.7.2)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文