Linking problems in Linux
I was over at a friend's house, trying to compile the latest development version of Wesnoth (v1.18), and on an old version of Ubuntu. There were all sorts of dependancy issues, and I managed to work through most of them. However, when I was trying to configure SDL_image, I ran into a problem.
It needed the following libraries: libpng, libjpeg, and libtiff. I got to work downloading and installing them, and when I was done, I tried running the configure script again. It didn't complain about libpng and libtiff now, but it still couldn't find libjpeg.
I tried copying libjpeg.so to every lib directory I could think of, and yet it still refused to find it. I tried echoing LD_LIBRARY_PATH; there was nothing in it, so I added /usr/local/lib to it. Still not working. I looked for ld.so.config; it didn't exist. I created it, added /usr/local/lib, and ran configure again. Still no luck.
I also tried a number of configure options, but I couldn't get it to work. I've googled, and although this problem is common, I still can't point the configure script to the right directory.
One thing to note is that ./configure does create a makefile, but it gives a warning that "JPEG support is disabled", and then make gives a link error.