移植live555 到hi3518

1.修改config.armlinux文件

CROSS_COMPILE?=  /opt/hisi-linux-nptl/arm-hisiv100-linux/bin/arm-hisiv100-linux-uclibcgnueabi-
COMPILE_OPTS =  $(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t -DNO_SSTREAM=1 -D_LARGEFILE_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 -DLOCALE_NOT_USED
OBJ =   o
LINK =   $(CROSS_COMPILE)g++ -o
LINK_OPTS =  
CONSOLE_LINK_OPTS = $(LINK_OPTS)
LIBRARY_LINK =  $(CROSS_COMPILE)ar cr
LIBRARY_LINK_OPTS = $(LINK_OPTS)
LIB_SUFFIX =   a
LIBS_FOR_CONSOLE_APPLICATION =
LIBS_FOR_GUI_APPLICATION =
EXE =

2.打开readme,里边的网页打开 http://www.live555.com/liveMedia/#config-unix

 

How to configure and build the code on Unix(including Linux, Mac OS X, QNX, and other Posix-compliant systems)

The source code package can be found (as a ".tar.gz" file)here. Use "tar -x" and "gunzip" (or "tar -xz", if available) to extract the package; then cd to the "live" directory. Then run

    ./genMakefiles <os-platform>

where <os-platform> is your target platform - e.g., "linux" or "solaris" -  defined by a "config.<os-platform>" file. This will generate a Makefile in the "live" directory and each subdirectory. Then run "make".

  • If the "make" fails, you may need to make small modifications to the appropriate "config.<os-platform>" file, and then re-run "genMakefiles <os-platform>". (E.g., you may need to add another "-I<dir>" flag to the COMPILE_OPTS definition.)
  • Some people (in particular, FreeBSD users) have reported that theGNU version of "make"- often called "gmake" -  works better than their default, pre-installed version of "make". (In particular, you should try using "gmake" if you encounter linking problems with the "ar" command.)
  • If you're using "gcc" version 3.0 or greater:You may also wish to add the -Wno-deprecated flag to CPLUSPLUS_FLAGS.
  • If no "config.<os-platform>" file exists for your target platform, then try using one of the existing files as a template.

If you wish, you can also 'install' the headers, libraries, and applications by running "make install".

 

 

 

3.编译完成,正常情况下已经可以使用了。我的板子文件系统里少了一个库libstdc++.so.6,又重新烧写了一个完整文件系统,这个文件系统启动后没有ip地址,执行如下指令搞定

ifconfig eth0 192.168.1.10
route add default gw 192.168.1.1
mount tmpfs /tmp -t tmpfs

你可能感兴趣的:(移植live555 到hi3518)