Skip to content

Commit 7bcea9c

Browse files
committed
check non portable flags
1 parent 6a4cc5b commit 7bcea9c

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/clang19.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
branches: [main, master]
66

7+
name: "clang 19"
8+
79
jobs:
810
check:
911
runs-on: ubuntu-latest

CRAN-SUBMISSION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Version: 5.3.5
2-
Date: 2024-12-21 03:07:36 UTC
3-
SHA: 7d202f614b340caca7fec216dee6b254bb434552
2+
Date: 2024-12-22 00:00:54 UTC
3+
SHA: 6a4cc5becd878d0c7ce7b7731e69ca869d4a7d8c

configure

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ PKG_DEB_NAME="tesseract-ocr libtesseract-dev libleptonica-dev"
1212
PKG_RPM_NAME="tesseract-devel leptonica-devel"
1313
PKG_BREW_NAME="tesseract"
1414
PKG_TEST_HEADER_TESSERACT="<tesseract/baseapi.h>"
15-
PKG_CFLAGS="-I/usr/include/tesseract -I/usr/include/leptonica"
16-
PKG_LIBS="-ltesseract -larchive -lcurl"
1715

1816
# Use pkg-config if available
1917
pkg-config --version >/dev/null 2>&1
@@ -37,6 +35,18 @@ elif [ "$PKGCONFIG_CFLAGS_TESSERACT" ] || [ "$PKGCONFIG_LIBS_TESSERACT" ]; then
3735
echo "Found pkg-config cflags and libs!"
3836
PKG_CFLAGS="${PKGCONFIG_CFLAGS_TESSERACT}"
3937
PKG_LIBS="${PKGCONFIG_LIBS_TESSERACT}"
38+
else
39+
echo "--------------------------- [ANTICONF] --------------------------------"
40+
echo "Configuration failed to find system libraries. Try installing:"
41+
echo " * deb: $PKG_DEB_NAME (Debian, Ubuntu, etc)"
42+
echo " * rpm: $PKG_RPM_NAME (Fedora, CentOS, RHEL)"
43+
echo " * brew: $PKG_BREW_NAME (Mac OSX)"
44+
echo "If the libraries are already installed, check that 'pkg-config' is in your"
45+
echo "PATH and PKG_CONFIG_PATH contains the necessary .pc files. If pkg-config"
46+
echo "is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:"
47+
echo "R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'"
48+
echo "-------------------------- [ERROR MESSAGE] ---------------------------"
49+
exit 1
4050
fi
4151

4252
# Check if the compiler is clang

0 commit comments

Comments
 (0)