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

Reply via email to