Modules

if HAVE_DARWIN1
libscreen_plugin_la_SOURCES += screen/mac.c
libscreen_plugin_la_LDFLAGS = $(AM_LDFLAGS)
libscreen_plugin_la_LDFLAGS += "-Wl,-framework,OpenGL,-framework,ApplicationServices"
libvlc_LTLIBRARIES += libscreen_plugin.la

endif


First, add --disable-screen as I wrote in my comment above.

Then, in the file ios/buildMobileVLC.sh, change line 50 from:

CODE:  SELECT ALL
local extra="ARCHS="

to:
CODE:  SELECT ALL
local extra="ARCHS=armv7"


Otherwise it might compile the front end as armv7s and expect the vlc files to be under /armv7s. However, vlc itself is compiled under armv7 and the files are in /armv7. If one were to attempt to compile vlc for armv7s it fails. I have yet to dig into that.

Then there's the other bigger problem. In the file  ios/ImportedSources/vlc/modules/access/Modules.am  there is a logic problem regarding the lib screen plugin. Here's the offending code, line 184:

CODE:  SELECT ALL
if HAVE_DARWIN
libscreen_plugin_la_SOURCES += screen/mac.c
libscreen_plugin_la_LDFLAGS = $(AM_LDFLAGS)
libscreen_plugin_la_LDFLAGS += "-Wl,-framework,OpenGL,-framework,ApplicationServices"
libvlc_LTLIBRARIES += libscreen_plugin.la
endif


The problem is that under iOS HAVE_DARWIN is true, and libscreen will always compile regardless of your --disable-screen setting. Incidentally, the previous piece of code that compiles for HAVE_WIN32 has the same problem. --disable-screen doesn't stop libscreen from compiling.
And since there is no specific HAVE_* check for screen, just disable all those lines between the HAVE_DARWIN test.
This will get the iOS build to compile and function correctly.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值