WebRTCExamples icon indicating copy to clipboard operation
WebRTCExamples copied to clipboard

sdk-generator get error /usr/bin/ld: cannot find -ljsoncpp

Open seamanm opened this issue 3 years ago • 1 comments

ubuntu18.04 x64 root@vultr:~/webrtc/72/webrtc_demo/build# make Scanning dependencies of target webrtc_demo [ 50%] Building CXX object CMakeFiles/webrtc_demo.dir/src/main.cc.o [100%] Linking CXX executable webrtc_demo /usr/bin/ld: cannot find -ljsoncpp collect2: error: ld returned 1 exit status CMakeFiles/webrtc_demo.dir/build.make:100: recipe for target 'webrtc_demo' failed make[2]: *** [webrtc_demo] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/webrtc_demo.dir/all' failed make[1]: *** [CMakeFiles/webrtc_demo.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

seamanm avatar Nov 04 '20 08:11 seamanm

@seamanm libjsoncpp is part of the webrtc build dependencies. You automatically download it when you run the following commands:

fetch --nohooks webrtc
cd src
git checkout branch-heads/72
gclient sync

As stated in the “Getting Started” section of the ReadMe for the “ffmpeg-wrapper” and “native-to-browser” sub-projects.

If you are trying to get the “sdk-generator” sub-project working, make sure you can find the lib in $BUILD_OBJ_DIR/third_party/jsoncpp/jsoncpp/

Build errors with respect to the WebRTC project itself are beyond the scope of this repository. These should be directed to https://webrtc.googlesource.com/src/

TekuConcept avatar Nov 04 '20 14:11 TekuConcept