Mapviz error compilations on ROS melodic - jetson nano

asked 2022-04-21 17:49:29 -0500

Johart24 gravatar image

I am trying to install Mapviz, but later of correct some paths from ".../include/opencv" to ".../include/opencv4" i got some error that I dont understand.

In file included from /usr/include/aarch64-linux-gnu/qt5/QtGui/qopengl.h:105:0,
                 from /usr/include/aarch64-linux-gnu/qt5/QtOpenGL/qgl.h:45,
                 from /usr/include/aarch64-linux-gnu/qt5/QtOpenGL/QGLWidget:1,
                 from /home/user/catkin_ws/src/mapviz/mapviz/include/mapviz/map_canvas.h:42,
                 from /home/user/catkin_ws/src/mapviz/mapviz/src/map_canvas.cpp:35:
/usr/include/GLES3/gl31.h:526:60: error: ‘void __glewActiveTexture(GLenum)’ redeclared as different kind of symbol
 GL_APICALL void GL_APIENTRY glActiveTexture (GLenum texture);
                                                            ^
In file included from /home/user/catkin_ws/src/mapviz/mapviz/src/map_canvas.cpp:31:0:
/usr/include/GL/glew.h:16749:40: note: previous declaration ‘void (* __glewActiveTexture)(GLenum)’
 GLEW_FUN_EXPORT PFNGLACTIVETEXTUREPROC __glewActiveTexture;
                                        ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/aarch64-linux-gnu/qt5/QtGui/qopengl.h:105:0,
                 from /usr/include/aarch64-linux-gnu/qt5/QtOpenGL/qgl.h:45,
                 from /usr/include/aarch64-linux-gnu/qt5/QtOpenGL/QGLWidget:1,
                 from /home/user/catkin_ws/src/mapviz/mapviz/include/mapviz/map_canvas.h:42,
                 from /home/user/catkin_ws/src/mapviz/mapviz/src/map_canvas.cpp:35:
/usr/include/GLES3/gl31.h:527:74: error: ‘void __glewAttachShader(GLuint, GLuint)’ redeclared as different kind of symbol
 GL_APICALL void GL_APIENTRY glAttachShader (GLuint program, GLuint shader);
                                                                          ^
In file included from /home/user/catkin_ws/src/mapviz/mapviz/src/map_canvas.cpp:31:0:
/usr/include/GL/glew.h:16864:39: note: previous declaration ‘void (* __glewAttachShader)(GLuint, GLuint)’
 GLEW_FUN_EXPORT PFNGLATTACHSHADERPROC __glewAttachShader;
                                       ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/aarch64-linux-gnu/qt5/QtGui/qopengl.h:105:0,
                     from /usr/include/aarch64-linux-gnu/qt5/QtOpenGL/qgl.h:45,
                     from /usr/include/aarch64-linux-gnu/qt5/QtOpenGL/QGLWidget:1,
                     from /home/user/catkin_ws/src/mapviz/mapviz/include/mapviz/map_canvas.h:42,
                     from /home/user/catkin_ws/src/mapviz/mapviz/src/map_canvas.cpp:35:
    /usr/include/GLES3/gl31.h:528:99: error: ‘void __glewBindAttribLocation(GLuint, GLuint, const GLchar*)’ redeclared as different kind of symbol
     GL_APICALL void GL_APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
                                                                                                       ^

Y many more like those ones. There is a solution? somebody gets to install Mapviz on a Jetson nano?

edit retag flag offensive close merge delete