LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Splashy bootsplash with st sh4 (https://www.linuxquestions.org/questions/linux-newbie-8/splashy-bootsplash-with-st-sh4-798885/)

ToKnownMore 03-30-2010 08:28 AM

Splashy bootsplash with st sh4
 
Hi

I wanted to implement Splash Screen during bootup on my Set top box( ST-sh4 architecture ). After reading through the internet i found splashy and decided to try this as this doesnot require any kernel patch.(http://splashy.alioth.debian.org/wiki/start)

since i didnot find direct build for sh4 i downloaded the code and tried to cross compile it for sh4 architecute

I was able to do the ./configure and generate the make command

./configure --prefix=/home/project/target --exec-prefix=/home/project/target/usr --libdir=/home/project/target/usr/lib --datarootdir=/home/project/target/usr/share CC=sh4-linux-gcc --host=sh4-linux

also set the env variable PKG_CONFIG_PATH = /home/project/target/usr/lib/pkgconfig

Now when i do make i get following error

cat .libs/libsplashycnf.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libsplashycnf.ver
echo "local: *; };" >> .libs/libsplashycnf.ver
sh4-linux-gcc -shared .libs/xml_config.o .libs/xml_parser.o -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/usr/lib /usr/lib/libglib-2.0.so -Wl,-soname -Wl,libsplashycnf.so.1 -Wl,-version-script -Wl,.libs/libsplashycnf.ver -o .libs/libsplashycnf.so.1.0.0
/usr/lib/libglib-2.0.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [libsplashycnf.la] Error 1
make[2]: Leaving directory `/home/palavesam/working/splashy/src'
make[1]: *** [all-recursive] Error 1

The program is trying to read libglib-2.0.so from usr/lib directory but this is not the correct path it need to read from /home/project/target/usr/lib

I did a total search of all the places where usr/lib is being used inside splashy folder and replaced it with /home/project/target/usr/lib but then also every time its looking for usr/lib directory only..

I have almost tried this for 3 days...

Can anyone help me ... how can i change this hardcored path /usr/lib

ToKnownMore 03-30-2010 08:45 AM

I also tried to search internet and various forum to get some idea...but couldnot do it successfully... i am also new to linux..

ToKnownMore 03-30-2010 11:43 PM

Hi

Any help would be good

ToKnownMore 03-31-2010 11:44 PM

Hi

Am i in wrong section.... where can i get help for this problem...

Aquarius_Girl 04-02-2010 07:44 AM

Quote:

then also every time its looking for usr/lib directory only..
Ever heard of $PATH, /usr/lib/ is specified in $PATH that's why your program keeps looking for it there only !

You can add /home/project/target/usr/lib to $PATH !

Setting $PATH:
1. http://www.faqs.org/docs/Linux-mini/Path.html
and
2. http://www.troubleshooters.com/linux/prepostpath.htm

ToKnownMore 04-04-2010 11:56 PM

Hi anisha

thanks for your reply.

Sorry to mention before...but i have checked the PATH environment variable before.. It doesnot contain usr/lib path.. also i had tried exporting home/project/target/usr/lib to PATH then also it gives the same error

PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/STM/STLinux-2.2/devkit/sh4/bin:/opt/STM/STLinux-2.2/host/bin:/home/project/bin:/home/project/target/usr/lib

Aquarius_Girl 04-05-2010 12:14 AM

See I did :
Code:

anisha@linux-p0mg:~> locate libglib
/usr/lib/libglib-1.2.so.0
/usr/lib/libglib-1.2.so.0.0.10
/usr/lib/libglib-2.0.a
/usr/lib/libglib-2.0.la
/usr/lib/libglib-2.0.so
/usr/lib/libglib-2.0.so.0
/usr/lib/libglib-2.0.so.0.1600.3
/usr/lib/libglib.a
/usr/lib/libglib.la
/usr/lib/libglib.so
/usr/lib/libglibmm-2.4.so
/usr/lib/libglibmm-2.4.so.1
/usr/lib/libglibmm-2.4.so.1.0.24
/usr/lib/libglibmm_generate_extra_defs-2.4.so
/usr/lib/libglibmm_generate_extra_defs-2.4.so.1
/usr/lib/libglibmm_generate_extra_defs-2.4.so.1.0.24
/usr/lib/libglibsharpglue-2.so

By default it is supposed to be there !

See this section:
http://www.troubleshooters.com/linux...d_post_pathing


All times are GMT -5. The time now is 01:22 PM.