Rockthesmurf
Advanced Member
Exophase said:Is . included in the standard library search path? If so then you should be OK w/o adding anything, since the pnd is mounted to the cwd.
It didn't appear to work for me, I didn't use a .pnd but what I did was create a directory 'test' on the route of my SD card, and then copied my application.out file and library.so files to that directory, and executed the application file on the command line via: ./application.out - it moaned it couldn't find the .so files. So I used that LD environment variable to tell it to look in the current directory '.' and then it loaded up.
I think I might try setting rpath to be ./libs - if it accepts relative paths that seems like quite a nice solution. Out of interest, torpor, would you suggest I still use LD_PRELOAD inside the startup script, or is rpath already doing the same thing, only embedding that information into the elf?
Another, couple of no doubt stupid, question, does it matter what the extension of my files is? 'Application.out', 'Application', 'Application.elf'? Also, when I build this libs for Pandora, do they by default get built in 'release' mode, e.g. are they optimised with -O2/-O3 or whatever is appropriate? I am assuming so, but I know assumptions normally lead to no good!
Thanks again for the help so far...
Steve
Last edited by a moderator: