autoconf vs CMake

Discussion about building and installing Elmer
Post Reply
pgiffuni
Posts: 3
Joined: 10 Sep 2014, 19:02
Antispam: Yes

autoconf vs CMake

Post by pgiffuni »

Hello;

I was able to build elmerfem on FreeBSD after a lot of trouble using autoconf, and a lot less trouble using CMake. One of the things that we noticed is that both packages are actually different:

The autoconf version builds meshgen2d and elmer post: both of these seem to be deprecated for the CMake target.

We also noticed that with CMake the package wants to build the parallel version so it uses mpich2 and parpack and it also tries to use arpack-ng instead of the regular arpack.

It is all pretty undocumented and confusing.

While here, I have two patches.
This works around some nasty configuration issues:
https://people.freebsd.org/~pfg/patches ... igure.diff
It is not very clean and I had to define a lot of environment variables but it worked.

This is required to build with tcl86:
https://people.freebsd.org/~pfg/patches ... tcl86.diff

Hopefully you can merge at least the last one to your tree soon so I don't plan to keep them along indefinitely.

Regards,

Pedro.
raback
Site Admin
Posts: 4823
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: autoconf vs CMake

Post by raback »

Hi Pedro,

Yes, we are in the transition process from autoconf to CMake. Some depricated stuff will indeed be dropped. There will probably be a separate ElmerPost installer.

The CMake transition has required some disruptive changes and the work is being carried out at github. The most up-to-date cmake version is to be found at:
https://github.com/ElmerCSC/elmerfem/tree/devel

Did you create the patches againts this one? I'm sorry for the confusion but as said this is a transition process and the resources are rather limited.

-Peter
pgiffuni
Posts: 3
Joined: 10 Sep 2014, 19:02
Antispam: Yes

Re: autoconf vs CMake

Post by pgiffuni »

Hi Peter;

Thanks for the tip: I will update my port to the latest CMake version.

I used the sourceforge site (which is still being updated). My changes only apply to the autoconf version and your are probably only interested in the tcl stuff.

Regards,

Pedro.
Post Reply