Hi Paul, The reason for not working is because when i execute the configure script from a makefile, it always passes the "Physical path" to the configure script. something like this. Let's say i have my_prefix_dir set to /usr/local/proj, And it is a link to my directory at home ln -s /usr/local/proj /home/srinirao/buildsystem/arm/target/usr/local
Then in my makefile rule if i have a rule as: build: ./configure --prefix=$(my_prefix_dir) when i print the arguments of configure from within it, i get the expanded path of $(my_prefix_dir). That is /home/srinirao/buildsystem/arm/target/usr/local. But when i execute your this idea using, using a shell script(instead of Makefile rule), then everything works fine. I think internally Makefile passes the physical path to configure script. It may be using /usr/bin/pwd instead of bash's inbuilt pwd command. Anyways thanks for suggestion. it works fine with a script. regards, Srinivas Rao M On Fri, Sep 12, 2008 at 8:27 PM, Paul Stuart <[EMAIL PROTECTED]>wrote: > Hi Srinivas, > > Interesting, this works well for me, and I am using the .configure, make, > et al. > > > > Sorry to hear that it doesn't work for you, not sure why that would be. > > Paul > > > ------------------------------ > > *From:* Srinivas Rao M Hamse [mailto:[EMAIL PROTECTED] > *Sent:* Thursday, September 11, 2008 11:25 PM > *To:* Paul Stuart > *Cc:* directfb-dev@directfb.org; [EMAIL PROTECTED] > *Subject:* Re: [directfb-users] Dependency on install prefix folder on > target rootfile system > > > > Hi Paul, > > This method will work as long as you are compiling the sources using bash > script or manually on a command shell. But if you are building directfb > using Makefiles (i.e running ./configure; make ; make install everything > from Makefile) , it will not work. The GNU Make will expand the path to > actual physical paths. in which case my prefix variable will still have > /home/srinirao/ in it. > > I tried using $(abspath ...) on my make. But it expands all the symbolic > links. Though as per the documentation it should not do. > > regards, > Srinivas. > > > On Fri, Sep 12, 2008 at 1:39 AM, Paul Stuart <[EMAIL PROTECTED]> > wrote: > > 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:* directfb-dev@directfb.org; [EMAIL PROTECTED] > *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> > > > > > -- > Srinivas Rao M Hamse > -- Srinivas Rao M Hamse <http://msrinirao.blogspot.com>
_______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev