I'm trying to build OV on Ubuntu 20.04 (Focal Fossa), as i saw on the forum that it was feasible.
After dealing with install-dependencies issues (had to manually install git), i'v got somme errors during build.sh installation :
Code: Select all
CMake Deprecation Warning at CMakeLists.txt:3 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:5 (cmake_policy):
The OLD behavior for policy CMP0042 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:6 (cmake_policy):
The OLD behavior for policy CMP0043 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:7 (cmake_policy):
The OLD behavior for policy CMP0045 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- META OPTIONS :
-- Flag_VerboseOutput = 'OFF'
-- OV_DISPLAY_ERROR_LOCATION = 'ON'
-- OV_PACKAGE = 'OFF'
-- BUILD_VALIDATION_TEST = 'ON'
-- BUILD_UNIT_TEST = 'ON'
-- BUILD_DOCUMENTATION = 'OFF'
-- Found Eigen
-- Found Lua library
-- Found TinyXML2 library
-- Found VRPN library
CMake Warning at CMake/Utilities.cmake:65 (message):
No tags found, set version to 0.0.0
Call Stack (most recent call first):
sdk/CMakeLists.txt:10 (set_version)
-- BUILDING VERSION OpenViBE SDK: 0.0.0.0 Branch : unknown~0
-- Appending compilation flags...
-- Compilation flags used at source root:
-- COMPILE_DEFINITIONS = 'OV_CMAKE_PATH_ROOT="/home/michael/Documents/openvibe-3.4.0-src/dist/Release";OV_CMAKE_PATH_BIN="/home/michael/Documents/openvibe-3.4.0-src/dist/Release/bin";OV_CMAKE_PATH_LIB="/home/michael/Documents/openvibe-3.4.0-src/dist/Release/lib";OV_CMAKE_PATH_DATA="/home/michael/Documents/openvibe-3.4.0-src/dist/Release/share/openvibe";OV_CONFIG_SUBDIR="OpenVIBE-3.4.0";OV_PROJECT_NAME="OpenVIBE_SDK";OV_VERSION_MAJOR="0";OV_VERSION_MINOR="0";OV_VERSION_PATCH="0"'
-- CMAKE_CXX_FLAGS = ' -fopenmp -Wall -msse2'
-- CMAKE_CXX_FLAGS_RELEASE = '-O3 -DNDEBUG'
-- CMAKE_CXX_FLAGS_DEBUG = '-g'
-- Found dl...
-- Found pthread...
-- Found dl...
-- Found pthread...
-- Found Python3: /usr/bin/python3.8 (found version "3.8.10") found components: Interpreter Development
-- Found Python3 at /usr/bin/python3.8
CMake Warning at CMake/Utilities.cmake:65 (message):
No tags found, set version to 0.0.0
Call Stack (most recent call first):
designer/CMakeLists.txt:31 (set_version)
-- BUILDING VERSION Designer: 0.0.0.0 Branch : unknown~0. Based on OpenViBE SDK: 0.0.0.0
-- Building OpenViBE Designer [openvibe] Version : 0.0.0 unknown~0
-- Now building openvibe-plugins-designer-advanced-vis (unknown~0)
-- Now building openvibe-plugins-designer-simple-vis (unknown~0)
-- Now building mensia-advanced-visualization 3.4.0 (unknown~0)
-- Now building openvibe-lib-adv-viz-test-renderer 3.4.0 (unknown/0)
-- Now building openvibe-visualization-toolkit 3.4.0 (unknown~0)
-- Compilation flags used at source root:
-- COMPILE_DEFINITIONS = 'OV_CMAKE_PATH_ROOT="/home/michael/Documents/openvibe-3.4.0-src/dist/Release";OV_CMAKE_PATH_BIN="/home/michael/Documents/openvibe-3.4.0-src/dist/Release/bin";OV_CMAKE_PATH_LIB="/home/michael/Documents/openvibe-3.4.0-src/dist/Release/lib";OV_CMAKE_PATH_DATA="/home/michael/Documents/openvibe-3.4.0-src/dist/Release/share/openvibe";OV_PROJECT_NAME="Extras";OV_VERSION_MAJOR="3";OV_VERSION_MINOR="4";OV_VERSION_PATCH="0";OV_CONFIG_SUBDIR="OpenVIBE-3.4.0";TARGET_OS_Linux_Debian;TARGET_ARCHITECTURE_x64;TARGET_OS_Linux;TARGET_COMPILER_GCC'
-- CMAKE_CXX_FLAGS = ' -fopenmp -Wall -msse2'
-- CMAKE_CXX_FLAGS_RELEASE = '-O3 -DNDEBUG'
-- CMAKE_CXX_FLAGS_DEBUG = '-g'
-- Note: Disabling Matlab plugin compilation by default
-- Found OpenViBE module Geometry... /home/michael/Documents/openvibe-3.4.0-src/extras/modules/geometry/include
-- Found liblsl...
-- [ OK ] Third party lib /home/michael/Documents/openvibe-3.4.0-src/dependencies/lib/liblsl.so
-- Found GTK+...
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libatk-1.0.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libcairo.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libgio-2.0.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libpango-1.0.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libgobject-2.0.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libharfbuzz.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libfontconfig.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libfreetype.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libgthread-2.0.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libglib-2.0.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libz.so
-- Note: /home/michael/Documents/openvibe-3.4.0-src/extras/plugins/processing/matlab has been skipped by setting SKIP_PLUGINS_PROCESSING_MATLAB
-- Found fftw3 includes...
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libfftw3.so
-- Found OpenViBE module TCPTagging... /home/michael/Documents/openvibe-3.4.0-src/extras/modules/tcptagging/include
-- Found ALUT...
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libalut.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libopenal.so
-- Found VORBIS...
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libvorbisfile.so
-- Found X11...
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libX11.so
-- Found pthread...
-- Found pthread...
-- Found openvibe-contributions...
-- FAILED to find Emotiv API (optional driver)
-- FAILED to find MindMedia NeXus device dll (optional driver)
-- FAILED to find MCS device SDK (optional driver)
-- FAILED to find Mensia Acquisition driver (optional driver)
-- FAILED to find Micromed device dlls (optional driver)
-- Skipped Enobio3G, its work in progress.
-- Skipped ThinkGear API for Neurosky MindSet, only available on windows.
-- FAILED to find TMSi device dll (optional driver)
-- Found rt...
-- FAILED to find EEGO API (optional driver) - cmake looked in '/home/michael/Documents/openvibe-3.4.0-src/dependencies', skipping EEGO.
-- FAILED to find gtec gMobiLabPlusAPI... (optional driver)
-- : If it should be found, see that 'gmobilabapi.so' link exists on the fs, with no numeric suffixes in the filename.
-- : e.g. do 'cd /usr/lib/ ln -s libgmobilabplusapi.so.1.12 libgmobilabplusapi.so'
-- FAILED to find gtec gUSBAmpAPI Linux... (optional)
-- : If it should be found, see that 'libgusbampapi.so.1.14' link exists on the fs, with no further nemeric suffixes in the filename.
-- : e.g. do 'cd /usr/lib/ ln -s libgusbampapi.so.1.14'. See gtec-bcilab/README for details.
-- FAILED to find Mitsar device dll (optional driver)
-- Gtec Unicorn device API (optional driver): No Linux support
-- Found OpenGL...
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libGLU.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libGL.so
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libz.so
-- Found rt...
-- Found Python3: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found version "3.8") found components: Development
-- Found Python 3 at /usr/lib/x86_64-linux-gnu/libpython3.8.so
-- Note: /home/michael/Documents/openvibe-3.4.0-src/extras/contrib/plugins/processing/python2 has been skipped by setting SKIP_CONTRIB_PLUGINS_PROCESSING_PYTHON2
-- Found it++...
-- [ OK ] Third party lib /usr/lib/x86_64-linux-gnu/libitpp.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/michael/Documents/openvibe-3.4.0-src/build
[1/744] Linking CXX shared library sdk/modules/fs/libopenvibe-module-fs.so.3.4.0
FAILED: sdk/modules/fs/libopenvibe-module-fs.so.3.4.0
: && /usr/bin/c++ -fPIC -fopenmp -Wall -msse2 -O3 -DNDEBUG -shared -Wl,-soname,libopenvibe-module-fs.so.3 -o sdk/modules/fs/libopenvibe-module-fs.so.3.4.0 sdk/modules/fs/CMakeFiles/openvibe-module-fs.dir/src/Files.cpp.o sdk/modules/fs/CMakeFiles/openvibe-module-fs.dir/src/IEntryEnumerator.cpp.o /usr/lib/x86_64-linux-gnu/libboost_filesystem.a && :
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libboost_filesystem.a(operations.o): relocation R_X86_64_PC32 against symbol `_ZN5boost6system6detail10cat_holderIvE24system_category_instanceE' can not be used when making a shared object; recompilé avec -fPIC
/usr/bin/ld : échec de l'édition de liens finale : bad value
collect2: error: ld returned 1 exit status
[14/744] Building CXX object sdk/plugins/processing/classification/CMakeFiles/openvibe-plugins-sdk-classification.dir/src/algorithms/CAlgorithmClassifierLDA.cpp.o
../sdk/plugins/processing/classification/src/algorithms/CAlgorithmClassifierLDA.cpp: In member function ‘virtual bool OpenViBE::Plugins::Classification::CAlgorithmClassifierLDA::train(const OpenViBE::Toolkit::IFeatureVectorSet&)’:
../sdk/plugins/processing/classification/src/algorithms/CAlgorithmClassifierLDA.cpp:224:30: warning: comparison of integer expressions of different signedness: ‘Eigen::Index’ {aka ‘long int’} and ‘const size_t’ {aka ‘const long unsigned int’} [-Wsign-compare]
224 | for (Eigen::Index i = 0; i < nCols; ++i) {
| ~~^~~~~~~
../sdk/plugins/processing/classification/src/algorithms/CAlgorithmClassifierLDA.cpp:225:35: warning: comparison of integer expressions of different signedness: ‘Eigen::Index’ {aka ‘long int’} and ‘const size_t’ {aka ‘const long unsigned int’} [-Wsign-compare]
225 | for (Eigen::Index j = i + 1; j < nCols; ++j) {
| ~~^~~~~~~
../sdk/plugins/processing/classification/src/algorithms/CAlgorithmClassifierLDA.cpp:237:29: warning: comparison of integer expressions of different signedness: ‘Eigen::Index’ {aka ‘long int’} and ‘const size_t’ {aka ‘const long unsigned int’} [-Wsign-compare]
237 | for (Eigen::Index i = 0; i < nCols; ++i) { if (eigenValues(i) >= tolerance) { eigenValues(i) = 1.0 / eigenValues(i); } }
| ~~^~~~~~~
ninja: build stopped: subcommand failed.
Error while building OpenViBE
Thanks a lot for your kind help
Cheers and have happy hollydays