mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
use c++17 instead of c++11
This commit is contained in:
parent
96772c5761
commit
f251a0da39
4
.github/workflows/autotools-macos.yml
vendored
4
.github/workflows/autotools-macos.yml
vendored
@ -93,7 +93,7 @@ jobs:
|
||||
run: |
|
||||
export "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig"
|
||||
cd test
|
||||
${{ matrix.config.cxx }} -o basicapitest testing/basicapitest.cpp $(pkg-config --cflags --libs tesseract lept) -pthread -std=c++11 -framework accelerate
|
||||
${{ matrix.config.cxx }} -o basicapitest testing/basicapitest.cpp $(pkg-config --cflags --libs tesseract lept) -pthread -std=c++17 -framework accelerate
|
||||
./basicapitest
|
||||
|
||||
- name: Display Compiler Version
|
||||
@ -193,7 +193,7 @@ jobs:
|
||||
run: |
|
||||
export "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig"
|
||||
cd test
|
||||
${{ matrix.config.cxx }} -o basicapitest testing/basicapitest.cpp -I/opt/local/include -L/opt/local/lib $(pkg-config --cflags --libs tesseract lept) -pthread -std=c++11 -framework Accelerate
|
||||
${{ matrix.config.cxx }} -o basicapitest testing/basicapitest.cpp -I/opt/local/include -L/opt/local/lib $(pkg-config --cflags --libs tesseract lept) -pthread -std=c++17 -framework Accelerate
|
||||
./basicapitest
|
||||
|
||||
- name: Display Compiler Version
|
||||
|
2
.github/workflows/autotools.yml
vendored
2
.github/workflows/autotools.yml
vendored
@ -92,7 +92,7 @@ jobs:
|
||||
run: |
|
||||
export "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig"
|
||||
cd test
|
||||
${{ matrix.config.cxx }} -o basicapitest testing/basicapitest.cpp -I/usr/local/include -L/usr/local/lib `pkg-config --cflags --libs tesseract lept ` -pthread -std=c++11
|
||||
${{ matrix.config.cxx }} -o basicapitest testing/basicapitest.cpp -I/usr/local/include -L/usr/local/lib `pkg-config --cflags --libs tesseract lept ` -pthread -std=c++17
|
||||
./basicapitest
|
||||
|
||||
- name: Setup for Tesseract benchmark using image from issue 263 fifteen times in a list file
|
||||
|
4
.github/workflows/cmake.yml
vendored
4
.github/workflows/cmake.yml
vendored
@ -133,7 +133,7 @@ jobs:
|
||||
run: |
|
||||
export "PKG_CONFIG_PATH=$GITHUB_WORKSPACE/build/inst/lib/pkgconfig/:$PKG_CONFIG_PATH"
|
||||
cd test
|
||||
${{ matrix.config.cxx }} -o basicapitest testing/basicapitest.cpp "-I$GITHUB_WORKSPACE/build/inst/include" "-L$GITHUB_WORKSPACE/build/inst/lib" $(pkg-config --cflags --libs tesseract lept libarchive libcurl) -pthread -std=c++11
|
||||
${{ matrix.config.cxx }} -o basicapitest testing/basicapitest.cpp "-I$GITHUB_WORKSPACE/build/inst/include" "-L$GITHUB_WORKSPACE/build/inst/lib" $(pkg-config --cflags --libs tesseract lept libarchive libcurl) -pthread -std=c++17
|
||||
./basicapitest
|
||||
if: runner.os == 'Linux'
|
||||
|
||||
@ -141,7 +141,7 @@ jobs:
|
||||
run: |
|
||||
export "PKG_CONFIG_PATH=$GITHUB_WORKSPACE/build/inst/lib/pkgconfig/:$(brew --prefix)/opt/libarchive/lib/pkgconfig:$(brew --prefix)/Library/Homebrew/os/mac/pkgconfig/11:$PKG_CONFIG_PATH"
|
||||
cd test
|
||||
${{ matrix.config.cxx }} -o basicapitest testing/basicapitest.cpp "-I$GITHUB_WORKSPACE/build/inst/include" "-L$GITHUB_WORKSPACE/build/inst/lib" $(pkg-config --cflags --libs tesseract lept libcurl) -pthread -std=c++11
|
||||
${{ matrix.config.cxx }} -o basicapitest testing/basicapitest.cpp "-I$GITHUB_WORKSPACE/build/inst/include" "-L$GITHUB_WORKSPACE/build/inst/lib" $(pkg-config --cflags --libs tesseract lept libcurl) -pthread -std=c++17
|
||||
./basicapitest
|
||||
if: runner.os == 'macOS'
|
||||
|
||||
|
@ -10,7 +10,7 @@ You need Leptonica 1.74.2 (minimum) for Tesseract 4.0x.
|
||||
|
||||
Known dependencies for training tools (excluding leptonica):
|
||||
|
||||
* compiler with c++11 support
|
||||
* compiler with c++17 support
|
||||
* automake
|
||||
* pkg-config
|
||||
* pango-devel
|
||||
|
Loading…
Reference in New Issue
Block a user