Last active
September 3, 2016 15:02
-
-
Save jfrey-xx/25fad802c9d92ae418804da1d99eb083 to your computer and use it in GitHub Desktop.
Patch OpenViBE 1.2.2 to run it on a Rasbperry with Raspbian 8 (Jessie), unleash brain-computer interfaces on a 35$ computer. Use "patch -p1 < ov-1.2.2_pi2-raspbian8.patch" on the sources http://openvibe.inria.fr/downloads/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 4bb6846..980efc7 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -100,7 +100,7 @@ ELSEIF(UNIX) | |
ENDIF(OPENMP_FOUND) | |
# Switch -msse2 enables vectorization. Remove if your CPU/compiler doesn't support it. | |
- SET(OV_EIGEN_FLAGS "-msse2") | |
+ # SET(OV_EIGEN_FLAGS "-msse2") | |
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall ${OV_EIGEN_FLAGS}") | |
# This ENV var is needed to locate our custom IT++ on Linux | |
SET(ENV{PKG_CONFIG_PATH} "${OV_CUSTOM_DEPENDENCIES_PATH}/lib/pkgconfig") | |
diff --git a/applications/demos/CMakeLists.txt b/applications/demos/CMakeLists.txt | |
index 74f4e1d..b52fbe1 100644 | |
--- a/applications/demos/CMakeLists.txt | |
+++ b/applications/demos/CMakeLists.txt | |
@@ -1,4 +1,5 @@ | |
# Add all the subdirs as projects of the named branch | |
-OV_ADD_PROJECTS("APPLICATIONS_DEMOS") | |
+# Disable for Pi at the moment | |
+#OV_ADD_PROJECTS("APPLICATIONS_DEMOS") | |
diff --git a/common/src/main.cpp b/common/src/main.cpp | |
index 1b79219..7817486 100644 | |
--- a/common/src/main.cpp | |
+++ b/common/src/main.cpp | |
@@ -32,8 +32,8 @@ int main(void) | |
BOOST_STATIC_ASSERT(sizeof(int16)!=sizeof(int8)); | |
#ifndef TARGET_OS_Windows | |
- BOOST_STATIC_ASSERT(sizeof(float80)!=sizeof(float64)); | |
- BOOST_STATIC_ASSERT(sizeof(float80)!=sizeof(float32)); | |
+// BOOST_STATIC_ASSERT(sizeof(float80)!=sizeof(float64)); | |
+// BOOST_STATIC_ASSERT(sizeof(float80)!=sizeof(float32)); | |
#endif | |
BOOST_STATIC_ASSERT(sizeof(float64)!=sizeof(float32)); | |
#endif | |
diff --git a/scripts/linux-install_dependencies b/scripts/linux-install_dependencies | |
index 8e31f5a..dcde752 100755 | |
--- a/scripts/linux-install_dependencies | |
+++ b/scripts/linux-install_dependencies | |
@@ -409,7 +409,8 @@ if [[ ! -e "$ov_target_folder_hit/no-native-packages.hit" ]]; then | |
if [[ $is_raspbian -eq 1 ]]; then | |
# hack the correct versions here... | |
echo " Raspbian detected, guessing specific set of packages..." | |
- ov_lib_ogre_dev=libogre-dev | |
+ #ov_lib_ogre_dev=libogre-dev | |
+ ov_lib_ogre_dev=libogre-1.9-dev | |
ov_lib_libboost_chrono_dev= | |
fi | |
ov_ubuntu_packages="wget doxygen make automake autoconf cmake unzip gcc g++ libgtk2.0-dev libglade2-dev gfortran libgsl0-dev libexpat1-dev libreadline-dev libzzip-dev libtool libxaw7-dev libpcre3-dev libfreeimage-dev libglu1-mesa-dev libalut-dev libvorbis-dev libncurses5-dev python-dev python-numpy libeigen3-dev $ov_lib_ogre_dev libcegui-mk2-dev libois-dev libboost-dev libboost-thread-dev liblua5.1-0-dev libboost-regex-dev libboost-filesystem-dev $ov_lib_libboost_chrono_dev libitpp-dev sqlite libsqlite0-dev libfftw3-dev" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment