User Tools

Site Tools


steereo:installation

Installation

The prerequisites are:

  • cmake 2.4 or newer
  • C++ Compiler (tested with gcc 4.0-4.4, icc 10-11)

The build steps are:

  • (optional) configuration with “ccmake .”
  • make
  • make install (depending on your rights on the directory specified with CMAKE_INSTALL_PREFIX, which is /usr/local per default, you need to execute this as root)

Reconfiguring ld (may be needed):

  • Add /usr/local/lib to /etc/ld.so.conf
  • run ldconfig (as privileged user)

Troubleshooting

Sometimes it helps to remove the CMakeCache.txt (configuration cache) in the src directory .

Could NOT find MPI (missing: MPI_LIBRARY)

If you have MPI installed, then this is probably a bug of the cmake module FindMPI.cmake. To fix it add a space before -l at the lines 205 and 211 (at least in cmake 2.6-patch 4). The whole block starting from line 203:

  # Extract the set of libraries to link against from the link command
  # line
  string(REGEX MATCHALL " -l([^\" ]+|\"[^\"]+\")" MPI_LIBNAMES "${MPI_LINK_CMDLINE}")
 
  # Determine full path names for all of the libraries that one needs
  # to link against in an MPI program
  set(MPI_LIBRARIES)
  foreach(LIB ${MPI_LIBNAMES})
    string(REGEX REPLACE "^ -l" "" LIB ${LIB})
    set(MPI_LIB "MPI_LIB-NOTFOUND" CACHE FILEPATH "Cleared" FORCE)
    find_library(MPI_LIB ${LIB} HINTS ${MPI_LINK_PATH})
    if (MPI_LIB)
      list(APPEND MPI_LIBRARIES ${MPI_LIB})
    else (MPI_LIB)
      message(SEND_ERROR "Unable to find MPI library ${LIB}")
    endif (MPI_LIB)
  endforeach(LIB)

error while loading shared libraries: libSteereo.so: cannot open shared object file: No such file or directory

reconfigure ld (like described above in the installation instructions)

steereo/installation.txt · Last modified: 2010/11/24 17:05 by hpcdjenz