Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经编译了 live555 库
./genMakefiles iphoneos make
对于 iOS 设备,但我无法为 iOS 模拟器编译它。有没有人有任何想法如何做到这一点?谢谢。
问题是当您为 iphoneos 编译时,您正在为 arm 处理器编译库。运行 iOS 模拟器时,您是在英特尔 x86 处理器上运行它,因此它会产生类似于“找不到 i386/x86_64 的符号”的错误
如果您想在模拟器上运行它,请尝试运行“./genMakefiles macosx”
如果您知道如何操作,那么您可以指定要链接的生成库文件的版本,具体取决于您要构建的内容。即,如果在 ios 设备上运行,它将链接到 .a 文件,或者在模拟器上运行时将链接到 .dylib 文件
我希望这会有所帮助