Skip to content

Commit 0470040

Browse files
authored
Merge pull request #9 from prateekmedia/patch-1
FFMPEG 5 compatibility
2 parents b488126 + 4729a71 commit 0470040

File tree

6 files changed

+179
-94
lines changed

6 files changed

+179
-94
lines changed

.github/workflows/build_linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build CCExtractor on Linux
22

33
on:
4+
workflow_dispatch:
45
push:
56
paths:
67
- '.github/workflows/build_linux.yml'
@@ -96,7 +97,7 @@ jobs:
9697
restore-keys: ${{ runner.os }}-cargo-
9798
- uses: actions-rs/toolchain@v1
9899
with:
99-
toolchain: 1.56.0
100+
toolchain: 1.57.0
100101
override: true
101102
- name: build
102103
run: cargo build

.github/workflows/build_windows.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build CCExtractor on Windows
22

33
on:
4+
workflow_dispatch:
45
push:
56
paths:
67
- ".github/workflows/build_windows.yml"
@@ -27,7 +28,7 @@ jobs:
2728
run: choco install llvm
2829
- uses: actions-rs/toolchain@v1
2930
with:
30-
toolchain: 1.56.0
31+
toolchain: 1.57.0
3132
override: true
3233
- name: Install Win 10 SDK
3334
uses: ilammy/msvc-dev-cmd@v1
@@ -59,7 +60,7 @@ jobs:
5960
run: choco install llvm
6061
- uses: actions-rs/toolchain@v1
6162
with:
62-
toolchain: 1.56.0
63+
toolchain: 1.57.0
6364
override: true
6465
- name: Install Win 10 SDK
6566
uses: ilammy/msvc-dev-cmd@v1
@@ -95,11 +96,17 @@ jobs:
9596
platform: x86
9697
- uses: actions-rs/toolchain@v1
9798
with:
98-
toolchain: 1.56.0
99+
toolchain: 1.57.0
99100
override: true
100101
target: i686-pc-windows-msvc
101102
- name: Install Win 10 SDK
102103
uses: ilammy/msvc-dev-cmd@v1
104+
- name: Clone vcpkg
105+
run: git clone --depth 1 --single-branch --recursive https://github.com/microsoft/vcpkg.git
106+
- name: Setup vcpkg
107+
run: cd vcpkg && bootstrap-vcpkg.bat && vcpkg integrate install
108+
- name: Install dependencies
109+
run: cd vcpkg && vcpkg install leptonica:x86-windows-static-md
103110
- name: build Release-Full
104111
env:
105112
LIBCLANG_PATH: "C:\\Program Files\\LLVM\\lib"
@@ -129,9 +136,15 @@ jobs:
129136
with:
130137
version: latest
131138
platform: x86
139+
- name: Clone vcpkg
140+
run: git clone --depth 1 --single-branch --recursive https://github.com/microsoft/vcpkg.git
141+
- name: Setup vcpkg
142+
run: cd vcpkg && bootstrap-vcpkg.bat && vcpkg integrate install
143+
- name: Install dependencies
144+
run: cd vcpkg && vcpkg install leptonica:x86-windows-static-md
132145
- uses: actions-rs/toolchain@v1
133146
with:
134-
toolchain: 1.56.0
147+
toolchain: 1.57.0
135148
override: true
136149
target: i686-pc-windows-msvc
137150
- name: Install Win 10 SDK

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ if(WIN32)
128128
include_directories ("${PROJECT_SOURCE_DIR}/thirdparty/win_spec_incld/")
129129
include_directories ("${PROJECT_SOURCE_DIR}/thirdparty/win_iconv/")
130130
aux_source_directory ("${PROJECT_SOURCE_DIR}/thirdparty/win_iconv/" SOURCEFILE)
131-
set (EXTRA_LIBS ${EXTRA_LIBS} ws2_32 winmm)
131+
set (EXTRA_LIBS ${EXTRA_LIBS} ws2_32 winmm Bcrypt)
132132
else (WIN32)
133133
# Adding some platform specific library path
134134
link_directories (/opt/local/lib)

src/rust/Cargo.lock

Lines changed: 53 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rust/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ env_logger = "0.8.4"
1616
iconv = "0.1.1"
1717
palette = "0.6.0"
1818
ffmpeg-sys-next = { version = "5.0.1", optional = true, default-features = false, features = ["avcodec", "avformat", "swscale", "build"]}
19-
tesseract-sys = { version = "0.5.12", optional = true, default-features = false}
20-
leptonica-sys = { version = "0.4.1", optional = true, default-features = false}
19+
tesseract-sys = { version = "0.5.14", optional = true, default-features = false}
20+
leptonica-sys = { version = "0.4.3", optional = true, default-features = false}
2121

2222
[build-dependencies]
2323
bindgen = "0.58.1"

0 commit comments

Comments
 (0)