[mlpack] Can't configure build

Александр Горбань alex.gorban at gmail.com
Fri Apr 26 11:26:27 EDT 2013


Thank for prompt response,

I installed Armadillo into /usr (CMAKE_INSTALL_PREFIX=/usr) and did make
install (actually I used checkinstall to build debian package).

I found that armadillo installation didn't created symlinks, and only put
libarmadillo.so.2.4.2 into /usr/lib, so after I created symlink
libarmadillo.so -> libarmadillo.so.2.4.2 configuration and build were
successful.

Thanks for help.

Alexander Gorban


On Fri, Apr 26, 2013 at 10:18 AM, Ryan Curtin <gth671b at mail.gatech.edu>wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack/attachments/20130426/39a33392/attachment-0001.html>


More information about the mlpack mailing list