Users:HowToUseCarat/InstallationLinux
Line 92: | Line 92: | ||
#set(CARAT_ROOT "C:/carat") | #set(CARAT_ROOT "C:/carat") | ||
− | #set(LIB_BOOST_INCLUDE_DIR "C:/carat/libs/ | + | #set(LIB_BOOST_INCLUDE_DIR "C:/carat/libs/boost_1_55_0") |
− | #set(LIB_BOOST_DIR "C:/carat/libs/ | + | #set(LIB_BOOST_DIR "C:/carat/libs/boost_1_55_0/boost") |
#set(LIB_MKL_DIR "C:/Program Files (x86)/Intel/Composer XE 2011 SP1/mkl") | #set(LIB_MKL_DIR "C:/Program Files (x86)/Intel/Composer XE 2011 SP1/mkl") | ||
</pre> | </pre> | ||
− | With the paths used in this installation guid the block should look like: | + | With the paths used in this installation guid the block should look like (don't forget to remove the #): |
<pre> | <pre> | ||
#============================== | #============================== | ||
Line 109: | Line 109: | ||
set(LIB_BOOST_DIR "~/software/carat/libs/boost_1_63_0/boost") | set(LIB_BOOST_DIR "~/software/carat/libs/boost_1_63_0/boost") | ||
#set(LIB_MKL_DIR "C:/Program Files (x86)/Intel/Composer XE 2011 SP1/mkl") | #set(LIB_MKL_DIR "C:/Program Files (x86)/Intel/Composer XE 2011 SP1/mkl") | ||
+ | </pre> | ||
+ | |||
+ | === Set up the project === | ||
+ | |||
+ | Navigate to the "build" directory. This is important so that all files are created here: | ||
+ | <pre> | ||
+ | ~/software/carat/build | ||
+ | </pre> | ||
+ | Use ccmake to set up the project: | ||
+ | <pre> | ||
+ | ccmake ../src/ | ||
+ | </pre> | ||
+ | |||
+ | Press "c" to configure the project. | ||
+ | |||
+ | <pre> | ||
+ | BUILD_EXECUTABLE ON | ||
+ | BUILD_NX_PLUG_IN OFF | ||
+ | BUILD_RHINO_PLUG_IN_SDK4 OFF | ||
+ | BUILD_RHINO_PLUG_IN_SDK5 OFF | ||
+ | BUILD_SHARED_LIB OFF | ||
+ | BUILD_STATIC_LIB OFF | ||
+ | CFD_OPT OFF | ||
+ | CMAKE_BUILD_TYPE Release | ||
+ | CMAKE_INSTALL_PREFIX /usr/local | ||
+ | ENABLE_CHOLMOD OFF | ||
+ | ENABLE_PREC_SOLVER_LIB OFF | ||
+ | EXTENSIVE_BENCHMARKS OFF | ||
+ | MODULE_DESIGN ON | ||
+ | MODULE_FORM_AND_CUT ON | ||
+ | MODULE_GUI OFF | ||
+ | MODULE_OPTIMIZATION ON | ||
+ | MODULE_REPORT ON | ||
+ | USE_32bit OFF | ||
+ | USE_BOOST_LOGGING OFF | ||
+ | USE_COSIMULATION OFF | ||
+ | USE_FLANN_64BIT OFF | ||
+ | USE_INTEL_COMP OFF | ||
+ | USE_MKL OFF | ||
+ | USE_MPP OFF | ||
+ | USE_OPENCASCADE OFF | ||
+ | USE_OPENMP OFF | ||
+ | USE_TRILINOS OFF | ||
</pre> | </pre> |
Revision as of 10:04, 11 January 2017
This page shows how Carat++ can be compiled under a Linux environment. The guide was tested with the following software versions:
- Ubuntu 16.04 LTS
- gcc 5.4.0
- git 2.7.4
- CMake 3.5.1
- Boost 1.63.0
- MKL ????
Contents |
Linux Version
In this installation guide Ubuntu 16.04 LTS is used.
Carat++ installation was tested also under the following Linux distributions:
- Ubuntu 16.04 LTS
- Ubunut 14.04 LTS
- TODO please add more if you tested it there
Compiler
The compiler used in this guide is gcc 5.4.0.
Git
Git is used as version control system. It is needed to download the Carat++ source code. Check which version is installed:
git --version
If it is not installed yet, install the latest version:
sudo apt-get install git
Get the source code
To get the Carat++ source code navigate to the directory where you want to store the code, e.g.:
~/software
Download the code with git. You need to log in wit your LDAP login:
git clone [USERNAME]@129.187.141.105:/repos/carat.git
Create directory for build and libraries
Navigate to the carat root directory, previously downloaded:
mkdir build
Create a directory "build" and a directory "libs":
mkdir libs
CMake
Install the latest CMake version
sudo apt-get install cmake
It is recommended to use a tool (in this guide ccmake is used) to set all the compiler flags defined in the CMakeLists.txt:
sudo apt-get install ccmake
Boost
Get the latest boost library from https://boost.org. Download and unpack it. Copy the unpacked folder with the version number into the "carat/libs" directory.
Compile Carat
User Settings
First of all it is necessary to set some paths depending on where you stored the carat source and libs.
Navigate to the Carat++ source directory and make a copy of the "cmake_personal_input.template" to "cmake_personal_input.dat".
~/software/carat/src cp cmake_personal_input.template cmake_personal_input.dat
In this file you find the following part with commented lines where you have to set your user defined paths:
#============================== # set directories paths #============================== # BASIC INSTALLATION #set(CARAT_ROOT "C:/carat") #set(LIB_BOOST_INCLUDE_DIR "C:/carat/libs/boost_1_55_0") #set(LIB_BOOST_DIR "C:/carat/libs/boost_1_55_0/boost") #set(LIB_MKL_DIR "C:/Program Files (x86)/Intel/Composer XE 2011 SP1/mkl")
With the paths used in this installation guid the block should look like (don't forget to remove the #):
#============================== # set directories paths #============================== # BASIC INSTALLATION set(CARAT_ROOT "~/software/carat") set(LIB_BOOST_INCLUDE_DIR "~/software/carat/libs/boost_1_63_0") set(LIB_BOOST_DIR "~/software/carat/libs/boost_1_63_0/boost") #set(LIB_MKL_DIR "C:/Program Files (x86)/Intel/Composer XE 2011 SP1/mkl")
Set up the project
Navigate to the "build" directory. This is important so that all files are created here:
~/software/carat/build
Use ccmake to set up the project:
ccmake ../src/
Press "c" to configure the project.
BUILD_EXECUTABLE ON BUILD_NX_PLUG_IN OFF BUILD_RHINO_PLUG_IN_SDK4 OFF BUILD_RHINO_PLUG_IN_SDK5 OFF BUILD_SHARED_LIB OFF BUILD_STATIC_LIB OFF CFD_OPT OFF CMAKE_BUILD_TYPE Release CMAKE_INSTALL_PREFIX /usr/local ENABLE_CHOLMOD OFF ENABLE_PREC_SOLVER_LIB OFF EXTENSIVE_BENCHMARKS OFF MODULE_DESIGN ON MODULE_FORM_AND_CUT ON MODULE_GUI OFF MODULE_OPTIMIZATION ON MODULE_REPORT ON USE_32bit OFF USE_BOOST_LOGGING OFF USE_COSIMULATION OFF USE_FLANN_64BIT OFF USE_INTEL_COMP OFF USE_MKL OFF USE_MPP OFF USE_OPENCASCADE OFF USE_OPENMP OFF USE_TRILINOS OFF
Whos here now: Members 0 Guests 0 Bots & Crawlers 1 |