Hi,
I am using the Agar configure option --with-jpeg (based on latest Agar's
SVN), pointing to a user-space libjpeg install. It seems appropriately
managed (ex: agar-config --libs points to the right paths), until I run
a Agar-using program which crashed, being unable to load a JPEG.
Despite specifying the right -L/-l pair at build time and using proper
LD_LIBRARY_FLAGS at runtime, as shown with ldd that executable was
linked to the system-level JPEG library, not the user-space one. If
"hiding" the system-level JPEG libraries and rebuilding Agar, ldd tells
the link was then made to the right user-level JPEG, and indeed the
program worked.
Same thing with Agar tests, in 'demos' directory: no matter what I do
(including with LD_LIBRARY_PATH; I suppose rpath is thus being used ;
proper -L/-l are specified there as well), they will be linked to the
wrong libjpeg, unless it is hidden before the build.
Curiously, the problem does not occur for SDL or Freetype.
By the way: agar-config --cflags does not mention the -I for any
user-space JPEG apparently.
Thanks in advance for any hint,
Best regards,
Olivier Boudevillle.
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html