What am I doing wrong when trying to link SDL2_image (is built from latest
hg, with $ ./autogen.sh $ ./configure $ make $ sudo make install)?
$ g++ test.cpp -o test -lSDL2 -lSDL2_image
$ ./test
./test: error while loading shared libraries: libSDL2_image-2.0.so.0:
cannot open shared object file: No such file or directory
Yet the file does exist:
$ sudo find / -name “libSDL2_image-2.0.so.0”
/usr/local/lib/libSDL2_image-2.0.so.0
Thanks in advance!
Cheers!
Either reboot or run ‘sudo ldconfig’ (sans-quotes). The library cache
needs to be updated.
2013/3/16, Csala Tam?s :> What am I doing wrong when trying to link SDL2_image (is built from latest
hg, with $ ./autogen.sh $ ./configure $ make $ sudo make install)?
$ g++ test.cpp -o test -lSDL2 -lSDL2_image
$ ./test
./test: error while loading shared libraries: libSDL2_image-2.0.so.0:
cannot open shared object file: No such file or directory
Yet the file does exist:
$ sudo find / -name “libSDL2_image-2.0.so.0”
/usr/local/lib/libSDL2_image-2.0.so.0
Thanks in advance!
Cheers!