未加载库:mac 10.9上的@ rpath / SDL.framework / Versions / A / SDL

时间:2014-07-02 19:33:26

标签: xcode macos sdl

我有一个用xcode3.2.6构建的库项目。它工作正常,直到我在其中一台Mac 10.9机器上尝试它。

该库使用sdl框架。

当我尝试使用我的库时,收到了错误消息:

 Date/Time: 2014-07-02 11:36:04.493 -0400
 OS Version: Mac OS X 10.9.4 (13E28)
 Report Version: 11
 Anonymous UUID: AD396161-ACA4-007D-DB07-036ED3718A4A

 Crashed Thread: 0

 Exception Type: EXC_BREAKPOINT (SIGTRAP)
 Exception Codes: 0x0000000000000002, 0x0000000000000000

 Application Specific Information:
 dyld: launch, loading dependent libraries

 Dyld Error Message:
 Library not loaded: @rpath/SDL.framework/Versions/A/SDL
 Referenced from: /Applications/Eyelink/*/gcwindow.app/Contents/MacOS/gcwindow
 Reason: no suitable image found. Did find:
 /Library/Frameworks/SDL.framework/Versions/A/SDL: no matching architecture in universal   wrapper

 Binary Images:
 0x7fff62313000 - 0x7fff62346817 dyld (239.4) <042C4CED-6FB2-3B1C-948B-CAF2EE3B9F7A>  /usr/lib/dyld
 0x7fff915b8000 - 0x7fff915b8fff com.apple.Cocoa (6.8 - 20) <E90E99D7-A425-3301-A025-D9E0CD11918E> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa

我猜这个错误与rpath有关,但不知道我应该从哪里开始调试它。请帮忙。感谢。

顺便说一句,SDL版本是1.2.14,包括32位和64位版本。

mac是10.9.4,64bit。

LJ

1 个答案:

答案 0 :(得分:0)

对于在2020年发现此问题的任何人,请确保为目标系统正确安装SDL2:

https://www.libsdl.org/

关于Mac OS X:/Library/Frameworks/应该包含SDL2.framework