Closed adgray closed 8 years ago
Weird; I get the same thing. I'll take a look at it.
Thanks!
So libpjmedia-codec.dylib.2
is linking with libpjmedia.dylib.2
, which is linked with libpjlib-util.dylib.2
.
For some reason, it's trying to find libpjlib-util
in the path ../lib/libpjlib-util.dylib.2
$ otool -L pjmedia/lib/libpjmedia.dylib
pjmedia/lib/libpjmedia.dylib:
../lib/libpjmedia.dylib.2 (compatibility version 0.0.0, current version 0.0.0)
../lib/libpj.dylib.2 (compatibility version 0.0.0, current version 0.0.0)
../lib/libpjlib-util.dylib.2 (compatibility version 0.0.0, current version 0.0.0)
../lib/libpjnath.dylib.2 (compatibility version 0.0.0, current version 0.0.0)
../../lib/libilbccodec.dylib.2 (compatibility version 0.0.0, current version 0.0.0)
../../lib/libg7221codec.dylib.2 (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libsrtp.1.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libgsm.1.0.13.dylib (compatibility version 1.0.0, current version 1.0.13)
/usr/local/lib/libspeex.1.5.0.dylib (compatibility version 7.0.0, current version 7.0.0)
/usr/local/lib/libspeexdsp.1.5.0.dylib (compatibility version 7.0.0, current version 7.0.0)
/usr/local/opt/openssl/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libuuid.16.dylib (compatibility version 17.0.0, current version 17.22.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1258.0.0)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1404.46.0)
There are some odd things about linking on OS X that change occasionally with Xcode releases. I'm guessing something's changed recently.
Not totally sure how to fix it yet. If anyone has any ideas, I'd be glad to hear them.
I've been able to reproduce the problem, but I'm not exactly sure what to do about it yet.
I've posted a question about it on SO, so maybe someone else has some ideas.
Hi, did you find a solution for the problem? I just stumbled upon the same issue. I guess the solution from SO is not applicable, did you manage to find a workaround? Thanks a lot.
@SipSeb The solution from SO was close, but no quite right (since it moved all the libs into a single directory). I was able to get a patch that compiled, but it was unable to find the libraries at runtime.
Although, looking at it with fresh eyes, I have an idea for a quick fix. It may work, but I think there's likely something really wrong with how we're building shared objects on OS X.
@SipSeb @adgray
I've pushed a workaround (1c1c98a97d6ae9acf2f0025ab46b17755c3a72d9) which seems to get things compiling again, but I think there's still something hinky in the PJSIP build for OS X.
Let me know how it works out.
Thank you for the work you put in it. It compiled on my machine.
Trying to install on a brand-new El-Capitan 10.11.4 + standard home-brew install. The last log output is as follows:
Any suggestions? Google doesn't reveal anything useful.