StanfordSNR / puffer

Puffer is a free live TV streaming website and a research study at Stanford using machine learning to improve video streaming

Home Page:https://puffer.stanford.edu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make -j CXXFLAGS='-DNONSECURE' does not work

ofirbarak opened this issue · comments

Following the wiki https://github.com/StanfordSNR/puffer/wiki/Documentation#prerequisite-compilation at stage 3 - when running make -j CXXFLAGS='-DNONSECURE' it fails:

opus-encoder.cc: In constructor ‘AVFormatWrapper::AVFormatWrapper(const string&, int)’:
opus-encoder.cc:265:21: error: ‘void av_register_all()’ is deprecated [-Werror=deprecated-declarations]
     av_register_all();
                     ^
In file included from opus-encoder.cc:12:0:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:2050:6: note: declared here
 void av_register_all(void);
      ^~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:386: opus-encoder.o] Error 1

I found putting that line in comment helps.

Thanks for opening the issue! We are aware of it, and it was not actually an issue back when we wrote and tested the documentation on Ubuntu 18.04. FFmpeg later deprecated this API, e.g., if you are building Puffer on Ubuntu 20.04.

You are right that all you need to do is to comment out this line, or remove the -Werror flag in configure.ac to allow warnings in builds. I will remove this line of code when we consider Ubuntu 20.04 as the default build environment.

Cool, Thanks.

Hello, I was trying to run the set up and was stuck in the same step. I got these three errors:

  1. socket.cc: In member function ‘TCPInfo TCPSocket::get_tcp_info() const’:
    socket.cc:245:19: error: ‘struct tcp_info’ has no member named ‘tcpi_min_rtt’; did you mean ‘tcpi_rcv_rtt’?
    ret.min_rtt = x.tcpi_min_rtt;
    ^~~~~~~~~~~~
    tcpi_rcv_rtt
    socket.cc:247:25: error: ‘struct tcp_info’ has no member named ‘tcpi_delivery_rate’; did you mean ‘tcpi_pacing_rate’?
    ret.delivery_rate = x.tcpi_delivery_rate;

  1. opus-encoder.cc:315:20: error: ‘AVStream {aka struct AVStream}’ has no member named ‘codecpar’; did you mean ‘codec’?
    audio_stream_->codecpar->extradata_size = 19;

  1. /usr/bin/ld: warning: libmklml_intel.so, needed by ../../third_party/libtorch/lib/libcaffe2.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld: warning: libiomp5.so, needed by ../../third_party/libtorch/lib/libcaffe2.so, not found (try using -rpath or -rpath-link)

Any help would be appreciated!

Hello -- Could you post your questions in our group: https://groups.google.com/g/puffer-stanford? It would help the other Puffer users search our replies in a single place. Thank you!

Thanks for the reply! The issues seemed to be specific to Ubuntu 16.04. Following the steps for Ubuntu 18.04 worked like a charm.