EricssonResearch / bowser

A WebRTC browser for iOS developed in the open
BSD 2-Clause "Simplified" License
208 stars 65 forks source link

linking app results in library not found error for: gstdtls #11

Closed eelcocramer closed 10 years ago

eelcocramer commented 10 years ago

xcode outputs the following error:

ld: library not found for -lgstdtls
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any thoughts?

stefanalund commented 10 years ago

My guess is that it's because Bowser is linked to an older version of OpenWebRTC. That lib has been removed: https://github.com/EricssonResearch/openwebrtc-build-scripts/commit/531c6b8a577ec8e2ec803d146eab22a91db72684

Go in to Target -> Build Phase -> Link Binary With Libraries and remove libraries that are red.

Please make a pull request if this solves the problem.

eelcocramer commented 10 years ago

That works. Altough I have the idea that libgstdtls might have to be installed with gettext. When I run the build-gettext I get a 'INSTALL' file missing just like in: https://github.com/EricssonResearch/openwebrtc/issues/24

make[4]: *** No rule to make target `hello-c/INSTALL', needed by `install-data-local'.  Stop.
make[3]: *** [install-am] Error 2
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
stefanalund commented 10 years ago

But you can run Bowser now, or?

eelcocramer commented 10 years ago

Yes I can. And I am able to run (some) of examples apps on the web.

I'm not sure if there is still a dependency for libgstdtls but I haven't hit it yet or that the dependency is removed like you suggested before.

superdump commented 10 years ago

We removed libgstdtls from the build. It is an alternative DTLS implementation that we were monitoring for a while though we had already implemented our own element. We try to employ upstream project elements as much as possible rather than doing not-implemented-here work. Unfortunately the patches against upstream projects were rejected and now we didn't think there was a good reason to keep it in the build. It was unused so it can just be removed from Bowser.

stefanalund commented 10 years ago

Would appreciate if you made a pull request for your changes in Bowser's Xcode project files. Thanks.

eelcocramer commented 10 years ago

No problem. See #13.