I'm trying to build the WebRTC as a shared library to link with the
WebKit.
Is there any build option to make the WebRTC as a shared library
instead of static libraries?
If not, any help or comments making them as a shared library?
Thanks!
Any comments?
Cheers,
Soo-Hyun
I've been trying to build webrtc as a set of shared libraries, but I'm
getting stuck with a bunch of undef reference errors as follows.
What I did is,
1. Change the build option from 'static_library' to 'shared_library'
in the ".gypi" files listed below.
- build/common.gypi
- common_standalone.gypi
- voice_engine_tests.gypi
2. re-run build script
$> ./build/gyp_chromium --depth=. webrtc.gyp
3. Removed test related objects in "All.target.mk"
- removed all test related stuffs as I don't need the test codes at
the moment.
(e.g., removed '$(builddir)/common_audio_unittests', and so on)
4. run make
$> make all
Then I met a bunch of "undefined reference" errors as shown in the
link below.
- http://paste.pocoo.org/show/520212/
Any comments? I really need some help from you guys!
Cheers,
Dongwoo
I have created a diff file that enables to build shared libraries:
<http://hackerslab.eu/src/build_so.diff>. Basically, the original
gyp/gypi files are missing a condition that adds "-shared" option in
LDFLAGS_Debug in the associated ".mk" file.
1) Apply the above diff file
$> patch -p0 < build_so.diff
2) Update .mk files
$> ./build/gyp_chromium -D "library=shared_library" --depth=. webrtc.gyp
3) Build
$> make all
I'd kindly like to get to know of your feedback on this patch.
Cheers,
Soo-Hyun
P.S.
The diff file can be also accessed at
<http://paste.pocoo.org/show/dpjRzawB0McPePJarDZj/>.
Basically, WebRTC.org has been radically changed since I've put up the
patch. However, it would be easy for you to create your own patch by
consulting my original one: you could simply add "-shared" option in
the necessary gyp/gypi files.
Kind regards,
Soo-Hyun