sccn / lsl_archived

Multi-modal time-synched data transmission over local network
242 stars 134 forks source link

install ubuntu 16.04 #285

Closed pdeman closed 6 years ago

pdeman commented 6 years ago

Hi,

I tried to build labstreamingplayer.

but I get this error:

labstreaminglayer/LSL/liblsl/external/lslboost/thread/once.hpp:38:18: error: no matching function for call to ‘call_once(lslboost::once_flag&, void (*&)())’ call_once(flag,func);

LSL/liblsl/CMakeFiles/lsl.dir/build.make:62 : la recette pour la cible « LSL/liblsl/CMakeFiles/lsl.dir/src/api_config.cpp.o » a échouée make[2]: [LSL/liblsl/CMakeFiles/lsl.dir/src/api_config.cpp.o] Erreur 1 CMakeFiles/Makefile2:119 : la recette pour la cible « LSL/liblsl/CMakeFiles/lsl.dir/all » a échouée make[1]: [LSL/liblsl/CMakeFiles/lsl.dir/all] Erreur 2

any idea ?

tstenner commented 6 years ago

Just for completeness, could you add which commands you ran (e.g. cmake -DLSLAPPS_LabRecorder=1 -D...)?

I could reproduce the problem on Ubuntu 16.04, but backporting 2e45f0b1518795f076a201cfe50950215f3183de from my testing branch fixes it.

pdeman commented 6 years ago

I just created the build folder. ccmake .. configure generate and then make as said in the INSTALL.md

tstenner commented 6 years ago

That looks fine, could you test my change (either git pull origin master if you cloned the repository or download the zip file again) and try it again?

pdeman commented 6 years ago

it seems to have worked. but I don't have any software to run in "labstreaminglayer/Apps/BrainProducts/ActiChamp" is that normal ?

and if I try to run pylsl: cd labstreaminglayer/LSL/liblsl-Python/pylsl python pylsl.py Traceback (most recent call last): File "pylsl.py", line 1189, in raise RuntimeError("library " + libname + " was not found - make sure " RuntimeError: library liblsl64.so was not found - make sure that it is on the search path (e.g., in the same folder as pylsl.py).

so it seems the install didn't work perfectly

tstenner commented 6 years ago

As far as I know the ActiChamp app doesn't run on Linux, because it requires a Windows-only driver (and it isn't ported to CMake yet).

For the pylsl package, you'll have to install it separately (python setup.py install --user from the lsl-Python directory).

dmedine commented 6 years ago

Yeah, unfortunately ActiChamp only runs on Windows.

On 4/6/2018 10:04 AM, Tristan Stenner wrote:

As far as I know the ActiChamp app doesn't run on Linux, because it requires a Windows-only driver (and it isn't ported to CMake yet).

For the |pylsl| package, you'll have to install it separately (|python setup.py install --user| from the |lsl-Python| directory).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sccn/labstreaminglayer/issues/285#issuecomment-379179601, or mute the thread https://github.com/notifications/unsubscribe-auth/ADch7rqwzBICUcWgvt6w-yjtjl16wHl4ks5tlyF-gaJpZM4TIWWY.

dmedine commented 6 years ago

One thing you can try is to run a virtual machine (running Windows) on your Ubuntu device. There is also a virtualization tool that I have heard good things about called Docker (https://www.docker.com/what-container). I've never tried it, but maybe it could be used to run a Windows driver on a Linux machine.

On 4/6/2018 9:28 AM, pdeman wrote:

it seems to have worked. but I don't have any software to run in "labstreaminglayer/Apps/BrainProducts/ActiChamp" is that normal ?

and if I try to run pylsl: cd labstreaminglayer/LSL/liblsl-Python/pylsl python pylsl.py Traceback (most recent call last): File "pylsl.py", line 1189, in raise RuntimeError("library " + libname + " was not found - make sure " RuntimeError: library liblsl64.so was not found - make sure that it is on the search path (e.g., in the same folder as pylsl.py).

so it seems the install didn't work perfectly

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sccn/labstreaminglayer/issues/285#issuecomment-379171624, or mute the thread https://github.com/notifications/unsubscribe-auth/ADch7lF9SljNF8O21IVZXg8FdCLmB7uyks5tlxkXgaJpZM4TIWWY.

pdeman commented 6 years ago

not sure to want to use windows even through docker or virtual machine. windows is a nightmare to use. I'll see if I can find another solution. thanks for the pylsl installation help.

dmedine commented 6 years ago

You can always just run your ActiChamp via the LSL connector on a tablet then pipe the stream into your Linux box and do all the work with the data there... or use the RDAClient in Linux and stream directly from Recorder (though there is a higher latency penalty if you do it this way).

On 4/6/2018 10:27 AM, pdeman wrote:

not sure to want to use windows even through docker or virtual machine. windows is a nightmare to use. I'll see if I can find another solution. thanks for the pylsl installation help.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sccn/labstreaminglayer/issues/285#issuecomment-379184881, or mute the thread https://github.com/notifications/unsubscribe-auth/ADch7uKh7H9EqCI_PP3yEGlSMkys5-tGks5tlybwgaJpZM4TIWWY.

pdeman commented 6 years ago

yes I think I'll borrow a windows computer from someone and send everything to linux computers

pdeman commented 6 years ago

I have this error when I run python pylsl: Traceback (most recent call last): File "pylsl.py", line 1192, in lib = CDLL(libpath) File "/usr/lib/python2.7/ctypes/init.py", line 362, in init self._handle = _dlopen(self._name, mode) OSError: liblsl64.so: cannot open shared object file: No such file or directory

I copied liblsl64.so liblsl64.so.1.4.0 in the same folder as pylsl.py ("labstreaminglayer/LSL/liblsl-Python/build/lib.linux-x86_64-2.7/pylsl") is that normal ?

pdeman commented 6 years ago

I tried as well using pip install.

and when I do python, import pylsl I have the same error: import pylsl Traceback (most recent call last): File "", line 1, in File "/home/neuropsynov/.local/lib/python2.7/site-packages/pylsl-1.10.4-py2.7.egg/pylsl/init.py", line 2, in from .pylsl import IRREGULAR_RATE, DEDUCED_TIMESTAMP, FOREVER, cf_float32,\ File "/home/neuropsynov/.local/lib/python2.7/site-packages/pylsl-1.10.4-py2.7.egg/pylsl/pylsl.py", line 1189, in raise RuntimeError("library " + libname + " was not found - make sure " RuntimeError: library liblsl64.so was not found - make sure that it is on the search path (e.g., in the same folder as pylsl.py).

and locate liblsl64 /usr/local/lib/python2.7/dist-packages/pylsl/liblsl64.so

import seems to look in site-packages and the .so is in dist-packages. is that normal ?

I copied liblsl64.so liblsl64.so.1.4.0 in the LSL/liblsl-Python/build/lib.linux-x86_64-2.7/pylsl directory but I still get the same error

pdeman commented 6 years ago

solved by uninstalling the one installed with pip. there was a conflict