[PATCH] Update the Mac instructions to include an install_name_tool step
Thiago Macieira
thiago at macieira.org
Wed Nov 27 13:45:00 UTC 2013
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 at macieira.org>
---
INSTALL | 1 +
1 file changed, 1 insertion(+)
diff --git a/INSTALL b/INSTALL
index 7fb57b5..d3b13ce 100644
--- a/INSTALL
+++ b/INSTALL
@@ -55,6 +55,7 @@ $ cd ~/src/marble/build
$ cmake -DCMAKE_BUILD_TYPE=Debug -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
--
1.7.11.7
More information about the subsurface
mailing list