So I'm kind of running a little experiment. I'm trying to use Linux to cross compile for Windows.
The goal of my experiment is to create a x64 binary of tome for Windows.
Here's a summary of what I've done so far.
1. Installed the latest version of Debianx64 within Windows 7x64 using virtualbox.
--Virtualbox is a program that allows an easy way to run a guest operating system within your own. It also allows file sharing between the host and guest systems in addition to some other features.
2. Setup and installed Debianx64 using the netinst iso.
--I chose the basic gui version in addition to some other packages.
3. Using Debian's package manager, I obtained the following packages:
gcc-mingw32 and mingw-w64
mingw32-binutils and mingw32-runtime
mercurial and mercurial-common
4. Debian came with most of the tome dependencies:
sdl 1.2, sdl_image, sdl_mixer, sdl_ttf, freetype, png, jpeg, tiff, ogg, vorbis, zlib, and openal.
5. Cloned the tome repository using subversion into /usr/local/src/t-engine4
6. Cloned the sdl 1.3 repository using mercurial into /usr/local/src/SDL
7. Cloned the premake-stable repository using mercurial into /usr/local/src/premake
Notes:
Debian installed the mingw-w64 toolchain, includes, and libraries into /usr/amd64-mingw32msvc and /usr/i586-mingw32msvc
It appears that the aforementioned toolchains and compilers, along with the original x86_64-linux-gnu compilers, are also located in /usr/bin
The premake4 script probably requires editing outside of writing the correct library and linker directories, this might mean adding a bunch of defines and other preprocessor commands specific to 64-bit windows.
From my observations the relevant commands for building with premake are:
cd /usr/local/src/t-engine4
sudo ./premake4 clean
sudo ./premake4 --os=windows gmake
sudo make -e
Assuming that no compiling or building has been done...any tips or advice? How should I proceed?
Cross Compiling Experiment
Everything about ToME 4.x.x. No spoilers, please
Moderator: Moderator
Message
Author
Return to “General Discussion”
Jump to
- General
- ↳ Announcements
- ToME 4
- ↳ General Discussion
- ↳ Dumb Questions
- ↳ Character Reports
- ↳ Ideas
- ↳ Spoilers
- ↳ Metaclass: Warriors
- ↳ Metaclass: Rogues
- ↳ Metaclass: Mages
- ↳ Metaclass: Wilders
- ↳ Metaclass: Celestials
- ↳ Metaclass: Defilers
- ↳ Metaclass: Afflicted
- ↳ Metaclass: Chronomancers
- ↳ Metaclass: Psionics
- ↳ Metaclass: Adventurers
- ↳ Metaclass: Tinkers
- ↳ Metaclass: Demented
- ↳ Bugs
- ↳ Bugs Archive
- ↳ Development
- ↳ Addons
- T-Engine 4
- ↳ General Discussion
- ↳ Ideas
- ↳ Modules
- ↳ Development
- ↳ Bugs
- ToME 2.x.x
- ↳ General Discussion
- ↳ Ideas
- ↳ Gameplay
- ↳ Spoilers
- ↳ Modules
- ↳ ToME/Bugs
- ToME 3.x.x
- ↳ General Discussion
- ↳ Ideas
- ↳ T-Engine Development
- ↳ Modules
- ↳ Spoilers
- ↳ Bugs
- Behind the Void
- ↳ Tolkien
- ↳ The Void
- Archives
- ↳ Archives