1.工具准备
openssl包 以及crtmpserver包
2. sudo apt -get install cmake
3.进入openssl解压的文件夹
sudo make
make install
4.进入crtmpserver解压的文件包
cd builder/cmake
cmake .
cmake失败 出现的问题
一. looking for openssl headers - not found
解决方法: sudo apt -get instll libssl-dev
二:-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND -- broken
CMake Error: The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring done
解决方法: 1. sudo apt-get install g++
2.cmake -D CMAKE_CXX_COMPILER="g++" cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX:PATH="/usr/local"
mounted seceinfofs