Open henryborchers opened 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
What is your workflow? Maybe more details can help to better implement solution for you (e.g. why you have installed multiple openjpeg libraries?)
It’s part of a super build script. It builds everything and installs each to their own temporary prefix.
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.