On Sun, 23 Mar 2014, Phil Dibowitz wrote:
./configure --host=i686-pc-mingw32
That works. What does mingw32-make do in Fedora? :)
Probably just try 'make'?
'make' can't find windows.h. Make with the right vars defined got me further.
And in case it wasn't clear, I do understand the linker error in my last
email... but I also cannot find setupapi library in the debian repo... I'm
assuming it's a Windows thing?
OK, see attached for exactly what mingw32-configure and mingw32-make are
doing. It's a little more complicated than I originally thought. :)unset $(/usr/bin/env | egrep '^(w+)=(.*)$' | egrep -vw 'PWD|USER|LANG' |
/usr/bin/cut -d= -f1);
if test -z "$PATH_ORIG" ; then
PATH_ORIG="$PATH"; export PATH_ORIG;
fi;
PATH="/usr/i686-w64-mingw32/sys-root/mingw/bin:$PATH_ORIG"; export PATH;
HOST_CC=gcc; export HOST_CC;
unset PKG_CONFIG_PATH;
_PREFIX="/usr/bin/i686-w64-mingw32-";
for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'`; do
x=`echo $i|sed "s,${_PREFIX},,"|tr "a-z+-." "A-ZX__"`;
declare -x $x="$i" ; export $x;
done;
unset _PREFIX;
CC="${MINGW32_CC:-i686-w64-mingw32-gcc}"; export CC;
CFLAGS="${MINGW32_CFLAGS:- -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions --param=ssp-buffer-size=4}"; export CFLAGS;
CPPFLAGS="${MINGW32_CPPFLAGS:-}"; export CPPFLAGS;
if [ -x "/usr/bin/i686-w64-mingw32-g++" ]; then
CXX="${MINGW32_CXX:-i686-w64-mingw32-g++}"; export CXX;
CXXFLAGS="${MINGW32_CXXFLAGS:- -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions --param=ssp-buffer-size=4}"; export CXXFLAGS;
else
CXX=; export CXX;
ac_cv_prog_CXX=no; export ac_cv_prog_CXX;
CXXFLAGS=; export CXXFLAGS;
fi;
LDFLAGS="${MINGW32_LDFLAGS:-}"; export LDFLAGS;
for i in `ls /usr/i686-w64-mingw32/sys-root/mingw/bin/*|grep -- "-config$"` ;
do
x=`basename $i|tr "a-z+-." "A-ZX_"`;
declare -x $x="$i" ; export $x;
done;
unset x i ;
make \
prefix=/usr/i686-w64-mingw32/sys-root/mingw \
exec_prefix=/usr/i686-w64-mingw32/sys-root/mingw \
bindir=/usr/i686-w64-mingw32/sys-root/mingw/bin \
sbindir=/usr/i686-w64-mingw32/sys-root/mingw/sbin \
sysconfdir=/usr/i686-w64-mingw32/sys-root/mingw/etc \
datadir=/usr/i686-w64-mingw32/sys-root/mingw/share \
includedir=/usr/i686-w64-mingw32/sys-root/mingw/include \
libdir=/usr/i686-w64-mingw32/sys-root/mingw/lib \
libexecdir=/usr/i686-w64-mingw32/sys-root/mingw/libexec \
localstatedir=/usr/i686-w64-mingw32/sys-root/mingw/var \
sharedstatedir=/usr/i686-w64-mingw32/sys-root/mingw/com \
mandir=/usr/i686-w64-mingw32/sys-root/mingw/share/man \
infodir=/usr/i686-w64-mingw32/sys-root/mingw/share/info
unset $(/usr/bin/env | egrep '^(w+)=(.*)$' | egrep -vw 'PWD|USER|LANG' |
/usr/bin/cut -d= -f1);
if test -z "$PATH_ORIG" ; then
PATH_ORIG="$PATH"; export PATH_ORIG;
fi;
PATH="/usr/i686-w64-mingw32/sys-root/mingw/bin:$PATH_ORIG"; export PATH;
HOST_CC=gcc; export HOST_CC;
unset PKG_CONFIG_PATH;
_PREFIX="/usr/bin/i686-w64-mingw32-";
for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'`; do
x=`echo $i|sed "s,${_PREFIX},,"|tr "a-z+-." "A-ZX__"`;
declare -x $x="$i" ; export $x;
done;
unset _PREFIX;
CC="${MINGW32_CC:-i686-w64-mingw32-gcc}"; export CC;
CFLAGS="${MINGW32_CFLAGS:- -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions --param=ssp-buffer-size=4}"; export CFLAGS;
CPPFLAGS="${MINGW32_CPPFLAGS:-}"; export CPPFLAGS;
if [ -x "/usr/bin/i686-w64-mingw32-g++" ]; then
CXX="${MINGW32_CXX:-i686-w64-mingw32-g++}"; export CXX;
CXXFLAGS="${MINGW32_CXXFLAGS:- -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions --param=ssp-buffer-size=4}"; export CXXFLAGS;
else
CXX=; export CXX;
ac_cv_prog_CXX=no; export ac_cv_prog_CXX;
CXXFLAGS=; export CXXFLAGS;
fi;
LDFLAGS="${MINGW32_LDFLAGS:-}"; export LDFLAGS;
for i in `ls /usr/i686-w64-mingw32/sys-root/mingw/bin/*|grep -- "-config$"` ;
do
x=`basename $i|tr "a-z+-." "A-ZX_"`;
declare -x $x="$i" ; export $x;
done;
unset x i ;
__mingw32_topdir=.; if ! test -x configure; then __mingw32_topdir=..; fi; \
$__mingw32_topdir/configure \
--host=i686-w64-mingw32 \
--build=x86_64-redhat-linux-gnu \
--target=i686-w64-mingw32 \
--prefix=/usr/i686-w64-mingw32/sys-root/mingw \
--exec-prefix=/usr/i686-w64-mingw32/sys-root/mingw \
--bindir=/usr/i686-w64-mingw32/sys-root/mingw/bin \
--sbindir=/usr/i686-w64-mingw32/sys-root/mingw/sbin \
--sysconfdir=/usr/i686-w64-mingw32/sys-root/mingw/etc \
--datadir=/usr/i686-w64-mingw32/sys-root/mingw/share \
--includedir=/usr/i686-w64-mingw32/sys-root/mingw/include \
--libdir=/usr/i686-w64-mingw32/sys-root/mingw/lib \
--libexecdir=/usr/i686-w64-mingw32/sys-root/mingw/libexec \
--localstatedir=/usr/i686-w64-mingw32/sys-root/mingw/var \
--sharedstatedir=/usr/i686-w64-mingw32/sys-root/mingw/com \
--mandir=/usr/i686-w64-mingw32/sys-root/mingw/share/man \
--infodir=/usr/i686-w64-mingw32/sys-root/mingw/share/info \
${MINGW_CONFIGURE_ARGS} \
${MINGW32_CONFIGURE_ARGS}
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
concordance-devel mailing list
concordance-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/concordance-devel