프로그램 사용/VLC2010. 2. 3. 19:39
VLC 크로스컴파일은 참.. 멀고도 험하다..

vlc-1.0.4$ make
...
 /opt/STM/STLinux-2.2/devkit/sh4/lib/gcc/sh4-linux/4.1.1/../../../../sh4-linux/bin/ld: warning: libvlccore.so.2, needed by ../src/.libs/libvlc.so, not found (try using -rpath or -rpath-link)
collect2: ld returned 1 exit status
이런식으로 오류가 발생한다.

아무튼, Makefile의 문제로, 1.0.5 에는 버그 수정이 되었다고 한다.

Try to modify bin/Makefile. It works for me.
vlc_LDADD = ../src/libvlc.la `$(VLC_CONFIG) -libs vlc` $(am__append_2)
change to
vlc_LDADD = ../src/libvlccore.la ../src/libvlc.la `$(VLC_CONFIG) -libs vlc` $(am__append_2)

[링크 : http://forum.videolan.org/viewtopic.php?f=13&t=63438]

위와 같이 수정하고 나면 다른 에러가 발생한다.
libtool: link: sh4-linux-gcc -std=gnu99 -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DMODULE_NAME=vlc -DMODULE_NAME_IS_vlc -DMODULE_STRING=\"vlc\" -O2 -ffast-math -funroll-loops -fomit-frame-pointer -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -o .libs/vlc vlc.o  ../src/.libs/libvlccore.so ../src/.libs/libvlc.so -Wl,-rpath -Wl,/opt/STM/STLinux-2.2/devkit/sh4/target/usr/lib
../src/.libs/libvlccore.so: undefined reference to `dbus_threads_init_default'
collect2: ld returned 1 exit status
이녀석은 --disable-dbus-control --disable-dbus 옵션을 주고 하면 사라진다.

그래도 또 다른 에러가 발생한다.
libtool: link: sh4-linux-gcc -std=gnu99 -shared  .libs/librtp_plugin_la-rtp.o .libs/librtp_plugin_la-input.o .libs/librtp_plugin_la-session.o  -Wl,--whole-archive ../../../compat/.libs/libcompat.a ../../../libs/srtp/.libs/libvlc_srtp.a -Wl,--no-whole-archive  -Wl,-rpath -Wl,/home/morpheuz/다운로드/vlc-1.0.4/src/.libs -Wl,-rpath -Wl,/opt/STM/STLinux-2.2/devkit/sh4/target/usr/lib -Wl,-rpath -Wl,/opt/STM/STLinux-2.2/devkit/sh4/target/usr/lib ../../../src/.libs/libvlccore.so /opt/STM/STLinux-2.2/devkit/sh4/target/usr/lib/libgcrypt.so /lib/libgpg-error.so -lnsl -lpthread    -Wl,-soname -Wl,librtp_plugin.so -o .libs/librtp_plugin.so
/lib/libgpg-error.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
이녀석은 --libdir=/opt/STM/STLinux-2.2/devkit/sh4/target/usr/lib/ 옵션을 줘도 안된다 ㅠ.ㅠ

'프로그램 사용 > VLC' 카테고리의 다른 글

x264 , libavcodec 다운로드  (0) 2010.02.24
vlc-1.0.5 cross compile  (3) 2010.02.09
VLC 1.0.4 cross compile + busybox  (0) 2010.02.02
의미는 없는 Linux / Windows VLC 차이  (0) 2010.01.26
VLC로 youtube 동영상 감상하기  (0) 2010.01.26
Posted by 구차니