Conflicting Eigen namespaces

12 views
Skip to first unread message

Georg Kosakowski

unread,
Feb 2, 2016, 10:07:44 AM2/2/16
to ogs-...@googlegroups.com, Leal Allan
Hi all,
I updated today my OpenGeoSys development version (for coupling with the
GEMS4R -> Reaktoro chemical solver) to the latest trunk version. It
looks like there are some changes in the way the Eigen library is used
in OGS. In any case, I have now after the upgrade a conflict in Eigen
namespaces. Rektoro, which is linked as external library, is linked
against Eigen and the header files point to one version of the Eigen
library downloaded/installed during compilation of GEMS4R/Reaktoro. OGS
has now its own - probably modified - version of Eigen in the Thirdparty
directory. Of course the two different versions give different errors
during compilation, depending which of the Eigen libraries is referenced
first via include/header files.

So the answer to the C++/developer/cmake cracks: Is there a way we can
resolve this? I guess the clean solution would be, if I can compile both
software packages against the same external version of Eigen, or?
As Reaktoro already downloads an up-to-date version of Eigen, I would
like to compile OGS against this version or a version available in
standard directories on my linux box!
CU, Georg



--
PD Dr. Georg Kosakowski * Laboratory for Waste Management
Paul Scherrer Institut * 5232 Villigen/PSI * Switzerland
Phone: +41-56-3104743 * Email: georg.ko...@psi.ch
homepage: http://www.psi.ch/les/georg-kosakowski

Lars Bilke

unread,
Feb 3, 2016, 3:04:46 AM2/3/16
to ogs-...@googlegroups.com, Leal Allan
Hi Georg,

Eigen (3.0.7) is included since https://svn.ufz.de/ogs/changeset/13664

I had a look on Reaktoro too. The problem is that neither OGS nor Reaktoro provide a way to use an external eigen library (e.g. via find_package()). As a quick solution you can try to replace the contents of the ThirdParty/Eigen-folder with the recent version (3.2.5) from Reaktoro (see https://github.com/bilke/ogs5/tree/eigen-3.2.5). At least it builds out of the box.

Best,
Lars
> --
> You received this message because you are subscribed to the Google Groups "ogs-devs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ogs-devs+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Georg Kosakowski

unread,
Feb 3, 2016, 4:26:30 AM2/3/16
to ogs-...@googlegroups.com, Leal Allan
Hi Lars,
thanks! That is what I think I will do as workaround ;-)
But on the long term one should think on changing this (in both packages).
Greetings, Georg

Marc Walther

unread,
Feb 5, 2016, 10:39:59 AM2/5/16
to ogs-...@googlegroups.com, Georg Kosakowski

Dear Georg,

I'm certainly not the cmake geek here, but my best shot would be the
following: you'll have to compile the latest version of eigen first, then
link these to your Reaktoro code, which afterwards is included as a library
during compilation of OGS, which again uses the firstly compiled eigen library.

Therefore, the question is rather to you, if you have a cmake file for
Reaktoro, which you can include into the OGS cmake setup? If yes, you could
easily specify one unique eigen lib.

Lars can certainly correct me or give more detailed advice.

Cheers,
Marc


- - - - - - - - - - - - - - - - - -

Sent from my mobile device, please excuse spelling mistakes.


Marc Walther
Hydrologist
JProf Dr. rer. nat.

Helmholtz Centre for Environmental Research - UFZ
Department of Environmental Informatics
Permoserstraße 15, 04318 Leipzig, Germany

Technische Universität Dresden
Faculty of Environmental Sciences
Department of Hydrosciences
Institute for Groundwater Management
01062 Dresden

Visiting Address UFZ
Permoserstraße 15, 04318 Leipzig
Building 7.2, Room E110

Visiting Address TUD
Bergstr. 66, 01069 Dresden
Neubau Chemie 2. Bauabschnitt, CHE-BA2, Room E60

Phone +49 341 235 10 54
Fax +49 341 235 19 39
Mobile +49 178 334 18 19

Email marc.w...@ufz.de
Web http:/​/​www​.​ufz​.​de
Personal http:/​/​www​.​ufz​.​de/​index​.​php​?​en=​32239
ResGate http:/​/​www​.​researchgate​.​net/​profile/​Marc_Walther

Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
Registered Office: Leipzig
Registration Office: Amtsgericht Leipzig
Trade Register Nr. B 4703
Chairman of the Supervisory Board: MinR Wilfried Kraus
Scientific Director: Prof. Dr. Georg Teutsch
Administrative Director: Dr. Heike Graßmann

- - - - - - - - - - - - - - - - - -





On February 2, 2016 4:07:52 PM Georg Kosakowski <georg.ko...@psi.ch>
wrote:

Marc Walther

unread,
Feb 5, 2016, 12:42:31 PM2/5/16
to ogs-...@googlegroups.com, Georg Kosakowski
Strange... I answered long time ago, but the message is only popping up
now... Sorry, folks!

norihiro...@ufz.de

unread,
Feb 5, 2016, 1:58:14 PM2/5/16
to ogs-...@googlegroups.com, Georg Kosakowski
Marc, strangely Google thought your email could be spam and stopped it. They informed it to me today because I am a moderator of the mailing list. I added your email address to the white list so you email will never be held from now.

Regards,
Norihiro Watanabe
--
Sorry for a short message and any spelling errors. Sent from my mobile phone.

Marc Walther

unread,
Feb 5, 2016, 2:46:53 PM2/5/16
to ogs-...@googlegroups.com

OK, thanks!

Reply all
Reply to author
Forward
0 new messages