Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How-to compile first beta of OpenViBE 2 on Linux Ubuntu 16.04 -- see http://openvibe.inria.fr/openvibe-2-0-soon-to-appear/

Instructions to compile OpenViBE 2.0.0 beta on Ubuntu 16.04

Get the sources: wget http://openvibe.inria.fr/pub/src/openvibe-beta-2.0.0-src.tar.xz

Uncompress: tar xvf openvibe-beta-2.0.0-src.tar.xz

Apply patch: patch -p0 < openvibe-2.0.0-beta_compile.patch

Install dependencies for the 3 modules:

Go to openvibe-2.0.0-beta/sdk/scripts/ and run linux-install_dependencies.pl

Go to openvibe-2.0.0-beta/designer/scripts/ and run linux-install_dependencies.pl

Go to openvibe-2.0.0-beta/extras/scripts/ and run linux-install_dependencies

Finally, to compile everything, run openvibe-2.0.0-beta/build.sh

The resuling files will be stored in dist subfolder. Go to openvibe-2.0.0-beta/dist/extras-Release/, and run as usual openvibe-acquisition-server.sh and openvibe-designer.sh, enjoy!

diff -ruN openvibe-2.0.0-beta/build.sh openvibe-2.0.0-beta_patch/build.sh
--- openvibe-2.0.0-beta/build.sh 2017-07-07 11:14:18.000000000 +0300
+++ openvibe-2.0.0-beta_patch/build.sh 2017-07-29 00:07:39.297886406 +0300
@@ -3,7 +3,7 @@
BuildOption=--release
base_dir=$(dirname "$(readlink -f "$0")")
build_dir_base="${base_dir}/build"
-install_dir_base= "${base_dir}/dist"
+install_dir_base="${base_dir}/dist"
dependencies_dir="${base_dir}/dependencies"
while [[ $# -gt 0 ]]; do
@@ -46,24 +46,24 @@
echo Building sdk
cd ${base_dir}/sdk/scripts
-./unix-build ${BuildOption} --build-dir ${build_dir_base}/sdk-${BuildType} --install-dir ${install_dir_base}/sdk-${BuildType} --dependencies-dir ${dependencies_dir} --build-unit --build-validation
-if [ $? -neq 0 ] ; then
+./unix-build --build-type ${BuildType} --build-dir ${build_dir_base}/sdk-${BuildType} --install-dir ${install_dir_base}/sdk-${BuildType} --dependencies-dir ${dependencies_dir} --build-unit --build-validation
+if [ $? -ne 0 ] ; then
echo "Error while building sdk"
exit $?
fi
echo Building designer
cd ${base_dir}/designer/scripts
-./unix-build ${BuildOption} --build-dir ${build_dir_base}/designer-${BuildType} --install-dir ${install_dir_base}/designer-${BuildType} --sdk ${install_dir_base}/sdk-${BuildType} --dependencies-dir ${dependencies_dir}
-if [ $? -neq 0 ] ; then
+./unix-build --build-type=${BuildType} --build-dir=${build_dir_base}/designer-${BuildType} --install-dir=${install_dir_base}/designer-${BuildType} --sdk=${install_dir_base}/sdk-${BuildType}
+if [ $? -ne 0 ] ; then
echo "Error while building designer"
exit $?
fi
echo Building extras
cd ${base_dir}/extras/scripts
-./linux-build ${BuildOption} --build-dir ${build_dir_base}/extras-${BuildType} --install-dir ${install_dir_base}/extras-${BuildType} --sdk ${install_dir_base}/sdk-${BuildType} --designer ${install_dir_base}/designer-${BuildType} --dependencies-dir ${dependencies_dir}
-if [ $? -neq 0 ] ; then
+./linux-build ${BuildOption} --build-dir ${build_dir_base}/extras-${BuildType} --install-dir ${install_dir_base}/extras-${BuildType} --sdk ${install_dir_base}/sdk-${BuildType} --designer ${install_dir_base}/designer-${BuildType}
+if [ $? -ne 0 ] ; then
echo "Error while building extras"
exit $?
fi
diff -ruN openvibe-2.0.0-beta/extras/plugins/processing/evaluation/src/box-algorithms/ovpCBoxAlgorithmROCCurve.cpp openvibe-2.0.0-beta_patch/extras/plugins/processing/evaluation/src/box-algorithms/ovpCBoxAlgorithmROCCurve.cpp
--- openvibe-2.0.0-beta/extras/plugins/processing/evaluation/src/box-algorithms/ovpCBoxAlgorithmROCCurve.cpp 2017-07-24 12:16:39.000000000 +0300
+++ openvibe-2.0.0-beta_patch/extras/plugins/processing/evaluation/src/box-algorithms/ovpCBoxAlgorithmROCCurve.cpp 2017-07-28 23:25:40.607324643 +0300
@@ -44,7 +44,7 @@
for(size_t i = 2; i < this->getStaticBoxContext().getSettingCount() ; ++i)
{
- CIdentifier l_oClassLabel = FSettingValueAutoCast(*this->getBoxAlgorithmContext(), i);
+ CIdentifier l_oClassLabel = CIdentifier(FSettingValueAutoCast(*this->getBoxAlgorithmContext(), i));
CString l_sClassName = FSettingValueAutoCast(*this->getBoxAlgorithmContext(), i);
m_oClassStimulationSet.insert(l_oClassLabel);
diff -ruN openvibe-2.0.0-beta/extras/scripts/linux-build openvibe-2.0.0-beta_patch/extras/scripts/linux-build
--- openvibe-2.0.0-beta/extras/scripts/linux-build 2017-07-29 00:05:50.603725793 +0300
+++ openvibe-2.0.0-beta_patch/extras/scripts/linux-build 2017-07-29 00:08:56.815419931 +0300
@@ -72,7 +72,7 @@
if [ ${ov_build_type} == Profile ]; then
cmake ${ov_script_dir}/.. -DCMAKE_CXX_FLAGS_RELWITHDEBINFO='-O2 -g -DNDEBUG -pg' -DCMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO='-pg' -DCMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO='-pg' -DCMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO='-pg' -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=${ov_install_dir}
else
- cmake ${ov_script_dir}/.. -DCMAKE_BUILD_TYPE=${ov_build_type} -DCMAKE_INSTALL_PREFIX=${ov_install_dir}
+ cmake ${ov_script_dir}/.. -DCMAKE_BUILD_TYPE=${ov_build_type} -DCMAKE_INSTALL_PREFIX=${ov_install_dir} -DOPENVIBE_SDK_PATH=${ov_sdk_dir} -DDESIGNER_SDK_PATH=${ov_designer_dir}
fi
diff -ruN openvibe-2.0.0-beta/sdk/scripts/unix-build openvibe-2.0.0-beta_patch/sdk/scripts/unix-build
--- openvibe-2.0.0-beta/sdk/scripts/unix-build 2017-07-28 11:59:14.000000000 +0300
+++ openvibe-2.0.0-beta_patch/sdk/scripts/unix-build 2017-07-28 20:44:46.077114654 +0300
@@ -130,11 +130,11 @@
fi
# Update directories only if they point to the default one
-if [[ ! -v $ov_build_dir ]]; then
+if [[ ! -v ov_build_dir ]]; then
ov_build_dir="${ov_script_dir}/../../openvibe-sdk-build/build-${ov_build_type}"
fi
-if [[ ! -v $ov_install_dir ]]; then
+if [[ ! -v ov_install_dir ]]; then
ov_install_dir="${ov_script_dir}/../../openvibe-sdk-build/dist-${ov_build_type}"
fi
if [[ ! -v ov_cmake_test_output ]]; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment