0. Prepare build environment for Trident pnx84xx.
# cd /PATH/TO/TRIDENT/SRC
# source pnx8400_MP_env.sh
1. Download live555 source from official website.
Always get the latest version, and read document for installation first.
# wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz
# tar -zxvf live555-latest.tar.gz
See "How to configure and build the code on Unix" http://www.live555.com/liveMedia/#config-unix
# cd /PATH/TO/LIVE555/SRC
Select config.armlinux as a sample.
# cp config.armlinux config.trident
# vi config.trident
CROSS_COMPILE= arm-linux-
COMPILE_OPTS = $(INCLUDES) -I. --sysroot=$(_TMSYSROOT) -O2 -DSOCKLEN_T=socklen_t -DNO_STRSTREAM=1 -DLARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
C = c
C_COMPILER = $(CROSS_COMPILE)gcc
C_FLAGS = $(COMPILE_OPTS)
CPP = cpp
CPLUSPLUS_COMPILER = $(CROSS_COMPILE)g++
CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1
OBJ = o
LINK = $(CROSS_COMPILE)g++ -o
LINK_OPTS = -L. --sysroot=$(_TMSYSROOT)
CONSOLE_LINK_OPTS = $(LINK_OPTS)
LIBRARY_LINK = $(CROSS_COMPILE)ld -o
LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -Bstatic
LIB_SUFFIX = a
LIBS_FOR_CONSOLE_APPLICATION =
LIBS_FOR_GUI_APPLICATION =
EXE =
# ./genMakefiel trident
# make
# file mediaServer/live555MediaServer
mediaServer/live555MediaServer: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
# file testProgs/openRTSP
testProgs/openRTSP: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
DONE :)
------
REF:(--sysroot issue, from google)
沒有留言:
張貼留言