installation of YADE with suse distribution

Asked by feddyadong

Hello,
I try to intall YADE in the suse server distribution:
SUSE Linux Enterprise Server 11 SP1 (x86_64) - Kernel \r (\l)

I downloaded and compiled all the library needed for the YADE installation and I modified some files to
specify the location of the files .h and .so associate at each library.

After some modifications the cmake command work well and i obtain this message:

-- Yade configured with following features: Odeint VTK OpenMP GTS GUI CGAL PFVFLOW GL2PS LBMFLOW
-- Disabled features: LINSOLV SPH LIQMIGRATION MASK_ARBITRARY PROFILING
-- Optimized build
-- ===========================================================
-- Configuring done
-- Build files have been written to: /home2/caparmor/fadong/YADE/myYADE/build

but the make command send this error message:

-- Generating doneservice7>66% make
[ 1%] Generating qt4/moc_OpenGLManager.cxx
[ 2%] Generating qt4/moc_GLViewer.cxx
Scanning dependencies of target _GLViewer
[ 2%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/GLViewer.cpp.o
In file included from /home2/caparmor/fadong/YADE/myYADE/trunk/core/Omega.hpp:20,
                 from /home2/caparmor/fadong/YADE/myYADE/trunk/gui/qt4/GLViewer.hpp:6,
                 from /home2/caparmor/fadong/YADE/myYADE/trunk/gui/qt4/GLViewer.cpp:11:
/home2/caparmor/fadong/YADE/myYADE/trunk/lib/base/Math.hpp:8: error: expected nested-name-specifier before 'Real'
/home2/caparmor/fadong/YADE/myYADE/trunk/lib/base/Math.hpp:8: error: 'Real' has not been declared
/home2/caparmor/fadong/YADE/myYADE/trunk/lib/base/Math.hpp:8: error: expected `;' before '=' token
/home2/caparmor/fadong/YADE/myYADE/trunk/lib/base/Math.hpp:8: error: expected unqualified-id before '=' token
^Cmake[2]: *** [gui/CMakeFiles/_GLViewer.dir/qt4/GLViewer.cpp.o] Interrupt

I tried to change the version of gcc (4.9.2, 4.8.2, 4.2.2) but without succes.

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Anton Gladky (gladky-anton) said :
#1

Try to replace the line in lib/base/Math.hpp:8

-using Real = double
+typedef double Real;

if it will work, your compiler does not support C++11 completely.

Cheers

Anton

2015-06-30 14:36 GMT+02:00 feddyadong <email address hidden>:
> New question #268697 on Yade:
> https://answers.launchpad.net/yade/+question/268697
>
> Hello,
> I try to intall YADE in the suse server distribution:
> SUSE Linux Enterprise Server 11 SP1 (x86_64) - Kernel \r (\l)
>
> I downloaded and compiled all the library needed for the YADE installation and I modified some files to
> specify the location of the files .h and .so associate at each library.
>
> After some modifications the cmake command work well and i obtain this message:
>
> -- Yade configured with following features: Odeint VTK OpenMP GTS GUI CGAL PFVFLOW GL2PS LBMFLOW
> -- Disabled features: LINSOLV SPH LIQMIGRATION MASK_ARBITRARY PROFILING
> -- Optimized build
> -- ===========================================================
> -- Configuring done
> -- Build files have been written to: /home2/caparmor/fadong/YADE/myYADE/build
>
> but the make command send this error message:
>
> -- Generating doneservice7>66% make
> [ 1%] Generating qt4/moc_OpenGLManager.cxx
> [ 2%] Generating qt4/moc_GLViewer.cxx
> Scanning dependencies of target _GLViewer
> [ 2%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/GLViewer.cpp.o
> In file included from /home2/caparmor/fadong/YADE/myYADE/trunk/core/Omega.hpp:20,
> from /home2/caparmor/fadong/YADE/myYADE/trunk/gui/qt4/GLViewer.hpp:6,
> from /home2/caparmor/fadong/YADE/myYADE/trunk/gui/qt4/GLViewer.cpp:11:
> /home2/caparmor/fadong/YADE/myYADE/trunk/lib/base/Math.hpp:8: error: expected nested-name-specifier before 'Real'
> /home2/caparmor/fadong/YADE/myYADE/trunk/lib/base/Math.hpp:8: error: 'Real' has not been declared
> /home2/caparmor/fadong/YADE/myYADE/trunk/lib/base/Math.hpp:8: error: expected `;' before '=' token
> /home2/caparmor/fadong/YADE/myYADE/trunk/lib/base/Math.hpp:8: error: expected unqualified-id before '=' token
> ^Cmake[2]: *** [gui/CMakeFiles/_GLViewer.dir/qt4/GLViewer.cpp.o] Interrupt
>
> I tried to change the version of gcc (4.9.2, 4.8.2, 4.2.2) but without succes.
>
>
>
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp

Revision history for this message
Luc OGER (luc-oger) said :
#2

I am using for a long time the yade distribution with OPENSUSE 13.2 x86_64 without any problem up to now!

But this new update series of packages such the move from qt4 to qt5 generates also for me the same kind of warnings:

I guess that some changes of the qt4/GLviewer to qt5/glviewer in some paths is needed?
 gui/qt4/GLViewer.cpp | 5 +-
 gui/qt4/GLViewer.hpp | 4 +
 gui/qt4/GLViewerDisplay.cpp | 8 +
 gui/qt4/build | 4 -
 gui/qt5/GLViewer.cpp | 488 ++++++++++++++++++
 gui/qt5/GLViewer.hpp | 163 ++++++
 gui/qt5/GLViewerDisplay.cpp

why both are in the distribution?

Revision history for this message
Anton Gladky (gladky-anton) said :
#3

There is no move to qt5 yet. Those new files are disabled, if you
do not put -DUSE_QT5=1 option explicitly.

Anton

2015-06-30 19:01 GMT+02:00 Luc OGER <email address hidden>:
> Question #268697 on Yade changed:
> https://answers.launchpad.net/yade/+question/268697
>
> Luc OGER posted a new comment:
> I am using for a long time the yade distribution with OPENSUSE 13.2
> x86_64 without any problem up to now!
>
> But this new update series of packages such the move from qt4 to qt5
> generates also for me the same kind of warnings:
>
> I guess that some changes of the qt4/GLviewer to qt5/glviewer in some paths is needed?
> gui/qt4/GLViewer.cpp | 5 +-
> gui/qt4/GLViewer.hpp | 4 +
> gui/qt4/GLViewerDisplay.cpp | 8 +
> gui/qt4/build | 4 -
> gui/qt5/GLViewer.cpp | 488 ++++++++++++++++++
> gui/qt5/GLViewer.hpp | 163 ++++++
> gui/qt5/GLViewerDisplay.cpp
>
> why both are in the distribution?
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp

Can you help with this problem?

Provide an answer of your own, or ask feddyadong for more information if necessary.

To post a message you must log in.