openyou / emokit

Open source driver for accessing raw data from the Emotiv EPOC EEG headset
http://www.openyou.org
Other
521 stars 235 forks source link

compilation error #277

Open darcosion opened 6 years ago

darcosion commented 6 years ago

Hello i've tried to compile emokit in an Ubuntu 16.04 and i have this error :

build$ cmake ..
-- Link with: libedk.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/emotiv/build
build$ make
[  5%] Built target AverageBandPowers
[ 11%] Built target EmostateLogger
[ 22%] Built target FacialExpression
[ 25%] Building CXX object examples_basic/C++/GyroData/CMakeFiles/Gyro.dir/main.cpp.o
In file included from /usr/include/c++/5/thread:35:0,
                 from /home/user/emotiv/examples_basic/C++/GyroData/main.cpp:45:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support \
  ^
/home/user/emotiv/examples_basic/C++/GyroData/main.cpp:50:12: error: ‘std::unique_ptr’ has not been declared
 using std::unique_ptr;
            ^
/home/user/emotiv/examples_basic/C++/GyroData/main.cpp:91:1: error: ‘unique_ptr’ does not name a type
 unique_ptr<void, void(*)(DataHandle)> hMotionData(IEE_MotionDataCreate(), &IEE_
 ^
/home/user/emotiv/examples_basic/C++/GyroData/main.cpp: In function ‘void showGyro(bool)’:
/home/user/emotiv/examples_basic/C++/GyroData/main.cpp:95:35: error: ‘hMotionData’ was not declared in this scope
     IEE_MotionDataUpdateHandle(0, hMotionData.get());
                                   ^
examples_basic/C++/GyroData/CMakeFiles/Gyro.dir/build.make:62 : la recette pour la cible « examples_basic/C++/GyroData/CMakeFiles/Gyro.dir/main.cpp.o » a échouée
make[2]: *** [examples_basic/C++/GyroData/CMakeFiles/Gyro.dir/main.cpp.o] Erreur 1
CMakeFiles/Makefile2:250 : la recette pour la cible « examples_basic/C++/GyroData/CMakeFiles/Gyro.dir/all » a échouée
make[1]: *** [examples_basic/C++/GyroData/CMakeFiles/Gyro.dir/all] Erreur 2
Makefile:83 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2