Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-11-16 11:29:50 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0c39a704c27d30d928cf8df1538c3338fe3d4f47
0c39a704
1 parent
c3986d9d
update build srs librtmp single
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
7 行增加
和
4 行删除
trunk/auto/generate-srs-librtmp-single.sh
trunk/configure
trunk/auto/generate-srs-librtmp-single.sh
查看文件 @
0c39a70
...
...
@@ -93,12 +93,12 @@ SRS_LIBRTMP_OBJS="${LIBS_OBJS[@]}" && build_module_cpp
# create example.cpp
FILE
=
$SRS_EXPORT_LIBRTMP_SINGLE
/example.c
COMPILE
=
'gcc example.c srs_librtmp.cpp -g -O0 -lstdc++ -o example'
SRS_SINGLE_LIBRTMP_
COMPILE
=
'gcc example.c srs_librtmp.cpp -g -O0 -lstdc++ -o example'
cat
<< END >$FILE
/**
# Example to use srs-librtmp
# see: https://github.com/winlinvip/simple-rtmp-server/wiki/v2_CN_SrsLibrtmp
${COMPILE}
${
SRS_SINGLE_LIBRTMP_
COMPILE}
*/
#include <stdio.h>
#include "srs_librtmp.h"
...
...
@@ -119,9 +119,10 @@ int main(int argc, char** argv)
END
# compile the example
(
cd
$SRS_EXPORT_LIBRTMP_SINGLE
&&
`
${
COMPILE
}
`
&&
./example
&&
rm -f example
)
(
cd
$SRS_EXPORT_LIBRTMP_SINGLE
&&
echo
"
${
SRS_SINGLE_LIBRTMP_COMPILE
}
"
&&
`
${
SRS_SINGLE_LIBRTMP_COMPILE
}
`
&&
./example
&&
rm -f example
)
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
echo
"(cd
$SRS_EXPORT_LIBRTMP_SINGLE
&&
${
COMPILE
}
&& ./example && rm -f example)"
echo
"(cd
$SRS_EXPORT_LIBRTMP_SINGLE
&&
${
SRS_SINGLE_LIBRTMP_
COMPILE
}
&& ./example && rm -f example)"
echo
-e
"
${
RED
}
failed to compile example.
${
BLACK
}
"
exit
$ret
fi
...
...
trunk/configure
查看文件 @
0c39a70
...
...
@@ -599,6 +599,8 @@ else
echo
-e
"
${
GREEN
}
$SRS_EXPORT_LIBRTMP_PROJECT
/srs_librtmp.h
${
BLACK
}
"
echo
-e
"
${
GREEN
}
$SRS_EXPORT_LIBRTMP_PROJECT
/srs_librtmp.cpp
${
BLACK
}
"
echo
-e
"
${
GREEN
}
$SRS_EXPORT_LIBRTMP_PROJECT
/example.c
${
BLACK
}
"
echo
-e
"
${
GREEN
}
To compile the example:
${
BLACK
}
"
echo
-e
"
${
GREEN
}
cd
$SRS_EXPORT_LIBRTMP_PROJECT
&&
$SRS_SINGLE_LIBRTMP_COMPILE
${
BLACK
}
"
# for srs-librtmp project.
else
echo
-e
"
${
GREEN
}
Please use the srs-librtmp project:
${
BLACK
}
"
...
...
请
注册
或
登录
后发表评论