Skip to content

Commit e91d692

Browse files
committed
try to fix mac build
1 parent 69750e2 commit e91d692

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Install system dependencies (MacOS)
6060
if: matrix.config.os == 'macos-13' || matrix.config.os == 'macos-14'
6161
run: |
62-
brew install tesseract poppler
62+
brew install tesseract poppler leptonica
6363
6464
- name: Setup R dependencies
6565
uses: r-lib/actions/setup-r-dependencies@v2

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ URL: https://pacha.dev/cpp11tesseract/
2626
BugReports: https://github.com/pachadotdev/cpp11tesseract/issues
2727
SystemRequirements:
2828
Tesseract OCR (
29-
deb: tesseract-ocr libtesseract-dev libleptonica-dev,
30-
rpm: tesseract-devel leptonica-devel,
31-
brew: tesseract leptonica
29+
deb: libtesseract-dev libleptonica-dev libpoppler-cpp-dev,
30+
rpm: tesseract-devel leptonica-devel poppler-devel,
31+
brew: tesseract leptonica poppler
3232
)
3333
Imports:
3434
curl,

configure

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
# Library settings
1010
PKG_CONFIG_NAME="tesseract"
11-
PKG_DEB_NAME="tesseract-ocr libtesseract-dev libleptonica-dev"
12-
PKG_RPM_NAME="tesseract-devel leptonica-devel"
13-
PKG_BREW_NAME="tesseract leptonica"
11+
PKG_DEB_NAME="libtesseract-dev libleptonica-dev libpoppler-cpp-dev"
12+
PKG_RPM_NAME="tesseract-devel leptonica-devel poppler-devel"
13+
PKG_BREW_NAME="tesseract leptonica poppler"
1414
PKG_CFLAGS="-I/usr/include/leptonica"
1515
PKG_LIBS="-ltesseract"
1616

@@ -44,6 +44,10 @@ else
4444
exit 1
4545
fi
4646

47+
# Print debug information
48+
echo "PKG_CFLAGS: $PKG_CFLAGS"
49+
echo "PKG_LIBS: $PKG_LIBS"
50+
4751
# Check if the compiler is clang
4852
if [ "$CC" = "clang" ] || [ "$CXX" = "clang++" ]; then
4953
PKG_LIBS="$PKG_LIBS -stdlib=libc++"

0 commit comments

Comments
 (0)