[mlpack] compiling mlpack with MinGW/MSYS

Gilles Barges gbarges at free.fr
Thu Aug 7 12:55:00 EDT 2014


>> 
>>>> I'm trying to compile mlpack 1.0.9 on Windows, using MinGW and MSYS environment
>>>> Could NOT find Armadillo (missing: ARMADILLO_LIBRARY) (found suitable version "4.320.0", required is "3.6.0")
>>> 
>>> specify -D ARMADILLO_LIBRARY=/usr/local/lib/libarmadillo.so 
>>> 
>> 
>> 
>> I have no lib file at all !
>> Armadillo install only .hpp files. 
> 
> Hm, interesting.  Can you tell me whether or not ARMA_USE_WRAPPER is
> defined in armadillo_bits/config.hpp?

hi Ryan, 

it was commented.

Anyway, I reinstalled and rebuild everything : openblas, armadillo, libxml2, boost. 
now cmake works.

make fails on a crytic error in compiling dt_utils.cpp:

C:/Users/gbg/Desktop/msys/1.0/include/armadillo_bits/arma_static_check.hpp: In instantiation of 'static void arma::arma_type_check_cxx1998<ERROR___INCORRECT_OR_UNSUPPORTED_TYPE>::apply() [with bool ERROR___INCORRECT_OR_UNSUPPORTED_TYPE = true]':

C:/Users/gbg/Desktop/msys/1.0/include/armadillo_bits/Mat_meat.hpp:34:3:   required from 'arma::Mat<eT>::~Mat() [with eT = long long unsigned int]'

c:/Users/gbg/Desktop/Librairies/mlpack-1.0.9/src/mlpack/methods/det/dt_utils.cpp:37:54:   required from here

C:/Users/gbg/Desktop/msys/1.0/include/armadillo_bits/arma_static_check.hpp:23:5: error: size of array is negative

     junk[ ERROR___INCORRECT_OR_UNSUPPORTED_TYPE ? -1 : +1 ];
     ^

I can't figure what's happening. 


--
Gilles Barges.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack/attachments/20140807/c6282920/attachment.html>


More information about the mlpack mailing list