Hi, this is my first shot at Irrlight! I am an Ubuntu 9.10 and just managed to compile a few examples and run the executables. However, when I went into the Makefile in examples/01.HelloWorld and changed the line below "#default target is linux" from "all: all_linux" to "all: all_win32" in order to compile a windows executable into the /bin/Win32-gcc/ folder, I got the following error message:
I am not sure if changing "all: all_linux2 to "all: all_win32" in the Makefile is the correct approach. I really don't know what I am missing either. If I haven't provided enough information, please tell! Any insight is appreciated.
In general its not healthy idea to grab some large project for the first time, and try to cross-compile it.
Just changing some gcc options won't get you there. You will also need Windows C Runtime Library, Windows SDK, DirectX or OpenGL include and library files, and linker capable of linking windows executables, to say least.
If you absolutely need to build windows executable files on Linux, best thing you can do is to download some virtual machine software, set up windows on it, and install some development environment there, like visual studio express, or mingw, or stuff like that.
On Ubuntu you should get a gcc-mingw version with a simple install. Then set the compiler variables CC=mingw-gcc and CXX=mingw-g++ (or whatever names the bins have) and you should get the proper results. BTW: You don't need to alter the default target, just call 'make all-win32'