Closed LordJABA closed 3 years ago
looking at my libraries I changed line 8 in LDBM.cpp from
#include <eigen3/Eigen/core>
to #include <eigen3/Eigen/Core>
to match the filename I have but now im getting this error :
GNU C++14 (Ubuntu 8.4.0-3ubuntu2) version 8.4.0 (x86_64-linux-gnu)
compiled by GNU C version 8.4.0, GMP version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.22.1-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 7f898f3e7c9bafa983b4c472f0e6877a
/home/thecore/tmp/ldbm-image-background-remover/src/main.cpp: In function ‘cv::Mat cutoutImg(cv::Mat, cv::Mat, double)’:
/home/thecore/tmp/ldbm-image-background-remover/src/main.cpp:53:37: error: ‘CV_BGR2BGRA’ was not declared in this scope
cv::cvtColor(input, input_bgra, CV_BGR2BGRA);
^~~~~~~~~~~
make[2]: *** [CMakeFiles/LDBMImageBackgroundRemover.dir/build.make:79: CMakeFiles/LDBMImageBackgroundRemover.dir/src/main.cpp.o] Błąd 1
make[2]: Opuszczenie katalogu '/home/thecore/tmp/ldbm-image-background-remover/build'
make[1]: *** [CMakeFiles/Makefile2:79: CMakeFiles/LDBMImageBackgroundRemover.dir/all] Błąd 2
make[1]: Opuszczenie katalogu '/home/thecore/tmp/ldbm-image-background-remover/build'
make: *** [Makefile:87: all] Błąd 2
Sucess!
changed line 53 in main.cpp to cv::cvtColor(input, input_bgra, cv::COLOR_RGB2BGR);
and it worked.
Can be closed - maybe someone will find that useful
I have problems compiling that under ubuntu 20.04 Is seems it can't find Eigen3 libraries I installed libopencv-dev and libeigen3-dev but I'm still getting error when i try
make
Here is what I do and what I get:Any suggestions how to fix that ? - not cpp programer so cmake it's some kind of magic to me