Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
SighingSnow committed Jul 10, 2022
1 parent 83c2782 commit 59533b9
Showing 1 changed file with 49 additions and 3 deletions.
52 changes: 49 additions & 3 deletions docs/setup.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,61 @@
## SetUp Instructions
## SetUp

### 0 Local

On your local pc, please set up the signaling server first.

```shell
git submodule update --init --recursive
cd server
python3 signaling-server.py
python3 -m http.server --bind 127.0.0.1 8080
```

And in your browser,type `127.0.0.1:8080`. After you have successfully run the program, press start button.

### 1 Ubuntu
Requires g++>=9.0.0 (any version which supports c++17 will be okay)

Requires g++>=9.0.0 (any version which supports c++17 will be okay),and cmake>=3.15

```shell
sudo apt install libfreetype6-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libavdevice-dev libxxf86vm-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libssl-dev
```

In the project root directory.

```
cmake -B build
cd build
make -j2
./ors
```

### 2 MacOS

Any issue is welcome(I cannot remember the details on macos).

```shell
brew install ffmpeg
cmake -B build
make -j2
./ors
```

### 3 Docker

Switch to docker branch first. The image maybe large(up to 2GB) because of ffmpeg and some other libraries. Please build in the root directory of this project.

```shell
docker build -t ors-image
docker run --rm --name my-ors -p 8080:8080 -p 8000:8000/udp ors-image
```

Then in docker termianl, run

```shell
xvfb-run ./ors
```

### 4 Windows
Windows currently has not been tested.

Windows currently has not been supported yet.

0 comments on commit 59533b9

Please sign in to comment.