Questions tagged [install-name-tool]

61 questions
2
votes
1 answer

Best way to deploy GStreamer framework with a Mac OS X application?

So the GStreamer documentation for 1.0+ seems to be...lacking to say the least. The GStreamer SDK has some helpul tips, but unforutnately they fall short. So, here's what I've done. I've built an application that calls upon GStreamer in…
SRG3006
  • 447
  • 8
  • 21
2
votes
2 answers

Script to patch Qt binaries after relocation on Mac OSX

I'm building qt 5 from source. I'm wondering what is the easiest way to copy-paste qt binaries under MacOS. If you run otool on any of the qt frameworks you'll see that all the dependencies are using absolute paths: bash-3.2$ otool -L QtWidgets…
MaksymB
  • 1,267
  • 10
  • 33
2
votes
1 answer

Is there any way to change the dynamic library search path in Xcode

Below is my scenario, In my Application i had to make use of libopus library , i downloaded and install, compile --> install procedure is normal as its for any other open source library, I linked libopus.a with my application, the way i did is ,…
Amitg2k12
  • 3,765
  • 10
  • 48
  • 97
2
votes
1 answer

Making framework private with install_name_tool being ignored

I have written a simple application using the GPhoto2 Framework, and this works so long as the framework is in the location where it was originally compiled. I would like to move this inside the app bundle, though, so it does not need separate…
Rebecka
  • 1,213
  • 8
  • 14
2
votes
0 answers

install_name_tool changes not propagating on distribution

I am wrapping a python GUI into an application using py2app. On porting to another machine I noticed that I was having a dependency issue with libpng12.0.dylib. This is stored provided by the system, with X11, and is therefore not traditionally…
Jzl5325
  • 3,898
  • 8
  • 42
  • 62
1
vote
1 answer

Mac dylib and executable problem, help needed

So I have to use an old app on a new Mac. The app requires a dylib called libxls.3.dylib to run. However the new Mac did not installed this library and it seems that there's no way to install it at the moment. So I had to find a way to make this…
1
vote
1 answer

install_name_tool errors on arm64

I have c++ app that has multiple dependencies that takes the form of dynamic libraries. install_name_tool works fine to change the paths of those libraries in relation to the main executable, but the problem is that some of those libraries have…
Pedro Beirao
  • 96
  • 1
  • 7
1
vote
0 answers

Compile Opencv V3.1 failed, could not find install_name_tool

I try to build the opencv V3.1 for iOS, but failed: below is the screenshot: "could not find install_name_tool please check your installation" I download the source code and build by the following…
Amy Lin
  • 36
  • 3
1
vote
0 answers

Use 3rd party libraries in mac OS X environment

I am upgrading a legacy mac OS X build environment (C++ code) and trying to find the 'right way' to handle third parties libraries (all of them are open source libraries). We currently support multiple mac OS x versions which use (dynamic link) each…
Asafm
  • 177
  • 1
  • 13
1
vote
1 answer

How can I use `psql` without installing via brew

I want to use the psql utility standalone, without installing postgress via brew or something (I have my reasons). I use psql version 9.5.3 on OS X, which was distributed with PostgressApp. When I only distribute psql, I get the error: dyld: lazy…
doekman
  • 18,750
  • 20
  • 65
  • 86
1
vote
0 answers

If no additional directory in the install_name of a dynamic library, then which path does dyld search?

Mac, for a compiled project (using QT 5.5.0), I directly run the executable file, the error: libraw.10.dylib not loaded; OK, I know the reason. One solution is to use install_name_tool to change the install name of libraw.10.dylib and put it in…
user1914692
  • 3,033
  • 5
  • 36
  • 61
1
vote
1 answer

Unable to change @rpath on osx

I've got an external lib 'libspecial.dylib' with following dependencies. otool -L libspecial.dylib [11:20:59] libspecial.dylib: …
Marcel
  • 4,054
  • 5
  • 36
  • 50
1
vote
1 answer

Have XCode set the @executable_path where to look for a dylib automatically

I build my OSX application using XCode 5.1.1 and link to a .dylib. I've set up Build Phases -> Copy Files to copy the .dylib in the Frameworks destination. When I launch from XCode it works fine, but when I double-click launch the .app bundle from…
Philipp
  • 957
  • 1
  • 6
  • 20
1
vote
1 answer

changing the path of a dylib using install_name_tool

install_name_tool -change /usr/local/lib/testlib.dylib "$TARGET_BUILD_DIR"/../../testlib.dylib "$PRODUCT_NAME" I was told the above when put into a run script in xcode would change the lookup path of a dynamic library. this can then be verified by…
cool mr croc
  • 725
  • 1
  • 13
  • 33
0
votes
0 answers

Proper usage of install_name_tool

I am building an application on OSX with Xcode. I am using an external library that I build myself (wxWidgets). I didn't run make install for it, and so it is still located in my home directory where I build it. Now in order to run the AppBundle…
Igor
  • 5,620
  • 11
  • 51
  • 103