-
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
ld: file not found: @rpath/libquadmath.0.dylib for architecture arm64 on MacBook Air M1 #48
Comments
Hey, unfortunately I have never worked with Apple computers so my knowledge here is very limited. Some suggestions:
If you only want to detect some aruco markers/boards I can recommend to use the built in aruco detector of OpenCV's contrib module which works out of the box (but doesn't support special features like fractal markers). |
Hi!
Your suggestion about using OpenCV is good, but it can't be capable to detect a single marker in my case. At the same time compiled aruco utils are capable to detect a single marker. That is why I want to compile wrapper. |
I've been seeing this issue since Homebrew upgraded to GCC 12 and trying to build codes that link against libgfortran. For some reason the RPATH entries don't seem to work when linked against downstream libraries: $ otool -l /opt/homebrew/opt/gcc/lib/gcc/current/libgfortran.5.dylib | grep -i -A2 RPATH
name @rpath/libquadmath.0.dylib (offset 24)
time stamp 2 Wed Dec 31 19:00:02 1969
current version 1.0.0
--
name @rpath/libgcc_s.1.1.dylib (offset 24)
time stamp 2 Wed Dec 31 19:00:02 1969
current version 1.1.0
--
cmd LC_RPATH
cmdsize 32
path @loader_path (offset 12) The workaround I found was to run: $ install_name_tool -add_rpath /opt/homebrew/opt/gcc/lib/gcc/current /opt/homebrew/opt/gcc/lib/gcc/current/libgfortran.5.dylib Unfortunately, the install tool change invalidates the code signature, which means that sometimes (I'm not sure exactly when) fortran-based applications mysteriously crash with signal 9 during dyld load: the crash log shows EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid)). Restoring the shared library fixes this issue. The mysterious crash showed up for me when rebuilding openmpi during the configure stage, and building openblas during the test stage. I'm not sure what the correct answer is, but it's definitely not an issue with python-aruco. |
I tried the above workaround and was seeing the signal 9 crash for every execution of any Fortran-based program. They all crashed with |
Oh yeah, I found that out the hard way myself. I also got around it with codesigning. |
Hi!
I get an error
ld: file not found: @rpath/libquadmath.0.dylib for architecture arm64
on MacBook Air M1 when do themake
command to build the Python wrapper for aruco library.I find libquadmath.0.dylib at two location:
When I check for arch shows
arm64
as need.lipo /opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/current/libquadmath.0.dylib -archs
lipo /opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/12/libquadmath.0.dylib -archs
What I'm doing wrong?
The text was updated successfully, but these errors were encountered: