Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
ead8b5a8
Commit
ead8b5a8
authored
Feb 05, 2020
by
xiongziliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ios默认只生成c静态库
parent
89e191f7
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
38 行增加
和
47 行删除
+38
-47
README.md
+14
-7
README_en.md
+0
-8
api/CMakeLists.txt
+24
-19
build_for_ios.sh
+0
-13
没有找到文件。
README.md
查看文件 @
ead8b5a8
...
...
@@ -200,13 +200,7 @@ git submodule update --init
## 编译(iOS)
- 编译环境:`请参考macOS的编译指导。`
- 编译
```
cd ZLMediaKit
./build_for_ios.sh
```
- 你也可以生成Xcode工程再编译,[了解更多](https://github.com/leetal/ios-cmake):
- 生成Xcode工程再编译,[了解更多](https://github.com/leetal/ios-cmake):
```
cd ZLMediaKit
...
...
@@ -243,6 +237,19 @@ git submodule update --init
4 选择编译Release 版本.
5 找到目标文件并运行测试用例.
```
## Docker Image
You can pull a pre-built docker image from Docker Hub and run with
```
bash
docker run -id -p 1935:1935 -p 8080:80 gemfield/zlmediakit
```
Dockerfile is also supplied to build images on Ubuntu 16.04
```
bash
cd docker
docker build -t zlmediakit .
```
## 使用方法
- 作为服务器:
```
cpp
...
...
README_en.md
查看文件 @
ead8b5a8
...
...
@@ -176,14 +176,6 @@ git submodule update --init
```
### Build on iOS
This build method is no longer recommended.It is recommended that make Xcode project by yourself.
- My environment
Same with Build on macOS
- You can generate Xcode projects and recompile them , [learn more](https://github.com/leetal/ios-cmake):
```
...
...
api/CMakeLists.txt
查看文件 @
ead8b5a8
include_directories
(
include source
)
file
(
GLOB api_src_list include/*.h source/*.cpp source/*.h source/*.c
)
add_library
(
mk_api SHARED
${
api_src_list
}
)
if
(
WIN32
)
add_definitions
(
-DMediaKitApi_EXPORTS
)
endif
()
target_link_libraries
(
mk_api
${
LINK_LIB_LIST
}
)
add_subdirectory
(
tests
)
file
(
GLOB api_src_list include/*.h source/*.cpp source/*.h source/*.c
)
if
(
IOS
)
add_library
(
mk_api STATIC
${
api_src_list
}
)
target_link_libraries
(
mk_api
${
LINK_LIB_LIST
}
)
else
()
add_library
(
mk_api SHARED
${
api_src_list
}
)
if
(
WIN32
)
add_definitions
(
-DMediaKitApi_EXPORTS
)
endif
()
#安装目录
if
(
WIN32
)
set
(
INSTALL_PATH_LIB $ENV{HOME}/
${
CMAKE_PROJECT_NAME
}
/lib
)
set
(
INSTALL_PATH_INCLUDE $ENV{HOME}/
${
CMAKE_PROJECT_NAME
}
/include
)
else
()
set
(
INSTALL_PATH_LIB lib
)
set
(
INSTALL_PATH_INCLUDE include
)
endif
()
target_link_libraries
(
mk_api
${
LINK_LIB_LIST
}
)
add_subdirectory
(
tests
)
file
(
GLOB api_header_list include/*.h
)
install
(
FILES
${
api_header_list
}
DESTINATION
${
INSTALL_PATH_INCLUDE
}
)
install
(
TARGETS mk_api ARCHIVE DESTINATION
${
INSTALL_PATH_LIB
}
LIBRARY DESTINATION
${
INSTALL_PATH_LIB
}
)
#安装目录
if
(
WIN32
)
set
(
INSTALL_PATH_LIB $ENV{HOME}/
${
CMAKE_PROJECT_NAME
}
/lib
)
set
(
INSTALL_PATH_INCLUDE $ENV{HOME}/
${
CMAKE_PROJECT_NAME
}
/include
)
else
()
set
(
INSTALL_PATH_LIB lib
)
set
(
INSTALL_PATH_INCLUDE include
)
endif
()
file
(
GLOB api_header_list include/*.h
)
install
(
FILES
${
api_header_list
}
DESTINATION
${
INSTALL_PATH_INCLUDE
}
)
install
(
TARGETS mk_api ARCHIVE DESTINATION
${
INSTALL_PATH_LIB
}
LIBRARY DESTINATION
${
INSTALL_PATH_LIB
}
)
endif
()
\ No newline at end of file
build_for_ios.sh
deleted
100755 → 0
查看文件 @
89e191f7
#!/bin/bash
cd
..
git clone
--depth
=
1 https://github.com/xiongziliang/ZLMediaKit.git
cd
ZLMediaKit
git submodule init
git submodule update
mkdir
-p
ios_build
rm
-rf
./build
ln
-s
./ios_build build
cd
ios_build
cmake ..
-DCMAKE_TOOLCHAIN_FILE
=
../cmake/iOS.cmake
-DIOS_PLATFORM
=
OS
make
-j4
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论