Install cmake
and openssl-devel
(or equivalent) packages. For pthreads
, add
the -lpthreads
linker flag.
Default installation path prefix of make install
is /usr/local
.
To define a different installation path prefix, use the --prefix
option with configure
or the -DCMAKE_INSTALL_PREFIX
CMake option.
To uninstall, call make -n install
to list all the dependencies, and then pass the list to rm
.
Here is a link to a demo showing how CMake can be used to build SRT: Quickstart: Running SRT and FFmpeg on Ubuntu.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install tclsh pkg-config cmake libssl-dev build-essential
./configure
make
sudo yum update
sudo yum install tcl pkgconfig openssl-devel cmake gcc gcc-c++ make automake
./configure
make
sudo yum update
sudo yum install tcl pkgconfig openssl-devel cmake gcc gcc-c++ make automake
sudo yum install centos-release-scl-rh devtoolset-3-gcc devtoolset-3-gcc-c++
scl enable devtoolset-3 bash
./configure --use-static-libstdc++ --with-compiler-prefix=/opt/rh/devtoolset-3/root/usr/bin/
make