Code: Select all
CC = i486-mingw32-gcc
CXX = i486-mingw32-c++
CXXCPP = i486-mingw32-c++ -E
AS = i486-mingw32-as
AR = i486-mingw32-arSo it kinda went smoothly through (this is the very short description of a lot of hassle to get all the Makefile lines above together and finally arrive at this point
http://pastebin.com/m4c9be4dd (this was simply too long to include it here)
But then I attempted to link my application to it/compile my application with it and ran into the following error:
Code: Select all
bash-4.0$ make wcomp
cd src && i486-mingw32-c++ game.cpp -o ../GAME.EXE -L../irrlichtsvn_w/lib/Linux -mwindows -I../irrlichtsvn_w/include -I/usr/X11R6/include -I../../bullet-2.74/src/ ../../bulletw/src/.libs/libbulletdynamics.a ../../bulletw/src/.libs/libbulletmath.a ../../bulletw/src/.libs/libbulletcollision.a -lIrrlicht -DWIN
/tmp/cc6wpc5m.o:game.cpp:(.text+0xa5a3): undefined reference to `__imp__createDeviceEx'
collect2: ld returned 1 exit status
make: *** [wcomp] Error 1
bash-4.0$Code: Select all
bash-4.0$ ls ../irrlichtsvn_w/lib/Linux/
libIrrlicht.aCode: Select all
nm: CLMTSMeshFileLoader.o: File format not recognized
nm: CMY3DMeshFileLoader.o: File format not recognized
...long continuing listPS: Did you ever check out the great cross compilation that comes with the bullet physics lib? You can simply do ./configure --host=i486-mingw32 and then do the usual make and it just runs smoothly as you'd be doing a normal compile (apart from some missing glut headers and stuff, but that's much easier and straightforward to fix as my issues with irrlicht now that leave me completely clueless!).
It would be really nice if irrlicht's Makefile would also develop some similar assistance for cross compiling people like me