[BuildTools] cross-compile coin-cbc using mingw

Patrik Dufresne ikus060 at gmail.com
Sat Sep 7 18:24:26 EDT 2013


Hi,

Anybody is successful to cross-compile coin-cbc using mingw32 from a linux
computer? On debian wheezy x86_64, I've done the following:

sudo apt-get install subversion build-essential gcc-mingw-w64 mingw-w64
mingw32
svn co https://projects.coin-or.org/svn/Cbc/stable/2.8 coin-cbc-2.8
cd coin-cbc-2.8
export TARGET=i686-w64-mingw32
export CC="$TARGET-gcc -static-libgcc"
export CXX="$TARGET-g++ -static-libgcc -static-libstdc++"
./configure --target="$TARGET" --host="$TARGET"
make

Then the make fail with the following error:
CoinOslFactorization.cpp: In function 'void* clp_align(void*)':
CoinOslFactorization.cpp:901:5: error: 'int64_t' was not declared in this
scope
CoinOslFactorization.cpp:901:15: error: expected ';' before 'k'
CoinOslFactorization.cpp:902:10: error: 'k' was not declared in this scope
CoinFinite.hpp: At global scope:
CoinFinite.hpp:18:14: warning: 'COIN_DBL_MAX' defined but not used
[-Wunused-variable]
CoinFinite.hpp:20:14: warning: 'COIN_INT_MAX_AS_DOUBLE' defined but not
used [-Wunused-variable]
make[3]: *** [CoinOslFactorization.lo] Error 1
make[3]: Leaving directory `/home/debian/coin-cbc-2.8/CoinUtils/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/debian/coin-cbc-2.8/CoinUtils/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/debian/coin-cbc-2.8/CoinUtils'
make: *** [all-recursive] Error 1

Seams to be related to the declaration of CoinInt64. Any tips ? My guess
their is a flag not properly sets to declare int64_t as longlong, but I'm
no c++ programmer so I can't fix it by my self.

Thanks

--
Patrik Dufresne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/buildtools/attachments/20130907/c17b714c/attachment.html>


More information about the BuildTools mailing list