+SvOlli Posted December 21, 2013 Share Posted December 21, 2013 Hi there! Today I hacked a bit trying to get Stella built with MXE. MXE (http://mxe.cc/) is a MinGW (MINimalist Gnu for Windows) cross compiler environment which links everything static by default. It's used to build Windows software on a Linux/Unix host. Once I've managed to get things done, I ended up a single binary without the need for the SDL.dll with the size of 4.5M. Using upx, I could squeeze it down to 1.1M. This version is attached, as well as the script and config.mak used to get it compiled. I'm not sure if it fits the requirements of the rest of the Stella sourcecode, but Stephen, if you want to include it, feel free. Unzip this archive in the top level directory of the svn sourcecode (the directory containing the "configure" script). The current 3.9.2 sourcecode will not work. To get the build up and running check out the current version of mxe, run "make sdl" there, and set the MXE environment variable pointing to that directory. Have fun, SvOlli stella-mxe.zip 2 Quote Link to comment Share on other sites More sharing options...
+SvOlli Posted December 22, 2013 Author Share Posted December 22, 2013 As a second step, I managed to change the configure script, that now running configure like this works: ./configure --host=mingw32-cross --with-sdl-prefix="<path_to_mxe>/usr/i686-pc-mingw32" This patch is for the svn version, but should also work with 3.9.2, running the patch will most probably only dump warning about offsets. configure.diff.gz Quote Link to comment Share on other sites More sharing options...
Mr SQL Posted December 30, 2013 Share Posted December 30, 2013 Hi there! Today I hacked a bit trying to get Stella built with MXE. MXE (http://mxe.cc/) is a MinGW (MINimalist Gnu for Windows) cross compiler environment which links everything static by default. It's used to build Windows software on a Linux/Unix host. Once I've managed to get things done, I ended up a single binary without the need for the SDL.dll with the size of 4.5M. Using upx, I could squeeze it down to 1.1M. This version is attached, as well as the script and config.mak used to get it compiled. I'm not sure if it fits the requirements of the rest of the Stella sourcecode, but Stephen, if you want to include it, feel free. Unzip this archive in the top level directory of the svn sourcecode (the directory containing the "configure" script). The current 3.9.2 sourcecode will not work. To get the build up and running check out the current version of mxe, run "make sdl" there, and set the MXE environment variable pointing to that directory. Have fun, SvOlli SvOlli, I tried it under XP Pro and it initialises but then vanishes; perhaps it requires glide wrappers for openGL? Quote Link to comment Share on other sites More sharing options...
+SvOlli Posted January 6, 2014 Author Share Posted January 6, 2014 I tried it under XP Pro and it initialises but then vanishes; perhaps it requires glide wrappers for openGL? Finally, I had access to an XP machine today, worked as expected there... Quote Link to comment Share on other sites More sharing options...
Mr SQL Posted January 6, 2014 Share Posted January 6, 2014 Finally, I had access to an XP machine today, worked as expected there... S Finally, I had access to an XP machine today, worked as expected there... My XP Pro workstations are a bit light; 1 GHZ, 512 MB RAM. The Windows version of Stella runs fine on them but this one vanishes as soon as it appears. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.