Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined symbol: lsl_library_info (missing from compiled liblsl32armv7l.so) #336

Open
dxjones opened this issue Aug 14, 2018 · 7 comments

Comments

@dxjones
Copy link

dxjones commented Aug 14, 2018

After installing the ARM version of the liblsl32.so library to work on the Raspberry Pi 3 B+, we get this error message:

AttributeError: /usr/local/lib/python2.7/dist-packages/pylsl/liblsl32.so: undefined symbol: lsl_library_info

I am wondering if lsl_library_info() function was added recently (within the past year), so the ARM library needs to be recompiled from the updated source.

If that is the case, I would appreciate guidance on how to compile liblsl32.so on a Raspberry Pi.

From what I have heard, it may take 3 hours, ... so I am hoping to get some help in the process, so it will be successful the first time.

Any help or advice appreciated.

@tstenner
Copy link
Collaborator

tstenner commented Aug 15, 2018

First, install the build environment (see here; short: install g++ / clang++, CMake, and optionally git). Then, clone the liblsl repository or download and unzip the archive.

In the downloaded folder, do

  • mkdir build; cd build
  • cmake -DLSL_LSLBOOST_PATH=lslboost ..
  • time cmake --build . --target install

@tstenner
Copy link
Collaborator

To speed things up, you could try a branch with some compilation speed optimizations and/or install ninja beforehand (add -G Ninja to the first cmake invocation)

@tstenner
Copy link
Collaborator

See also sccn/liblsl#2

@cboulay
Copy link
Collaborator

cboulay commented Aug 17, 2018

Please test the .so I attached to a comment on sccn/liblsl#2

@tstenner
Copy link
Collaborator

From what I have heard, it may take 3 hours

On a plain 3B without overclocking and a slow SD card it takes about 13 minutes, but you have to limit the build to 3 concurrent processes. A deb package for Raspbian is available at the releases page

@cboulay
Copy link
Collaborator

cboulay commented Aug 17, 2018

Great. Can you please add this link to the PR which is where I have been sending?

Also, can you test the lib I built? I hope to include it in pylsl on pypi. I can use your .so file but I would like to be able to generate it on the fly when needed.

@tstenner
Copy link
Collaborator

I'm currently out of the country with only my smartphone at hand, so I can't do anything before next week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants