SRS Compile installation Pits

Source: Internet
Author: User
Tags diff
SRS Compilation

Start

#./objs/srs-c conf/rtmp.conf

Kill

#ps aux | grep SRS | awk {' Print $ '} | Xargs Kill

SRS 2.0 Release

[root@cp01-jinya.epc.baidu.com trunk]#/configure./configure_origion:line 67:syntax error near unexpected ' "' Di Rname $__mfile ' './configure_origion:line: ' srs_modules+= (' dirname $__mfile ') '

#将configure = = to the xxx= (${xxx[8]} "SDFSF" of the array); there should be 4 places.

[Root@cp01-jinya.epc.baidu.com trunk]# make ... srs_ingest_flv.c:262:error:for each function it appears in.) srs_ingest_flv.c:in function ' Re_cleanup ': srs_ingest_flv.c:274:error: ' useconds_t ' undeclared ON) make[3]: * * * [objs/srs_ingest_flv] Error 1 make[3]: Leaving directory '/home/forum/srs/trunk/research/librtmp ' make[ 2]: * * * [SSL] Error 2 make[2]: Leaving directory '/home/forum/srs/trunk/research/librtmp ' make[1]: * * * [librtmp] Error 2 m AKE[1]: Leaving directory '/home/forum/srs/trunk ' make: * * * [default] Error 2 [root@cp01-jinya.epc.baidu.com trunk]# vim O Bjs/include/srs_librtmp.h

#加上声明

typedefs typedef int64_t useconds_t; typedef int Srs_bool; ... 20160311 Upgrade make

./configure
Make
After, make is inside the source folder. CP to/usr/bin/below (pay attention to backup)

compiling

Makefile:3: * * * unterminated call to function ' foreach ': Missing ') '. Stop.

See if there is a line, there are lines to remove
Http://stackoverflow.com/questions/18989598/makefile-unterminated-call-to-function-foreach-missing-stop

compiling –with-ffmpeg

When compiling a third party library, build ln-sf into Objs from auto/.
Like FFmpeg, the ln from the OBJS/FFMPEG.SRC.
But when compiling ffmpeg, may encounter disable-asm situation, please confirm is x264 problem or ffmpeg problem

FDK-AAC compiled but
Https://github.com/mstorsjo/fdk-aac/issues/6

Diff--git a/makefile.am b/makefile.am index e995b0a. EFA6FCB 100644---a/makefile.am +++ b/makefile.am @@ -13,7 +13,7 @@ -13,7 = \-i$ (top_srcdir)/libpcmutils/include A M_cxxflags =-fno-exceptions-fno-rtti-libfdk_aac_la_link = $ (LINK) $ (libfdk_aac_la_ldflags) + #libfdk_aac_la_LINK = $ ( LINK) $ (libfdk_aac_la_ldflags) # mention a dummy pure C file to trigger generation of the $ (link) variable Nodist_extra_li bfdk_aac_la_sources = dummy.c diff--git a/configure.ac b/configure.ac index C52D0B9. f489835 100644---a/configure.ac +++ b/configure.ac @@ -19,7 +19,11 @@ -19,7 (EXAMPLE, Test x$example = xyes) dnl Checks for programs. AC_PROG_CC Ac_prog_cxx-lt_init

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.