QtHandles compile bug.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

QtHandles compile bug.

Charles Bradshaw
This post was updated on .
Tried to install QtHandles, but I get a make error:

$ qtmake-qt4
$ make
make[1]: Entering directory `/home/brad/source/goffioul-QtHandles-b927b48/src'
g++ -c -pipe -I/usr/include/octave-3.6.2/octave/.. -I/usr/include/octave-3.6.2/octave -mieee-fp -I/usr/include/freetype2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -g -Wall -W -D_REENTRANT -fPIC -D__STDC_LIMIT_MACROS -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtOpenGL -I/usr/include -I/usr/X11R6/include -I. -o gl-select.o gl-select.cc
In file included from gl-select.h:25:0,
                 from gl-select.cc:23:
/usr/include/octave-3.6.2/octave/../octave/gl-render.h: In member function ‘virtual void opengl_selector::setup_opengl_transformation(const axes::properties&)’:
/usr/include/octave-3.6.2/octave/../octave/gl-render.h:171:8: error: ‘void opengl_renderer::setup_opengl_transformation(const axes::properties&)’ is private
gl-select.cc:45:54: error: within this context
make[1]: *** [gl-select.o] Error 1
make[1]: Leaving directory `/home/brad/source/goffioul-QtHandles-b927b48/src'
make: *** [sub-src-make_default] Error 2

Looking at the gl-select.h I see that method setup_opengl_transformation is declared protected virtual, but the base class opengl_renderer in octave/gl-render.h is declared private!

My octave-devel version is 3.6.2-2 installed from  Fedora 17 repos.

How can I proceed? (I'm not a c++ programmer)

OK so I commented out setup_opengl_transformation from both gl-select.cc and gl-select.h and I now have a successfull install. Nothing seems to be broken!