-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5aaffb
commit ef9eac5
Showing
5 changed files
with
45 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,51 @@ | ||
## 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. | ||
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 xvfb-run ./ors | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters