Skip to content

Commit

Permalink
tesseract: update to 5.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre committed Nov 20, 2024
1 parent cf78482 commit 6c55422
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
4 changes: 2 additions & 2 deletions thirdparty/tesseract/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ list(APPEND BUILD_CMD COMMAND ninja)
list(APPEND INSTALL_CMD COMMAND ${CMAKE_COMMAND} --install .)

external_project(
DOWNLOAD URL d26794016908c0859d893951f0efea73
https://github.com/tesseract-ocr/tesseract/archive/refs/tags/5.4.1.tar.gz
DOWNLOAD URL 17a6d7b78793ff587686449b29d51894
https://github.com/tesseract-ocr/tesseract/archive/refs/tags/5.5.0.tar.gz
PATCH_FILES ${PATCH_FILES}
CMAKE_ARGS ${CMAKE_ARGS}
BUILD_COMMAND ${BUILD_CMD}
Expand Down
13 changes: 2 additions & 11 deletions thirdparty/tesseract/cmake_tweaks.patch
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,6 @@
endif()
target_link_libraries(libtesseract PRIVATE ${LIB_Ws2_32} ${LIB_pthread})
if(OpenMP_CXX_FOUND)
@@ -829,7 +836,7 @@
${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
set_target_properties(
libtesseract PROPERTIES SOVERSION
- ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
+ ${VERSION_MAJOR})

set_target_properties(
libtesseract
@@ -865,18 +872,20 @@
endif()

Expand Down Expand Up @@ -90,8 +81,8 @@
URL: https://github.com/tesseract-ocr/tesseract
Version: @tesseract_VERSION@
Requires.private: lept
-Libs: -L${libdir} -l@tesseract_OUTPUT_NAME@ @libarchive_LIBS@ @libcurl_LIBS@ @TENSORFLOW_LIBS@
+Libs: -L${libdir} -l@tesseract_OUTPUT_NAME@ @cpu_features_LIBS@ @libarchive_LIBS@ @libcurl_LIBS@ @TENSORFLOW_LIBS@
-Libs: -L${libdir} -l@tesseract_OUTPUT_NAME@ @libarchive_LIBS@ @libcurl_LIBS@
+Libs: -L${libdir} -l@tesseract_OUTPUT_NAME@ @cpu_features_LIBS@ @libarchive_LIBS@ @libcurl_LIBS@
Libs.private:
Cflags: -I${includedir}

0 comments on commit 6c55422

Please sign in to comment.