use c++17 instead of c++11

This commit is contained in:
zdenop 2024-06-11 19:25:15 +02:00
parent 96772c5761
commit f251a0da39
4 changed files with 6 additions and 6 deletions

View File

@ -93,7 +93,7 @@ jobs:
run: | run: |
export "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" export "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig"
cd test 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 ./basicapitest
- name: Display Compiler Version - name: Display Compiler Version
@ -193,7 +193,7 @@ jobs:
run: | run: |
export "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" export "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig"
cd test 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 ./basicapitest
- name: Display Compiler Version - name: Display Compiler Version

View File

@ -92,7 +92,7 @@ jobs:
run: | run: |
export "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" export "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig"
cd test 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 ./basicapitest
- name: Setup for Tesseract benchmark using image from issue 263 fifteen times in a list file - name: Setup for Tesseract benchmark using image from issue 263 fifteen times in a list file

View File

@ -133,7 +133,7 @@ jobs:
run: | run: |
export "PKG_CONFIG_PATH=$GITHUB_WORKSPACE/build/inst/lib/pkgconfig/:$PKG_CONFIG_PATH" export "PKG_CONFIG_PATH=$GITHUB_WORKSPACE/build/inst/lib/pkgconfig/:$PKG_CONFIG_PATH"
cd test 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 ./basicapitest
if: runner.os == 'Linux' if: runner.os == 'Linux'
@ -141,7 +141,7 @@ jobs:
run: | 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" 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 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 ./basicapitest
if: runner.os == 'macOS' if: runner.os == 'macOS'

View File

@ -10,7 +10,7 @@ You need Leptonica 1.74.2 (minimum) for Tesseract 4.0x.
Known dependencies for training tools (excluding leptonica): Known dependencies for training tools (excluding leptonica):
* compiler with c++11 support * compiler with c++17 support
* automake * automake
* pkg-config * pkg-config
* pango-devel * pango-devel