Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
build-*
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea
*build*
build-*
build
slowmoFlowBuilder
10 changes: 10 additions & 0 deletions Dockerfile-ubuntu2004
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ubuntu:20.04

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y freeglut3-dev libopencv-dev libglew-dev cmake build-essential

RUN apt-get install -y cmake build-essential

WORKDIR /_build

CMD [ "/bin/sh", "./build.sh" ]
10 changes: 10 additions & 0 deletions Dockerfile-ubuntu2204
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ubuntu:22.04

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y freeglut3-dev libopencv-dev libglew-dev cmake build-essential

RUN apt-get install -y cmake build-essential

WORKDIR /_build

CMD [ "/bin/sh", "./build.sh" ]
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,21 @@ It can be used by slowmoVideo.

## Building

On Ubuntu 20.04, install the requirements `freeglut3-dev libopencv-dev libglew-dev `
Before building, get the latest version with the following command:

```bash
# Get the latest commit of this branch
git pull --rebase

# Update the libSvFlow submodule to the correct commit
git submodule update --init
```

### Ubuntu 20.04

On Ubuntu 20.04, install the requirements `freeglut3-dev libopencv-dev libglew-dev `

```bash
mkdir build
cd build
cmake ..
Expand All @@ -20,3 +31,18 @@ make
# or install:
sudo make install
```

### Docker

You can build slowmoFlowBuilder with Docker for different target systems.
Currently, Ubuntu 20.04 and Ubuntu 22.04 are supported.

```bash
# Build the docker image which will build slowmoFlowBuilder
# For Ubuntu 20.04: use Dockerfile-ubuntu2004 instead
docker build . -t v3d-builder -f Dockerfile-ubuntu2204

# Build v3d-flow-builder inside the docker image.
# The executable will be copied to the working directory.
docker run -it --rm -v $(pwd):/_build -u $(id -u) v3d-builder
```
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

mkdir -p build-docker
cd build-docker
cmake ..
make
cp src/slowmoFlowBuilder ..