A
A
Alexander N++2015-12-15 10:12:30
C++ / C#
Alexander N++, 2015-12-15 10:12:30

Tesseract or leptonica compiles without image libraries, how can I fix it?

I build via Cmake via GIT.
I understand that leptonica is not going to, which is designed to make life easier for developers with tiflib jpeglib, etc.
Rather, it is assembled but without libraries tifflib gif jpeg etc..

git clone https://github.com/egorpugin/leptonica.git
cd leptonica
mkdir build
cd build
cmake ..
cmake --build .
cd ..\..
git clone https://github.com/tesseract-ocr/tesseract.git
cd tesseract
mkdir build
cd build
cmake .. -DLeptonica_BUILD_DIR=\abs\path\to\leptonica\build
cmake --build .

VS2012
What to do, I don't rummage about the pros at all.
UPD2
C:\WORK\Server\home\abs\leptonica\build>cmake ..
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
-- Could NOT find ZLIB ( missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Configuring done
-- Generating done
- - Build files have been written to: C:/WORK/Server/home/abs/leptonica/build
well, how then to slip these libraries for cmake?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Tsilyurik, 2015-12-15
@Olej

What to do, I don’t rummage in the pros at all.

In what you showed, you have not done the assembly yet, you have not even started. ;-)
It shows only the creation of a configuration for the assembly.
CMake :
CMake does not build directly, it only generates build control files from CMakeLists.txt files:
- Makefile on Unix systems for building with make;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question