🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

setup irrlicht with mingw

Started by
1 comment, last by JTippetts 9 years ago

I'm using gcc 4.9.2 on windows 8.1

I downloaded Irrlicht 8.1

I get a linker problem when i try to run an example:

C:\dev\irrlicht-1.8.1\irrlicht-1.8.1\lib\Win32-gcc>x86_64-w64-mingw32-g++ -I../ ../include/ -L. -lIrrlicht test.cpp C:/Program Files (x86)/CodeBlocks/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mi ngw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ./l ibIrrlicht.a when searching for -lIrrlicht

C:/Program Files (x86)/CodeBlocks/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mi ngw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ./I rrlicht.dll when searching for -lIrrlicht

C:/Program Files (x86)/CodeBlocks/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mi ngw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible .\l ibIrrlicht.a when searching for -lIrrlicht

C:/Program Files (x86)/CodeBlocks/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mi ngw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ./l ibIrrlicht.a when searching for -lIrrlicht

C:/Program Files (x86)/CodeBlocks/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mi ngw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ./I rrlicht.dll when searching for -lIrrlicht

C:/Program Files (x86)/CodeBlocks/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mi ngw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lIrrlicht collect2.exe: error: ld returned 1 exit status

it seems the library Irrlicht.a isn't compatible with my compiler.

when I try to recompile the library

mingw32-make win32

i get another error

recipe for target 'zlib/adler32.o' failed

mingw32-make: *** [zlib/adler32.o] Error 1

help!

note. i don't want to use vc++

Advertisement

Hmm, I don't think I can help much to fix the problem, but I can give my opinions at least.


it seems the library Irrlicht.a isn't compatible with my compiler.

when I try to recompile the library

mingw32-make win32

i get another error

recipe for target 'zlib/adler32.o' failed

mingw32-make: *** [zlib/adler32.o] Error 1

help!

I appears that the compiler you are using knows it can't get things working, due to the error it is getting. It appears to be the zlib code that isn't working with your compiler. Zlib is used by Irrlicht for all the loading from archives, etc... but it is pretty entrenched into the system as far as I know(I've used Irrlicht a bit in the past a few years ago), so it isn't something you can just comment out or change a pre-processor macro to fix.

I know you have said you don't want to use VC++, but I'm wondering why. It can't be a money issue because the newest community edition is free and should do whatever you need, and even the express version was enough to use with Irrlicht. Like it or not, it is generally really good software, and I know it works well with Irrlicht.



I suspect that some of your libraries were built for 64 bit while the project is being built for 32, or vice versa. Make sure all your binary objects are being compiled for the same architecture.

This topic is closed to new replies.

Advertisement