Questions tagged [install-name-tool]

61 questions
5
votes
0 answers

install_name_tool -change fails silently and ignores -headerpad_max_install_names flag

I have a command-line executable that includes links to dylibs that — when distributed — will not be at the stated location returned by otool -L. For instance, given a binary called foo: $ otool -L foo /opt/local/lib/libgcc/libstdc++.6.dylib…
Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345
4
votes
1 answer

install_name_tool error when running virtualenv on Mac OSX Lion (with Xcode)

When I try to run mkvirtualenv with python 2.6, I get the error: Could not call install_name_tool -- you must have Apple's development tools installed I've installed Xcode. (It's actually installed, not just downloaded and waiting to be installed).…
4
votes
1 answer

"dll-path" has no effect when building boost

I aim to have full runpaths in compiled boost libraries by providing dll-path option when compiling boost: $ ./b2 dll-path=$(pwd)/build --prefix=$(pwd)/build $ ./b2 install dll-path=$(pwd)/build --prefix=$(pwd)/build However, when I check libraries…
peetonn
  • 2,942
  • 4
  • 32
  • 49
4
votes
1 answer

install_name_tool does not make any changes?

My app needs to load a dylib provided by a hardware manufacturer. Using otool on the dylib produces this output: $otool -L harwdware.2.dylib hardware.2.dylib: @executable_path/../Addittional/hardware.2.dylib (compatibility version 3.0.0,…
Kenny
  • 1,083
  • 2
  • 8
  • 23
4
votes
0 answers

dyld: Library not loaded: libboost_system.dylib

Yet another dyld: Library not loaded dylib problem.. I've got a dylib (libboost_system.dylib) compiled from the Boost sources, then used install-name-tool to prepare it for inclusion in the Frameworks folder of my app bundle like…
Jay
  • 6,572
  • 3
  • 37
  • 65
3
votes
1 answer

install-name-tool does not add path to library when viewed through otool?

I finished my mac app using Xcode and Qt. Now I would like to prepare it for deployment to other macs. Inorder to do that I utilized macdeployqt. I just created an app bundle with macdeployqt. However some of the libraries are missing. I attempted…
MistyD
  • 16,373
  • 40
  • 138
  • 240
3
votes
1 answer

dylib library path and use it in application

I want to create a library in Mac OS X El Capitan (10.11.x) and use it in another application by qt creator, so I’ve created a simple library in qt with this setting: QT -= gui TARGET =…
Hadi Moghaddar
  • 115
  • 1
  • 11
3
votes
1 answer

Fix paths in dylib files using install_name_tool

I'm trying to compile my C++ project after updating OS to El Capitan. However, I faced a few snags along the way: dyld: Library not loaded: pathB/libIceUtil.34.dylib Referenced from: pathA/libSlice.34.dylib Reason: image not found The problem is…
xeroqu
  • 425
  • 5
  • 14
3
votes
1 answer

XCodebuild specifying target and linking a framework

I have a project in which I need to produce two executables, one in 64-bit (x64_86) and the other in 32-bit (i386); they cannot be combined. The project includes linking to a 3rd party framework. Compilation in XCode works without issue. When…
TheDarkKnight
  • 27,181
  • 6
  • 55
  • 85
3
votes
2 answers

install_name_tool on OS X Lion

I'm running OS 10.7.4 and cannot find install_name_tool. I have Xcode 4.3.3 installed through the App Store. Does anyone know where I can find/get install_name_tool?
David Carpenter
  • 1,389
  • 2
  • 16
  • 29
3
votes
2 answers

Xcode 4, dylib & install_name_tool

I'm trying to get a dylib working in my OSX project. Ive been reading a few samples, this one specifically: Xcode 4 adding dylib But I still cannot get it to work. Here are the steps I have performed: Copied the testing.1.dylib to my Xcode projects…
Kyle
  • 17,317
  • 32
  • 140
  • 246
2
votes
1 answer

Changing dylib library path with install_name_tool -id, nothing changes

I'm trying to put an executable together to send to another computer. otool -L "exec_name" returns: /usr/local/opt/glfw/lib/libglfw.3.dylib (compatibility version 3.0.0, current version 3.3.0) trying to change it to my executable…
user1298416
  • 341
  • 4
  • 11
2
votes
1 answer

install_name_tool does nothing

I'm preparing my application for deployment on OSX. The only problem is relocating the shared libraries. I put them all inside a Frameworks-folder in the .app-folder itself. What I try for every library is something like: install_name_tool \ -id…
Hedge
  • 16,142
  • 42
  • 141
  • 246
2
votes
1 answer

How to run Nuitka on macOS

I am trying to run Nuitka, just to test it, on a very basic Python script. Unfortunately, I get an error I cannot properly understand. $ nuitka-run dice_test.py …
alec_djinn
  • 10,104
  • 8
  • 46
  • 71
2
votes
1 answer

Include a dylib into an OS X Framework

Today, I am trying to make an Objective-C wrapper of the mediainfo library. I have also written two demo projects (one written in Objective-C and the other one in Swift). I would like to include the dylib of mediainfo into the framework bundle so…
Jeremy Vizzini
  • 261
  • 1
  • 9