LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2010, 08:28 AM   #1
ToKnownMore
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Rep: Reputation: 0
Unhappy 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
 
Old 03-30-2010, 08:45 AM   #2
ToKnownMore
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 0
I also tried to search internet and various forum to get some idea...but couldnot do it successfully... i am also new to linux..
 
Old 03-30-2010, 11:43 PM   #3
ToKnownMore
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Hi

Any help would be good
 
Old 03-31-2010, 11:44 PM   #4
ToKnownMore
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Hi

Am i in wrong section.... where can i get help for this problem...
 
Old 04-02-2010, 07:44 AM   #5
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,677
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
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

Last edited by TheIndependentAquarius; 04-02-2010 at 07:47 AM.
 
Old 04-04-2010, 11:56 PM   #6
ToKnownMore
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 04-05-2010, 12:14 AM   #7
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,677
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
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
 
  


Reply

Tags
splash


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing: cups for sh4 jana05 Linux - Embedded & Single-board computer 3 05-31-2009 06:31 AM
compiling GTK for sh4 platform...library issues Ravi_ Linux - Newbie 2 03-31-2009 09:06 AM
[sh4][2.6.17] latency peaks with unix sockets on heavy loads granquet Linux - Kernel 0 09-22-2008 07:22 AM
splashy wkwireless Debian 2 11-21-2006 07:32 PM
GCC and SH4 Pantherman Programming 0 07-20-2003 07:44 PM


All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration