Error loading FTDI dylib on Mac OSX - macos

I developed an application in Xojo that uses a third party library to control a device. It works on one mac, but then when I try to run it on the other it gives me the following error:
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Library not loaded: /usr/local/lib/libftd2xx.1.2.2.dylib
Referenced from: /Users/USER/Downloads/*/libuFCoder.dylib
Reason: no suitable image found. Did find:
/usr/local/lib/libftd2xx.1.2.2.dylib: stat() failed with errno=62
/usr/local/lib/libftd2xx.1.2.2.dylib: stat() failed with errno=62
The Macs are both updated with the latest OSX El Capitan, and have the FTDI drivers installed. Any help would be appreciated.

I have installed the drivers on El Capitan and it worked for me, even with an absolute path with Xojo 2012.21. Try reinstalling the D2XX 1.2.2 driver in /usr/local/lib (as instructed in the ReadMe file) and remove all old "libftd2xx" files.
Also remember you need to install D2xxHelper for the driver to work properly on El Capitan.
To check if the uFCoder library properly links against libftd2xx, open the Terminal, type "otool -L <path to the uFCoder lib>"; the 2nd line should start with "/usr/local/lib/libftd2xx.1.2.2.dylib".
HTH

Related

Symbol not found: curl_mime_init in macOS 10.3 (high Sierra.)

I have built a .framework in mac using Xcode. In the framework i use Libcurl, to handel APIs. One of the APIs uses curl_mime_init to send a file. This framework work perfectly fine in MacOS 10.15 and above. However if fails to work in MacOs lesser than 10.15.
While i make the file upload. i get the following error in the crash report.
Dyld Error Message:
Symbol not found: _curl_mime_init
Referenced from: /Applications/Adobe InDesign 2020/*/BasicExternalObject.framework/BasicExternalObject (which was built for Mac OS X 11.3)
Expected in: /usr/lib/libcurl.4.dylib
I did some digging and found that curl version shipped on macOS 10.14 and lower has curl 7.54.0 (x86_64-apple-darwin18.0) libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1 However curl_mime_init was Added in version 7.56.0.
Later i updated my curl from 7.54 to 7.70 and still found the issue to persist.
I confirmed it by running curl -V and it was pointing to the updated version
I am stuck here. Is there a way to solve this. Or does it have something to do with the OS.

cannot run gdb on mac's terminal even after codesign

I'm trying to install gdb on my Mac. I downloaded it with brew and code signed it according to the instructions on https://sourceware.org/gdb/wiki/BuildingOnDarwin
However, when I run gdb in the terminal, it still doesn't work and output the following error message:
dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.6.dylib
Referenced from: /usr/local/bin/gdb
Reason: image not found
Trace/BPT trap: 5
Does anyone know what it means? My Mac version is 10.11.5, by the way
I ran into the same issue on macOS 10.11.6, I'm guessing (and this is just speculation; I don't actually know how Homebrew works) that Homebrew installed a pre-compiled version of gdb which depended on a library that existed on the machine it was compiled with, but did not exist on my machine.
At any rate, I was able to get a working version of gdb by downloading & unzipping version 7.12 (8.1 failed to compile on my machine) from http://ftp.gnu.org/gnu/gdb/gdb-7.12.tar.gz, then compiling & installing with (IIRC) the commands:
./configure
make
sudo make install
I blogged about this and the subsequent steps (getting the executable code-signed so that macOS would allow it to debug other processes, etc) here: http://prust.github.io/posts/2018-02-24-interactively-debugging-c-in-sublime-text-3.html
I get this problem too. And I find solution in https://qiita.com/yoshixj/items/698d94337ca447e9b9de
Since we don't have /usr/local/opt/mpfr/lib/libmpfr.6.dylib
we can simply install it. Use this command:
brew install gawk
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.zshrc
I had the same error message when running gdb after installing it from Homebrew (gdb v8.1) on a Mac OS X El Capitan v10.11.6. However, installing it via Homebrew using its Python binary solved the issue:
brew install gdb --with-python
Beaware that this may take some time, since you'd be compiling gdb from scratch. After it's done, you still need to create a certificate and codesign gdb.

Terminal error in opening program

I am on OS X 10.8.5 and when and I am trying to open a program Multiwfn via terminal and receive this error:
s229-153:~ brianlevandowski$ /Users/brianlevandowski/Desktop/Multiwfn ; exit;
dyld: Library not loaded: /usr/OpenMotif-2.1.32-22i/lib/libXm.3.dylib
Referenced from: /Users/brianlevandowski/Desktop/Multiwfn
Reason: image not found
Trace/BPT trap: 5
logout
[Process completed]
You need to install (or reinstall) OpenMotif. Their website appears to be here: http://www.opengroup.org/openmotif
Edit:
I get the feeling, even if you get Multiwfn running, it won't be stable. It relies on OpenMotif, whose website implies they gave up development in the OS X 10.4 era. Also the author writes "I cannot guarantee that Linux and Mac OS X versions [of Multiwfn] are as robust as Windows version, since all of my developments and most debugging are performed in Windows environment" I think you are trying to install abandon-ware :(

dyld: Symbol not found: _jpeg_resync_to_restart

I'm trying to run a simple OpenGL tutorial for my class, but the C++ code was made to run for Windows and Linux. I'm trying to make it run under Mac OS X Mountain Lion.
I found the proper library headers, it now compiles OK (with scons), but the build gives this error when run:
dyld: Symbol not found: _jpeg_resync_to_restart
Referenced from: /usr/local/lib/libIL.1.dylib
Expected in: flat namespace
in /usr/local/lib/libIL.1.dylib
Trace/BPT trap: 5
Searching online gave me nothing but python imaging library problems. I have a libjpeg and DevIL installed through homebrew.
Judging from the Google searches, the built-in libjpeg library in Mac OS X has the
__cg_jpeg_resync_to_restart while if you use MacPorts, Fink, or maybe compile it yourself you get - _jpeg_resync_to_restart.
In this case the DevIL library, gotten through Homebrew was searching for the symbol not coming from the Mac OS X library, so I assumed that I should install libjpeg through homebrew. However it turns out that libjpeg was already installed through homebrew. So I guessed that maybe there were problems with the linking of libjpeg, I unlinked and linked again, and yes there were problems with the initial linking of the library.
However this did not seam to solve the problem. I again made the assumption that now that the libjpeg has symbolic links at the right places if I built the DevIL library again it will link against the proper library at the proper place. So I did a brew uninstall devil and then brew install devil which compiled with from source again. Aaand voila :)
It worked for me just changing the DYLD_LIBRARY_PATH to the correct path.

Using IUP on Mac OS X

Are you guys suffered from this question when using IUP on MacOS?
Gizak-Pro:iup-3.6_MacOS107_bin Gizak$ ./iupview
dyld: Library not loaded: /sw/lib/fontconfig2/lib/libfontconfig.1.dylib
Referenced from: /Users/Gizak/Downloads/iup-3.6_MacOS107_bin/./iupview
Reason: image not found
Trace/BPT trap: 5
So..How to make it work? That would be very helpful!
OS:Mac OS X 10.7.5
install lua5.1 by port
IUP version:3.6
That application depends on some libraries that are not installed on your system.
In the IUP documentation you will be able to find a guide how to run IUP on MacOSX. The relevant section is in IUP / System / Drivers / GTK.
The binary you're using is linking to a path provided by Fink, check the README.md in the download directory of IUP sf project.
You could either:
install Fink and fullfill the dependencies
rewrite the dependency using install_name_tool
set DYLD_FALLBACK_LIBRARY_PATH to match dependencies installed by another source

Resources