Sie sind hier

Cross compile Gedankenstütze

Gedankenstütze für mich:
 
Script anlegen in ~bin
 
#!/bin/sh
export PATH="$HOME/bin:$PATH"
PREFIX=i686-w64-mingw32
export CC=$PREFIX-gcc
export CXX=$PREFIX-g++
export CPP=$PREFIX-cpp
export RANLIB=$PREFIX-ranlib
 
export MINGW_PATH=/home/cross/mingw32
export C_INCLUDE_PATH=$MINGW_PATH/include
export CPLUS_INCLUDE_PATH=$MINGW_PATH/include
export LIBRARY_PATH=$MINGW_PATH/lib
export LD_LIBRARY_PATH=$MINGW_PATH/lib
export LDFLAGS=-L$MINGW_PATH/lib
export export LIBS="-lws2_32 -lgdi32 -lcrypt32"
export CFLAGS=-I$MINGW_PATH/include
export CPPFLAGS=-I$MINGW_PATH/include
export PKG_CONFIG_DIR=
export PKG_CONFIG_LIBDIR=$MINGW_PATH/lib/pkgconfig:$MINGW_PATH/share/pkgconfig
export PKG_CONFIG_SYSROOT_DIR=$MINGW_PATH
export PKG_CONFIG_PATH=$MINGW_PATH/lib/pkgconfig/
exec "$@"
 
aufrufen
mingw32 configure blah
mingw32 make
mingw32 make install
 
oder halt mingw64 usw.