I have been trying to compile a code base (CloudyDay) on my Linux machine. After jumping through so many hoops to get it going, I am stuck at this error.
Error - undefined reference to `osg::GLBufferObject::Extensions::__glewBindBuffer(unsigned int, unsigned int) const'
As far as I know, I have included the headers and libraries as required and mentioned in the user guide.
Compiling against -
OSG 3.0.0, carve 2.0.0, osgHimmel, openGL - Linux Debian distro, GLEW - Linux Debian distro
CloudyDay's source code + user guide available at - https://www.cg.tuwien.ac.at/research/publications/2014/BEHAM-2014-RCR/
Makefile extract
LIBS = -L'/home/local/install_dir/OSG/3.0.0/lib64' -lOpenThreads -losg -losgViewer -losgGA -losgDB -losgUtil -losgText -L'/home/local/install_dir/carve/2.0.0/lib' -lintersect -L'/usr/lib/x86_64-linux-gnu' -ltinyxml2 -L'/home/local/install_dir/osghimmel/osgHimmel/lib' -losgHimmel `pkg-config --libs glew`
CXXFLAGS = -I'/home/local/CloudyDay/include/CloudyDay' -I'/home/local/CloudyDay' -I'/home/local/install_dir/OSG/3.0.0/include' -I'/usr/include' -I'/home/local/install_dir/carve/carve-2.0.0/include' -I'/home/local/install_dir/osghimmel/osgHimmel/include' `pkg-config --cflags glew`
pkg-config result for glew
$ pkg-config --cflags --libs glew
-I/usr/include/GL -I/usr/include/libdrm -lGLEW -lGLU -lGL
Any pointers to resolve this would be appreciated.