Skip to content

Commit d0af11f

Browse files
committed
use git submodule to load cmdline
1 parent edfd685 commit d0af11f

File tree

6 files changed

+42
-826
lines changed

6 files changed

+42
-826
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "cmdline"]
2+
path = cmdline
3+
url = [email protected]:tanakh/cmdline.git

README.md

Lines changed: 37 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,56 @@
88

99
实时版最高支持到 **720p30Hz**, 瓶颈是 **编码解码速度**.
1010

11-
#### 环境依赖
11+
### Environmental Dependence
1212

13-
预处理(字体):
14-
CPP 环境.
15-
Python3 环境.
16-
Pillow 包 (安装方式: `pip install Pillow`).
13+
#### Preprocessing (fonts)
14+
CPP and Python3.
15+
Python module Pillow (`pip install Pillow`).
1716

18-
编译:
19-
CPP 环境.
17+
#### Compile
18+
Usually, as long as you can compile the CPP.
2019

21-
运行:
22-
命令行工具: `awk` `grep` `ffmpeg` (包括 `ffmpeg` `ffprobe` `ffplay`).
20+
#### Run
21+
`awk` `grep` `ffmpeg` (Include `ffmpeg` `ffprobe` `ffplay`).
2322

23+
##### Windows
24+
[GnuWin](http://gnuwin32.sourceforge.net/)
25+
[FFmpeg](https://github.com/BtbN/FFmpeg-Builds/releases/tag/latest)
26+
27+
##### Ubuntu / Debian
28+
```sh
29+
sudo apt update
30+
sudo apt install ffmpeg
31+
```
32+
33+
##### CentOS / RedHat
34+
```sh
35+
sudo yum update
36+
sudo yum install ffmpeg
37+
```
38+
39+
##### Arch Linux
40+
```sh
41+
sudo pacman -Syu ffmpeg
42+
```
2443

2544
#### 编译运行
2645

27-
Windows
46+
##### Windows
2847
```sh
29-
clang++ demo.cpp -o demo.exe -w -g -O2 -static-libgcc --target=x86_64-w64-mingw
30-
./demo
48+
clang++ 'badapple.cpp' -lpthread -o 'badapple.exe' -w -g -O2 -static-libgcc --target=x86_64-w64-mingw -std=c++20 -finput-charset=UTF-8 -fexec-charset=UTF-8
49+
./badapple
3150
```
3251

33-
Linux
52+
##### Linux
3453
```sh
35-
g++ demo.cpp -o demo
36-
./demo
54+
g++ ./badapple.cpp -o badapple
55+
./badapple
3756
```
3857

3958
#### To do
4059

41-
命令行工具
60+
Nothing to do.
61+
62+
Ideas are welcome.
4263

badapple

313 KB
Binary file not shown.

badapple.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "badapple.hpp"
2-
#include "cmdline.h"
2+
#include "cmdline/cmdline.h"
33

44
int main(int argc,char**argv){
55
cmdline::parser a;

cmdline

Submodule cmdline added at e4cd007

0 commit comments

Comments
 (0)