antoche / openvibe

OpenVibe with emokit driver
GNU Lesser General Public License v2.1
32 stars 9 forks source link

Can't manage to build the emokit driver #1

Open Raymax opened 12 years ago

Raymax commented 12 years ago

Hi,

I received my EPOC consumer headset recently, and, because I am very interested about using OpenViBE, I recently discovered Emokit and also your driver for OpenViBE.

For one week now, I'm spending time to manage to build OpenViBE with your driver, but after building OpenViBE, the driver doesn't appear in the driver list of the acquisition server! I tried to put some extra libraries and tried different ways, but still nothing appear! And because I am not experimented in code, even if I know few things, I 'm getting really stuck!

Have you got an idea about what is wrong? What would I have forgotten?

For information, I'm building with Visual Studio 2010 compiler, on Windows Seven Ultimate 64.

Also, I was wondering why you don't provide directly the binary files?

Thanks a lot in advance for your help! :)

antoche commented 12 years ago

Hi,

If you look at the build log you should notice that the driver wasn't built. That's simply because I haven't written the windows part of the cmake file. I don't build on windows so I don't know what should go in there, but it should be straightforward for you. Feel free to contribute this bit back.

I don't provide binaries because there'd be a ton of different platform to support and this is a developer tool anyway.

Cheers, A.

Raymax commented 12 years ago

Hi,

Thanks for this information. I will try to write the windows part of the cmake file. I tried this week end anyway to build OpenViBE with emokit driver under Ubuntu, but I have the same result! Emokit driver doesn't appear in the acquisition server driver list! Do I need to write the linux part of the cmake file as well? Or have I forgotten something else to do before compiling?

Thanks a lot for your help!

antoche commented 12 years ago

Compiling should work under linux, provided you have qdot's emokit library. I haven't tried with the latest emokit so it's possible it requires changes. In any case, the build log should tell you what's going wrong.

On Mon, Sep 24, 2012 at 10:33 AM, Raymax notifications@github.com wrote:

Hi,

Thanks for this information. I will try to write the windows part of the cmake file. I tried this week end anyway to build OpenViBE with emokit driver under Ubuntu, but I have the same result! Emokit driver doesn't appear in the acquisition server driver list! Do I need to write the linux part of the cmake file as well? Or have I forgotten something else to do before compiling?

Thanks a lot for your help!

— Reply to this email directly or view it on GitHubhttps://github.com/antoche/openvibe/issues/1#issuecomment-8803808.

Raymax commented 12 years ago

Hi antoche,

So I have tried to compile openvibe again with all the libraries (I think) required to emokit under Ubuntu. But after building, I still get acquisition-server without emokit driver in the list. I would like to read the build log but I can't manage to find it?

Thanks for your help! :)

Raymax commented 12 years ago

Hi antoche,

I finally managed to save the log somewhere and watched the problem that I solved. But now I'm getting a new problem which crashes the build:

[ 52%] Building CXX object CMakeFiles/OpenViBE-acquisition-server-dynamic.dir/src/emokit/ovasCConfigurationEmokit.o /home/raymax/Documents/openvibe/openvibe-applications/acquisition-server/trunc/src/emokit/ovasCDriverEmokit.cpp: In member function ‘virtual OpenViBE::boolean OpenViBEAcquisitionServer::CDriverEmokit::loop()’: /home/raymax/Documents/openvibe/openvibe-applications/acquisition-server/trunc/src/emokit/ovasCDriverEmokit.cpp:178:36: error: ‘emokit_get_next_frame’ was not declared in this scope make[2]: * [CMakeFiles/OpenViBE-acquisition-server-dynamic.dir/src/emokit/ovasCDriverEmokit.o] Error 1 make[2]: * Waiting for unfinished jobs.... make[1]: * [CMakeFiles/OpenViBE-acquisition-server-dynamic.dir/all] Error 2 make: * [all] Error 2

I noticed that you were speaking about this on this page: https://github.com/openyou/emokit/issues/17

