From: BombiLee <che...@gm...> - 2008-09-16 20:24:20
|
I have same problem when I am cross compling Player 2.1.1 for http://sites.google.com/site/copyartshouse/cross-compile-player2-1-1-to-openwrt-whiterussian-0-9-for-wrt54gl-with-64mb-ram-sd-serial-mod OpenWRT Whiterussian 0.9 for my WRT54GL router ( for control Roomba ) I finally figure how to fix it, not so pretty though. The reason cause " libxxx.so, not found ... libxxxx.so: undefined reference XXXX. " is the compiler some how can't find the .so files when doing cross-compiling. My way to solve it is adding LD_LIBRARY_PATH to environment variables. http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN77 Referance How to find out what path you should add. In /player-2.1.1 floder , search for shared library .so files ( after you do first make create those errors ) $ find | grep .so.2.1.1 you should see some thing like this ./libplayerjpeg/.libs/libplayerjpeg.so.2.1.1 ./libplayercore/.libs/libplayercore.so.2.1.1 ./libplayercore/.libs/libplayerutils.so.2.1.1 ./libplayercore/.libs/libplayererror.so.2.1.1 ./client_libs/libplayerc/.libs/libplayerc.so.2.1.1 ./client_libs/libplayerc++/.libs/libplayerc++.so.2.1.1 ./server/libplayerdrivers/.libs/libplayerdrivers.so.2.1.1 ./libplayertcp/.libs/libplayerudp.so.2.1.1 ./libplayertcp/.libs/libplayertcp.so.2.1.1 ./libplayerxdr/.libs/libplayerxdr.so.2.1.1 These are the path you should add into LD_LIBRARY_PATH, very very long command. this is mine $ export LD_LIBRARY_PATH=/home/steven/OpenWrt-SDK-Linux-i686-1/package/player-2.1.1-openwrt/libplayercore/.libs:/home/steven/OpenWrt-SDK-Linux-i686-1/package/player-2.1.1-openwrt/libplayercore/.libs:/home/steven/OpenWrt-SDK-Linux-i686-1/package/player-2.1.1-openwrt/libplayercore/.libs:/home/steven/OpenWrt-SDK-Linux-i686-1/package/player-2.1.1-openwrt/client_libs/libplayerc/.libs:/home/steven/OpenWrt-SDK-Linux-i686-1/package/player-2.1.1-openwrt/client_libs/libplayerc++/.libs:/home/steven/OpenWrt-SDK-Linux-i686-1/package/player-2.1.1-openwrt/server/libplayerdrivers/.libs:/home/steven/OpenWrt-SDK-Linux-i686-1/package/player-2.1.1-openwrt/libplayertcp/.libs:/home/steven/OpenWrt-SDK-Linux-i686-1/package/player-2.1.1-openwrt/libplayertcp/.libs: /home/steven/OpenWrt-SDK-Linux-i686-1/package/player-2.1.1-openwrt/libplayerxdr/.libs if you already have LD_LIBARY_PATH, add " $LD_LIBRARY_PATH:" in the begging then do $ make clean $ make you should be able to finish compile..... good luck ps. I am new in programming & player,too . Maybe you have better way to do it.... Please let us know.. Steven Lee -- View this message in context: http://www.nabble.com/Problem-running-Player-on-Gumstix-tp18370513p19475814.html Sent from the Gumstix mailing list archive at Nabble.com. |