qtiplot

Patrick Dupre pdupre at kegtux.org
Fri Aug 10 17:20:49 UTC 2012


On 2012-08-10 18:16, Richard Shaw wrote:
> On Fri, Aug 10, 2012 at 11:09 AM, Patrick Dupre <pdupre at kegtux.org> 
> wrote:
>> g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
>> -fstack-protector
>> --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -fPIC -D_REENTRANT 
>> -Wall
>> -W -DQTIPLOT_PRO -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB 
>> -DQT_SHARED
>> -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore
>> -I/usr/include/QtGui -I/usr/include -Imoc -o obj/qwt_interval_data.o
>> qwt_interval_data.cpp
>> In file included from include/qwt3d_types.h:26:0,
>>                  from include/qwt3d_extglwidget.h:4,
>>                  from src/qwt3d_extglwidget.cpp:7:
>> include/qwt3d_openglhelper.h: In function 'const GLubyte*
>> Qwt3D::gl_error()':
>> include/qwt3d_openglhelper.h:67:31: error: 'gluErrorString' was not 
>> declared
>> in this scope
>> In file included from include/qwt3d_types.h:26:0,
>>                  from include/qwt3d_extglwidget.h:4,
>>                  from src/qwt3d_extglwidget.cpp:7:
>> include/qwt3d_openglhelper.h: In function 'bool
>> Qwt3D::ViewPort2World(double&, double&, double&, double, double, 
>> double)':
>> include/qwt3d_openglhelper.h:104:97: error: 'gluUnProject' was not 
>> declared
>> in this scope
>> include/qwt3d_openglhelper.h: In function 'bool
>> Qwt3D::World2ViewPort(double&, double&, double&, double, double, 
>> double)':
>> include/qwt3d_openglhelper.h:120:95: error: 'gluProject' was not 
>> declared in
>> this scope
>> make[1]: *** [lib/tmp/qwt3d_extglwidget.o] Error 1
>> make[1]: Leaving directory
>> `/home/pdupre/rpmbuild/BUILD/qtiplot-0.9.8.3/3rdparty/qwtplot3d'
>> make: *** [sub-3rdparty-qwtplot3d-make_default] Error 2
>> make: g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
>> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 
>> -fPIC
>> -D_REENTRANT -Wall -W -DQTIPLOT_PRO -DQT_NO_DEBUG -DQT_GUI_LIB 
>> -DQT_CORE_LIB
>> -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++ -I. 
>> -I/usr/include/QtCore
>> -I/usr/include/QtGui -I/usr/include -Imoc -o obj/qwt_legend.o 
>> qwt_legend.cpp
>
> If I wasn't fairly sure I had the package installed I would have
> started with google, but since I was pretty sure:
>
> # grep -r 'gluProject' /usr/include
> /usr/include/GL/glu.h:GLAPI GLint GLAPIENTRY gluProject (GLdouble
> objX, GLdouble objY, GLdouble objZ, const GLdouble *model, const
> GLdouble *proj, const GLint *view, GLdouble* winX, GLdouble* winY,
> GLdouble* winZ);
>
> Then:
> # repoquery --whatprovides /usr/include/GL/glu.h
> mesa-libGLU-devel-0:7.11.2-3.fc16.x86_64
> mesa-libGLU-devel-0:7.11.2-3.fc16.i686
> mesa-libGLU-devel-0:7.11-8.fc16.x86_64
> mesa-libGLU-devel-0:7.11-8.fc16.i686
>
> I've run into this before and you may need an additional "#include
> <GL/glu.h>" in the right source header but I can't remember for sure.

Very good point.
I fixed in
qwt3d_openglhelper.h
by adding:
#include <GL/glu.h>


But now I have another one:

/usr/lib64/qt4/bin/moc -DQTIPLOT_PRO -DSCRIPTING_CONSOLE 
-DSVN_REVISION="\"\"" -DQT_PLUGIN 
-DTRANSLATIONS_PATH=\"/usr/share/qtiplot/translations\" 
-DMANUAL_PATH=\"/usr/share/doc/qtiplot-0.9.8.3/manual\" 
-DSCRIPTING_MUPARSER -DSCRIPTING_PYTHON 
-DPYTHON_CONFIG_PATH=\"/usr/share/qtiplot\" -DGL2PS_HAVE_LIBPNG 
-DEMF_OUTPUT -DTEX_OUTPUT -DODS_IMPORT -DOPJ_IMPORT -DQT_NO_DEBUG 
-DQT_SVG_LIB -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB 
-DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore 
-I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtOpenGL 
-I/usr/include/QtXml -I/usr/include/Qt3Support -I/usr/include/QtSvg 
-I/usr/include -I/usr/include/QtAssistantClient 
-I/usr/include/QtAssistant -I../3rdparty/qwt/src 
-I../3rdparty/qwtplot3d/include -I/usr/include/gsl -Iicons 
-Isrc/analysis -Isrc/analysis/dialogs -Isrc/core -Isrc/lib/include 
-Isrc/lib/3rdparty/qtcolorpicker/src -Isrc/plot2D -Isrc/plot2D/dialogs 
-Isrc/plot3D -Isrc/matrix -Isrc/table -Isrc/scripting 
-I/usr/include/python2.7 -I/usr/include/libEMF -I/usr/include/minizip 
-I/usr/include/quazip -I/usr/include/liborigin2 -Isrc/origin 
-I/usr/X11R6/include 
-I/home/pdupre/rpmbuild/BUILD/qtiplot-0.9.8.3/tmp/qtiplot 
src/lib/include/SymbolBox.h -o ../tmp/qtiplot/moc_SymbolBox.cpp
src/origin/importOPJ.cpp: In member function 'bool 
ImportOPJ::createProjectTree(const OriginFile&)':
src/origin/importOPJ.cpp:200:65: error: invalid conversion from 'time_t 
{aka long int}' to 'boost::date_time::special_values' [-fpermissive]
/usr/include/boost/date_time/posix_time/ptime.hpp:49:5: error:   
initializing argument 1 of 
'boost::posix_time::ptime::ptime(boost::date_time::special_values)' 
[-fpermissive]

Any idea how to solve it?

Thank.

-- 
======================================================================
  Patrick DUPRÉ                |   |  email: pdupre at kegtux.org
======================================================================


More information about the users mailing list