当前位置: 代码迷 >> 多媒体/流媒体开发 >> 编译vlc中libts_plugin.dylib疏失
  详细解决方案

编译vlc中libts_plugin.dylib疏失

热度:9532   发布时间:2013-02-26 00:00:00.0
编译vlc中libts_plugin.dylib出错
在macos上,要用到libts,然后正确安装了libdvbpsi,去vlc-0.9.2/modules/demux下编译的时候出现如下错误
在vlc目录下configure选项中有 --enable-dvbpsi    --with-dvbpsi-tree=/Users/leo/libdvbpsi5-0.1.6
应该怎么解决?
macos 10.5
目标iPhoneos 3.1.3
vlc 0.9.2
libdvbpsi 0.1.6
会不会是libdvbpsi安装的时候配置不对?


/bin/sh ../../libtool --tag=CC   --mode=link /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 -std=gnu99 `top_builddir="../.." ../../vlc-config --cflags plugin libts_plugin.la` -march=armv6 -fno-common -fno-builtin -miphoneos-version-min=2.0 -fomit-frame-pointer -I/Applications/vlc4iphone.app/include -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/include -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/lib/gcc/arm-apple-darwin9/4.0.1/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk -I/Users/leo/vlc4iphone/vlc-0.9.2/sdl/include -O3  -I/Users/leo/vlc/vlc-0.9.2copy/./extras/contrib/include -D_INTL_REDIRECT_MACROS -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -rpath '/usr/local/lib/vlc/demux' -avoid-version -module -no-undefined -export-symbol-regex ^vlc_entry -shrext .dylib `top_builddir="../.." ../../vlc-config --ldflags plugin libts_plugin.la` -L/Applications/vlc4iphone.app/lib/ -L/Users/leo/vlc4iphone/vlc-0.9.2/sdl/build/ -L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/lib   -L/Users/leo/vlc/vlc-0.9.2copy/./extras/contrib/lib -Wl,-headerpad_max_install_names -o libts_plugin.la  libts_plugin_la-ts.lo libts_plugin_la-csa.lo  `top_builddir="../.." ../../vlc-config -libs plugin libts_plugin.la` ../../src/libvlccore.la 

*** Warning: Linking the shared library libts_plugin.la against the
*** static library /Users/leo/libdvbpsi5-0.1.6/src/.libs/libdvbpsi.a is not portable!
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 -std=gnu99  -o .libs/libts_plugin.dylib -bundle  .libs/libts_plugin_la-ts.o .libs/libts_plugin_la-csa.o  -L/Applications/vlc4iphone.app/lib/ -L/Users/leo/vlc4iphone/vlc-0.9.2/sdl/build/ -L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/lib -L/Users/leo/vlc/vlc-0.9.2copy/./extras/contrib/lib -lpthread /Users/leo/libdvbpsi5-0.1.6/src/.libs/libdvbpsi.a ../../src/.libs/libvlccore.dylib /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/lib/libpthread.dylib /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/lib/libm.dylib /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/lib/libiconv.dylib  -march=armv6 -miphoneos-version-min=2.0 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk -Wl,-headerpad_max_install_names
ld: warning: -force_cpusubtype_ALL will become unsupported for ARM architectures
ld: warning: in /Users/leo/libdvbpsi5-0.1.6/src/.libs/libdvbpsi.a, file is not of required architecture
Undefined symbols:
  "_dvbpsi_EmptyEIT", referenced from:
      _EITCallBack in libts_plugin_la-ts.o
  "_dvbpsi_AttachDemux", referenced from:
      _Open in libts_plugin_la-ts.o