Opencv/cv.h Not Found Edit

First time here? Check out the FAQ!

Hi there! Please sign in help OpenCV answers logo faq tags users badges This forum is disabled, please visit https://forum.opencv.org
ALL UNANSWERED Ask Your Question
0 opencv/cv.h not found edit
  • cv.h
  • orbslam2
  • buildopencv

asked 2020-01-23 04:02:27 -0600

JordiGC gravatar image JordiGC 6 1 2 4

updated 2020-01-23 04:15:14 -0600

Hello,

I am trying to build the project of ORB_SLAM2 from this repository.

I have installed all the required dependencies that are mentioned in that repository. However, when I run

./build.sh

I get this error:

/<path_to_folder>/ORB_SLAM2/include/ORBextractor.h:26:23: fatal error: opencv/cv.h: No such file or directory

I have installed opencv4.2.0 from source in a docker image and I want to build the mentioned project in a docker container. I have been looking around how I could get the cv.h file, but I didn't find anything and that's why I am making this post.

This is the Dockerfile I used to create the docker image with opencv4.2 and cuda 10.2

Thank you very much,

Jordi

edit retag flag offensive close merge delete

Comments

see: https://github.com/raulmur/ORB_SLAM2/...

berak gravatar imageberak ( 2020-01-23 05:15:25 -0600 )editadd a comment

1 answer

Sort by » oldest newest most voted 1

answered 2020-01-23 05:10:22 -0600

berak gravatar image berak 32993 7 81 312

opencv 4 does no more install the deprecated (1.0) c-api headers.

you can either patch the ORBExtractor.h and use

#include <opencv2/opencv.hpp>

(luckily it's only one case, all others were changed already)

if you can't, you'll have to use opencv3 instead.

edit flag offensive delete link more

Comments

Okay! I will install the latest version of OpenCv3. (3.4.9?)

Thank you!

JordiGC gravatar imageJordiGC ( 2020-01-23 05:15:51 -0600 )edit

why not fork the ORBSLAM repo, fix it, and use that instead ?

(editing the file from a webbrowser will do that for you !)

berak gravatar imageberak ( 2020-01-23 05:17:12 -0600 )editadd a comment

Links

Official site

GitHub

Wiki

Documentation

Question Tools

Follow 1 follower

subscribe to rss feed

Stats

Asked: 2020-01-23 04:02:27 -0600

Seen: 21,893 times

Last updated: Jan 23 '20

Related questions

exit() function doesn't work when cv.h included, LINUX

opencv installed with visual studio 2010, but shows error with header files cv.h , highgui.h

problem with cv.h header file

cv.h not found need help with makefile [closed]

installing OpenCV in windows 10 using TDM 64 bit and Codeblocks fails

Does ORB SLAM2 perform worse on weaker compute?!

Copyright OpenCV foundation, 2012-2018. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license. about | faq | help | privacy policy | terms of service Powered by Askbot version 0.10.2  gravatar image ( 2024-11-24 01:58:58 -0600 )editnone×

Từ khóa » Cv H