I'm running 64-bit Ubuntu 10.04 with g++ 4.4. I downloaded the 64-bit SFML 2.0 precompiled headers and shared object files and installed them in /usr/include and /usr/lib respectively. However, when linking, I'm getting an error that libsfml-system has undefined references to libjpeg. Funny thing is, I have libjpeg installed! I can see it in the file system and I can confirm that Ubuntu knows it's installed with the package manager Synaptic. Any idea what could be causing this?
I tried it again with the headers and SOs for 1.6 and got the same result.
$ g++ -c main.cpp -I/usr/include
$ g++ main.o -o sfml_app -L/usr/lib -lsfml-graphics -lsfml-window -lsfml-system
/usr/lib/libsfml-graphics.so: undefined reference to `jpeg_finish_compress@LIBJPEG_6.2'
/usr/lib/libsfml-graphics.so: undefined reference to `jpeg_write_scanlines@LIBJPEG_6.2'
/usr/lib/libsfml-graphics.so: undefined reference to `jpeg_std_error@LIBJPEG_6.2'
/usr/lib/libsfml-graphics.so: undefined reference to `jpeg_set_quality@LIBJPEG_6.2'
/usr/lib/libsfml-graphics.so: undefined reference to `jpeg_set_defaults@LIBJPEG_6.2'
/usr/lib/libsfml-graphics.so: undefined reference to `jpeg_CreateCompress@LIBJPEG_6.2'
/usr/lib/libsfml-graphics.so: undefined reference to `jpeg_start_compress@LIBJPEG_6.2'
/usr/lib/libsfml-graphics.so: undefined reference to `jpeg_destroy_compress@LIBJPEG_6.2'
/usr/lib/libsfml-graphics.so: undefined reference to `jpeg_stdio_dest@LIBJPEG_6.2'
collect2: ld returned 1 exit status
$ find /usr/lib/ -iname "libjpeg*" -print
/usr/lib/debug/usr/lib/libjpeg.so.62.0.0
/usr/lib/libjpeg.a
/usr/lib/libjpeg.so.62
/usr/lib/gthumb/modules/libjpegtran.so
/usr/lib/libjpeg.la
/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/libjpeg.so
/usr/lib/libjpeg.so
/usr/lib/libjpeg.so.62.0.0