live555交叉编译(ubuntu+arm平台)

1.下载源码

​​​​​​http://live555.com/liveMedia/public/live555-latest.tar.gz

2.解压

tar -zxvf live555-latest.tar.gz

3.修改配置文件

1)进入live文件夹

2)复制一份配置文件

cp config.armlinux config.myarmlinux

chmod 777 config.myarmlinux

3) vim config.myarmlinux

命令行-删除全部配置

:%d

4) 修改为

CROSS_COMPILE?=		arm-linux-gnueabihf-
COMPILE_OPTS =		$(INCLUDES) -I/home/alientek/sp_test/openssl/sp_install/include -I. -O2 -DSOCKLEN_T=socklen_t -DNO_SSTREAM=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DNO_OPENSSL=1
C =			c
C_COMPILER =		$(CROSS_COMPILE)gcc
C_FLAGS =		$(COMPILE_OPTS)
CPP =			cpp
CPLUSPLUS_COMPILER =	$(CROSS_COMPILE)g++ -std=c++11
CPLUSPLUS_FLAGS =	$(COMPILE_OPTS) -Wall -DBSD=1
OBJ =			o
LINK =			$(CROSS_COMPILE)g++ -std=c++11 -o
LINK_OPTS =		
CONSOLE_LINK_OPTS =	$(LINK_OPTS)
LIBRARY_LINK =		$(CROSS_COMPILE)ar cr 
LIBRARY_LINK_OPTS =	$(LINK_OPTS)
LIB_SUFFIX =			a
LIBS_FOR_GUI_APPLICATION =-L/home/alientek/sp_test/openssl/sp_install/lib -lssl -lcrypto
EXE =
PREFIX =/home/alientek/sp_test/live555/sp_install

5.编译执行

./genMakefiles myarmlinux
make clean
make
make install

你可能感兴趣的:(项目-网络相机(arm平台),ubuntu,arm开发,linux)