I'm developing on Linux and I use to cross-build Windows apps/libs from Linux using the mingw building tool chain. It's pretty easy to use IrrLicht lib in such apps because the irrlicht SDK provides pre-compiled .a and .dll files for Windows/gcc.
Unfortunately, I need to apply a patch to IrrLicht 1.5 and so, I need to rebuild the library. This is obviously ok for the Linux side, but I would like to also cross-build the Windows lib (either the static .a or the dynamic .a + .dll for gcc). I created a new Makefile to do so. I am able to generate a static win32 lib but some symbols are missing and I cannot link it with my code.
If someone has the same issue, please tell me! In the mean time, I will ask to a Windows user to build the patched lib for me
Here is a link to the Linux/mingw Makefile: http://sites.google.com/site/abapublic/ ... edirects=0
Here is the command line to cross-build the lib:
Code: Select all
make -f Makefile.win32 staticlib_win32 NDEBUG=1
Code: Select all
[...]/build/release-win32/CCore.o:CCore.cpp:(.text+0x216c): undefined reference to `__imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverE'
collect2: ld returned 1 exit status
http://sites.google.com/site/abapublic/ ... edirects=0
(If you want to give it a try, please rename it to setup.exe)