fehlfarbe / python-aruco

Python wrappers for ArUco library
Other
66 stars 16 forks source link

cannot find -lacuro #27

Closed Nillda closed 6 years ago

Nillda commented 6 years ago

Hi, I am trying to install acuro on my RasPi3 and after installing everything I've encountered a problem saying; /usr/bin/ld: cannot find -laruco collect2: error: ld returned 1 exit status error: command 'arm-linux-gnueabihf-g++' failed with exit status 1 while performing the $ ./swigbuild.sh python3. I have tried installing both acuro 3.x and 2.x and the error was always the same. Do you have any idea what could be causing this?

fehlfarbe commented 6 years ago

Is libaruco.so in /usr/lib/ or /usr/local/lib? Try sudo ldconfig and rerun ./swigbuild.sh python3.

Nillda commented 6 years ago

It's in neither of those for whatever reason. I will try to download and install acuro3 once again

Nillda commented 6 years ago

I have just noticed, when cmaking acuro3 I've been using cmake .. instead of the recommended cmake .. -DCMAKE_INSTALL_PREFIX=<pathToInstall> and make -j1 install instead of make -j4 install tho that's because my RPi can't handle -j4 and crashes. Can this be the cause?

Nillda commented 6 years ago

Updating on my situation here. I've managed to install everything and have libaruco.so /usr/local/lib, I also have acuro.py in /usr/local/lib/python3.5/dist-packages. What I don't understand tho is why I keep getting ImportError: No module named 'acuro'. So I've tried pip installing it for python2.7, now pip freeze says I have acuro v.3.0.4.1 but again, when I try to import it I get the same import error. I do have OpenCV 3.3.0 installed and am able to import it in both python3.5 and 2.7. I've kinda ran out of ideas on what to try next, any suggestion?

fehlfarbe commented 6 years ago

Hm that's weird. Some ideas:

Nillda commented 6 years ago

Actually it's not weird. I am just a degenerate who spent two days importing acuro instead of aruco. I still get some import error (ImportError: /usr/local/lib/python2.7/dist-packages/_aruco.so: undefined symbol: _ZN5aruco9MarkerMap15convertToMetersEf), but I chose not to use aruco at all in my project and instead go with finding plates with a haar cascade, read the numbers on it and perform some action based on those. Yes, it's not as good solution as acuro, but since the deadline is the next week I don't really have any time to waste. Thanks for all your help tho and hopefully I will be able to revisit your project some time in the future

fehlfarbe commented 6 years ago

Always use autocomplete to prevent those mistakes :laughing: MarkerMap is part of ArUco 3...maybe it's still linked to ArUco 2.

Unfortunally the license plate detection is behind a paywall but maybe this blog can help you: https://gurus.pyimagesearch.com/lesson-sample-segmenting-characters-from-license-plates/