gerbilvis / gerbil

Gerbil Hyperspectral Visualization and Analysis Framework
http://gerbilvis.org
GNU General Public License v3.0
43 stars 15 forks source link

Error in installing gerbil #37

Open dk-15 opened 6 years ago

dk-15 commented 6 years ago

While installing i am facing the following error

[ 1%] Building CXX object gerbil/core/CMakeFiles/core-lib.dir/multi_img/multi_img.cpp.o /media/dkoder/study/deep_learning_practice/hyperspectral imaging/final year project/gerbil/core/multi_img/multi_img.cpp: In member function ‘cv::PCA multi_img::pca(unsigned int) const’: /media/dkoder/study/deep_learning_practice/hyperspectral imaging/final year project/gerbil/core/multi_img/multi_img.cpp:392:36: error: ‘CV_PCA_DATA_AS_COL’ was not declared in this scope cv::PCA ret(input, cv::noArray(), CV_PCA_DATA_AS_COL, (int)components); ^~~~~~ /media/dkoder/study/deep_learning_practice/hyperspectral imaging/final year project/gerbil/core/multi_img/multi_img.cpp:392:36: note: suggested alternative: ‘CV_HAL_DFT_SCALE’ cv::PCA ret(input, cv::noArray(), CV_PCA_DATA_AS_COL, (int)components); ^~~~~~ CV_HAL_DFT_SCALE gerbil/core/CMakeFiles/core-lib.dir/build.make:142: recipe for target 'gerbil/core/CMakeFiles/core-lib.dir/multi_img/multi_img.cpp.o' failed make[2]: [gerbil/core/CMakeFiles/core-lib.dir/multi_img/multi_img.cpp.o] Error 1 CMakeFiles/Makefile2:263: recipe for target 'gerbil/core/CMakeFiles/core-lib.dir/all' failed make[1]: [gerbil/core/CMakeFiles/core-lib.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

Thanks

ypnos commented 6 years ago

What is your OpenCV version? I cannot reproduce this problem with version 3.4.1