user768417
user768417

Reputation:

Linker can't find Ogre libraries

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?

Upvotes: 0

Views: 1080

Answers (2)

bring_it_on2
bring_it_on2

Reputation: 1

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.

Upvotes: 0

user529758
user529758

Reputation:

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.

Upvotes: 2

Related Questions