Questions tagged [install-name-tool]
61 questions
0
votes
0 answers
How to set the LC_LOAD_DYLIB of a shared library in a cmake project
I have a CMake project for macOS which generates an executable in an app bundle and has a few dylibs as dependencies. However, I've noticed that some dylibs come with a shared library identification name that's not convenient, and require calling…

RAM
- 2,257
- 2
- 19
- 41
0
votes
0 answers
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicuuc.68.dylib Reason: image not found
I've got a compiled program mybinary that fails immediately with "image not found" when I try to run it. It isn't the path to the missing dynamic library that's the problem, it's that it needs to look at the library name that doesn't include the…

Setaa
- 93
- 1
- 8
0
votes
1 answer
Changing library search paths by install_name_tool
otool -L dependencies for a binary:
$ otool -L libeditorlib.dylib
libeditorlib.dylib:
libeditorlib.1.dylib (compatibility version 1.0.0, current version 1.0.0)
@rpath/libtbb.dylib (compatibility version 0.0.0, current version 0.0.0)
…

Megidd
- 7,089
- 6
- 65
- 142
0
votes
0 answers
How can I easily redistribute dylib in MacOS?
I would like to distribute my application. However, it is full of dylibs all from different locations. I would like to just copy them to the Resources/lib directory and set my LD_LIBRARY_PATH to point to it with a startup shell script, just like I…

user2517097
- 47
- 6
0
votes
1 answer
Mac OS X: How to get result of otool inside a script?
I'd like to change dylib search path in a script.
In the Terminal I use otool -L my.dylib, then see what is the search path and to change it use install_name_tool.
The install_name_tool (-change) uses previous path and the new path as a…

ZedZip
- 5,794
- 15
- 66
- 119
0
votes
1 answer
Library not loaded error with PySide on OSX
I moved a downloaded copy of PySide out of its original install location (/Library/PySide/2.7/site-packages/PySide) to a location on the network, so a script can access it. However, I started to get a "Library not loaded" error. I made a copy on…

Christopher Spears
- 1,105
- 15
- 32
0
votes
0 answers
How to command line build a .app binary for OSX out of a Qt app?
I am preparing a shell script to build my QtApp into a .app for OSX. I do the following in my script
qmake MyApp.pro -spec macx-clang CONFIG+=release CONFIG+=x86_64 CONFIG+=qml_debug
make
macdeployqt MyApp/MyApp.app
And I get the MyApp.app. Great…

TheWaterProgrammer
- 7,055
- 12
- 70
- 159
0
votes
1 answer
How to create an absolute path reference in a dylib?
[Disclaimer: I'm working with someone else's code. I've never created a .dylib, so I turn to S.O.]
I'm working on a distro that creates a .dylib. It looks okay, but when I link against it, the resulting executable crashes with:
dyld: Library not…

fearless_fool
- 33,645
- 23
- 135
- 217
0
votes
0 answers
where is install_name_tool for Xcode 5.1.1
I had installed command line tools when I installed Xcode 5 in my mac.
install_name_tool was working fine back then.
Now, When I try to use install_name_tool I get following error, malformed object (unknown load command 4)
Upon googling I found…

2am
- 378
- 1
- 6
- 18
0
votes
0 answers
Error when compiling with custom Framework
I try to compile my app with an external Framework. When I execute it, I get the following message:
dyld: Library not loaded: @rpath/iLifeAssetManagement.framework/Versions/A/iLifeAssetManagement
Referenced from:…

Laurent Crivello
- 3,809
- 6
- 45
- 89
0
votes
1 answer
Mac OS X - Linking executable to different dynamic library, load both old and new
I've a command line tool, I built with Xcode, that links to some Apple frameworks.
As a "personal experiment" (just trying to understand a little of how dynamic libraries works) I tried to point the executable to a different version of the same…

Paolo
- 15,233
- 27
- 70
- 91
0
votes
1 answer
Mac OS X Archive (.app) crashed on test Mac machine: EXC_BAD_INSTRUCTION
I am working on a Mac application, which is running fine on my machine which is a development machine.
The project has quite a few dylib files, the dependancies for which I had to solve using
install_name_tool -change
I used @executable_path in the…

2am
- 378
- 1
- 6
- 18
0
votes
1 answer
Editing and compiling install_name_tool
I want to add an LC_LOADDYLIB command to my mach o binary file present inside the ipa file. The install_name_tool is used to change any existing library linked to another library. I want to add a new library to the ipa. So i thought if I edit the…

Aishwarya Ram
- 41
- 2
0
votes
1 answer
Linking library(dylib) to a compiled ipa
I have a compiled ipa and a .dylib file. Using install_name_tool I am able to change the libraries present in the ipa file binary. Is there any command which is used to add a library to the ipa. To be more specific i want to add a LC_LOAD_DYLIB…

Aishwarya Ram
- 41
- 2
0
votes
3 answers
Error in shell script
I'm using a shell script to help me resolve library paths so I can send out my app bundle. I don't know much about shell scripts and was hacking something together from other pieces so I really don't know how to resolve the issue. The issue…

user869525
- 769
- 2
- 12
- 21