Technical support > Linux
MinGW cross-compilation - how exactly?
(1/1)
MANic:
I have been attempting to cross-compile UFO:AI to Windows using MinGW, and have hit a major stumbling block, that neither Google nor the manpages seem to be able to answer.
I have installed the MinGW package, compiled and installed the additional developer libraries, added /usr/i586-mingw32msvc to PATH, and yet whenever I run the configure script I get
--- Code: ---./configure --host=i586-mingw32msvc --with-sdl-prefix=/usr/i586-mingw32msvc
...
{stuff}
...
checking for sdl-config... yes
checking SDL.h usability... no
checking SDL.h presence... no
checking for SDL.h... no
configure: error: You must have the SDL development headers
--- End code ---
Does anyone have any suggestions/tips/detailed-step-by-step-handwalk-me-through-it-instructions (the latter would be very much preferred)?
Mattn:
isn't there --with-sdl-config?
it's not tested for quite some time now - if you could improve something on the cross-compilation lib finding:
* configure.ac editing
* autoconf
* ./configure --host.....
feel free to send patches.
MANic:
If I specify --with-sdl-config={foo}, it tells me that it can't locate the SDL config, even though it is in my PATH, and it still "can't find" it even when I give it a full path to the sdl-config in MinGW.
RudolfoWood:
http://ufoai.ninex.info/wiki/index.php/Talk:MinGW
I have had the same problem. Fixed it by creating a symlink (step 3)
doc.torr:
Hi, all,
I get similar problems compiling on Mac OS X 10.5 (BASH Terminal) with Fink.
SDL etc is installed, but similar usability/presence and compiler/preprocessor and configure errors.
I'm beginning to think it's a cross-compilation problem, given I've got everything installed good (I think), but still get 'error [1]' after make
Any suggestions?
Navigation
[0] Message Index
Go to full version