Skip to content

Commit

Permalink
Assume pkg-config gives the leptonica subdir.
Browse files Browse the repository at this point in the history
This is effectively already assumed via the configure test.
Closes #76
  • Loading branch information
jeroen committed Oct 3, 2024
1 parent a4a890e commit 43b991a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ jobs:
config:
- {os: macos-13, r: 'release'}
- {os: macos-14, r: 'release'}
- {os: windows-4.1 , r: 'release'}
- {os: windows-latest , r: 'release'}
- {os: windows-latest , r: '4.1'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
- {os: ubuntu-24.04, r: 'release'}
- {os: ubuntu-22.04, r: 'release'}
- {os: ubuntu-20.04, r: 'release'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RWINLIB = ../windows/tesseract
PKG_CPPFLAGS = -I${RWINLIB}/include
PKG_CPPFLAGS = -I${RWINLIB}/include -I${RWINLIB}/include/leptonica

PKG_LIBS = \
-L${RWINLIB}/lib${subst gcc,,${COMPILED_BY}}${R_ARCH} \
Expand Down
2 changes: 1 addition & 1 deletion src/tesseract_types.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <tesseract/baseapi.h>
#include <leptonica/allheaders.h>
#include <allheaders.h>

#define R_NO_REMAP
#define STRICT_R_HEADERS
Expand Down

0 comments on commit 43b991a

Please sign in to comment.