Project

General

Profile

Actions

Support #648

closed

C++11

Added by Tariq Mahmoud about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/27/2016
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

hello,

i have installed the latest version of cbmroot. As usual, before installation I entered the following commands:
module use /cvmfs/it.gsi.de/modulefiles/
module load compiler/gcc/4.8.4
export CXX=g++
export SIMPATH=/cvmfs/fairroot.gsi.de/gcc_4.8.4/fairsoft/jul15p2
export FAIRROOTPATH=/cvmfs/fairroot.gsi.de/gcc_4.8.4/fairroot/v-15.07_fairsoft-jul15p2

when executing cmake i get:
-15.07_fairsoft-jul15p2/share/fairbase/cmake
CMake Error at CMakeLists.txt:68 (Message):
The used C++ compiler (/usr/bin/g++) does not support C++11. CbmRoot can
only be compiled with compilers supporting C++11. Please install such an
compiler.

What is new and should be done?

Actions #1

Updated by Florian Uhlig about 6 years ago

  • Status changed from New to In Progress

Hi,

I tried to run cmake myself on lxsub20 with the following commands and it ran without problems

module use /cvmfs/it.gsi.de/modulefiles/
module load compiler/gcc/4.8.4
export SIMPATH=/cvmfs/fairroot.gsi.de/gcc_4.8.4/fairsoft/jul15p2
export FAIRROOTPATH=/cvmfs/fairroot.gsi.de/gcc_4.8.4/fairroot/v-15.07_fairsoft-jul15p2
cd build/
cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DUSE_PATH_INFO=TRUE ..

Which CbmRoot version have you used?

Actions #2

Updated by Tariq Mahmoud about 6 years ago

hi,
now it works: obviously one has to run the cmake with the options specified by you. On the installation homepage they are not specified!.
https://redmine.cbm.gsi.de/projects/cbmroot/wiki/InstallCbmRootFarmC11
it would be kind if you (anybody) can change that.
thanks

Florian Uhlig wrote:

Hi,

I tried to run cmake myself on lxsub20 with the following commands and it ran without problems

[...]

Which CbmRoot version have you used?

Actions #3

Updated by Tariq Mahmoud about 6 years ago

  • Status changed from In Progress to Resolved

use:

cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DUSE_PATH_INFO=TRUE ..

Actions #4

Updated by Florian Uhlig about 6 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

These additional parameters are not needed. It also works with

cmake ..
Actions

Also available in: Atom PDF