-
Notifications
You must be signed in to change notification settings - Fork 164
Building the peerconnection example
Vicken Simonian edited this page Oct 30, 2017
·
3 revisions
This example shows how to build the peerconnection server and the client examples with webrtcbuilds. Using $WEBRTCBUILDS_FOLDER
to designate the extracted package folder. The peerconnection example can be fully built only on Linux and Windows.
export PKG_CONFIG_PATH=$WEBRTCBUILDS_FOLDER/lib/Release/pkgconfig
Go to the peerconnection server folder
g++ -o peerconnection_server main.cc data_socket.cc peer_channel.cc utils.cc \
$(pkg-config --cflags --libs --define-variable=prefix=$WEBRTCBUILDS_FOLDER libwebrtc_full)
Go to the peerconnection client folder
g++ -o peerconnection_client linux/main.cc linux/main_wnd.cc conductor.cc defaults.cc peer_connection_client.cc \
$(pkg-config --cflags --libs --define-variable=prefix=$WEBRTCBUILDS_FOLDER libwebrtc_full) \
$(pkg-config --cflags --libs gtk+-2.0) \
$(pkg-config --cflags --libs x11)
TBD
clang++ -o peerconnection_server main.cc data_socket.cc peer_channel.cc utils.cc \
-DWEBRTC_POSIX -DWEBRTC_MAC \
-stdlib=libstdc++ \
-I$WEBRTCBUILDS_FOLDER/include \
$WEBRTCBUILDS_FOLDER/lib/Release/libwebrtc_full.a
Unfortunately there is no OSX peerconnection client