How to cross build AlephOne?

Have a question, suggestion, or comment about Aleph One's features and functionality (Lua, MML, the engine itself, etc)? Post such topics here.

How to cross build AlephOne?

Post Jan 13th '14, 08:00

I am going to try cross-building AlephOne using the Debian.
In the past, there was a page that looks like the following AlephWiki,but it has gone.
Cross-build Instructions

I would be able similar in MinGW cross environment, but it is an error in os_win.c.

When build for Windows, what you use environment? and how to create it?
User avatar

logue

Post Jan 13th '14, 18:05

Here's the script I use to configure Aleph One with MXE:
Code: Select all
#!/bin/bash

PREFIX=/home/ghs/Development/mxe/usr
TARGET=i686-pc-mingw32
PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PATH"

if [ -f "$PREFIX/$TARGET/bin/$TARGET-sdl-config" ]; then
    SDL_CONFIG="$PREFIX/$TARGET/bin/$TARGET-sdl-config"
    export SDL_CONFIG
fi

export PATH
LDFLAGS=-Wl,-S LIBS="-lfreetype -ltiff -ljpeg -lpng -lz -lbz2 -lstdc++ -lws2_32 -liphlpapi" ../trunk/configure --host=$TARGET --build=i386-linux --disable-vorbis --disable-smpeg --disable-mad

Make sure to edit it to fit your own setup.
User avatar

treellama
Pittsburgh

Post Jan 13th '14, 20:03

The one I use is very close to Treellama's, but I'll post it anyway as an example of cross-compiling from SVN instead of a release tarball. In this case, autogen.sh is needed to create the configure script.

Code: Select all
#!/bin/bash

MINGW_ROOT=/usr/src/apps/mxe-git-stable
MINGW_PREFIX=$MINGW_ROOT/usr
MINGW_TARGET=i686-pc-mingw32
MINGW_PATH="$MINGW_PREFIX/$MINGW_TARGET/bin:$MINGW_PREFIX/bin"

PATH="$MINGW_PATH:$PATH" SDL_CONFIG="$MINGW_PREFIX/$MINGW_TARGET/bin/sdl-config" ACLOCAL_FLAGS="-I$MINGW_PREFIX/$MINGW_TARGET/share/aclocal" LDFLAGS=-Wl,-S LIBS="-lfreetype -ltiff -ljpeg -lpng -lz -lstdc++ -lws2_32 -lbz2 -liphlpapi" ./autogen.sh --prefix=$MINGW_PREFIX --target=$MINGW_TARGET --host=$MINGW_TARGET --build=x86_64-linux --disable-mad --disable-sndfile --disable-vorbis --disable-smpeg

PATH="$MINGW_PATH:$PATH" make
User avatar

Hopper

Post Jan 16th '14, 13:13

Thanks,
I was able to build.
User avatar

logue


Return to Aleph One Discussion



Who is online

Users browsing this forum: No registered users