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

typedef conflict between geos and opencv2 when building on Xenial #347

Closed
evenator opened this issue May 24, 2016 · 0 comments
Closed

typedef conflict between geos and opencv2 when building on Xenial #347

evenator opened this issue May 24, 2016 · 0 comments

Comments

@evenator
Copy link
Contributor

When building on Ubuntu 16.04, the swri_geometry_util fails due to the following error:

In file included from /usr/include/geos/geom/CoordinateSequence.h:19:0,
                from /usr/include/geos/geom/CoordinateArraySequence.h:21,
                 from /root/ros/ws_ci_src/src/ci_src/swri_geometry_util/src/intersection.cpp:34:
/usr/include/geos/platform.h:66:26: error: conflicting declaration 'typedef long long int int64'
    typedef long long int int64;                      
                          ^
In file included from /usr/include/opencv2/core/core.hpp:49:0,
                from /root/ros/ws_ci_src/src/ci_src/swri_geometry_util/include/swri_geometry_util/intersection.h:31,
               from /root/ros/ws_ci_src/src/ci_src/swri_geometry_util/src/intersection.cpp:32:
/usr/include/opencv2/core/types_c.h:163:20: note: previous declaration as 'typedef int64_t int64'
    typedef int64_t int64;                            
                    ^
evenator added a commit to evenator/marti_common that referenced this issue May 24, 2016
Wrapping geos includes in #define statements forces geos to typedef
int64 to int64_t so that it matches opencv's typedef.
evenator added a commit to evenator/marti_common that referenced this issue May 24, 2016
Wrapping geos includes in #define statements forces geos to typedef
int64 to int64_t so that it matches opencv's typedef.
@evenator evenator closed this as completed Jul 6, 2016
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

1 participant