opengl_examples
opengl_examples copied to clipboard
Compilation error for target ambient_occlusion
trafficstars
cd ambient_occlusion && mkdir build && cd build && cmake .. && make
causes an error
Consolidate compiler generated dependencies of target ambient_occlusion
[ 50%] Building CXX object CMakeFiles/ambient_occlusion.dir/main.cpp.o
/home/dmitrykolesnikovich/workspace/doy-opengl-examples/ambient_occlusion/main.cpp: In function ‘void init()’:
/home/dmitrykolesnikovich/workspace/doy-opengl-examples/ambient_occlusion/main.cpp:219:26: error: call of overloaded ‘init(const int&, const int&)’ is ambiguous
219 | depth_framebuffer.init(win_width, win_height);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/dmitrykolesnikovich/workspace/doy-opengl-examples/ambient_occlusion/main.cpp:28:
/home/dmitrykolesnikovich/workspace/doy-opengl-examples/ambient_occlusion/../common/depth_framebuffer.hpp:21:9: note: candidate: ‘void Depth_framebuffer::init(unsigned int, float)’
21 | void init(unsigned texture_size, float perspective = 3.1415f/1.6f){
| ^~~~
/home/dmitrykolesnikovich/workspace/doy-opengl-examples/ambient_occlusion/../common/depth_framebuffer.hpp:25:9: note: candidate: ‘void Depth_framebuffer::init(unsigned int, unsigned int, float)’
25 | void init(unsigned tex_width, unsigned tex_height, float perspective = 3.1415f/1.6f){
| ^~~~
make[2]: *** [CMakeFiles/ambient_occlusion.dir/build.make:76: CMakeFiles/ambient_occlusion.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/ambient_occlusion.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Yes indeed, that was an issue. Should be fixed now in the master.
Thanks for reporting it !
Well, I still have !!!ERROR: Framebuffer not OK :( while trying any ambient_occlusion example. (And any other example too)
