Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RodrigoPrior/3c949c43d7fe4beab88e to your computer and use it in GitHub Desktop.
Save RodrigoPrior/3c949c43d7fe4beab88e to your computer and use it in GitHub Desktop.
Como compilar openvibe 1.1.x com o emotiv EmotivResearch_2.0.0.20 no ubuntu15.x
# Objetivo
Configurar o openvibe para compilar os drivers do emotiv epoc.
Obs.: todas estas etapas dependem da compra e instalação do Emotiv SDK Ubuntu.
## Referencias
http://openvibe.inria.fr/how-to-connect-emotiv-epoc-with-openvibe/
https://github.com/tbronchain/openemo
## TODO
Executar:
$ cd /home/<user>/EmotivResearch_2.0.0.20/
$ cp doc/examples_Qt/example5/edk.h .
$ cp doc/examples_Qt/example5/edkErrorCode.h .
$ cp doc/examples_Qt/example5/elsClient.h .
Modificar o arquivo:
<openvibe_dir>/cmake-modules/FindThirdPartyEmotivAPI.cmake
Conforme o patch abaixo:
$ git diff
diff --git a/cmake-modules/FindThirdPartyEmotivAPI.cmake b/cmake-modules/FindThirdPartyEmotivAPI.cmake
index bfbde57..d42193e 100644
--- a/cmake-modules/FindThirdPartyEmotivAPI.cmake
+++ b/cmake-modules/FindThirdPartyEmotivAPI.cmake
@@ -27,7 +27,7 @@ FIND_PATH(PATH_EmotivAPI edk.h PATHS ${PATH_Candidates} ${OV_CUSTOM_DEPENDENCIE
IF(PATH_EmotivAPI)
MESSAGE(STATUS " Found Emotiv API...")
INCLUDE_DIRECTORIES(${PATH_EmotivAPI})
* FIND_LIBRARY(LIB_EmotivAPI edk PATHS "${PATH_EmotivAPI}/../lib" "${PATH_EmotivAPI}/../../lib" "${PATH_EmotivAPI}/../../../lib")
- FIND_LIBRARY(LIB_EmotivAPI edk PATHS "${PATH_EmotivAPI}/lib" "${PATH_EmotivAPI}/../lib" "${PATH_EmotivAPI}/../../lib" "${PATH_EmotivAPI}/../../../lib")
IF(LIB_EmotivAPI)
MESSAGE(STATUS " [ OK ] lib ${LIB_EmotivAPI}")
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIB_EmotivAPI} )
## Compilação
### Build
$ ./linux-build | grep Emot
-- Found Emotiv API...
-- [ OK ] lib /home/<user>/EmotivResearch_2.0.0.20/lib/libedk.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment