-
Notifications
You must be signed in to change notification settings - Fork 16
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
ImportError: libaruco.so.3.0: cannot open shared object file: No such file or directory #17
Comments
According to the tip in Test, I added the build library location |
The generated wrapper library |
Hi @fehlfarbe , thanks for your attention and tips. I tried to add the ArUco lib location |
Mh that's really weird...what's the output of Maybe just recompile the wrapper?! Does installation via pip ( |
THX for your continued support. Under the installation path-- Then, check the Clearly, the aruco lib path has been included in After the above checking, the issue is still around. During another attempt of reinstallation, output log of the terminal is : OK, I meant to leave it here for now. Thanks for your kind help again! |
I am running an Ubuntu 16.04 machine with python 3.6.4, Anaconda 5.0.1. A virtual environment named py36 was created with Anaconda for my project. I have completed the installation following the Installation Python3 (experimental). In order to accommodate the system environment, setup.py was edited as follows:
from distutils.core import setup, Extension
sourcefiles = ['aruco_wrap.cxx']
aruco_module = Extension('_aruco',
sources=sourcefiles,
language="c++",
extra_compile_args=["-std=c++11", "-Wall", "-fopenmp", "-Wunused-variable"],
include_dirs=["/usr/local/include/opencv2", "/home/*/anaconda3/envs/py36/include/eigen3", "."],
libraries=["opencv_core", "opencv_imgproc", "opencv_calib3d", "opencv_highgui", "aruco"],
library_dirs=["/usr/local/lib","/home/*/programs/aruco304/install/lib","/home/*/anaconda3/envs/py36/lib"])
setup(name='aruco', version='3.0', author="""ArUco: Rafael Muñoz Salinas, Python wrappers: Marcus Degenkolbe""", description="""ArUco Python wrappers""", ext_modules=[aruco_module], py_modules=["aruco"], )
After the installation, the corresponding .so and .py files (titled as _aruco.cpython-36m-x86_64-linux-gnu.so and aruco.py) were generated in the path--
/home/*/anaconda3/envs/py36/lib/python3.6/site-packages
. When the program was acitvated, an issue appeared:ImportError: libaruco.so.3.0: cannot open shared object file: No such file or directory
In fact, no file named as libaruco.so.3.0 was generated during the installation. I tried to make a link file by
ln -s path/to/virtual/environment/_aruco.cpython-36m-x86_64-linux-gnu.so path/to/virtual/environment/libaruco.so.3.0
. But it didn't work.The text was updated successfully, but these errors were encountered: