duartej / postproc-alibava

Utilities for post-processing data obtained with the ALIBAVA DAQ system.
0 stars 0 forks source link

Error when compiling the package #22

Closed duartej closed 6 years ago

duartej commented 6 years ago

COPIED-PASTED from A.Garcia Alonso (@andregarciaa)

When installing the package Postproc-Alibava, in order to access to the method which calculates the time window, (get_time_window()), the steps to follow are the following, once the repository has been cloned to local path:

$ mkdir build
$ cd build
$ cmake ..
$ make install

However, when executing last line, the next error is obtained:

Scanning dependencies of target IOManagersAlibava [ 6%] Building CXX object src/CMakeFiles/IOManagersAlibava.dir/IOManager.cxx.o cc1plus: error: unrecognized command line option "-std=c++11" make[2]: [src/CMakeFiles/IOManagersAlibava.dir/IOManager.cxx.o] Error 1 make[1]: [src/CMakeFiles/IOManagersAlibava.dir/all] Error 2 make: *** [all] Error 2

duartej commented 6 years ago

Please read the instructions (README), it is explicitly explained the case you have mentioned, @andregarciaa

duartej commented 6 years ago

It seems that you are not using the GCC compiler, launch in your build directory:

cmake ../ -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=gcc