leptonica icon indicating copy to clipboard operation
leptonica copied to clipboard

Unable to select which version of openjpeg with CMake

Open henryborchers opened this issue 6 years ago • 4 comments

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.

henryborchers avatar Feb 13 '19 22:02 henryborchers

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 avatar Mar 10 '19 15:03 zdenop

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

zdenop avatar May 05 '19 10:05 zdenop

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

henryborchers avatar May 05 '19 15:05 henryborchers

This does not helped?

zdenop avatar May 05 '19 17:05 zdenop