Skip to content

Fix compile with gcc7 and tesseract 4#72

Open
bit wants to merge 2 commits into
ruediger:masterfrom
bit:patch-1
Open

Fix compile with gcc7 and tesseract 4#72
bit wants to merge 2 commits into
ruediger:masterfrom
bit:patch-1

Conversation

@bit

@bit bit commented Sep 9, 2018

Copy link
Copy Markdown
Contributor

No description provided.

@sl1pkn07

Copy link
Copy Markdown

should be in CXX, not in C

@bit

bit commented Feb 12, 2019

Copy link
Copy Markdown
Contributor Author

You want to remove set(CMAKE_C_FLAGS "-std=gnu99") and add -std to CXX flags?

@sl1pkn07

sl1pkn07 commented Feb 12, 2019

Copy link
Copy Markdown

set(CMAKE_CXX_FLAGS "-ansi -pedantic -Wall -Wextra -Wno-long-long -std=gnu++11")

instead of

set(CMAKE_C_FLAGS "-std=gnu++11")

@bit

bit commented Mar 15, 2019

Copy link
Copy Markdown
Contributor Author

any chance to merge this?

@Chris00

Chris00 commented Feb 12, 2020

Copy link
Copy Markdown

The alternative set(CMAKE_CXX_STANDARD 11) — proposed in issue #73 — works too and is maybe more elegant.

@Chris00

Chris00 commented Feb 12, 2020

Copy link
Copy Markdown

I use gcc (Debian 9.2.1-25) 9.2.1 20200123 and this patch (or the alternative) is still required.

@glensc

glensc commented Mar 29, 2020

Copy link
Copy Markdown

I can confirm this fixed for me build on Linux

pld-gitsync pushed a commit to pld-linux/vobsub2srt that referenced this pull request Mar 29, 2020
glensc added a commit to glensc/VobSub2SRT that referenced this pull request Apr 7, 2020
@glensc

glensc commented Apr 7, 2020

Copy link
Copy Markdown

This PR needed for docker build too: #77

Geoffrey-A added a commit to Geoffrey-A/VobSub2SRT that referenced this pull request Jun 21, 2020
This contains the following PRs:
- ruediger#72 by bit: Fix compile with gcc7 and tesseract 4
- ruediger#75 by oltodosel: inverting images for tesseract 4
Geoffrey-A added a commit to Geoffrey-A/VobSub2SRT that referenced this pull request Jun 21, 2020
This contains the following PRs:
- ruediger#72 by @bit: Fix compile with gcc7 and tesseract 4
- ruediger#75 by @oltodosel: inverting images for tesseract 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants