OctoMap/octomap

octovis cannot open files

jlsv888 opened this issue · 6 comments

I just installed octomap and octovis and I cannot open any files (I get an empty window).

Screenshot from 2022-03-18 05-32-40

Here is my system info:
ubuntu 18.04
cmake version 3.22.1
gcc 9.4.0
QMake version 2.01a / Qt version 4.8.7
libQGLViewer 2.6.3

My installation was the following
cmake .. -DOCTOVIS_QT5=OFF

I got this warning:
CMake Warning (dev) at /usr/local/share/cmake-3.22/Modules/FindOpenGL.cmake:315 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run "cmake --help-policy CMP0072" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

FindOpenGL found both a legacy GL library:

OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

and GLVND libraries for OpenGL and GLX:

OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
octovis/CMakeLists.txt:71 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

I did not have any issues on the build and install steps.

Hello, I was wondering if have you tried running with sudo? sudo octovis

Hey, I was having a very similar problem but running "sudo octovis" worked for me. Thank you!

In case you get octovis: command not found, try using the whole path as /opt/ros/noetic/bin/octovis for example.

thanks all! using sudo octovis worked