nicotyze / Webrtc-H264Capturer

Workarounds to use external H.264 video encoders in WebRTC Native C++ source code
GNU Lesser General Public License v3.0
126 stars 37 forks source link

Doesn't compile with branch-heads/63 or master branch #10

Closed traw closed 6 years ago

traw commented 6 years ago

Tried to build latest (branch-heads/63 or master) branchs from instruction given in README.md. But, seems like there are quite few changes need to be done for it to compile successfully, I'm in half way through it, and manged to compile it, but so far couldn't link with libavformat, libavcodec and libavutil. I get following error

> ldd ./out/Default/peerconnection_client
linux-vdso.so.1 =>  (0x00007ffcaa0d5000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f282f61a000)
libavformat.so.58 => not found
libavcodec.so.58 => not found
libavutil.so.56 => not found
nicotyze commented 6 years ago

The simpe solution is to do something like:

export LD_LIBRARY_PATH=$WEBRTC_DIR/src/out/Default

You can also adapt the rpath in peerconnection_client.ninja, for instance:

find out/ -name "peerconnection_client.ninja" | xargs sed -i "s|ldflags =|ldflags = -Wl,-rpath,$WEBRTC_DIR/src/out/Default|g" and then recompile: ninja -C out/Default peerconnection_client

2017-11-28 5:14 GMT+01:00 traw notifications@github.com:

Tried to build from instruction given in README.md. But, seems like there are quite few changes need to be done for it to compile, I'm in half way through it, but so far couldn't link with libavformat, libavcodec and libavutil. I get following error

ldd ./out/Default/peerconnection_client linux-vdso.so.1 => (0x00007ffcaa0d5000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f282f61a000) libavformat.so.58 => not found libavcodec.so.58 => not found libavutil.so.56 => not found

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nicotyze/Webrtc-H264Capturer/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/AMCbnkvockStSJvvoFelKzqujt7oZJJ0ks5s64i5gaJpZM4Qsqmf .