首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > 多媒体 >

编译vlc中libts_plugin.dylib疏失

2012-12-31 
编译vlc中libts_plugin.dylib出错在macos上,要用到libts,然后正确安装了libdvbpsi,去vlc-0.9.2/modules/de

编译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


      _Open in libts_plugin_la-ts.o
  "_dvbpsi_DetachDemux", referenced from:
      _Close in libts_plugin_la-ts.o
      _PMTCallBack in libts_plugin_la-ts.o
  "_dvbpsi_DecodeStreamIdentifierDr", referenced from:
      _PMTCallBack in libts_plugin_la-ts.o
  "_dvbpsi_DecodeExtendedEventDr", referenced from:
      _EITCallBack in libts_plugin_la-ts.o
  "_dvbpsi_AttachPAT", referenced from:
      _Open in libts_plugin_la-ts.o
  "_dvbpsi_DetachPAT", referenced from:
      _Close in libts_plugin_la-ts.o
  "_dvbpsi_DecodeShortEventDr", referenced from:
      _EITCallBack in libts_plugin_la-ts.o
  "_dvbpsi_EmptyPAT", referenced from:
      _PATCallBack in libts_plugin_la-ts.o
  "_dvbpsi_AttachPMT", referenced from:
      _Open in libts_plugin_la-ts.o
      _PATCallBack in libts_plugin_la-ts.o
  "_dvbpsi_DetachPMT", referenced from:
      _PIDClean in libts_plugin_la-ts.o
      _PIDClean in libts_plugin_la-ts.o
  "_dvbpsi_AttachSDT", referenced from:
      _PSINewTableCallBack in libts_plugin_la-ts.o
  "_dvbpsi_PushPacket", referenced from:
      _Demux in libts_plugin_la-ts.o
      _Demux in libts_plugin_la-ts.o
  "_dvbpsi_EmptyPMT", referenced from:
      _PMTCallBack in libts_plugin_la-ts.o
      _PMTCallBack in libts_plugin_la-ts.o
  "_dvbpsi_DecodeISO639Dr", referenced from:
      _PMTCallBack in libts_plugin_la-ts.o
  "_dvbpsi_EmptySDT", referenced from:
      _SDTCallBack in libts_plugin_la-ts.o
  "_dvbpsi_DecodeTeletextDr", referenced from:
      _PMTCallBack in libts_plugin_la-ts.o
  "_dvbpsi_DecodeServiceDr", referenced from:
      _SDTCallBack in libts_plugin_la-ts.o
  "_dvbpsi_AttachEIT", referenced from:
      _PSINewTableCallBack in libts_plugin_la-ts.o
  "_dvbpsi_DecodeSubtitlingDr", referenced from:
      _PMTCallBack in libts_plugin_la-ts.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[5]: *** [libts_plugin.la] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

[解决办法]
./configure的时候把这个参数加上:--enable-dvbpsi --with-dvbpsi-tree=/Users/leo/libdvbpsi5-0.1.6

热点排行