auriamg / macdylibbundler

Utility to ease bundling libraries into executables for OSX
MIT License
546 stars 83 forks source link

dylibbundler can't works with application + last version of libcurl #56

Closed alekseytomin closed 3 years ago

alekseytomin commented 3 years ago

After I've updated libcurl (brew update curl) dylibbundler doesn't works.

$ otool -LD my-app
...
        /usr/local/opt/curl/lib/libcurl.4.dylib (compatibility version 12.0.0, current version 12.0.0)

$ otool -LD /usr/local/opt/curl/lib/libcurl.4.dylib
...
    /usr/local/opt/brotli/lib/libbrotlidec.1.dylib (compatibility version 1.0.0, current version 1.0.9)
...
$ dylibbundler -od -b -x my-app ...
...
/!\ WARNING : can't get path for '@loader_path/libbrotlicommon.1.dylib'
Please specify the directory where this library is located (or enter 'quit' to abort):

What have I to do?

PS:

$ ls -l /usr/local/opt/brotli/lib/
total 3272
-r--r--r--  1 atomin  staff  131568 Aug 27 18:12 libbrotlicommon-static.a
-r--r--r--  1 atomin  staff  164848 Dec  9 12:34 libbrotlicommon.1.0.9.dylib
lrwxr-xr-x  1 atomin  staff      27 Aug 27 18:12 libbrotlicommon.1.dylib -> libbrotlicommon.1.0.9.dylib
lrwxr-xr-x  1 atomin  staff      23 Aug 27 18:12 libbrotlicommon.dylib -> libbrotlicommon.1.dylib
-r--r--r--  1 atomin  staff   45632 Aug 27 18:12 libbrotlidec-static.a
-r--r--r--  1 atomin  staff   85344 Dec  9 12:34 libbrotlidec.1.0.9.dylib
lrwxr-xr-x  1 atomin  staff      24 Aug 27 18:12 libbrotlidec.1.dylib -> libbrotlidec.1.0.9.dylib
lrwxr-xr-x  1 atomin  staff      20 Aug 27 18:12 libbrotlidec.dylib -> libbrotlidec.1.dylib
-r--r--r--  1 atomin  staff  617720 Aug 27 18:12 libbrotlienc-static.a
-r--r--r--  1 atomin  staff  615248 Dec  9 12:34 libbrotlienc.1.0.9.dylib
lrwxr-xr-x  1 atomin  staff      24 Aug 27 18:12 libbrotlienc.1.dylib -> libbrotlienc.1.0.9.dylib
lrwxr-xr-x  1 atomin  staff      20 Aug 27 18:12 libbrotlienc.dylib -> libbrotlienc.1.dylib
drwxr-xr-x  5 atomin  staff     160 Dec  9 12:34 pkgconfig
SCG82 commented 3 years ago

Try using https://github.com/SCG82/macdylibbundler. If that solves the problem I'll see if I can merge the relevant changes.

SCG82 commented 3 years ago

@alekseytomin Can you try PR #60?

git clone https://github.com/auriamg/macdylibbundler
cd macdylibbundler
git fetch origin pull/60/head:resolve_loader_path
git checkout resolve_loader_path
make