It seems emokit.h needs to be modified in order to add the "emokit_get_next_frame" declaration? What should I add exactly?

Sorry if I am not experimented at all in code.

Thanks a lot in advance for your help!

Raymax

Raymax commented 12 years ago

Hi,

I've finally managed to understand a bit more the code, I've fixed Emokit and built it, and now the driver works very well in OpenViBE with the consumer headset under linux.

Emokit driver code with my fix is available here: https://github.com/Raymax/emokit

Other important reason to make the code available, qdot has uploaded recently a new version of his code and this new Emokit is not compatible anymore with your driver.

Regards,

Raymax

antoche commented 12 years ago

Great!

On Sun, Nov 4, 2012 at 1:09 PM, Raymax notifications@github.com wrote:

Hi,

I've finally managed to understand a bit more the code, I've fixed Emokit and built it, and now the driver works very well in OpenViBE with the consumer headset under linux.

Emokit driver code with my fix is available here: https://github.com/Raymax/emokit

Other important reason to make the code available, qdot has uploaded recently a new version of his code and this new Emokit is not compatible anymore with your driver.

Regards,

Raymax

— Reply to this email directly or view it on GitHubhttps://github.com/antoche/openvibe/issues/1#issuecomment-10045841.

toomsalpha commented 10 years ago

hello antoche

i'm trying to build your openvibe version including emokit, in order to use the epoc headset as a part of an interactive dance project.

i plan to use it on a windows platform. which is supposed to work straight... but it actually doesn't. and because i'm use other video and graphic software simultaneously who won't run under linux, i must stay on windows.

are you still available to give some help on this project ? i don't understand that much about code, but the problem seems to come from Cmakelist.

however i did buil the openvibe source code provided by inria without any problem (following their instruction )

maybe their is a simple tweak possible to mix both process ?

hope you'll read this msg coming from ages !

best

tom

antoche commented 10 years ago

Hi tom, Sorry I've very busy at the moment and don't even have time for my own pet projects. It sounds like you should be able to get it working by documenting yourself on cmake or finding someone knowledgeable who's got time to help you, Best of luck, A.

On Mon, Jan 6, 2014 at 9:30 AM, toomsalpha notifications@github.com wrote:

hello antoche

i'm trying to build your openvibe version including emokit, in order to use the epoc headset as a part of an interactive dance project.

i plan to use it on a windows platform. which is supposed to work straight... but it actually doesn't. and because i'm use other video and graphic software simultaneously who won't run under linux, i must stay on windows.

are you still available to give some help on this project ? i don't understand that much about code, but the problem seems to come from Cmakelist.

however i did buil the openvibe source code provided by inria without any problem (following their instruction )

maybe their is a simple tweak possible to mix both process ?

hope you'll read this msg coming from ages !

best

tom

— Reply to this email directly or view it on GitHubhttps://github.com/antoche/openvibe/issues/1#issuecomment-31614566 .

toomsalpha commented 10 years ago

i allready tried to document myself as much as i can, but documentation is pretty poor about this i was wondering if some advancement on this project have been publish since this time.

i'll try to do my best and find some news friend. if by any chance you get few second between two busy time, or even a tips to help let me know....

in any case : thank a lot for this job, it wiil be very usefull when i'll get it work ! i'll let you know...

best regards

tom

ronvohra commented 10 years ago

Hi, this issue does not seem to be fixed but I'm sure there's a simple fix like you suggested. I'm working on some EEG research and we're considering the Emotiv EPOC headset ($299, consumer edition). Do you have any idea if the headsets shipping right now still work with emokit (and thus your driver)?

Thanks, cheers!

toomsalpha commented 10 years ago

hi sreudianflip,

the only things i'm sure is the epoc headset absolutly doesn't work out of the box with emokit. i'm trying since 1 month now to get it work and still stuck...

