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

GLSL 3.30 is not supported #31

Closed
HTLife opened this issue Jul 19, 2020 · 0 comments
Closed

GLSL 3.30 is not supported #31

HTLife opened this issue Jul 19, 2020 · 0 comments

Comments

@HTLife
Copy link

HTLife commented Jul 19, 2020

I just met GLSL error when I try to run rosrun interactive_slam interactive_slam.

The error message is:

~/catkin_ws$ rosrun interactive_slam interactive_slam
error : failed to compile shader /home/map/catkin_ws/src/interactive_slam/data/shader/rainbow.vert
0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

error : failed to compile shader /home/map/catkin_ws/src/interactive_slam/data/shader/rainbow.frag
0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

error : failed to link program
error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader
construct solver: lm_var_cholmod
# Using CHOLMOD poseDim -1 landMarkDim -1 blockordering 1
done
error : failed to compile shader /home/map/catkin_ws/src/interactive_slam/data/shader/rainbow.vert
0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

error : failed to compile shader /home/map/catkin_ws/src/interactive_slam/data/shader/rainbow.frag
0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

error : failed to link program
error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader

And I found the solution:

cd ~/catkin_ws
rm -rf devel build
export MESA_GL_VERSION_OVERRIDE=3.3
catkin_make -DCMAKE_BUILD_TYPE=Release
source devel/setup.bash
rosrun interactive_slam interactive_slam

Just note here for anyone who meet the same error message in the future.

@HTLife HTLife closed this as completed Jul 19, 2020
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