cocoa应用程序中关于sox库的运行时错误
我正在尝试将 sox 库添加到我的项目中,并使用 ./configure、make 和 make install 安装库,并将 libsox.dylib 链接到我的项目中。我没有收到编译器错误,但收到运行时错误。
现在我收到以下错误,
[会议于 2010-03-03 17:33:44 +0530 开始。] dyld:未加载库:/usr/local/lib/libmp3lame.0.dylib 引用自:/usr/local/lib/libavformat.dylib 原因:没有找到合适的图片。是否发现: /usr/local/lib/libmp3lame.0.dylib:mach-o,但架构错误 /usr/local/lib/libmp3lame.0.dylib:mach-o,但架构错误 由于信号 5 (SIGTRAP),调试器已退出。由于信号 5 (SIGTRAP),调试器已退出。
所以有人请告诉我将 sox 库安装到 mac os 的确切过程。
问候, 可可开发者
I am trying to sox library into my project and installed library using ./configure, make and make install and linked to the libsox.dylib into my project. I am not getting compiler error but getting run time error .
Now i am getting following error,
[Session started at 2010-03-03 17:33:44 +0530.] dyld: Library not loaded: /usr/local/lib/libmp3lame.0.dylib Referenced from: /usr/local/lib/libavformat.dylib Reason: no suitable image found. Did find: /usr/local/lib/libmp3lame.0.dylib: mach-o, but wrong architecture /usr/local/lib/libmp3lame.0.dylib: mach-o, but wrong architecture The Debugger has exited due to signal 5 (SIGTRAP).The Debugger has exited due to signal 5 (SIGTRAP).
So anyone please tell me exact procedure to install sox library into mac os.
Regards,
CocoaDev
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能尝试混合不同的体系结构,例如 32 位和 64 位代码,或 x86 和 ARM。使用
file
检查 dyld 的架构,并将其与您尝试构建的任何架构进行比较。$ 人文件
You're probably trying to mix different architectures, e.g. 32 bit and 64 bit code, or x86 and ARM. Use
file
to check the architecture of the dyld and compare that with the architecture of whatever it is that you are trying to build.$ man file
这是快速修复:安装程序时,按以下方式运行“配置”:
列出所有所需的拱门,每个拱门都有一个单独的 -arch。众所周知,这有时会被打破。例如,不要以这种方式编译 LibSDL,您将得到不正确的输出(奇怪的颜色和东西)。不幸的是,sox 很可能遇到类似的问题,因此请务必在您想要附带的所有拱门上进行测试。
Here's the quick fix: when you install the program, run "configure" this way:
List all your desired archs, each with a separate -arch. This is known to sometimes break. For example, do NOT compile LibSDL this way, you will get incorrect output (weird colors and stuff). Unfortunately, it is quite possible that sox suffers from the similar problems, so be sure to test it on all the archs you want to ship with.