Hi fedora-mingw,
I'm one of the developers on an open source game currently compiling on
Linux, OS X and Windows. I'd like to set up Fedora cross-compile for the
Windows binary; under MSYS/MinGW on Windows, all needed libraries and
the game itself compile, so I'm hopeful it will be possible to do this
without leaving Fedora.
I have a number of distinct problems in accomplishing this, mostly due
to my lack of education with MinGW, so I'm hoping this is the correct
list to seek help. I think it would be best if I start with some of the
earliest issues I encountered in my build process, as they may affect or
resolve later questions.
First, our software requires: libxml2, SDL, SDL_image, SDL_mixer and
FTGL. SDL and libxml2 already have MinGW packages on Fedora and they
worked very well. SDL_image and SDL_mixer did not but they compiled fine
simply using mingw-configure, make, make install. Be that as it is, is
there much else involved in package management for this sort of
software? If not, I'd be interested in volunteering to maintain Fedora
MinGW packages for SDL_image and SDL_mixer if they're not already on the
way.
My first real spot of trouble came with FTGL, which uses the GNU
autotools but seems to have some compatibility issues with MinGW. I
understand this is a bug in FTGL, but I was hoping for advice on fixing
this.
Their configure script fails to find OpenGL, attempting to link against
-lGL. I understand for MinGW it's proper to link against -lopengl32 and
add -mwindows to the compiler flags. Would the proper thing to do here
be to add a check for the mingw system type in configure.ac and change
the CFLAGS and LIBS to -lopengl32 instead of -lGL?
My apologies if this is such an elementary question but if I could learn
more about this, I'd like to help ensure MinGW compatibility in more
packages and in my own software.
Again, this is sort of the first of a small number of issues I ran into,
but I'd like to take them one at a time instead of spamming the list
with problems.
If this is not the proper list, I'd appreciate some advice on finding
another.
Thank you,
Chris Thielen