You are not logged in.
Pages: 1
I need to compile DevIL http://openil.sourceforge.net/ with explicitly specified paths to libpng and libjpeg. I'm trying to build a redistributable binaries, so I'm going to include all dependencies with the program.
It uses autoconf for configuration, and I can't find how can I tell it to use libpng not from system path but from my own build directory. Tried --with-png=/path/to/my/build/of/libpng, but that doesn't make it.
Can anybody help me?
P.S. I hate autoconf scripts - they are SLOW (when calling ./configure they are checking hundreds of useless things), and have braindamaged syntax. Autoconf is just a poor CMake.
Last edited by Mad Fish (2009-12-07 20:04:33)
Offline
"LD_LIBRARY_PATH=/path/to/my/build/of/libpng ./configure" maybe?
Offline
I'm sure this is not the way of doing it. LD_LIBRARY_PATH, as I know, is not used by configure at all.
Last edited by Mad Fish (2009-12-05 21:26:57)
Offline
Sorry that was misguided. Try "./configure LDFLAGS=-L/path/to/my/build/of/libpng"
Offline
Again, this is not the right way to do that. Because this way you are effectively bypassing it's configuration system.
I mean, that ./configure scripts tries to find the correct location of libjpeg and libpng, and sets some internal variables to configure include and link directories properly. I just need a method to give it a hint, where to look.
Offline
tavianator, sorry, I was stupid (maybe this is forever ). Your method works OK. Thanks!
Offline
Pages: 1