1. openbci_python github库
2.根据REANME来配置环境
3.遇到的问题
OSError: /usr/local/lib/python2.7/dist-packages/pylsl/liblsl64.so: cannot open shared object file: No such file or directory
3.1.恰好有官网解决方法,按照这个步骤就可以解决。
sudo apt install cmake gcc
git clone https://github.com/sccn/liblsl#这个不行,需要到github找之前的库liblsl-1.13.0-b7
cd liblsl
mkdir build
cd build
cmake ..
cmake --build . --target install
3.2. 完成后发现 liblsl64.so
这个shared object files 在 liblsl/build/install/lib/LSL/.
接着将LSL下的文件都复制到 ~/.local/lib/python3.6/site-packages/pylsl/ 文件里面,这两个liblsl64.so和liblsl64.so.1.13.0都复制过去。
cp -rf /home/johnny/Desktop/sleepeegnet/liblsl-1.13.0-b7/build/install/LSL/lib/. /usr/local/lib/python2.7/dist-packages/pylsl
3.3.成功解决问题。
4.问题分析
出现该问题的原因是,在NVIDIA Jetson Nano上使用的Linux是基于ARM的,而不是Intel / AMD的x64的,但是pip安装的都是x64的,所以版本不兼容。需要在本地(Nano)上编译后再复制到pip安装的库下。
如何查看liblsl64.so的文件性质?
file /usr/local/lib/python2.7/dist-packages/pylsl/liblsl64.so 即可。
可以看到是X86-64
覆盖安装后
ARM arrch64