Comments (11)
Indeed, but you'll need to install this one yourself from deps/nlohmann_json
if you want it available to an external project, since libdatachannel itself does not depend on it.
from libdatachannel.
$ git submodule update --init --recursive
Did you execute this command before build?
from libdatachannel.
Yes and it didnot run, Am i supposed to link the plog library in the cmakelist?
from libdatachannel.
The plog library is indeed not installed automatically. This should be solved by d0a1b2c
from libdatachannel.
Also, you can simply build from the top folder, it should build everything successfully, provided you updated the submodules as @murat-dogan pointed.
from libdatachannel.
This is the result i get when i rebuild the library
git submodule update --init --recursive
Submodule 'deps/json' (https://github.com/nlohmann/json.git) registered for path 'deps/json'
Submodule 'deps/libjuice' (https://github.com/paullouisageneau/libjuice) registered for path 'deps/libjuice'
Submodule 'deps/plog' (https://github.com/SergiusTheBest/plog) registered for path 'deps/plog'
Submodule 'usrsctp' (https://github.com/sctplab/usrsctp.git) registered for path 'deps/usrsctp'
Cloning into '/home/stevedan/external_library/libdatachannel/deps/json'...
Cloning into '/home/stevedan/external_library/libdatachannel/deps/libjuice'...
Cloning into '/home/stevedan/external_library/libdatachannel/deps/plog'...
Cloning into '/home/stevedan/external_library/libdatachannel/deps/usrsctp'...
Submodule path 'deps/json': checked out '973c52dd4a9e92ede5ca4afe8b3d01ef677dc57f'
Submodule path 'deps/libjuice': checked out '6f6faa578396960a5f426582ed12db2747e4f68d'
Submodule path 'deps/plog': checked out '47883f060999d536edfc41a71fb822c35a195938'
Submodule path 'deps/usrsctp': checked out 'aa10d60bc209028b7dd0370b2d5af9f14051fd23'
cmake -DUSE_JUICE=1 -DUSE_GNUTLS=0 ..
-- The CXX compiler identification is GNU 9.2.1
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- The C compiler identification is GNU 9.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- No build type selected, using DEBUG
-- Looking for include file sys/queue.h
-- Looking for include file sys/queue.h - found
-- Looking for include files sys/socket.h, linux/if_addr.h
-- Looking for include files sys/socket.h, linux/if_addr.h - found
-- Looking for include files sys/socket.h, linux/rtnetlink.h
-- Looking for include files sys/socket.h, linux/rtnetlink.h - found
-- Looking for 4 include files sys/types.h, ..., netinet/ip_icmp.h
-- Looking for 4 include files sys/types.h, ..., netinet/ip_icmp.h - found
-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
-- Looking for usrsctp.h
-- Looking for usrsctp.h - found
-- Performing Test have_sa_len
-- Performing Test have_sa_len - Failed
-- Performing Test have_sin_len
-- Performing Test have_sin_len - Failed
-- Performing Test have_sin6_len
-- Performing Test have_sin6_len - Failed
-- Performing Test have_sconn_len
-- Performing Test have_sconn_len - Failed
-- Performing Test has_wfloat_equal
-- Performing Test has_wfloat_equal - Success
-- Performing Test has_wshadow
-- Performing Test has_wshadow - Success
-- Performing Test has_wpointer_aritih
-- Performing Test has_wpointer_aritih - Success
-- Performing Test has_wunreachable_code
-- Performing Test has_wunreachable_code - Success
-- Performing Test has_winit_self
-- Performing Test has_winit_self - Success
-- Performing Test has_wno_unused_function
-- Performing Test has_wno_unused_function - Success
-- Performing Test has_wno_unused_parameter
-- Performing Test has_wno_unused_parameter - Success
-- Performing Test has_wno_unreachable_code
-- Performing Test has_wno_unreachable_code - Success
-- Performing Test has_wstrict_prototypes
-- Performing Test has_wstrict_prototypes - Success
-- Compiler flags (CMAKE_C_FLAGS): -std=c99 -pedantic -Wall -Wextra -Wfloat-equal -Wshadow -Wpointer-arith -Wunreachable-code -Winit-self -Wno-unused-function -Wno-unused-parameter -Wno-unreachable-code -Wstrict-prototypes -Werror
-- Performing Test has_wno_address_of_packet_member
-- Performing Test has_wno_address_of_packet_member - Success
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1c")
-- Using the single-header code from /home/stevedan/external_library/libdatachannel/deps/json/single_include/
-- Configuring done
-- Generating done
-- Build files have been written to: /home/stevedan/external_library/libdatachannel/build
Part of the make command, it build correctly
...
[25%] Building C object deps/usrsctp/usrsctplib/CMakeFiles/usrsctp-static.dir/netinet/sctp_input.c.o
/home/stevedan/external_library/libdatachannel/deps/usrsctp/usrsctplib/netinet/sctp_input.c: In function ‘sctp_common_input_processing’:
/home/stevedan/external_library/libdatachannel/deps/usrsctp/usrsctplib/netinet/sctp_input.c:5883:47: warning: ‘%s’ directive output may be truncated writing up to 28 bytes into a region of size 22 [-Wformat-truncation=]
5883 | snprintf(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~ ~~~~~~~~
/home/stevedan/external_library/libdatachannel/deps/usrsctp/usrsctplib/netinet/sctp_input.c:5883:4: note: ‘snprintf’ output between 107 and 135 bytes into a destination of size 128
5883 | snprintf(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/stevedan/external_library/libdatachannel/deps/usrsctp/usrsctplib/netinet/sctp_input.c:5966:47: warning: ‘%s’ directive output may be truncated writing up to 28 bytes into a region of size 22 [-Wformat-truncation=]
5966 | snprintf(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~ ~~~~~~~~
/home/stevedan/external_library/libdatachannel/deps/usrsctp/usrsctplib/netinet/sctp_input.c:5966:4: note: ‘snprintf’ output between 107 and 135 bytes into a destination of size 128
5966 | snprintf(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/stevedan/external_library/libdatachannel/deps/usrsctp/usrsctplib/netinet/sctp_input.c:6052:47: warning: ‘%s’ directive output may be truncated writing up to 28 bytes into a region of size 22 [-Wformat-truncation=]
6052 | snprintf(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~ ~~~~~~~~
/home/stevedan/external_library/libdatachannel/deps/usrsctp/usrsctplib/netinet/sctp_input.c:6052:4: note: ‘snprintf’ output between 107 and 135 bytes into a destination of size 128
6052 | snprintf(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 27%] Building C object deps/usrsctp/usrsctplib/CMakeFiles/usrsctp-static.dir/netinet/sctp_output.c.o
...
[ 77%] Built target datachannel
Scanning dependencies of target datachannel-tests
[ 80%] Building CXX object CMakeFiles/datachannel-tests.dir/test/main.cpp.o
[ 80%] Building CXX object CMakeFiles/datachannel-tests.dir/test/connectivity.cpp.o
[ 83%] Building CXX object CMakeFiles/datachannel-tests.dir/test/capi.cpp.o
[ 83%] Building CXX object CMakeFiles/datachannel-tests.dir/test/websocket.cpp.o
[ 86%] Linking CXX executable tests
[ 86%] Built target datachannel-tests
Scanning dependencies of target datachannel-client
[ 86%] Building CXX object examples/client/CMakeFiles/datachannel-client.dir/main.cpp.o
[ 88%] Linking CXX executable client
[ 88%] Built target datachannel-client
Scanning dependencies of target datachannel-copy-paste-answerer
[ 88%] Building CXX object examples/copy-paste/CMakeFiles/datachannel-copy-paste-answerer.dir/answerer.cpp.o
[ 91%] Linking CXX executable answerer
[ 91%] Built target datachannel-copy-paste-answerer
Scanning dependencies of target datachannel-copy-paste-offerer
[ 91%] Building CXX object examples/copy-paste/CMakeFiles/datachannel-copy-paste-offerer.dir/offerer.cpp.o
[ 94%] Linking CXX executable offerer
[ 94%] Built target datachannel-copy-paste-offerer
Scanning dependencies of target offerer
[ 97%] Building C object examples/copy-paste-capi/CMakeFiles/offerer.dir/offerer.c.o
[ 97%] Linking C executable offerer
[ 97%] Built target offerer
Scanning dependencies of target answerer
[ 97%] Building C object examples/copy-paste-capi/CMakeFiles/answerer.dir/answerer.c.o
[100%] Linking C executable answerer
[100%] Built target answerer
Still get the same error
In file included from /usr/local/include/rtc/include.hpp:28,
from /usr/local/include/rtc/rtc.hpp:20,
from /home/stevedan/Desktop/TESTING/examples/client/main.cpp:23:
/usr/local/include/rtc/log.hpp:22:10: fatal error: plog/Log.h: No such file or directory
22 | #include "plog/Log.h"
| ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/datachannel-client.dir/build.make:63: CMakeFiles/datachannel-client.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/datachannel-client.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
from libdatachannel.
Did you reinstall the library after rebuilding it?
from libdatachannel.
When I use the sudo install, i get this
install: missing file operand
Try 'install --help' for more information.
Thank you very help
from libdatachannel.
The command is actually sudo make install
from your build directory.
from libdatachannel.
Wow, i feel so stupid jajajaj, sorry for the inconvenience and thank you very much for you help
but now when I run, I get
cannot find -lnlohmann_json
This should be installed with the dependencies right?
from libdatachannel.
Okay, thank you very much for you help,
from libdatachannel.
Related Issues (20)
- AV1-related functions are not defined in CAPI
- High pliCount when running from AWS
- Does the argument binary_ptr message of AV1RtpPacketizer::packetizeObu expect a single obu unit? HOT 3
- Often, MediaTrack cannot start as intended: Consent expired for candidate pair HOT 4
- Unable to Connect to TLS when Using MbedTLS HOT 3
- WebSocketServer suddenly closing on clients reconnecting HOT 2
- copy-paste timing HOT 1
- iOS: websocket client failed due to TLS alert: unknown CA HOT 2
- Rate shaping HOT 2
- Tag RTP and RTCP packets with SDES MID
- MediaHandler does not have a virtual destructor HOT 2
- Segfault in RtcpReceivingSession
- Having Issue Opening Negotiated Data Channels HOT 4
- Strange binary data received by PeerConnection.video.onMessage HOT 2
- Complilation failure. Cmake. HOT 1
- build error on winodows HOT 7
- media-receiver HOT 1
- expect result on streamer HOT 1
- SSL client certificate in impl::TlsTransport HOT 4
- The LICENSE files in the "client/client" and "client/benchmark" directories appear to be GPL v2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libdatachannel.