DanBloomberg / leptonica

Leptonica is an open source library containing software that is broadly useful for image processing and image analysis applications. The official github repository for Leptonica is: danbloomberg/leptonica. See leptonica.org for more documentation.
Other
1.78k stars 389 forks source link

Unable to select which version of openjpeg with CMake #403

Open henryborchers opened 5 years ago

henryborchers commented 5 years ago

I'm trying to build leptonica with openjpeg for python extension on Windows. However, unlike every other dependency, libjpeg, libpng, tiff, zlib, I can't define the include and library locations for CMake to generate a build configuration.

From what I can tell on leptonica/cmake/Configure.cmake:55, I believe that your CMake implementation manually looks directly for the openjpeg instead of providing an option to select search path.

zdenop commented 5 years ago

Hi, I did the same (for the same reason :-) ) this week and without big problem - have a look at my notes if it helps you: http://www.sk-spell.sk.cx/building-tesseract-and-leptonica-with-cmake-and-clang-on-windows

zdenop commented 5 years ago

What is your workflow? Maybe more details can help to better implement solution for you (e.g. why you have installed multiple openjpeg libraries?)

henryborchers commented 5 years ago

It’s part of a super build script. It builds everything and installs each to their own temporary prefix.

zdenop commented 5 years ago

This does not helped?