iOS 编译rtmpdump(librtmp),提示“/Developer/usr/bin/gcc: No such file or directory”

Kotim 2016-03-16 12:28:51
大家好,请教个问题:
有没有在iOS上编译过rtmpdump(librtmp)?
已经编译好openssl(https://github.com/x2on/OpenSSL-for-iPhone)。
我参考:http://www.cnblogs.com/fpzeng/p/3202344.html进行编译:

我编译的时候,gcc找不到,如下图:


make: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc: No such file or directory
make: *** [rtmp.o] Error 1

请是怎么CROSS_COMPILE设置的?/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ 是没有gcc 的。

大家有没有比较好的iOS编译librtmp的例子,我在网上找了很长时间没有找到能运行的,谢谢了!
...全文
484 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Kotim 2016-04-04
  • 打赏
  • 举报
回复
引用 3 楼 zero1977 的回复:
@Little_Virus 我也遇到这个问题,你解决了吗?
差不多解决了,查看1楼
zero1977 2016-03-28
  • 打赏
  • 举报
回复
@Little_Virus 我也遇到这个问题,你解决了吗?
cocoabird 2016-03-21
  • 打赏
  • 举报
回复
最近也在搞ios
Kotim 2016-03-17
  • 打赏
  • 举报
回复
哎,还是我自己来回答吧,http://blog.csdn.net/cjj198561/article/details/28955461 openssl使用SDK9.2,是没有问题的。但是编译librtmp i386的时候出现下面错误: ld: building for OSX, but linking in object file built for iOS, file 'rtmp.o' for architecture i386 于是,我在编译librtmp的时候,把i386放在最后,即 : ARCHS=" armv7 armv7s arm64 i386" 。 编译后就没有模拟器版本的了。

29,027

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