opencvsharp
opencvsharp copied to clipboard
update `libtesseract-dev` from `4.1.1` to `5.3.0` when building `libOpenCvSharpEx.so` in Ubuntu 20 or 22.04
https://github.com/shimat/opencvsharp/issues/1448#issuecomment-1452296881:
libtesseract-dev from the default source of Ubuntu 22.04 and 20.04 is still in 4.1.1, and the latest version provided by @AlexanderP 's PPA is 5.3.0
Note any end user who using libOpenCvSharpEx.so will have to install the corresponding version of libtesseract-dev from PAA too even if they haven't any usages on OpenCvSharp.Text.OCRTesseract since libtesseract.so.5 is not statically linked into libOpenCvSharpEx.so.
I'm not touching windows build since not familiar with MSVC.
This also fixes #881
I don't know why some critical symbol is missing in GitHub Actions environment, it just works fine for me when using Dockerfile to build.
https://github.com/shimat/opencvsharp/commit/8501d7dabb3a41caad3d82b3f7196632881f6cf1/checks/11862616015/logs
2023-03-08T20:26:09.3772265Z /usr/bin/ld: .//libOpenCvSharpExtern.so: undefined reference to `tesseract::TessBaseAPI::Recognize(ETEXT_DESC*)'
2023-03-08T20:26:09.3772684Z /usr/bin/ld: .//libOpenCvSharpExtern.so: undefined reference to `tesseract::TessBaseAPI::Init(char const*, char const*, tesseract::OcrEngineMode, char**, int, GenericVector<STRING> const*, GenericVector<STRING> const*, bool)'
2023-03-08T20:26:09.3772813Z collect2: error: ld returned 1 exit status
2023-03-08T20:26:09.3784329Z ##[error]Process completed with exit code 1.
2023-03-08T20:26:09.3853002Z Post job cleanup.
Any chance to get this update for Windows too? I'm trying to compile the wrapper, but without success because the library is old and the referenced packages have been deleted from mirrors. Although I don't know if and how many other dependencies could fails when trying to link a build done through the official vcpkg repo, the latest tesseract could at least fix a good amount.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
up
@shimat how can i help merge this?