EricssonResearch / scream

SCReAM - Mobile optimised congestion control algorithm
BSD 2-Clause "Simplified" License
174 stars 53 forks source link

Fix compiling issues with the sample code. #41

Closed danesh-d closed 3 years ago

danesh-d commented 3 years ago

@IngJohEricsson I tried to compile the sample code but I got compiling errors. Now with this fix I can compile it as below:

$ g++ scream_v_a.cpp NetQueue.cpp ScreamTx.cpp ScreamRx.cpp RtpQueue.cpp VideoEnc.cpp wrapper_lib/scream_sender_plugin_wrapper.cpp -lpthread

This would be good if all these can be added in the Makefile.

IngJohEricsson commented 3 years ago

Hi If you want to build wrapper code from parent directory you should diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index c701427..80227b6 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -39,3 +39,5 @@ TARGET_LINK_LIBRARIES ( scream_bw_test_rx ${screamLibs} pthread ) + +ADD_SUBDIRECTORY(wrapper_lib)