Giter Site home page Giter Site logo

make build.sh error about dynaslam HOT 12 CLOSED

bertabescos avatar bertabescos commented on May 22, 2024
make build.sh error

from dynaslam.

Comments (12)

undefinedzero avatar undefinedzero commented on May 22, 2024 5

@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.

Tacode avatar Tacode commented on May 22, 2024

This problem was solved when the OpenCv2 was installed.

from dynaslam.

BertaBescos avatar BertaBescos commented on May 22, 2024

Ok great! I close the issue.

from dynaslam.

cumtchenchang avatar cumtchenchang commented on May 22, 2024

@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.

cumtchenchang avatar cumtchenchang commented on May 22, 2024

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.

BertaBescos avatar BertaBescos commented on May 22, 2024

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.

cumtchenchang avatar cumtchenchang commented on May 22, 2024

I checked, find opencv 3.0. cmake .. sucessfully. However, make with this error

from dynaslam.

BertaBescos avatar BertaBescos commented on May 22, 2024

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.

cumtchenchang avatar cumtchenchang commented on May 22, 2024

Thank you for your response. May you make your code support opencv3? OpenCV3 is used often, now.

from dynaslam.

BertaBescos avatar BertaBescos commented on May 22, 2024

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.

jmfacil avatar jmfacil commented on May 22, 2024

@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.

Rushmian avatar Rushmian commented on May 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.