Linker can't find Ogre libraries

1k Views Asked by At

When attempting to compile under linux in CodeBlocks I get

cannot find -lOgreMain_d

and

cannot find -lOIS_d.

Under the linker settings I have

/usr/lib/libOgreTerrain.so
/usr/lib/libOgreRTShaderSystem.so
/usr/lib/libOgrePaging.so
/usr/lib/libOgreMain.so
/usr/lib/libOgreProperty.so
/usr/lib/libOIS-1.3.0.so
/usr/lib/libOIS.so
/usr/lib/libOIS.a

How do I fix this error?

2

There are 2 best solutions below

1
On

Why do you expect to find a library which isn't even there? Use:

gcc <options> -lOIS -lOgreMain

etc. Always specify libraries only which have a corresponding filename in /usr/lib or other standard library locations.

1
On

All you need to do is to install "libois-dev libboost-thread-dev".

So you just have to type "sudo apt-get install libois-dev libboost" and of course once you have done this you will have them installed in your /usr/include/ois directory.