Warning: Undefined array key 1 in /home/np29546/public_html/elmerice/wiki/inc/auth.php on line 78

Warning: Cannot modify header information - headers already sent by (output started at /home/np29546/public_html/elmerice/wiki/inc/auth.php:78) in /home/np29546/public_html/elmerice/wiki/inc/auth.php on line 431

Warning: Cannot modify header information - headers already sent by (output started at /home/np29546/public_html/elmerice/wiki/inc/auth.php:78) in /home/np29546/public_html/elmerice/wiki/inc/actions.php on line 38
compilation:compilationcmake [Elmer/Ice Wiki]

Warning: Undefined array key -1 in /home/np29546/public_html/elmerice/wiki/inc/html.php on line 1458

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
compilation:compilationcmake [2015/04/07 07:56]
tzwinger [Building Elmer/Ice]
compilation:compilationcmake [2016/05/25 10:46] (current)
tzwinger [Building Elmer/Ice]
Line 1: Line 1:
 ====== Compilation with Cmake ====== ====== Compilation with Cmake ======
-**As a prerequisite to use Elmer/Ice package, you need to have Elmer installed on your computer.** If it is not the case, have a look on the quick guide on [[https://www.csc.fi/web/elmer/sources-and-compilation|Sources and compilation]] page. The  [[http://www.elmerfem.org/elmerwiki/index.php?title=Compilation_and_Installation|elmerfem Wiki page]] contains in-deep information.+
  
 ===== Download ===== ===== Download =====
 Elmer/Ice can be retrieved through the whole Elmer package via [[https://github.com/elmercsc/elmerfem|GitHub]]. From the shell of a system that has git installed, the command  Elmer/Ice can be retrieved through the whole Elmer package via [[https://github.com/elmercsc/elmerfem|GitHub]]. From the shell of a system that has git installed, the command 
 <code> git clone git://www.github.com/ElmerCSC/elmerfem -b elmerice elmerice</code> <code> git clone git://www.github.com/ElmerCSC/elmerfem -b elmerice elmerice</code>
-creates a local copy of the repository, directly linking the local elmerice branch to the one of the repository on GitHub (this seems to be necessary in less recent git-versions).+creates a local copy of the repository, directly linking the local elmerice branch to the one of the repository on GitHub (this seems to be necessary in less recent git-versions). Mind that in some occasions you might have to use the ''https'' instead of the ''git'' protocol.
 Please, bear in mind that there are different branches in this repository. The Elmer development branch, ''devel'', usually does not contain the latest Elmer/Ice developments. In order to be sure to have an Elmer/Ice development that doesn't interfere with the main Elmer branch development, we created a branch named ''elmerice''. In order to check, which branch one is in, one can give the command Please, bear in mind that there are different branches in this repository. The Elmer development branch, ''devel'', usually does not contain the latest Elmer/Ice developments. In order to be sure to have an Elmer/Ice development that doesn't interfere with the main Elmer branch development, we created a branch named ''elmerice''. In order to check, which branch one is in, one can give the command
 <code> git status</code> <code> git status</code>
Line 24: Line 24:
   * (GNU) Make   * (GNU) Make
   * cmake   * cmake
-In order to have Elmer/Ice automatically built alongside Elmer, add the following option to the cmake build command:+In order to have Elmer/Ice automatically build alongside Elmer, add the following option to the cmake build command:
 <code>-DWITH_ElmerIce:BOOL=TRUE</code> <code>-DWITH_ElmerIce:BOOL=TRUE</code>
 The following script can act as a guideline to compile Elmer with Elmer/Ice included: The following script can act as a guideline to compile Elmer with Elmer/Ice included:
Line 35: Line 35:
 TIMESTAMP=$(date +"%m-%d-%y") TIMESTAMP=$(date +"%m-%d-%y")
 ELMER_REV="Elmer_devel_${TIMESTAMP}" ELMER_REV="Elmer_devel_${TIMESTAMP}"
-ELMERSRC="/path/to/Elmer/Source/elmerfem"+ELMERSRC="/path/to/Elmer/Source/elmerice"
 BUILDDIR="$ELMERSRC/builddir" BUILDDIR="$ELMERSRC/builddir"
 IDIR="/usr/local/$ELMER_REV" IDIR="/usr/local/$ELMER_REV"
compilation/compilationcmake.1428393374.txt.gz ยท Last modified: 2015/04/07 07:56 by tzwinger
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0