Hello all :D:
I'm trying to build an app using Ogre. It all goes well and it links fine. No errors, no warnings. It's great. :D
But when I run the application; it complains about not finding "libOgreMain-1.4.1.so". This is the build log:
-------------- Build: Debug in project001 ---------------
g++ -Wall -g -I../../DevLibs/Ogre/include -I../../DevLibs/OIS/include -I/usr/include -c /home/rnodal/Projects/project001/src/game.cpp -o obj/Debug/src/game.o
g++ -Wall -g -I../../DevLibs/Ogre/include -I../../DevLibs/OIS/include -I/usr/include -c /home/rnodal/Projects/project001/src/inputsystem.cpp -o obj/Debug/src/inputsystem.o
g++ -Wall -g -I../../DevLibs/Ogre/include -I../../DevLibs/OIS/include -I/usr/include -c /home/rnodal/Projects/project001/src/main.cpp -o obj/Debug/src/main.o
g++ -L/usr/lib -o ./project001_d obj/Debug/src/game.o obj/Debug/src/inputsystem.o obj/Debug/src/main.o lib/libOIS.a lib/OgreMain.so
Process terminated with status 0 (0 minutes, 6 seconds)
0 errors, 0 warnings
I did not tell C::B to use libOgreMain-1.4.1.so in the first place and neither to use /usr/lib. Any place where I can check for this things? I want the application to use the libs in my ./lib folder so when I give to someone they can just run it.
Any input on this manner will be welcomed. Thanks for your time.
-r
More information:
Here is the output of ldd:
linux-gate.so.1 => (0xffffe000)
libOgreMain-1.4.1.so => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e9f000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e77000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e6b000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d2a000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7c39000)
/lib/ld-linux.so.2 (0xb7fa8000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb7c36000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7c30000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7c2c000)
thanks again!
-r