-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Sample from modules/reg/samples/map_test.cpp does not compile #11
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
Comments
@alfonsosanchezbeato, could you please have a look? |
How are you compiling this? Using the cmake that appears in the folder works for me: .../reg/samples $ mkdir obj; cd obj I am using gcc 4.8. Which is your set-up? It looks like you are compiling it inside the OpenCV library. -- Alfonso |
Hi, i am using gcc 4.8 on debian 64bit. so yes i am compiling it inside the OpenCV library to build all at the same #include <opencv2/highgui.hpp> instead of writing #include <opencv2/highgui/highgui.hpp> you are actually targeting a compatibility header which should not be Then, can you make it compile within the library during its own build ? Thanks 2014-02-17 17:30 GMT+01:00 alfonsosanchezbeato [email protected]:
Alexandre BENOIT, |
Ok, I have been trying to compile changing header paths and with $ cmake -DOPENCV_EXTRA_MODULES_PATH=/mnt/data/opencv/opencv_contrib/modules -DBUILD_EXAMPLES=ON [opencv_folder] But I have lots of problems trying to use features2d. I tried adding: ocv_add_module(opencv_nonfree opencv_features2d) to CMakeLists.txt in reg/samples/ folder, but still it does not find features2d.hpp header. Any hint on this? Thanks, |
Normally, in your code, features2d include should be : #include "opencv2/nonfree.hpp" // if you are using SIFT or SURF Is it the case ? 2014-02-18 11:49 GMT+01:00 alfonsosanchezbeato [email protected]:
Alexandre BENOIT, |
It does not find any of those headers, not if I compile all OpenCV it with BUILD_EXAMPLES set. If I use the CMakeLists.txt file as stand-alone, headers are found. The problem seems to happen only for non-free modules. opencv2/imgproc.hpp or opencv2/highgui.hpp are found compiling OpenCV + BUILD_EXAMPLES. |
delete useless include message
* Use nodelet for slam_rtabmap.launch * Create pull_request_template.md
* Added fictitious delete methods, changes for android build * fixed comments
Hi Kiril,
Sorry if i assigned the issue to you but the author Alfonso (alfonsosanchezbeato ) does not appear in the assignies list.
this sample does not compile.
First, you should change your includes referring to opencv modules
For example: replace
Here is the compiler errors i have with the original submission
Now, if i correct the includes
I got these problems : code warnings and liker error (you should specifiy which module to link to in the config files)
The text was updated successfully, but these errors were encountered: