Results 1 to 4 of 4

Thread: Cmake:How to add included dircetory?

  1. #1
    Join Date
    Aug 2013
    Beans
    2,333

    Cmake:How to add included dircetory?

    Hi,

    While compiling shogun (machine learning toolbox) with cmake I got this error
    Code:
    Building CXX object src/shogun/CMakeFiles/libshogun.dir/io/HDF5File.cpp.o
    In file included from /usr/include/hdf5.h:24:0,
                     from /home/bee/Downloads/shogun-build/shogun/src/shogun/io/HDF5File.cpp:17:
    /usr/include/H5public.h:63:20: fatal error: mpi.h: No such file or directory
     #   include "
    mpi.h is in /usr/lib/openmpi/include/mpi.h, I want to add this path to INCLUDES, but don't know how to do it in Cmake. Help would be appreciated.

  2. #2
    Join Date
    Aug 2013
    Beans
    2,333

    Re: Cmake:How to add included dircetory?

    Nobody use Cmake?

  3. #3
    Join Date
    Apr 2012
    Beans
    5,923

    Re: Cmake:How to add included dircetory?

    Have you tried

    Code:
    cmake -LA | grep -i mpi
    to see if there's a variable you can set to tell it the mpi install location (it's possibly something like -DWITH_MPI=/path/to/mpi )

  4. #4
    Join Date
    Dec 2006
    Beans
    7,183

    Re: Cmake:How to add included dircetory?

    Or you could use ccmake for a decent look at all of the variables available to you. cmake is not installed with cmake, you will need to run:

    Code:
    sudo apt-get install cmake-curses-gui
    You can see the exact syntax by trawling through the generated cache file (less the -D of course).
    You think that's air you're breathing now?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •