mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Update the Mac instructions to include an install_name_tool step
This changes the Mach-O library ID to match the install path. The library ID is copied by the linker when Subsurface is linked against Marble and can be seen with otool -L. That's also what macdeployqt uses to find the dependencies: if the file matching the name in otool -L exists, macdeployqt will deploy the library and update the search paths. Conclusion: after this patch, the "make mac-deploy" command will also deploy Marble correctly. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f434417971
commit
27bfc587cf
1 changed files with 1 additions and 0 deletions
1
INSTALL
1
INSTALL
|
@ -57,6 +57,7 @@ $ cmake -DCMAKE_BUILD_TYPE=Debug -DQTONLY=TRUE -DCMAKE_INSTALL_PREFIX=/usr/local
|
|||
$ cmake -DCMAKE_BUILD_TYPE=Release -DQTONLY=TRUE -DCMAKE_INSTALL_PREFIX=/usr/local ../sources
|
||||
$ cd src/lib
|
||||
$ make -j4
|
||||
$ install_name_tool -id /usr/local/lib/`echo libmarblewidget.??.dylib` libmarblewidget.dylib
|
||||
$ cp *dylib /usr/local/lib/
|
||||
$ mkdir -p /usr/local/include/marble
|
||||
$ cd ../../../sources/src/lib
|
||||
|
|
Loading…
Add table
Reference in a new issue