cvpr15deepcompare icon indicating copy to clipboard operation
cvpr15deepcompare copied to clipboard

fatal error: THC/THC.h: No such file or directory

Open SSTTTAY opened this issue 6 years ago • 1 comments

I am trying to install run the model on OpenCV. But I have tried a few times and I still meet this problem when I run cmake -DWITH_OPENCV=ON -DOpenCV_DIR=/opt/opencv ..; make -j8 and it all arise this error : /home/ubuntu/shihua/cvpr15deepcompare-master/opencv/example.cpp:15:21: fatal error: THC/THC.h: No such file or directory compilation terminated. CMakeFiles/example.dir/build.make:62: recipe for target 'CMakeFiles/example.dir/example.cpp.o' failed make[2]: *** [CMakeFiles/example.dir/example.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/example.dir/all' failed make[1]: *** [CMakeFiles/example.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

SSTTTAY avatar Jul 18 '18 02:07 SSTTTAY

Please follow instructions on building TH and THC in https://github.com/szagoruyko/cvpr15deepcompare#c-api

I recommend you using python opencv and pytorch models here: https://github.com/szagoruyko/cvpr15deepcompare/tree/master/pytorch

szagoruyko avatar Jul 19 '18 12:07 szagoruyko