我试着用openEXR安装Vigra,但是没有安装指南。ps。我也安装了柠檬库,但vigra找不到它。
我试过..。
sudo cmake -VIGRA_STATIC_LIB:BOOL=ON -WITH_BOOST_GRAPH:BOOL=ON -WITH_BOOST_THREAD:BOOL=ON -WITH_HDF5:BOOL=ON -WITH_LEMON:BOOL=ON -WITH_OPENEXR:BOOL=ON ..但是没有成功..。
-- Configuring VIGRA version 1.11.1
-- Checking template recursion depth: ok
-- Searching for ZLIB
-- in default locations
-- Searching for TIFF
-- in default locations
-- Searching for JPEG
-- in default locations
-- Searching for PNG
-- in default locations
-- Searching for FFTW3
-- in default locations
-- Searching for FFTW3F
-- in default locations
-- Searching for HDF5
-- in default locations
-- Checking HDF5 version (at least 1.8): ok
-- Could NOT find HDF5 (missing: HDF5_CORE_LIBRARY)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Searching for Boost (at least version 1.40.0)
-- in default locations
-- Boost version: 1.65.1
-- Checking for threading support: std::thread
-- (added compiler flags: -pthread -std=c++11)
-- Detected C++ version: 201103
-- Checking VIGRANUMPY_DEPENDENCIES
-- Using Python 2.7.17 at /usr/bin/python
-- Found Python includes: /usr/include/python2.7
-- Found Python library: /usr/lib/x86_64-linux-gnu/libpython2.7.so
-- Could NOT find boost_python library (looking for version 2.7)
-- Searching for Python numpy: ok
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named nose
-- Could NOT find Python nosetests ('import nose' failed)
-- Could NOT find sphinx documentation generator
-- Could NOT find VIGRANUMPY_DEPENDENCIES (missing: Boost_PYTHON_LIBRARY)
-- ** WARNING: test_classifier::RFHDF5Test() will not be executed
-- ** WARNING: test_hdf5impex will not be executed
-- ---------------------------------------------------------
-- VIGRA configuration information:
-- ---------------------------------------------------------
-- Using ZLIB libraries: /usr/lib/x86_64-linux-gnu/libz.so
-- Using PNG libraries: /usr/lib/x86_64-linux-gnu/libpng.so;/usr/lib/x86_64-linux-gnu/libz.so
-- Using TIFF libraries: /usr/lib/x86_64-linux-gnu/libtiff.so
-- Using JPEG libraries: /usr/lib/x86_64-linux-gnu/libjpeg.so
-- OpenEXR disabled by user (WITH_OPENEXR=0)
-- Using FFTW libraries: /usr/local/lib/libfftw3.a
-- HDF5 libraries not found (HDF5 support disabled)
-- Using Boost Graph Library: /usr/include/boost/graph
-- LEMON graph library disabled by user (WITH_LEMON=0)
-- Vigranumpy dependencies not found (vigranumpy disabled)
-- ---------------------------------------------------------
-- building shared lib
-- binaries will be generated in: /home/elias/src/vigra/build
-- ---------------------------------------------------------
-- includes will be installed at: /usr/local/include
-- libraries will be installed at: /usr/local/lib
-- binaries will be installed at: /usr/local/bin
-- vigra manuals cannot be generated (Doxygen or Python not found)
-- vigranumpy will NOT be installed
--
-- Consider setting DEPENDENCY_SEARCH_PREFIX to find missing libraries
-- ---------------------------------------------------------
-- Configuring done
-- Generating done
-- Build files have been written to: /home/elias/src/vigra/build此外,我还安装了HDF5库。这里也一样。
我正在尝试编译Hugin从使用GPU的源代码。它需要VIGRA。
更新1:我成功安装了HDF5依赖项...我在找剩下的..。
sudo cmake -DWITH_HDF5=1 -DDEPENDENCY_SEARCH_PREFIX=/usr/lib/x86_64-linux-gnu/hdf5/serial ..发布于 2020-09-03 03:36:25
最后,
我发现我必须安装lemon库(dev)、openexr (dev)和HDF5文件。
sudo apt-get install libopenxr-dev libhdf5-dev liblemon-dev
然后用vigra编译
sudo cmake -DWITH_HDF5=1 -DWITH_OPENEXR=1 -DWITH_LEMON=1 -DDEPENDENCY_SEARCH_PREFIX=/usr/lib/x86_64-linux-gnu/hdf5/serial[/usr/local] ..https://stackoverflow.com/questions/63712043
复制相似问题