-
Notifications
You must be signed in to change notification settings - Fork 95
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
Fix build against latest MRPT #15
base: master
Are you sure you want to change the base?
Conversation
This PR has been updated. |
Sorry, I had a try of this PR but still met some problems as follow: CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeFindDependencyMacro.cmake:47 (find_package): Could not find a package configuration file provided by "mrpt-opengl" with
I installed MRPT1.9.9 with PPA |
I think it ca be worked soon! I have cmake this PR successfully. But I still faced some problems as follow: The version of my opencv is 3.4.7, does that means i need to degrade my opencv to 3.2? That's bad.. |
I guess you installed opencv 3.4.7 with "sudo make install"? If yes, remove it from under "/usr/local/lib/". You can keep using opencv 3.x or 4.x without problems, but building it locally in its own ".../build" directory, and setting OPENCV_DIR in any CMake project that you want to use that more recent version of opencv. |
Sorry, i had uninstalled opencv with "sudo make uninstall" and add "set(OpenCV_DIR /home/wsakobe/Downloads/opencv-3.4.7/build)" to CMakeList in stvo, but it still showed ERROR with the same reasons: Sorry again to interrupt you again.. How can i fix this problem? |
Check if
and:
and show us the outputs. |
Sure, that's the outputs: wsakobe@wsakobe-PC:~$ sudo apt install libopencv-dev wsakobe@wsakobe-PC:~$ locate libopencv_imgproc.so wsakobe@wsakobe-PC:~$ apt list --installed | grep opencv WARNING: apt does not have a stable CLI interface. Use with caution in scripts. libopencv-calib3d-dev/bionic-updates,bionic-security,now 3.2.0+dfsg-4ubuntu0.1 amd64 [installed,automatic] Thx a lot! |
As told above, try first removing everything under /usr/local: Use with caution: Take a look first at what do you have there, but in general I strongly recommend NOT having stuff under these directories, since they only cause troubles:
|
Ok, then it seems that if you really want to use your own version of opencv, you should uninstall mrpt (via apt remove), and build MRPT from sources, setting its cmake's OpenCV_DIR to the same one you want to use for stvo-pl.... |
Sure, let me have a look! |
That's cool!!! I re-installed MRPT with cmake and now i have successfully compiled stvo! CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeFindDependencyMacro.cmake:47 (find_package): Could not find a package configuration file provided by "mrpt-base" with
Do you know how to fix this problem? BTW i have installed MRPT by source code and after that I installed |
You must also use the version of PL-SLAM from this PR. |
Thanks a lot! It finally works for me. |
The PR fixes:
#include <random>
.Please, merge, and reflect that the latest mrpt-1.5 version can be used to build the project, instead of referencing to a now outdated commit, as done here ;-)
Closes #14
cc: @rubengooj , @dzunigan