-
Notifications
You must be signed in to change notification settings - Fork 800
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
Compilation fails with opencv-git [edited] #126
Comments
The error is FLANN related, which uses In lsh_table.h, there is this code: // TODO as soon as we use C++0x, use the code in USE_UNORDERED_MAP
#if USE_UNORDERED_MAP
#include <unordered_map>
#else
#include <map>
#endif When rtabmap is building, // TODO as soon as we use C++0x, use the code in USE_UNORDERED_MAP
#define USE_UNORDERED_MAP 1
#if USE_UNORDERED_MAP
#include <unordered_map>
#else
#include <map>
#endif cheers |
Thanks for fast reply. This path is needed to compile flann: http://pkgs.fedoraproject.org/cgit/rpms/flann.git/plain/flann-1.8.4-gcc6.patch and some aditional changes for python bindings. Unfortunately adding |
I tried with Fedora and gcc 6.2.1, and with default binaries available (e.g. pcl-devel). Minor this issue, it builds correctly with this config:
However, if I build with g2o, the
Did you have these errors too? Did you build PCL from source (along with Openni)? |
I have never seen this errors. |
Openni2 fails to build with gcc6 - needs to be build with clang. But |
For an ugly solution, |
Thanks, that works. |
I don't know what the problem was, but it is working now. Versions of gcc and boost are the same. |
I found the probem. It is in current git version of opencv. With 3.1.0 it works OK, but probmem is this commit to opencv/opencv@e42750c associated to this issue: opencv/opencv#7027 It basically adds I don't know if this should be solved in opencv (use newer flann) or rtabmap (some cmake magic?) |
…ne name to avoid conflicts with the one defined in OpenCV
RTAB-Map uses a slightly patched version of the latest flann library (1.8). The problem is similar to flann-lib/flann#214 OpenCV is using Well, OpenCV is using USE_UNORDERED_MAP=1 for a long time, I think that the commit you referred is making the cheers, |
Hi,
I'm trying to compile rtabmap on Archlinux, but it fails:
error: ‘class std::unordered_map<unsigned int, std::vector<unsigned int> >’ has no member named ‘serialize’
I tried git and 0.11.8 version - both same probem. I have gcc 6.2.1 and boost 1.61.0.
cmake-output.txt
make-output.txt
I don't know if the problem is in my system or rtabmap has issues with some of new version of libraries in my system.
Thanks
Tomas
The text was updated successfully, but these errors were encountered: