EricssonResearch / openwebrtc

A cross-platform WebRTC client framework based on GStreamer
http://www.openwebrtc.org
BSD 2-Clause "Simplified" License
1.8k stars 537 forks source link

Failed to build openwebrtc on os x #202

Closed ksenks closed 9 years ago

ksenks commented 9 years ago

The boostrapping and building dependences stages finished well, but the building stage failed:

./build.sh -Cbr osx

CC libopenwebrtc_bridge_la-owr_bridge.lo CCLD libopenwebrtc_bridge.la ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame CC daemon.o CCLD openwebrtc-daemon ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame Undefined symbols for architecture x86_64: "_gst_plugin_nice_register", referenced from: _owr_init in libopenwebrtc.a(owr.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: * [openwebrtc-daemon] Error 1 make[2]: * [all-recursive] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2 Failed building....

Could you please help with that?

tang85718 commented 9 years ago

me too

j0sh commented 9 years ago

Happening here as well.

sdroege commented 9 years ago

This should've been fixed with https://github.com/EricssonResearch/openwebrtc-build-scripts/commit/9fe9423288aa857de4d8d7827575435b835e5613 and now with https://github.com/EricssonResearch/openwebrtc/commit/e3cb813a8b56da712e551625d765c2c7ac47483c should also be inside the scripts submodule finally.

You need to rebuild libnice for this to work.

j0sh commented 9 years ago

Doesn't seem to have worked, still failing with the same error.

Removed all instances of libnice.a, updated webrtc and scripts to current tip, then rebuilt libnice, with --enable-static-plugins appearing in config.log as expected. No dice.

sdroege commented 9 years ago

Did you deploy the dependencies again after rebuilding libnice?

j0sh commented 9 years ago

So, ./deploy_deps.sh only copies an existing tarball from the dependencies dir, it does not create a new one. After re-building libnice, re-run ./create_file_release.sh, then run ./deploy_deps. From there, OWR seems to compile OK.

ksenks commented 9 years ago

I re-builded all the things from the scratch and still got the same error.