Skip to content

Instantly share code, notes, and snippets.

@clarkfitzg
Created September 8, 2018 00:05
Show Gist options
  • Select an option

  • Save clarkfitzg/708aff7ec73d9b3ba6c7b54d72947f7a to your computer and use it in GitHub Desktop.

Select an option

Save clarkfitzg/708aff7ec73d9b3ba6c7b54d72947f7a to your computer and use it in GitHub Desktop.
Fun with installing Rtesseract
clark@campus-108-089 ~/dev/Rtesseract (master)
$ ./configure
checking for pkg-config... /usr/local/bin/pkg-config
Package tesseract was not found in the pkg-config search path.
Perhaps you should add the directory containing `tesseract.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tesseract' found
Package tesseract was not found in the pkg-config search path.
Perhaps you should add the directory containing `tesseract.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tesseract' found
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
CXXFLAGS = -std=c++11
Tesseract CFLAGS =
No GetInputName() method for the TessBaseAPI
No GetDatapath() method for the TessBaseAPI
No GetSourceYResolution() method for the TessBaseAPI
TessPDFRender constructor has no textonly parameter
NO DetectOrientationScript() method
No OEM_LSTM_ONLY enumeration value for the TessBaseAPI
No OEM_CUBE_ONLY enumeration value for the TessBaseAPI
Compiling readImage
readImg.cpp:4:10: fatal error: 'baseapi.h' file not found
#include <baseapi.h>
^~~~~~~~~~~
1 error generated.
Failed to create readImage. Problems with compilation and/or linking.
Package tesseract was not found in the pkg-config search path.
Perhaps you should add the directory containing `tesseract.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tesseract' found
Tesseract version:
Leptonica version: 1.76.0
R_INCLUDE_DIR:
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/imageCapabilities.R
config.status: creating R/config.R
clark@campus-108-089 ~/dev/Rtesseract (master)
$ echo $PKG_CONFIG_PATH
clark@campus-108-089 ~/dev/Rtesseract (master)
$ export PKG_CONFIG_PATH=/Users/clark/dev/tesseract/
clark@campus-108-089 ~/dev/Rtesseract (master)
$ echo $PKG_CONFIG_PATH
/Users/clark/dev/tesseract/
clark@campus-108-089 ~/dev/Rtesseract (master)
$ ./configure
checking for pkg-config... /usr/local/bin/pkg-config
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
CXXFLAGS = -std=c++11
Tesseract CFLAGS = -I/Users/clark/dev/tesseract/build/include -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica
No GetInputName() method for the TessBaseAPI
No GetDatapath() method for the TessBaseAPI
No GetSourceYResolution() method for the TessBaseAPI
Has textonly parameter
NO DetectOrientationScript() method
No OEM_LSTM_ONLY enumeration value for the TessBaseAPI
No OEM_CUBE_ONLY enumeration value for the TessBaseAPI
Compiling readImage
readImg.cpp:4:10: fatal error: 'baseapi.h' file not found
#include <baseapi.h>
^~~~~~~~~~~
1 error generated.
Failed to create readImage. Problems with compilation and/or linking.
Tesseract version: 4.0.0-beta.4-138-g2093
Leptonica version: 1.76.0
R_INCLUDE_DIR:
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/imageCapabilities.R
config.status: creating R/config.R
clark@campus-108-089 ~/dev/Rtesseract (master)
$ ./configure
checking for pkg-config... /usr/local/bin/pkg-config
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
CXXFLAGS = -std=c++11
Tesseract CFLAGS = -I/Users/clark/dev/tesseract/build/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica
TessPDFRender constructor has no textonly parameter
NO DetectOrientationScript() method
No OEM_CUBE_ONLY enumeration value for the TessBaseAPI
Compiling readImage
testing leptonica can read different image formats
jpg support
tiff support
png support
Error in pixReadStreamWebP: function not present
Error in pixReadStream: webp: no pix returned
Error in pixRead: pix not read
Error in findFileFormatStream: truncated file
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
** no jp2 suppport
Error in pixReadStreamGif: function not present
Error in pixReadStream: gif: no pix returned
Error in pixRead: pix not read
bmp support
pnm support
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
spix support
Tesseract version: 4.0.0-beta.2
Leptonica version: 1.76.0
R_INCLUDE_DIR:
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/imageCapabilities.R
config.status: creating R/config.R
clark@campus-108-089 ~/dev/Rtesseract (master)
$ ls
Changelog cleanup readImage
DESCRIPTION config.R.win readImg.cpp
Experiments config.log sampleImage.bmp
INSTALL.md config.status sampleImage.gif
INSTALL.windows configure sampleImage.jp2
InstallingTesseract.md configure.ac sampleImage.jpg
Installing_Rtesseract.md configure.win sampleImage.png
NAMESPACE createSamplePNG.R sampleImage.pnm
Note findLines_notes sampleImage.ps
R imageCapabilities.R.win sampleImage.spix
README.md inst sampleImage.webp
TODO.md lines.R src
TODO.win lines2.R testRexit
TU man tests
clark@campus-108-089 ~/dev/Rtesseract (master)
$ R CMD INSTALL .
* installing to library ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library’
* installing *source* package ‘Rtesseract’ ...
checking for pkg-config... /usr/local/bin/pkg-config
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
CXXFLAGS = -std=c++11
Tesseract CFLAGS = -I/Users/clark/dev/tesseract/build/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica
TessPDFRender constructor has no textonly parameter
NO DetectOrientationScript() method
No OEM_CUBE_ONLY enumeration value for the TessBaseAPI
Compiling readImage
testing leptonica can read different image formats
jpg support
tiff support
png support
Error in pixReadStreamWebP: function not present
Error in pixReadStream: webp: no pix returned
Error in pixRead: pix not read
Error in findFileFormatStream: truncated file
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
** no jp2 suppport
Error in pixReadStreamGif: function not present
Error in pixReadStream: gif: no pix returned
Error in pixRead: pix not read
bmp support
pnm support
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
spix support
Tesseract version: 4.0.0-beta.2
Leptonica version: 1.76.0
R_INCLUDE_DIR: /Library/Frameworks/R.framework/Resources/include
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/imageCapabilities.R
config.status: creating R/config.R
** libs
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_OEM_LSTM=1 -std=gnu++1
1 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c PageSegMode.cc -o PageSegMode.o
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_OEM_LSTM=1 -std=gnu++1
1 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c RConverters.cc -o RConverters.o
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_OEM_LSTM=1 -std=gnu++1
1 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c RtesseractBoxRenderer.cc -o RtesseractBoxRende
rer.o
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_OEM_LSTM=1 -std=gnu++1
1 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c confidence.cpp -o confidence.o
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_OEM_LSTM=1 -std=gnu++1
1 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c exit.cpp -o exit.o
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_OEM_LSTM=1 -std=gnu++1
1 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c ext.cpp -o ext.o
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_OEM_LSTM=1 -std=gnu++1
1 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c lept.cc -o lept.o
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_OEM_LSTM=1 -std=gnu++1
1 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c leptLines.cc -o leptLines.o
leptLines.cc:277:14: warning: unused variable 'val' [-Wunused-variable]
l_uint32 val;
^
leptLines.cc:298:14: warning: unused variable 'val' [-Wunused-variable]
l_uint32 val;
^
leptLines.cc:426:1: warning: unused variable 'pixs2' [-Wunused-variable]
PIX_FUN2(pixSubtract)
^
leptLines.cc:415:10: note: expanded from macro 'PIX_FUN2'
PIX *pixs2 = GET_REF(r_pixs2, PIX); \
^
leptLines.cc:427:1: warning: unused variable 'pixs2' [-Wunused-variable]
PIX_FUN2(pixAnd)
^
leptLines.cc:415:10: note: expanded from macro 'PIX_FUN2'
PIX *pixs2 = GET_REF(r_pixs2, PIX); \
^
leptLines.cc:428:1: warning: unused variable 'pixs2' [-Wunused-variable]
PIX_FUN2(pixOr)
^
leptLines.cc:415:10: note: expanded from macro 'PIX_FUN2'
PIX *pixs2 = GET_REF(r_pixs2, PIX); \
^
leptLines.cc:429:1: warning: unused variable 'pixs2' [-Wunused-variable]
PIX_FUN2(pixXor)
^
leptLines.cc:415:10: note: expanded from macro 'PIX_FUN2'
PIX *pixs2 = GET_REF(r_pixs2, PIX); \
^
leptLines.cc:492:12: warning: unused variable 'j' [-Wunused-variable]
int i, j, r, c, depth, row, x, y;
^
leptLines.cc:492:9: warning: unused variable 'i' [-Wunused-variable]
int i, j, r, c, depth, row, x, y;
^
leptLines.cc:540:15: warning: unused variable 'depth' [-Wunused-variable]
int i, j, depth, x, y;
^
9 warnings generated.
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_OEM_LSTM=1 -std=gnu++1
1 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c main.cpp -o main.o
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_OEM_LSTM=1 -std=gnu++1
1 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c pix.cc -o pix.o
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_OEM_LSTM=1 -std=gnu++1
1 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c pixa.cc -o pixa.o
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_OEM_LSTM=1 -std=gnu++1
1 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c render.cpp -o render.o
render.cpp:48:32: error: no matching constructor for initialization of
'tesseract::TessPDFRenderer'
...renderer(CHAR(STRING_ELT(r_file, 0)), CHAR(STRING_ELT(r_datadir, 0))
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/clark/dev/tesseract/build/include/tesseract/renderer.h:186:16: note: candidate
constructor (the implicit copy constructor) not viable: requires 1 argument, but 2
were provided
class TESS_API TessPDFRenderer : public TessResultRenderer {
^
/Users/clark/dev/tesseract/build/include/tesseract/renderer.h:186:16: note: candidate
constructor (the implicit move constructor) not viable: requires 1 argument, but 2
were provided
/Users/clark/dev/tesseract/build/include/tesseract/renderer.h:190:3: note: candidate
constructor not viable: requires 3 arguments, but 2 were provided
TessPDFRenderer(const char* outputbase, const char* datadir, bool textonly);
^
render.cpp:116:20: error: no matching constructor for initialization of
'tesseract::TessPDFRenderer'
...tesseract::TessPDFRenderer(CHAR(STRING_ELT(r_file, 0)), CHAR(STRING_ELT(r_datadir, 0))
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/clark/dev/tesseract/build/include/tesseract/renderer.h:186:16: note: candidate
constructor (the implicit copy constructor) not viable: requires 1 argument, but 2
were provided
class TESS_API TessPDFRenderer : public TessResultRenderer {
^
/Users/clark/dev/tesseract/build/include/tesseract/renderer.h:186:16: note: candidate
constructor (the implicit move constructor) not viable: requires 1 argument, but 2
were provided
/Users/clark/dev/tesseract/build/include/tesseract/renderer.h:190:3: note: candidate
constructor not viable: requires 3 arguments, but 2 were provided
TessPDFRenderer(const char* outputbase, const char* datadir, bool textonly);
^
2 errors generated.
make: *** [render.o] Error 1
ERROR: compilation failed for package ‘Rtesseract’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/Rtesseract’
clark@campus-108-089 ~/dev/Rtesseract (master)
$ ./config
-bash: ./config: No such file or directory
clark@campus-108-089 ~/dev/Rtesseract (master)
$ ./configure
checking for pkg-config... /usr/local/bin/pkg-config
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
CXXFLAGS = -std=c++11
Tesseract CFLAGS = -I/Users/clark/dev/tesseract/build/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica
TessPDFRender constructor has no textonly parameter
NO DetectOrientationScript() method
No OEM_CUBE_ONLY enumeration value for the TessBaseAPI
Compiling readImage
testing leptonica can read different image formats
jpg support
tiff support
png support
Error in pixReadStreamWebP: function not present
Error in pixReadStream: webp: no pix returned
Error in pixRead: pix not read
Error in findFileFormatStream: truncated file
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
** no jp2 suppport
Error in pixReadStreamGif: function not present
Error in pixReadStream: gif: no pix returned
Error in pixRead: pix not read
bmp support
pnm support
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
spix support
Tesseract version: 4.00.00dev
Leptonica version: 1.76.0
R_INCLUDE_DIR:
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/imageCapabilities.R
config.status: creating R/config.R
clark@campus-108-089 ~/dev/Rtesseract (master)
$ R CMD INSTALL .
* installing to library ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library’
* installing *source* package ‘Rtesseract’ ...
checking for pkg-config... /usr/local/bin/pkg-config
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
CXXFLAGS = -std=c++11
Tesseract CFLAGS = -I/Users/clark/dev/tesseract/build/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica
TessPDFRender constructor has no textonly parameter
NO DetectOrientationScript() method
No OEM_CUBE_ONLY enumeration value for the TessBaseAPI
Compiling readImage
testing leptonica can read different image formats
jpg support
tiff support
png support
Error in pixReadStreamWebP: function not present
Error in pixReadStream: webp: no pix returned
Error in pixRead: pix not read
Error in findFileFormatStream: truncated file
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
** no jp2 suppport
Error in pixReadStreamGif: function not present
Error in pixReadStream: gif: no pix returned
Error in pixRead: pix not read
bmp support
pnm support
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
spix support
Tesseract version: 4.00.00dev
Leptonica version: 1.76.0
R_INCLUDE_DIR: /Library/Frameworks/R.framework/Resources/include
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/imageCapabilities.R
config.status: creating R/config.R
** libs
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_OEM_LSTM=1 -std=gnu++1
1 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c render.cpp -o render.o
render.cpp:48:32: error: no matching constructor for initialization of
'tesseract::TessPDFRenderer'
...renderer(CHAR(STRING_ELT(r_file, 0)), CHAR(STRING_ELT(r_datadir, 0))
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/clark/dev/tesseract/build/include/tesseract/renderer.h:186:16: note: candidate
constructor (the implicit copy constructor) not viable: requires 1 argument, but 2
were provided
class TESS_API TessPDFRenderer : public TessResultRenderer {
^
/Users/clark/dev/tesseract/build/include/tesseract/renderer.h:186:16: note: candidate
constructor (the implicit move constructor) not viable: requires 1 argument, but 2
were provided
/Users/clark/dev/tesseract/build/include/tesseract/renderer.h:190:3: note: candidate
constructor not viable: requires 3 arguments, but 2 were provided
TessPDFRenderer(const char* outputbase, const char* datadir, bool textonly);
^
render.cpp:116:20: error: no matching constructor for initialization of
'tesseract::TessPDFRenderer'
...tesseract::TessPDFRenderer(CHAR(STRING_ELT(r_file, 0)), CHAR(STRING_ELT(r_datadir, 0))
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/clark/dev/tesseract/build/include/tesseract/renderer.h:186:16: note: candidate
constructor (the implicit copy constructor) not viable: requires 1 argument, but 2
were provided
class TESS_API TessPDFRenderer : public TessResultRenderer {
^
/Users/clark/dev/tesseract/build/include/tesseract/renderer.h:186:16: note: candidate
constructor (the implicit move constructor) not viable: requires 1 argument, but 2
were provided
/Users/clark/dev/tesseract/build/include/tesseract/renderer.h:190:3: note: candidate
constructor not viable: requires 3 arguments, but 2 were provided
TessPDFRenderer(const char* outputbase, const char* datadir, bool textonly);
^
2 errors generated.
make: *** [render.o] Error 1
ERROR: compilation failed for package ‘Rtesseract’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/Rtesseract’
clark@campus-108-089 ~/dev/Rtesseract (master)
$ ./configure
checking for pkg-config... /usr/local/bin/pkg-config
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
CXXFLAGS = -std=c++11
Tesseract CFLAGS = -I/Users/clark/dev/tesseract/build/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica
TessPDFRender constructor has no textonly parameter
NO DetectOrientationScript() method
No OEM_LSTM_ONLY enumeration value for the TessBaseAPI
Compiling readImage
testing leptonica can read different image formats
jpg support
tiff support
png support
Error in pixReadStreamWebP: function not present
Error in pixReadStream: webp: no pix returned
Error in pixRead: pix not read
Error in findFileFormatStream: truncated file
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
** no jp2 suppport
Error in pixReadStreamGif: function not present
Error in pixReadStream: gif: no pix returned
Error in pixRead: pix not read
bmp support
pnm support
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
spix support
Tesseract version: 3.05.02
Leptonica version: 1.76.0
R_INCLUDE_DIR:
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/imageCapabilities.R
config.status: creating R/config.R
clark@campus-108-089 ~/dev/Rtesseract (master)
$ R CMD INSTALL .
* installing to library ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library’
* installing *source* package ‘Rtesseract’ ...
checking for pkg-config... /usr/local/bin/pkg-config
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
CXXFLAGS = -std=c++11
Tesseract CFLAGS = -I/Users/clark/dev/tesseract/build/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica
TessPDFRender constructor has no textonly parameter
NO DetectOrientationScript() method
No OEM_LSTM_ONLY enumeration value for the TessBaseAPI
Compiling readImage
testing leptonica can read different image formats
jpg support
tiff support
png support
Error in pixReadStreamWebP: function not present
Error in pixReadStream: webp: no pix returned
Error in pixRead: pix not read
Error in findFileFormatStream: truncated file
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
** no jp2 suppport
Error in pixReadStreamGif: function not present
Error in pixReadStream: gif: no pix returned
Error in pixRead: pix not read
bmp support
pnm support
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
spix support
Tesseract version: 3.05.02
Leptonica version: 1.76.0
R_INCLUDE_DIR: /Library/Frameworks/R.framework/Resources/include
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/imageCapabilities.R
config.status: creating R/config.R
** libs
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_CUBE_ONLY=1 -std=gnu++
11 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c render.cpp -o render.o
/usr/local/opt/llvm/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -I/Users/clark/dev/tesseract/b
uild/include/tesseract -I/usr/local/Cellar/leptonica/1.76.0/include/leptonica -DHAS_GETINPUT_NAME=1 -DHAS_GETDATAPATH=1 -DHAS_GETSOURCEYRESOLUTION=1 -DHAS_CUBE_ONLY=1 -std=gnu++
11 -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -fPIC -g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe -c version.cpp -o version.o
/usr/local/opt/llvm/bin/clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework
/Resources/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib -o Rtesseract.so PageSegMode.o RConverters.o RtesseractBoxRenderer.o conf
idence.o exit.o ext.o lept.o leptLines.o main.o pix.o pixa.o render.o version.o -L/Users/clark/dev/tesseract/build/lib -ltesseract -L/usr/local/Cellar/leptonica/1.76.0/lib -llept
-F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/3.4/Resources/library/Rtesseract/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error: package or namespace load failed for ‘Rtesseract’ in namespaceExport(ns, exports):
undefined exports: OEM_LSTM_ONLY, OEM_TESSERACT_LSTM_COMBINED
Error: loading failed
recover called non-interactively; frames dumped, use debugger() to view
* DONE (Rtesseract)
clark@campus-108-089 ~/dev/Rtesseract (master)
$ grep HEAD detached at 3.05.0
grep: detached: No such file or directory
grep: at: No such file or directory
grep: 3.05.0: No such file or directory
clark@campus-108-089 ~/dev/Rtesseract (master)
$ grep OEM_LSTM_ONLY
^C
clark@campus-108-089 ~/dev/Rtesseract (master)
$ grep OEM_LSTM_ONLY *
grep: Experiments: Is a directory
NAMESPACE:export(OEM_TESSERACT_ONLY, OEM_LSTM_ONLY, OEM_TESSERACT_LSTM_COMBINED, OEM_DEFAULT)
grep: R: Is a directory
grep: TU: Is a directory
config.log:conftest.cpp:16:16: error: no member named 'OEM_LSTM_ONLY' in namespace 'tesseract'; did you mean 'OEM_CUBE_ONLY'?
config.log: tesseract::OEM_LSTM_ONLY;
config.log: tesseract::OEM_LSTM_ONLY;
config.log:| tesseract::OEM_LSTM_ONLY;
configure: tesseract::OEM_LSTM_ONLY;
configure: echo "No OEM_LSTM_ONLY enumeration value for the TessBaseAPI"
configure.ac: tesseract::OEM_LSTM_ONLY;
configure.ac: [echo "No OEM_LSTM_ONLY enumeration value for the TessBaseAPI"]
grep: inst: Is a directory
grep: man: Is a directory
grep: src: Is a directory
grep: testRexit: Is a directory
grep: tests: Is a directory
clark@campus-108-089 ~/dev/Rtesseract (master)
$ git log
commit 87c66ee7badd5ea4231d1e78ff222f6b235ad20c (HEAD -> master, origin/master, origin/HEAD)
Author: Matt Espe <mespe@ucdavis.edu>
Date: Wed Jun 13 13:15:34 2018 -0600
Edits to image editing section.
commit a29bb49f6530b12e9c3c85975538a11033b6e691
Author: Matt Espe <mespe@ucdavis.edu>
Date: Mon May 21 12:05:45 2018 -0600
Cut a large section of the finding lines.
commit 480461d255775b50d3298cdbf4fcd52072c921a0
Author: Matt Espe <mespe@ucdavis.edu>
Date: Mon May 21 11:49:44 2018 -0600
Commit before further reductions.
commit 171afcc0922c0582bc0c9c167b5d5bf276f7d6c1
Merge: e3c5ca5 d4305af
Author: Duncan Temple Lang <duncan@r-project.org>
Date: Tue May 15 09:41:43 2018 -0700
Merge branch 'master' of ssh://github.com/duncantl/Rtesseract
commit e3c5ca5d431a8de03a804d7a97b3872ded578940
Author: Duncan Temple Lang <duncan@r-project.org>
Date: Tue May 15 09:41:37 2018 -0700
...
commit d4305affaa91e5212b3066292770a113168fc705
Author: Matt Espe <mespe@ucdavis.edu>
Date: Thu May 10 15:38:57 2018 -0600
Edits to final section.
commit fe0e214c80cd6222c424e657808c980e93b0df9b
Author: Matt Espe <mespe@ucdavis.edu>
Date: Wed May 9 11:10:57 2018 -0600
Commit before more cutting.
commit 7b8a82718382b8fba0da8a89877d5a06462aed44
Author: Matt Espe <mespe@ucdavis.edu>
Date: Wed May 9 10:06:37 2018 -0600
More cleaning on the line section.
commit 5822120c061c1a3650a15dace2b18d5f40fe6505
Author: Matt Espe <mespe@ucdavis.edu>
Date: Tue May 8 14:40:00 2018 -0600
Change variable names to be better.
commit e02b3e8d417c593cf7430f191c361cbd6e0b307f
clark@campus-108-089 ~/dev/Rtesseract (master)
$ git pull
Already up to date.
clark@campus-108-089 ~/dev/Rtesseract (master)
$
@leekgans
Copy link
Copy Markdown

leekgans commented Jul 21, 2021

Any chance you could help me? When I searched for my errors, your post was all that came up. duncantl/Rtesseract#13

@clarkfitzg
Copy link
Copy Markdown
Author

clarkfitzg commented Jul 21, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment