在我的Mac OsX上安装频道流

时间:2016-05-17 05:35:14

标签: macos hdf5 fftw eigen3 fink

我正在尝试通过此网站http://channelflow.org/dokuwiki/doku.php?id=docs:install上的说明在我的Mac OsX上安装软件频道流。该站点指定必须首先在一个系统上安装fftw3,eigen和hdf5。我已经在我的系统上成功安装了fftw3和eigen但是无法使用fink安装hdf5('fink install hdf5'提到没有名为hdf5的软件包)。我使用https://www.hdfgroup.org/downloads/index.html上的镜像安装了hdf5。但是这个在usr / local中安装了hdf5,而'fink install'安装在/ sw中(我认为)。

现在,安装channelflow会给我以下错误。

 MDOM18208-1:build kumarsambhava$ cmake -DCMAKE_INSTALL_PREFIX=~/channelflow ~/channelflow/trunk

-- configuring channelflow version 1.5.1
-- Build type: release
-- Basic system introspection...
-- Finding packages...

-- Found FFTW 
-- FFTW_INCLUDE_DIR=/sw/include
-- FFTW_LIBRARY=/sw/lib/libfftw3.dylib
-- Adding /sw/include to include path...
-- Adding /sw/lib/libfftw3.dylib to libraries...
-- Found Eigen3
-- EIGEN3_INCLUDE_DIR=/sw/include/eigen3
-- Adding /sw/include/eigen3 to include path...
-- Found HDF5 
-- HDF5 was not found.
-- Adding HDF5_LIBRARY-NOTFOUND to libraries...
-- Adding /libhdf5_cpp.so to libraries...
CMake Error at CMakeLists.txt:129 (CHECK_LIBRARY_EXISTS):
  CHECK_LIBRARY_EXISTS Macro invoked with incorrect arguments for macro
  named: CHECK_LIBRARY_EXISTS


CMake Error at CMakeLists.txt:135 (CHECK_LIBRARY_EXISTS):
  CHECK_LIBRARY_EXISTS Macro invoked with incorrect arguments for macro
  named: CHECK_LIBRARY_EXISTS


-- LIBS=/sw/lib/libfftw3.dylib;HDF5_LIBRARY-NOTFOUND;/libhdf5_cpp.so
-- INCLUDE_DIRS=

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
HDF5_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
   used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
HDF5_LIBRARY (ADVANCED)
    linked by target "chflow_static" in directory /Users/kumarsambhava/channelflow/trunk/channelflow
    linked by target "chflow" in directory /Users/kumarsambhava/channelflow/trunk/channelflow
    linked by target "symmetryop" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "seriesdist" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "pressure" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "poincare" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "seriesdist2" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "perturbfield" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "findsoln" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "makestokesmode" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "makebasis" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "seriesprops" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "L2Dist" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "projectseries" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "continuesoln" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "findsymmetries" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "couettePoincare" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "movieframes" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "arnoldi" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "L2IP" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "continuefields" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "fieldprops" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "fieldplots" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "field2ascii" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "projectfields" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "couette" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "randomfield" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "makeheatmode" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "symmetrize" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "diffop" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "interpsoln" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "fieldconvert" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "changegrid" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "ascii2field" in directory /Users/kumarsambhava/channelflow/trunk/programs
    linked by target "addfields" in directory /Users/kumarsambhava/channelflow/trunk/programs

-- Configuring incomplete, errors occurred!
See also "/Users/kumarsambhava/channelflow/build/CMakeFiles/CMakeOutput.log".

1 个答案:

答案 0 :(得分:0)

Cmake无法找到hdf5库。要解决此问题,请仔细查看<your channelflow path>/trunk/CMakeList.txt
在第116,131和136行中,您可以找到硬编码的*.so库。 您可以将后缀更改为*.dylib,也可以在相应的库路径中创建符号链接。