You are not logged in.
Good day,
I am in the process of installing SALOME (6.4.0), a pre- and post-processor for differential equation solvers (FEM in my case).
The source code is distributed as a single tar.gz file and inside one finds source directories for the various modules used.
In AUR is available a set of old, outdated modules of SALOME 5.1.4 (here)
So far, I have successfully compiled and installed the salome-kernel package by modifying the PKGBUILD to find the source locally on my computer. Apart from changing some version variables, all I needed to change was to add
PYTHON=/usr/bin/python2 to ./configure, since it looks for /usr/bin/python by default and this causes issues (I'm not sure why python2 and python3 exists, actually).
I then proceeded to salome-med. I managed all of its non-salome dependencies and am now stuck on salome-gui which is also a dependency. I followed the same procedure, this time specifying both python and opencascade paths. ./configure seems to finish with no problems (a summary is shown and all deps are present) and after a bit of compiling it stops with the following errors:
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:lot2d_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:enStyle)':
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 1I'm not sure what most of this means, since I know basically nothing about Qt (which seems to be the problem). I've read somewhere of someone having had problems with previous versions of salome using qwt 4 commands while the affected user had qwt 5, which made me suspect that maybe some Qt syntax changed since salome 6.4 was released. The documentation says that it was tested with Qt 4.6 and qwt 5.1. I have:
Qt = 4.8
pyqt = 4.9
qwt = 6.01
I attempted to look at some of the lines in the problem files but due to my lack of knowledge couldn't figure out anything. I do not suspect anyone here knows everything about SALOME but maybe someone who knows about Qt and the likes recognises what's wrong. The files showing errors are here:
http://docs.salome-platform.org/salome_ … 2d_8h.html
http://docs.salome-platform.org/salome_ … ource.html
http://docs.salome-platform.org/salome_ … _8cxx.html
http://docs.salome-platform.org/salome_ … files.html
I'm using a 32bit processor, if it's relevant.
I'll gladly and quickly supply any extra info.
Thank you in anticipation,
A.L.
Last edited by ArseneLupin (2012-02-15 22:05:51)
Offline