[sword-devel] cross-compile sword Linux -> Windows
Matthew Talbert
ransom1982 at gmail.com
Thu Sep 3 11:10:29 MST 2009
I compiled sword successfully with curl and clucene that I also
cross-compiled. I used this script:
OPTIONS="--prefix=/opt/mingw $OPTIONS"
OPTIONS="--sysconfdir=/etc $OPTIONS"
OPTIONS="--without-conf $OPTIONS"
#OPTIONS="--enable-debug $OPTIONS"
OPTIONS="--enable-shared $OPTIONS"
#OPTIONS="--with-icu $OPTIONS"
#OPTIONS="--enable-tests $OPTIONS"
#OPTIONS="--disable-utilities $OPTIONS"
OPTIONS="--host=i586-mingw32msvc $OPTIONS"
OPTIONS="--with-clucene=/opt/mingw $OPTIONS"
OPTIONS="lt_cv_deplibs_check_method=pass_all $OPTIONS"
# mingw cross build
export PKG_CONFIG_PATH=/opt/mingw/lib/pkgconfig
export LDFLAGS=-L/opt/mingw/lib
export CPPFLAGS=-I/opt/ming/include
export CURL_CONFIG=/opt/mingw/bin/curl-config
# Use these for Windows DLL build
export LIBS="-no-undefined -lregex"
export need_local_regex=no
CPPFLAGS="$CFLAGS $CPPFLAGS -DUSBINARY" ./configure $OPTIONS $*
The resulting binaries worked fine running with wine. I haven't
actually tried them on Windows.
Matthew
More information about the sword-devel
mailing list