I get stuck on the issues describe by raymax in this post, and even using his emokit version, it still return an error at this step. just like you, i'm sure the simple way to fix my problem exist cause others people did it. if you find something, let me know !

best wishes....

Raymax commented 10 years ago

Hi SreudianFlip, hi toomsalpha,

What OS are you trying to build openvibe on? I never really manage to build it properly under Windows as my knowledge in code is quite limited, especially C++. However, the linux version should work, at least my version (tested under Ubuntu). Maybe antoche uploaded a new version of his openvibe that is not compatible anymore!? What does the error say? I'll try again in my side. If indeed it does not work anymore with the current antoche's openvibe, then I'll upload my version.

Regards, Maxime

toomsalpha commented 10 years ago

hi Maxime,

thank for reading us, and bringing help !

i'm trying to build on linux ubuntu 12.04. I think i had succesfully instaled emokit, but i when i try to build openvibe (antoche version) it return this error :

Linking CXX executable OpenViBE-acquisition-server-dynamic /usr/local/lib/libemokit.a(emokit.c.o): dans la fonction « emokit_create »: emokit.c:(.text+0x49): référence indéfinie vers « hid_init » /usr/local/lib/libemokit.a(emokit.c.o): dans la fonction « emokit_get_count »: emokit.c:(.text+0xa0): référence indéfinie vers « hid_enumerate » emokit.c:(.text+0xd1): référence indéfinie vers « hid_free_enumeration » /usr/local/lib/libemokit.a(emokit.c.o): dans la fonction « emokit_identify_device »: emokit.c:(.text+0x138): référence indéfinie vers « hid_get_feature_report » /usr/local/lib/libemokit.a(emokit.c.o): dans la fonction « emokit_open »: emokit.c:(.text+0x298): référence indéfinie vers « hid_enumerate » emokit.c:(.text+0x2bd): référence indéfinie vers « hid_open_path » emokit.c:(.text+0x2e9): référence indéfinie vers « hid_free_enumeration » emokit.c:(.text+0x33b): référence indéfinie vers « hid_get_serial_number_string » /usr/local/lib/libemokit.a(emokit.c.o): dans la fonction « emokit_close »: emokit.c:(.text+0x383): référence indéfinie vers « hid_close » /usr/local/lib/libemokit.a(emokit.c.o): dans la fonction « emokit_read_data »: emokit.c:(.text+0x3c6): référence indéfinie vers « hid_read » collect2: erreur: ld a retourné 1 code d'état d'exécution make[2]: * [OpenViBE-acquisition-server-dynamic] Erreur 1 make[1]: * [CMakeFiles/OpenViBE-acquisition-server-dynamic.dir/all] Erreur 2 make: *\ [all] Erreur 2

this issues has already been reported here, but the post seems older than this one, http://openvibe.inria.fr/forum/viewtopic.php?f=5&t=4190&p=13496&hilit=emokit#p13496

as you said maybe version change since one year ago, tell me if you manage to make it work, if you do, it probably mean that i made something wrong, which is possible, cause i'm not sure about what you explain on the readme about the linux platform specifics (udev rules, hidraw,...) and so, i'll probably just need few explanation more to do it the right way... actually, i challenge myseflf with this project, cause i had no clue about this kind of programmer stuff before starting this. so i did my best until this point, but cannot go farther by myself...

thanks a lot for support, waiting for good news !

thomas

toomsalpha commented 10 years ago

hi maxime

just to let you know that a get it work !the antoche's openvibes and your version of emokit work fine for me since this morning. but i'm sorry, because of may low skill level, a can't really explain how i did. i'have been helped by a friend of friend , i restarted from zero deleting everything and centralize documentation and follow them carrefuly.

the problem was probably just my lake of skill... but i finally did it !

anyway, thanks to you and antoche for sharing this stuff.

best regards,

tom

emise commented 9 years ago

Has anyone managed to build this version of OpenVibe in Windows? I'm just not sure how to modify the cmake file FindThirdPartyEmokit.cmake to work in windows.