Comments (12)
@BertaBescos I found a way to solve this problem. In OpenCV 3.X, MatAllocator class has three pure virtual functions and they are const member functions, but in the file src/Conversion.cc, the functions missed the word const.
from dynaslam.
This problem was solved when the OpenCv2 was installed.
from dynaslam.
Ok great! I close the issue.
from dynaslam.
@BertaBescos I also met this error, but all my code depend on opencv3. I tried use this code with opencv2.4, the error is still on. Please help me, thank you.
from dynaslam.
error information:
/home/cc/catkin_ws/src/DynaSLAM/src/Conversion.cc:205:16: error: cannot declare variable ‘DynaSLAM::g_numpyAllocator’ to be of abstract type ‘DynaSLAM::NumpyAllocator’
NumpyAllocator g_numpyAllocator;
/home/cc/catkin_ws/src/DynaSLAM/src/Conversion.cc:74:7: note: because the following virtual functions are pure within ‘DynaSLAM::NumpyAllocator’:
from dynaslam.
Have you checked if it is finding the correct version of OpenCV? These lines in the CMake should tell you what version of OpenCV it is finding:
message("PROJECT_SOURCE_DIR: " ${OpenCV_DIR})
find_package(OpenCV 2.4.11 QUIET)
if(NOT OpenCV_FOUND)
message("OpenCV > 2.4.11 not found.")
find_package(OpenCV 3.0 QUIET)
if(NOT OpenCV_FOUND)
message(FATAL_ERROR "OpenCV > 3.0 not found.")
endif()
endif()
from dynaslam.
I checked, find opencv 3.0. cmake .. sucessfully. However, make with this error
from dynaslam.
So the problem is that it is not finding OpenCV 2.4. It is only finding OpenCV 3.0, which is not yet supported.
from dynaslam.
Thank you for your response. May you make your code support opencv3? OpenCV3 is used often, now.
from dynaslam.
Yes, we plan to support OpenCV 3.0 but I am not sure how long it can take us. Many functions changed from OpenCV 2.4 to OpenCV 3.0 in the MatAllocator class. It is in the communication with python where there are a few issues in using OpenCV 3.0 for the moment.
from dynaslam.
@BertaBescos I found a way to solve this problem. In OpenCV 3.X, MatAllocator class has three pure virtual functions and they are const member functions, but in the file src/Conversion.cc, the functions missed the word const.
Thanks! we will add OpenCV 3.X support asap.
from dynaslam.
@BertaBescos I found a way to solve this problem. In OpenCV 3.X, MatAllocator class has three pure virtual functions and they are const member functions, but in the file src/Conversion.cc, the functions missed the word const.
@undefinedzero how did you solve it? Could you explain a bit?
from dynaslam.
Related Issues (20)
- Help: virtual functions are pure within ‘DynaSLAM::NumpyAllocator’: HOT 1
- The problem of OpenCV3. HOT 2
- How to get the evaluation result for KITTI odometry 16-21 in DyanSLAM2?
- my version: numpy=1.16.6 tensorflow=1.12.3 python=2.7 how to slove the follow problem? HOT 1
- 运行数据集 HOT 2
- make error HOT 1
- why opencv3 can compile success ,but opencv 2.4.13 compile fail HOT 1
- problem on Check.py (ValueError: Exception encountered when calling layer "mrcnn_bbox" (type Reshape).)
- All masks pics output is pure black HOT 1
- Why doesn't working the KITTI odometry dataset in some data?
- Loading Mask R-CNN. This could take a while... Importing Mask R-CNN Settings... 段错误 (核心已转储)
- Light Tracking not working because Tracking is not initialized...
- DynaSLAM2
- Dynaslam2
- Arxiv review version said The project code will be released upon acceptance. [The RAL published version deleted this sentence] HOT 2
- How to reduce memory usage
- When can open source the code of dyanslam II?
- Python.h error
- Libffi Error - RGB-B build not generated
- python 版本
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynaslam.