Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while compiling #67

Closed
shabhu18 opened this issue Mar 29, 2016 · 1 comment
Closed

Error while compiling #67

shabhu18 opened this issue Mar 29, 2016 · 1 comment

Comments

@shabhu18
Copy link

In file included from /home/shashank/rtabmap/corelib/src/Features2d.cpp:54:0:
/usr/include/opencv2/nonfree/gpu.hpp:54:18: error: redefinition of ‘class cv::gpu::SURF_GPU’
class CV_EXPORTS SURF_GPU
^
In file included from /home/shashank/rtabmap/corelib/src/Features2d.cpp:46:0:
/usr/local/include/opencv2/gpu/gpu.hpp:1542:18: error: previous definition of ‘class cv::gpu::SURF_GPU’
class CV_EXPORTS SURF_GPU
^

Can anyone help??

@matlabbe
Copy link
Member

It seems you have two OpenCV installed on your computer. One in /usr and the other in /usr/local. Make sure to clean the build directory of rtabmap if a new OpenCV is installed after the first build, to make sure that headers/libraries are not mixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants