Skip to content

Commit

Permalink
add install OpenCV C++ to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thucpd authored and thucpd committed Jul 29, 2023
1 parent dade0b6 commit ea646db
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,25 @@ On Windows:
```bash
vcpkg install sdl2:x64-windows glew:x64-windows glfw3:x64-windows
```
Install OpenCV C++:

```bash
git clone https://github.com/opencv/opencv.git
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
```

- "-DCMAKE_BUILD_TYPE=Release": This specifies a release build with optimizations. You can use Debug for a debug build.

- "-DCMAKE_INSTALL_PREFIX=/usr/local": This sets the installation path. You can change it to any directory you prefer.

- "..": The two dots indicate the path to the OpenCV source directory.

```bash
cmake --build .
sodo make install
```

Build the **CustomChar** executable:

Expand Down Expand Up @@ -145,4 +164,4 @@ bash scripts/format-code.sh # Format code (C++ styling)
- GGML: <https://ggml.ai/>.
- llama.cpp: <https://github.com/ggerganov/llama.cpp>.
- whisper.cpp: <https://github.com/ggerganov/whisper.cpp>.
- LLaMA-v2: <https://ai.meta.com/llama/>.
- LLaMA-v2: <https://ai.meta.com/llama/>.

0 comments on commit ea646db

Please sign in to comment.