OgreDependencies_CBMingW_1.2.3r1 and missing devIL links

Problems building or running the engine, queries about how to use features etc.
Post Reply
jabbadude
Gnoblar
Posts: 5
Joined: Tue Aug 23, 2005 2:35 am

OgreDependencies_CBMingW_1.2.3r1 and missing devIL links

Post by jabbadude »

Hi!
I'm trying to build Ogre 1.2.5 with Eclipse 3.2.0, CDT 3.1.1 and Mingw 3.4.2 + msys 1.0.10 with the help from tutorial http://www.ogre3d.org/wiki/index.php/Bu ... se_And_GCC

The linkage stage of building OgreMain fails with msg
"ld.exe: cannot find -lIL"
If I take away IL, ILU and ILUT from 'libraries' I get errors like
./src/OgreILCodecs.o(.text+0x657):OgreILCodecs.cpp: undefined reference to `_imp__ilGetString@4'

The problem seems to be that OgreDependencies_CBMingW_1.2.3r1, which the tutorial recommends for the Eclipse build, contains no link libraries for the devIL DLL's. The header files are there and the DLL's, but no .a files!!?!

But that would be just a too big error? - so what have I missed?

Thanks!
User avatar
irrdev
Orc
Posts: 420
Joined: Sun Oct 15, 2006 7:30 pm
Contact:

Post by irrdev »

No, you aren't missing any a. files. GCC/Mingw can link directly against the dlls. That means that IL is actually referencing IL.dll. Just make sure that your dlls are where they are specified by the linker commands. Don't try removing IL, ILU and ILUT; they are necessary. :wink:
FeedLaunch .NET RSS and ATOM feed editor- open-source and released under the GPL. Visit Feed Launch .NET Project Website hosted at sourceforge.net
jabbadude
Gnoblar
Posts: 5
Joined: Tue Aug 23, 2005 2:35 am

Post by jabbadude »

Sweet! :P

I had to make some small changes from the tut
Added one new Library Search Path:

"
- C/C++ Build -> Tool Settings -> Libraries -> Library search path :
../../Dependencies/lib/Release
../../Samples/Common/bin/Release
"

I also had to remove ILUT from the list of link libraries and I had to rename IL to devIL in the same list.

Then there it was: OgreMain.dll :)
Post Reply