mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
docs: add Windows WSL build instructions
This commit is contained in:
@@ -28,6 +28,7 @@ The core functionality is written in C. Other languages used include C++ and Pyt
|
||||
|
||||
Downloads for precompiled binaries and source code can be found [on our website](https://ccextractor.org/public/general/downloads/).
|
||||
|
||||
|
||||
### Windows Package Managers
|
||||
|
||||
**WinGet:**
|
||||
@@ -61,6 +62,10 @@ You can also find the list of parameters and their brief description by running
|
||||
|
||||
You can find sample files on [our website](https://ccextractor.org/public/general/tvsamples/) to test the software.
|
||||
|
||||
### Building from Source
|
||||
|
||||
- [Building on Windows using WSL](docs/build-wsl.md)
|
||||
|
||||
## Compiling CCExtractor
|
||||
|
||||
To learn more about how to compile and build CCExtractor for your platform check the [compilation guide](https://github.com/CCExtractor/ccextractor/blob/master/docs/COMPILATION.MD).
|
||||
|
||||
137
docs/build-wsl.md
Normal file
137
docs/build-wsl.md
Normal file
@@ -0,0 +1,137 @@
|
||||
# Building CCExtractor on Windows using WSL
|
||||
|
||||
This guide explains how to build CCExtractor on Windows using WSL (Ubuntu).
|
||||
It is based on a fresh setup and includes all required dependencies and
|
||||
common build issues encountered during compilation.
|
||||
|
||||
---
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Windows 10 or Windows 11
|
||||
- WSL enabled
|
||||
- Ubuntu installed via Microsoft Store
|
||||
|
||||
---
|
||||
|
||||
## Install WSL and Ubuntu
|
||||
|
||||
From PowerShell (run as Administrator):
|
||||
|
||||
```powershell
|
||||
wsl --install -d Ubuntu
|
||||
```
|
||||
|
||||
Restart the system if prompted, then launch Ubuntu from the Start menu.
|
||||
|
||||
---
|
||||
|
||||
## Update system packages
|
||||
|
||||
```bash
|
||||
sudo apt update
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Install basic build tools
|
||||
|
||||
```bash
|
||||
sudo apt install -y build-essential git pkg-config
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Install Rust (required)
|
||||
|
||||
CCExtractor includes Rust components, so Rust and Cargo are required.
|
||||
|
||||
```bash
|
||||
curl https://sh.rustup.rs -sSf | sh
|
||||
source ~/.cargo/env
|
||||
```
|
||||
|
||||
Verify installation:
|
||||
|
||||
```bash
|
||||
cargo --version
|
||||
rustc --version
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Install required libraries
|
||||
|
||||
```bash
|
||||
sudo apt install -y \
|
||||
libclang-dev clang \
|
||||
libtesseract-dev tesseract-ocr \
|
||||
libgpac-dev
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Clone the repository
|
||||
|
||||
```bash
|
||||
git clone https://github.com/CCExtractor/ccextractor.git
|
||||
cd ccextractor
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Build CCExtractor
|
||||
|
||||
```bash
|
||||
cd linux
|
||||
./build
|
||||
```
|
||||
|
||||
After a successful build, verify by running:
|
||||
|
||||
```bash
|
||||
./ccextractor
|
||||
```
|
||||
|
||||
You should see the help/usage output.
|
||||
|
||||
---
|
||||
|
||||
## Common build issues
|
||||
|
||||
### cargo: command not found
|
||||
|
||||
```bash
|
||||
source ~/.cargo/env
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Unable to find libclang
|
||||
|
||||
```bash
|
||||
sudo apt install libclang-dev clang
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### gpac/isomedia.h: No such file or directory
|
||||
|
||||
```bash
|
||||
sudo apt install libgpac-dev
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### please install tesseract development library
|
||||
|
||||
```bash
|
||||
sudo apt install libtesseract-dev tesseract-ocr
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Compiler warnings during the build process are expected and do not indicate failure.
|
||||
- This guide was tested on Ubuntu (WSL) running on Windows 11.
|
||||
Reference in New Issue
Block a user