[sword-devel] cross-compile sword Linux -> Windows

David Haslam d.haslam at ukonline.co.uk
Thu Sep 3 12:17:44 MST 2009


Suggest add a new section to the new wiki page.

http://www.crosswire.org/wiki/Tutorial:Compiling_%26_Installing_SWORD
Tutorial:Compiling & Installing SWORD 

-- David

Matthew Talbert wrote:
> 
> 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
> 
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
> 
> 

-- 
View this message in context: http://www.nabble.com/cross-compile-sword-Linux--%3E-Windows-tp25274655p25282411.html
Sent from the SWORD Dev mailing list archive at Nabble.com.




More information about the sword-devel mailing list