patriciogonzalezvivo / glslViewer

Console-based GLSL Sandbox for 2D/3D shaders
BSD 3-Clause "New" or "Revised" License
4.72k stars 350 forks source link

Failed to compile on Linux (Arch + Wayland) #271

Closed dannemar closed 2 years ago

dannemar commented 2 years ago

I am following the compile instructions for linux and also specified the -DNO_X11=TRUE flag as instructed since I am using Wayland but get the following error during compiling:

In member function ‘void ada::CubemapFace<T>::upload()’: ../glslViewer/deps/ada/src/scene/sky.cpp:172:22: error: ‘GL_RGB16F_ARB’ was not declared in this scope; did you mean ‘GL_RGB16F_EXT’? 172 | internalFormat = GL_RGB16F_ARB; | ^~~~~~~~~~~~~ | GL_RGB16F_EXT make[2]: *** [deps/ada/src/CMakeFiles/ada.dir/build.make:496: deps/ada/src/CMakeFiles/ada.dir/scene/sky.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:346: deps/ada/src/CMakeFiles/ada.dir/all] Error 2 make: *** [Makefile:156: all] Error 2

I'm quite new to all this so quite out of my depth and have no idea how to go about fixing the issue. Any help would be much appreciated

dannemar commented 2 years ago

Update: I changed the GL_RGB16F_ARB to GL_RGB16F_EXT as the compiler suggested and was able to compile and run glslViewer