Installing Elmer in Ubuntu 14.04 using Cmake

Discussion about building and installing Elmer
mzenker
Posts: 1902
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by mzenker » 17 Jul 2017, 01:06

Hi Anil,

thanks for your hints. Mysteriously, after a reboot the problem is gone. So the fresh Elmer from launchpad works now.

Thank you!

Matthias

annier
Posts: 1111
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by annier » 17 Jul 2017, 17:38

Matthias,
Cheers.

Yours Sincerely,
Anil Kunwar
Anil Kunwar
Department of Materials Engineering, KU Leuven, Belgium

mzenker
Posts: 1902
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by mzenker » 19 Jul 2017, 04:27

Hi again,

to be sure that my Elmer installation from launchpad really works OK, I would like to run the tests. Is there a way to do this using the tests directory from the source tree? Of course I can do that manually, one by one, but can I somehow get the automated test run to work without having compiled from source?

Thanks,

Matthias

annier
Posts: 1111
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by annier » 19 Jul 2017, 12:45

Matthias,
the command ctest is based upon cmake based installation.
i do not have idea on how we do the testing. normally launchpad based installation of Elmer is usually perfect and uptodate.
perhaps, there may be a command in ubuntu to test the files for the elmer test.
i have never used it however.


Yours Sincerely,
Anil Kunwar
Anil Kunwar
Department of Materials Engineering, KU Leuven, Belgium

shubh_shinde
Posts: 19
Joined: 13 Aug 2017, 23:58
Antispam: Yes

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by shubh_shinde » 14 Aug 2017, 12:50

Hi all,
I am getting the following error during installation. I have verified that the gfortran is installed to its latest version.

Code: Select all

[ 66%] Linking Fortran shared library libelmersolver.so
/usr/bin/ld: /usr/local/lib/liblapack.a(dgetrf2.o): relocation R_X86_64_PC32 against symbol `dgetrf2_' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
fem/src/CMakeFiles/elmersolver.dir/build.make:2315: recipe for target 'fem/src/libelmersolver.so' failed
make[2]: *** [fem/src/libelmersolver.so] Error 1
CMakeFiles/Makefile2:737: recipe for target 'fem/src/CMakeFiles/elmersolver.dir/all' failed
make[1]: *** [fem/src/CMakeFiles/elmersolver.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Please suggest what is going wrong. This is my first time installation with Elmer.
Thanks and Sincerely,
Shubham

annier
Posts: 1111
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by annier » 28 Aug 2017, 17:46

Hi shubham,
1. As per my experience, cmake based elmer installation is an arts of optimizing the elmer utility as per our flavour and skills. Keep on trying and as per your error log, there is a linking error with some of the shared libraries of elmersolver. the main library pointed out by the log is/are lapack libraries- check their versions and path. so try ticking and unticking many options that come along with elmersolver in the cmake-gui. also, please try using new cmake build when you find the older one produces error during compilation.
2. The easiest way to install elmer in Ubuntu xx.yy version is by using launchpad. For elmer installation issues with launchpad in Ubuntu 17.04, please refer viewtopic.php?f=2&t=4413.


Yours Sincerely,
Anil Kunwar
Anil Kunwar
Department of Materials Engineering, KU Leuven, Belgium

Daniel_25
Posts: 9
Joined: 19 Nov 2018, 14:51
Antispam: Yes

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by Daniel_25 » 29 Nov 2018, 15:47

Hello:
Thanks for your instructions, but in my case, the installation don’t works. Let me explain. I use the method B, because the method A I don’t works, because when I’m in the step 4 and when I show the window for put make-gui and then click on configure and search the CMAKE_BUILD_TYPE don’t appears.
Captura de pantalla de 2018-11-29 13-42-29.png
(106.84 KiB) Not downloaded yet
So, I use the method B and all instalation is correct but when I search de ElmerGUI and edf don’t found, isn’t existed. And I can’t execute the ElmerGUI. Why pass?
I proved that viewtopic.php?f=2&t=3653 and pass the same, they don’t exist.

Thanks for help in advance

mzenker
Posts: 1902
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by mzenker » 29 Nov 2018, 16:44

Hi,

if you just want to use Elmer without modifying the code, you don't need to compile.
Have a look at this post: viewtopic.php?f=2&t=6158#p19786

HTH,

Matthias

annier
Posts: 1111
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by annier » 02 Dec 2018, 12:59

Daniel,
1. Those posts were written long ago and so , in recent OS or environment, things may be different.
2. I used to try with Method A, and if Cmake build type used to show up for me. Leaving the cmake build type = empty generally sets up the default parameters.
3. Currently I install elmer from launchpad / ppa repository (https://launchpad.net/~elmer-csc-ubuntu ... er-csc-ppa).
4. As suggested by Matthias for Ubuntu 18.04 OS, , if you are interested in using ElmerGUI for launchpad based installation , you have to install elmerfem-csc-eg package instead of elmerfem-csc package (viewtopic.php?f=2&t=6158#p19786). This post describes the procedure for Ubuntu 18.04 . In my Ubuntu 16.04 OS , elmerfem-csc package consists of both GUI and non-GUI features. What is your ubuntu version?

References:
1. https://github.com/ElmerCSC/elmerfem/wiki/Packages
2. viewtopic.php?f=2&t=5607

Yours Sincerely,
Anil Kunwar
Anil Kunwar
Department of Materials Engineering, KU Leuven, Belgium

Daniel_25
Posts: 9
Joined: 19 Nov 2018, 14:51
Antispam: Yes

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by Daniel_25 » 15 Dec 2018, 18:19

Hi,
Thanks for all, this method viewtopic.php?f=2&t=6158#p19786 works fast and without problems

Thanks for your help

Post Reply