Hi,
 I recently had to deal with exactly this problem. An easy way to solve this is 
to do the opposite of what you have done. On your PC, mv /usr/local to 
something like /usr/local_intel and then create a symbolic link to the 
usr/local on your target system.

i.e. on your HOST PC

cd /usr
mv local local_intel
ln -s /home/srinirao/buildsystem/arm/target/usr/local local

Then, set prefix=/usr/local


I found this to be the best way (or at least a way) since some of the packages 
(for GTK) hardcode library paths, and you're screwed if it uses your host 
system's path.


Thanks,
Paul




________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Srinivas Rao M 
Hamse
Sent: Thursday, September 11, 2008 12:26 PM
To: [EMAIL PROTECTED]; directfb-users@directfb.org
Subject: [directfb-users] Dependency on install prefix folder on target 
rootfile system

HI,

When i cross-compile directfb, i give an install prefix as a folder found in my 
home directory during configure. such as :

./configure --prefix=/home/srinirao/buildsystem/arm/target/ --host=arm-linux  
....<plus other parameters>

After installing these, I NFS mount my home directory on target file system. I 
can run dfbinfo and df_input test applications on the target, as in this case 
the directory structure is maintained similar to my home folder.
However, i cannot run these applications on target board, even after copying 
all libraries generated under /home/srinirao/buildsystem/arm/target/ on my 
build pc to target board's Root file system's /usr/local/lib folder. Even 
setting LD_LIBRARY_PATH to /usr/local/lib folder doesnot help.  It generates 
the following error message.

(*) DirectFB/Core: Single Application Core. (2007-10-03 14:59)
 (!) DirectFB/core/system: No system found!
 main.c <79>:(#) DirectFBError [DirectFBCreate (&dfb)]: No (suitable)
 implementation found!


I googled couple of threads that speaks about setting CROSS_COMPILE_PREFIX 
during compilation.
Has anyone encountered such problem related with redirectory structure in their 
target rfs ?

In the above example if i create a directory similar to my build pc it works 
fine.

ie on board:
mkdir -p /home/srinirao/buildsystem/arm/target/
cd /home/srinirao/buildsystem/arm/target/
ln -s /usr/local/lib .
...

it works fine. But i donot want have this dependency of my home folder on 
target rfs. Any solutions ?


regards,
Srinivas Rao. M







--
Srinivas Rao M Hamse<http://msrinirao.blogspot.com>
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to