[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Enigma-devel] Cross compiling an SDL C++ project for windows using

From: Andreas Lochmann
Subject: Re: [Enigma-devel] Cross compiling an SDL C++ project for windows using a linux build environment.
Date: Sun, 27 Oct 2013 21:42:08 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120605 Thunderbird/13.0

Hi Reece,

we use MXE to compile Enigma for Windows
under Linux.

1) Install MXE (this is a non-trivial step, and any
further problems down the compilation route
probably originate here): http://www.mxe.cc

2) For safety, work on a copy of the trunk,
specifically for the task of compiling for Windows.

3) Take a look at etc/mxe-configure.sh and
make sure that PATH is correct. If your installed
MXE is not i686-pc-mingw32, you might have to
replace those references as well.

4) cd etc
   chmod u+x mxe-configure.sh

5) It should show "Enigma is now configured ...",
otherwise install missing packets (or review
steps 1 and 3).

6) cd ..

7) The executable is src/enigma.exe

Does this work for you?

Best regards,

Am 27.10.2013 19:19, schrieb Reece:
> Hello Everyone!
> I have recently started learning how to program in C/C++ and use the
> SDL library.
> I have been successful at creating and compiling a simple 2D test game
> using Ubuntu Linux.
> However, I have not been able to setup successful build environment
> for compiling on Windows 7.
> I have also not been able to find much in the way of how to cross
> compile for Windows using a Linux build environment!
> I would preferable want to cross compile so that I don't have to
> switch between the different operating systems.
> I know that Enigma is built for both platforms and Enigma also uses
> the SDL library.
> For this reason, I have come to you for help on this topic.
> How do you, the Enigma Team, go about compiling Enigma for windows
> using Linux if this is indeed what you do?
> If that is not how you get a binary for Windows, what do you do?
> Any help or pointers in any direction would be greatly appreciated!
> Thank you for any time you take to help answer my questions!
> Reece
> _______________________________________________
> Enigma-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/enigma-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]