Open walchko opened 4 years ago
Hi @walchko , I also met this problem. Did you find a way to resolve this? I'm using opencv 3.2.4. Thanks!
no I didn't ... sorry
Ahh, no worry. I will let you know if I find the solution. But thank you anyway!
hmmm, I finally make it compiled on my laptop. There are several tips I find useful. I have tried to debug this problem related to opencv, but after I try these steps, this bug also disappeared.
USE_INTERNAL_CERES
in the LibraryConfig.cmakeHAVE_OPENCV_XFEATURES2D_NONFREE
in the CMakeLists. camodocal can handle this, just this flag is always false.I have solved this problem by adding
struct CvPoint{
int x;
int y;
};
into AstDetector.h
hmmm, I finally make it compiled on my laptop. There are several tips I find useful. I have tried to debug this problem related to opencv, but after I try these steps, this bug also disappeared.
- You don't need to install your own ceres. You can use the ceres in camodocal's source code. Just enable
USE_INTERNAL_CERES
in the LibraryConfig.cmake- Make sure to use an old version Eigen, like 3.2.10. This repo hasn't been updated for 3 years. I believe it's not compatible with the latest Eigen.
- Remember to install opencv_contrib which contains xfeatures2d_nonfree. If cmake cannot find it, like what I met, just delete all the
HAVE_OPENCV_XFEATURES2D_NONFREE
in the CMakeLists. camodocal can handle this, just this flag is always false.
i meet this error and can you tell how did you make it successful in you laptop?
error: invalid new-expression of abstract class type ‘agast::AgastDetector5_8’ 1654 | :AgastDetector5_8(img.cols, img.rows, 0);
hmmm, I finally make it compiled on my laptop. There are several tips I find useful. I have tried to debug this problem related to opencv, but after I try these steps, this bug also disappeared.
- You don't need to install your own ceres. You can use the ceres in camodocal's source code. Just enable
USE_INTERNAL_CERES
in the LibraryConfig.cmake- Make sure to use an old version Eigen, like 3.2.10. This repo hasn't been updated for 3 years. I believe it's not compatible with the latest Eigen.
- Remember to install opencv_contrib which contains xfeatures2d_nonfree. If cmake cannot find it, like what I met, just delete all the
HAVE_OPENCV_XFEATURES2D_NONFREE
in the CMakeLists. camodocal can handle this, just this flag is always false.
Adding on to the third point, there are
#include <opencv2/xfeatures2d/nonfree.hpp>
statements included in many parts of the code. This should be removed as well right?
I tried to build this on my Mac (10.15.5), but had issues. I get a lot of errors complaining about
CvPoint
which was the legacy C code and should now becv::Ppoint
instead.Is there any intention of updating the code base ... there are lot of other errors and warnings like this one: