Created
November 22, 2016 14:26
-
-
Save rhardih/551f9be687aa9f758089e77d70ed0939 to your computer and use it in GitHub Desktop.
Leptonica build fails to find include of custom compiled version of libjpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rene $ ls -la | |
total 0 | |
drwxr-xr-x 2 rene staff 68 Nov 22 15:22 . | |
drwxr-xr-x 26 rene staff 884 Nov 22 14:15 .. | |
[~/Code/leptonica/build] (master) | |
rene $ tree ../dependencies/install/ | |
../dependencies/install/ | |
├── bin | |
│ ├── cjpeg | |
│ ├── djpeg | |
│ ├── jpegtran | |
│ ├── rdjpgcom | |
│ └── wrjpgcom | |
├── include | |
│ ├── jconfig.h | |
│ ├── jerror.h | |
│ ├── jmorecfg.h | |
│ └── jpeglib.h | |
├── lib | |
│ ├── libjpeg.9.dylib | |
│ ├── libjpeg.a | |
│ ├── libjpeg.dylib -> libjpeg.9.dylib | |
│ └── libjpeg.la | |
└── share | |
└── man | |
└── man1 | |
├── cjpeg.1 | |
├── djpeg.1 | |
├── jpegtran.1 | |
├── rdjpgcom.1 | |
└── wrjpgcom.1 | |
6 directories, 18 files | |
[~/Code/leptonica/build] (master) | |
rene $ cmake -d CMAKE_INSTALL_PREFIX=`pwd`/install -D CMAKE_MACOSX_RPATH=ON -DJPEG_INCLUDE_DIR=../dependencies/install/include/ -DJPEG_LIBRARY=../dependencies/install/lib/libjpeg. | |
dylib .. | |
-- The C compiler identification is AppleClang 7.3.0.7030029 | |
-- The CXX compiler identification is AppleClang 7.3.0.7030029 | |
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc | |
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Detecting C compile features | |
-- Detecting C compile features - done | |
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ | |
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done | |
-- Detecting CXX compile features | |
-- Detecting CXX compile features - done | |
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR) | |
-- Found JPEG: /Users/rene/Code/leptonica/dependencies/install/lib/libjpeg.dylib | |
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5") | |
-- Found PNG: /usr/local/lib/libpng.dylib (found version "1.6.25") | |
-- Found TIFF: /usr/local/lib/libtiff.dylib (found version "4.0.6") | |
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.1") | |
-- Checking for module 'libwebp' | |
-- Found libwebp, version 0.5.1 | |
-- Checking for module 'libopenjp2' | |
-- No package 'libopenjp2' found | |
-- Looking for include file dlfcn.h | |
-- Looking for include file dlfcn.h - found | |
-- Looking for include file inttypes.h | |
-- Looking for include file inttypes.h - found | |
-- Looking for include file memory.h | |
-- Looking for include file memory.h - found | |
-- Looking for include file stdint.h | |
-- Looking for include file stdint.h - found | |
-- Looking for include file stdlib.h | |
-- Looking for include file stdlib.h - found | |
-- Looking for include file strings.h | |
-- Looking for include file strings.h - found | |
-- Looking for include file string.h | |
-- Looking for include file string.h - found | |
-- Looking for include file sys/stat.h | |
-- Looking for include file sys/stat.h - found | |
-- Looking for include file sys/types.h | |
-- Looking for include file sys/types.h - found | |
-- Looking for include file unistd.h | |
-- Looking for include file unistd.h - found | |
-- Looking for include file openjpeg-2.0/openjpeg.h | |
-- Looking for include file openjpeg-2.0/openjpeg.h - not found | |
-- Looking for include file openjpeg-2.1/openjpeg.h | |
-- Looking for include file openjpeg-2.1/openjpeg.h - not found | |
-- Looking for include file openjpeg-2.2/openjpeg.h | |
-- Looking for include file openjpeg-2.2/openjpeg.h - not found | |
-- Looking for fmemopen | |
-- Looking for fmemopen - not found | |
-- Check if the system is big endian | |
-- Searching 16 bit integer | |
-- Looking for stddef.h | |
-- Looking for stddef.h - found | |
-- Check size of unsigned short | |
-- Check size of unsigned short - done | |
-- Using unsigned short | |
-- Check if the system is big endian - little endian | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /Users/rene/Code/leptonica/build | |
[~/Code/leptonica/build] (master) | |
rene $ make | |
Scanning dependencies of target leptonica | |
[ 0%] Building C object src/CMakeFiles/leptonica.dir/adaptmap.c.o | |
[ 1%] Building C object src/CMakeFiles/leptonica.dir/affine.c.o | |
[ 1%] Building C object src/CMakeFiles/leptonica.dir/affinecompose.c.o | |
[ 2%] Building C object src/CMakeFiles/leptonica.dir/arrayaccess.c.o | |
[ 2%] Building C object src/CMakeFiles/leptonica.dir/bardecode.c.o | |
[ 3%] Building C object src/CMakeFiles/leptonica.dir/baseline.c.o | |
[ 3%] Building C object src/CMakeFiles/leptonica.dir/bbuffer.c.o | |
[ 4%] Building C object src/CMakeFiles/leptonica.dir/bilateral.c.o | |
[ 5%] Building C object src/CMakeFiles/leptonica.dir/bilinear.c.o | |
[ 5%] Building C object src/CMakeFiles/leptonica.dir/binarize.c.o | |
[ 6%] Building C object src/CMakeFiles/leptonica.dir/binexpand.c.o | |
[ 6%] Building C object src/CMakeFiles/leptonica.dir/binreduce.c.o | |
[ 7%] Building C object src/CMakeFiles/leptonica.dir/blend.c.o | |
[ 7%] Building C object src/CMakeFiles/leptonica.dir/bmf.c.o | |
[ 8%] Building C object src/CMakeFiles/leptonica.dir/bmpio.c.o | |
[ 9%] Building C object src/CMakeFiles/leptonica.dir/bmpiostub.c.o | |
[ 9%] Building C object src/CMakeFiles/leptonica.dir/bootnumgen1.c.o | |
[ 10%] Building C object src/CMakeFiles/leptonica.dir/bootnumgen2.c.o | |
[ 10%] Building C object src/CMakeFiles/leptonica.dir/bootnumgen3.c.o | |
[ 11%] Building C object src/CMakeFiles/leptonica.dir/boxbasic.c.o | |
[ 11%] Building C object src/CMakeFiles/leptonica.dir/boxfunc1.c.o | |
[ 12%] Building C object src/CMakeFiles/leptonica.dir/boxfunc2.c.o | |
[ 13%] Building C object src/CMakeFiles/leptonica.dir/boxfunc3.c.o | |
[ 13%] Building C object src/CMakeFiles/leptonica.dir/boxfunc4.c.o | |
[ 14%] Building C object src/CMakeFiles/leptonica.dir/bytearray.c.o | |
[ 14%] Building C object src/CMakeFiles/leptonica.dir/ccbord.c.o | |
[ 15%] Building C object src/CMakeFiles/leptonica.dir/ccthin.c.o | |
[ 15%] Building C object src/CMakeFiles/leptonica.dir/classapp.c.o | |
[ 16%] Building C object src/CMakeFiles/leptonica.dir/colorcontent.c.o | |
[ 17%] Building C object src/CMakeFiles/leptonica.dir/coloring.c.o | |
[ 17%] Building C object src/CMakeFiles/leptonica.dir/colormap.c.o | |
[ 18%] Building C object src/CMakeFiles/leptonica.dir/colormorph.c.o | |
[ 18%] Building C object src/CMakeFiles/leptonica.dir/colorquant1.c.o | |
[ 19%] Building C object src/CMakeFiles/leptonica.dir/colorquant2.c.o | |
[ 19%] Building C object src/CMakeFiles/leptonica.dir/colorseg.c.o | |
[ 20%] Building C object src/CMakeFiles/leptonica.dir/colorspace.c.o | |
[ 21%] Building C object src/CMakeFiles/leptonica.dir/compare.c.o | |
[ 21%] Building C object src/CMakeFiles/leptonica.dir/conncomp.c.o | |
[ 22%] Building C object src/CMakeFiles/leptonica.dir/convertfiles.c.o | |
[ 22%] Building C object src/CMakeFiles/leptonica.dir/convolve.c.o | |
[ 23%] Building C object src/CMakeFiles/leptonica.dir/correlscore.c.o | |
[ 23%] Building C object src/CMakeFiles/leptonica.dir/dewarp1.c.o | |
[ 24%] Building C object src/CMakeFiles/leptonica.dir/dewarp2.c.o | |
[ 25%] Building C object src/CMakeFiles/leptonica.dir/dewarp3.c.o | |
[ 25%] Building C object src/CMakeFiles/leptonica.dir/dewarp4.c.o | |
[ 26%] Building C object src/CMakeFiles/leptonica.dir/dnabasic.c.o | |
[ 26%] Building C object src/CMakeFiles/leptonica.dir/dnafunc1.c.o | |
[ 27%] Building C object src/CMakeFiles/leptonica.dir/dnahash.c.o | |
[ 27%] Building C object src/CMakeFiles/leptonica.dir/dwacomb.2.c.o | |
[ 28%] Building C object src/CMakeFiles/leptonica.dir/dwacomblow.2.c.o | |
[ 28%] Building C object src/CMakeFiles/leptonica.dir/edge.c.o | |
[ 29%] Building C object src/CMakeFiles/leptonica.dir/encoding.c.o | |
[ 30%] Building C object src/CMakeFiles/leptonica.dir/enhance.c.o | |
[ 30%] Building C object src/CMakeFiles/leptonica.dir/fhmtauto.c.o | |
[ 31%] Building C object src/CMakeFiles/leptonica.dir/fhmtgen.1.c.o | |
[ 31%] Building C object src/CMakeFiles/leptonica.dir/fhmtgenlow.1.c.o | |
[ 32%] Building C object src/CMakeFiles/leptonica.dir/finditalic.c.o | |
[ 32%] Building C object src/CMakeFiles/leptonica.dir/flipdetect.c.o | |
[ 33%] Building C object src/CMakeFiles/leptonica.dir/fliphmtgen.c.o | |
[ 34%] Building C object src/CMakeFiles/leptonica.dir/fmorphauto.c.o | |
[ 34%] Building C object src/CMakeFiles/leptonica.dir/fmorphgen.1.c.o | |
[ 35%] Building C object src/CMakeFiles/leptonica.dir/fmorphgenlow.1.c.o | |
[ 35%] Building C object src/CMakeFiles/leptonica.dir/fpix1.c.o | |
[ 36%] Building C object src/CMakeFiles/leptonica.dir/fpix2.c.o | |
[ 36%] Building C object src/CMakeFiles/leptonica.dir/gifio.c.o | |
[ 37%] Building C object src/CMakeFiles/leptonica.dir/gifiostub.c.o | |
[ 38%] Building C object src/CMakeFiles/leptonica.dir/gplot.c.o | |
[ 38%] Building C object src/CMakeFiles/leptonica.dir/graphics.c.o | |
[ 39%] Building C object src/CMakeFiles/leptonica.dir/graymorph.c.o | |
[ 39%] Building C object src/CMakeFiles/leptonica.dir/grayquant.c.o | |
[ 40%] Building C object src/CMakeFiles/leptonica.dir/grayquantlow.c.o | |
[ 40%] Building C object src/CMakeFiles/leptonica.dir/heap.c.o | |
[ 41%] Building C object src/CMakeFiles/leptonica.dir/jbclass.c.o | |
[ 42%] Building C object src/CMakeFiles/leptonica.dir/jp2kheader.c.o | |
[ 42%] Building C object src/CMakeFiles/leptonica.dir/jp2kheaderstub.c.o | |
[ 43%] Building C object src/CMakeFiles/leptonica.dir/jp2kio.c.o | |
[ 43%] Building C object src/CMakeFiles/leptonica.dir/jp2kiostub.c.o | |
[ 44%] Building C object src/CMakeFiles/leptonica.dir/jpegio.c.o | |
/Users/rene/Code/leptonica/src/jpegio.c:148:10: fatal error: 'jpeglib.h' file not found | |
#include "jpeglib.h" | |
^ | |
1 error generated. | |
make[2]: *** [src/CMakeFiles/leptonica.dir/jpegio.c.o] Error 1 | |
make[1]: *** [src/CMakeFiles/leptonica.dir/all] Error 2 | |
make: *** [all] Error 2 | |
[~/Code/leptonica/build] (master) | |
rene $ ag JPEG | |
CMakeCache.txt | |
192:JPEG_INCLUDE_DIR:PATH=/Users/rene/Code/leptonica/dependencies/install/include | |
195:JPEG_LIBRARY:FILEPATH=/Users/rene/Code/leptonica/dependencies/install/lib/libjpeg.dylib | |
372://Details about finding JPEG | |
373:FIND_PACKAGE_MESSAGE_DETAILS_JPEG:INTERNAL=[/Users/rene/Code/leptonica/dependencies/install/lib/libjpeg.dylib][/Users/rene/Code/leptonica/dependencies/install/include][v()] | |
399:HAVE_OPENJPEG_2_0_OPENJPEG_H:INTERNAL= | |
401:HAVE_OPENJPEG_2_1_OPENJPEG_H:INTERNAL= | |
403:HAVE_OPENJPEG_2_2_OPENJPEG_H:INTERNAL= | |
444://ADVANCED property for variable: JPEG_INCLUDE_DIR | |
445:JPEG_INCLUDE_DIR-ADVANCED:INTERNAL=1 | |
446://ADVANCED property for variable: JPEG_LIBRARY | |
447:JPEG_LIBRARY-ADVANCED:INTERNAL=1 | |
CMakeFiles/Makefile.cmake | |
114: "/usr/local/Cellar/cmake/3.7.0/share/cmake/Modules/FindJPEG.cmake" | |
config_auto.h.in | |
32:#cmakedefine HAVE_OPENJPEG_2_0_OPENJPEG_H 1 | |
35:#cmakedefine HAVE_OPENJPEG_2_1_OPENJPEG_H 1 | |
38:#cmakedefine HAVE_OPENJPEG_2_2_OPENJPEG_H 1 | |
51:#cmakedefine HAVE_LIBJPEG 1 | |
65:#ifdef HAVE_OPENJPEG_2_0_OPENJPEG_H | |
69:#ifdef HAVE_OPENJPEG_2_1_OPENJPEG_H | |
73:#ifdef HAVE_OPENJPEG_2_2_OPENJPEG_H | |
src/config_auto.h | |
32:/* #undef HAVE_OPENJPEG_2_0_OPENJPEG_H */ | |
35:/* #undef HAVE_OPENJPEG_2_1_OPENJPEG_H */ | |
38:/* #undef HAVE_OPENJPEG_2_2_OPENJPEG_H */ | |
51:#define HAVE_LIBJPEG 1 | |
65:#ifdef HAVE_OPENJPEG_2_0_OPENJPEG_H | |
69:#ifdef HAVE_OPENJPEG_2_1_OPENJPEG_H | |
73:#ifdef HAVE_OPENJPEG_2_2_OPENJPEG_H | |
[~/Code/leptonica/build] (master) | |
rene $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment