Personal tools
You are here: Home Forum Install & build Failed compiling GUI at Plot2d

Failed compiling GUI at Plot2d

Up to Install & build

Failed compiling GUI at Plot2d

Posted by Stefan Hartman at February 15. 2012

Good day,

 

I am trying to compile salome in Arch Linux. So far I have compiled KERNEL (after some problems) and installed it.

I am now trying to compile GUI. All dependencies are reported found.

Compilation aborts with errors:

######################################################

....

In file included from Plot2d.cxx:23:0:

Plot2d.h:49:11: error: field 'text' has incomplete type

Plot2d.h:51:78: error: invalid use of incomplete type 'struct QString'

/usr/include/QtCore/qglobal.h:1525:7: error: forward declaration of 'struct QString'

Plot2d.h:88:73: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'

Plot2d.h:91:73: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'

Plot2d.h:94:73: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'

Plot2d.h:97:73: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'

Plot2d.h:101:66: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'

Plot2d.h:104:66: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'

Plot2d.h:107:66: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'

Plot2d.h:110:66: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'

Plot2d.h:112:3: error: 'QPixmap' does not name a type

Plot2d.h:115:3: error: 'QPixmap' does not name a type

Plot2d.cxx: In constructor 'Plot2d_Point::Plot2d_Point(double, double, const QString&;)':

Plot2d.cxx:50:27: error: class 'Plot2d_Point' does not have any field named 'text'

Plot2d.cxx: At global scope:

Plot2d.cxx:388:92: error: 'QPixmap Plot2d::markerIcon(const QSize&, const QColor&, Plot2d::MarkerType)' should have been declared inside 'Plot2d'

Plot2d.cxx:406:90: error: 'QPixmap Plot2d::lineIcon(const QSize&, const QColor&, Plot2d::LineType)' should have been declared inside 'Plot2d'

Plot2d.cxx: In function 'bool Plot2d::existMarker(int, const QwtPlot*, QwtSymbol::Style, const QColor&, Qt::PenStyle)':

Plot2d.cxx:461:44: error: request for member 'style' in 'crv->QwtPlotCurve::symbol()', which is of non-class type 'const QwtSymbol*'

make[2]: *** [libPlot2d_la-Plot2d.lo] Error 1

make[2]: Leaving directory `/home/stefan/builds/salome-med/salome-med/DEPMAKER_DEPS/salome-gui/src/GUI_SRC_6.4.0/src/Plot2d'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/stefan/builds/salome-med/salome-med/DEPMAKER_DEPS/salome-gui/src/GUI_SRC_6.4.0/src'

make: *** [all-recursive] Error 1

##############################################################
 
I have the following versions of python, qt, qwt and pyqt installed, if its relevant:
Python = 2.7 (using python2 from arch repos with ./configure PYTHON=/usr/bin/python2)
Qt = 4.8
pyqt = 4.9
qwt = 6.01
 
I have no idea what to do about these errors so I'd appreciate any help.
 
Thank you in anticipation,
A.L.

Re: Failed compiling GUI at Plot2d

Posted by Vadim SANDLER at February 20. 2012

Hello Stephan,

SALOME 6.4.0 was compiled / tested only on Qt 4.6. For the current moment, it is not yet ported to the latest versions of Qt (4.7-4.8).

Regards,
Vadim.

Re: Failed compiling GUI at Plot2d

Posted by Stefan Hartman at March 01. 2012

Thank you for the reply.

When you say "not yet" does that include sources on git? Or are they changed for newest versions of dependencies? 

If not, could you predict when Qt 4.8 will be supported?

Re: Failed compiling GUI at Plot2d

Posted by Vadim SANDLER at March 11. 2012

Hello Stephan,

The status "not yet ported" concerns also sources in the public git repository.

For the current moment porting of SALOME to Qt 4.8 is not planned.

Regards,
Vadim.

Powered by Ploneboard
Document Actions