add HDF5_INCLUDE_DIR for compiled with Caffe#453
add HDF5_INCLUDE_DIR for compiled with Caffe#453mylxiaoyi wants to merge 1 commit intoopencv:masterfrom mylxiaoyi:myfeature
Conversation
|
@mylxiaoyi, thanks! may I ask you (and @mshabunin) - what happends if Caffe is compiled without HDF5, i.e. Caffe is there, but HDF5 is not? will cnn_3dobj still compile? |
|
@vpisarev , this module is broken and should be fixed first. We does not build it on buildbot because it depends on caffe which is not installed on the buildslave.
AFAIK, caffe has switched to HDF5 format by default and probably can not be built without HDF5 library (BVLC/caffe#2836). There are two build systems available for caffe: cmake and Makefile. There is a chance that cmake will be chosen as the default (and the only?) BS at some time (BVLC/caffe#3351). Maybe using standard cmake find_package for linking with caffe could be better choice. |
|
@vpisarev , I test again, and find that I also noticed that the header files in |
|
using this version of caffe: BVLC/caffe#5019 with HDF5 enabled and compiled using the CMake build system, I did not have to add the above includes to opencv. AFAIK @sovrasov compiled the module as well. |
|
@paroj , thank you! |
* Fixing ARM plugin tests * Updated cmake options names * Fixes
add
HDF5_INCLUDE_DIRandHDF5_INCLUDE_LIBStomodules/cnn_3dobj/CMakeLists.txtfor compile OpenCV with Caffe.For Debian-based Linux Systems,
HDF5_INCLUDE_DIRmay be/usr/include/hdf5/serialor/usr/include/hdf5/openmpi. If Caffe is compiled with HD5, this may be a problem.