I'm writing a game using Allegro 4.
It compiles and works well on linux with GCC.
I want to compile my game for windows so other people can play it.
I have mingw installed and I'm able to compile simple 'hello world' type programs with i686-w64-mingw32-gcc, but I can't compile any software that uses allegro, I get the error 'allegro.h not found'
What I've tried doing so far:
I downloaded the allegro-4.4.2 sourcecode and extracted it into a folder, and I tried these commands:
i686-w64-mingw32-gcc test.c -Iallegro-4.4.2/ -Lallegro-4.4.2/ -lalleg
i686-w64-mingw32-gcc test.c -Lallegro-4.4.2/ -lalleg
i686-w64-mingw32-gcc test.c -Iallegro-4.4.2/ -lalleg
They all gave me the 'allegro.h not found' error.
Then I tried changing to the allegro-4.4.2 directory and running this:
i686-w64-mingw32-gcc test.c -Iinclude/ -lalleg
This gave me a different error,
include/allegro/internal/alconfig.h:36:44: fatal error: allegro/platform/alplatf.h: No such file or directory
So just to see what would happen, I went and renamed alconfig.h.cmake to alconfig.h and then I got a screen full of messages like this:
include/allegro/platform/alplatf.h:1:2: error: invalid preprocessing directive #cmakedefine
Anyway, what should I do? Does anyone here have experience building allegro programs for windows targets on Linux systems?