[mlpack] Can't configure build
Ryan Curtin
gth671b at mail.gatech.edu
Fri Apr 26 11:18:56 EDT 2013
On Fri, Apr 26, 2013 at 09:24:18AM -0500, Alexander Gorban wrote:
> Hi,
>
> I'm trying to compile mlpack-1.0.4, but can't configure build using
> cmake. I got this error:
> $ cmake ../
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> CMake Error at
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91
> (MESSAGE):
> Could NOT find Armadillo (missing: ARMADILLO_LIBRARY) (found suitable
> version "2.4.2", required is "2.4.2")
> Call Stack (most recent call first):
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252
> (_FPHSA_FAILURE_MESSAGE)
> /usr/share/cmake-2.8/Modules/FindArmadillo.cmake:79
> (find_package_handle_standard_args)
> CMakeLists.txt:60 (find_package)
>
> I compiled and installed armadillo-2.4.2 from soureces with out
> issues. What is wrong with it?
Where did you install Armadillo? /usr/local/lib and
/usr/local/inclukde? Or maybe you forgot to type 'make install'?
Regardless, you can specify the location of libarmadillo.so and the
include directories and it will work:
$ cmake -D ARMADILLO_LIBRARY=/path/to/libarmadillo.so -D ARMADILLO_INCLUDE_DIR=/path/to/armadillo/include/ ../
Note that the Armadillo include directory is not armadillo_bits/ but
instead the directory containing the armadillo header file.
Hope this helps. :)
Ryan
--
Ryan Curtin | "She fell..."
ryan at igglybob.com | - Ludvig
More information about the mlpack
mailing list