| Issue 26: | Linux / make: cannot find zlib.h file | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. Download libkml-0.4.0.tar.gz
2. Unpack
3. ./configure, make
What is the expected output? What do you see instead?
make[2]: Entering directory `/home/thomas/temp/libkml-0.4.0/third_party'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I.. -I../third_party/zlib-1.2.3/contrib
-I../third_party/uriparser-0.7.1/include -g -O2 -MT unzip.lo -MD -MP -MF
".deps/unzip.Tpo" -c -o unzip.lo `test -f
'zlib-1.2.3/contrib/minizip/unzip.c' || echo
'./'`zlib-1.2.3/contrib/minizip/unzip.c; \
then mv -f ".deps/unzip.Tpo" ".deps/unzip.Plo"; else rm -f
".deps/unzip.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../third_party/zlib-1.2.3/contrib
-I../third_party/uriparser-0.7.1/include -g -O2 -MT unzip.lo -MD -MP -MF
.deps/unzip.Tpo -c zlib-1.2.3/contrib/minizip/unzip.c -fPIC -DPIC -o
.libs/unzip.o
zlib-1.2.3/contrib/minizip/unzip.c:41:18: error: zlib.h: No such file or
directory
What version of the product are you using? On what operating system?
libkml 0.4.0
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Did you run the unit test suite that comes with the project? Did all tests
pass?
No
Please provide any additional information below.
Adding -I../third_party/zlib-1.2.3/ maybe solve this issue
|
|
,
Sep 14, 2008
I think you must install libzipios++ devel headers first |
|
,
Sep 15, 2008
do you have zlib.h in /usr/include or /usr/local/include? |
|
,
Sep 16, 2008
On my Ubuntu distribution, I have zlib.h file installed in the following directories: ./src/linux-headers-2.6.24-19/include/linux/zlib.h ./src/linux-headers-2.6.24-19-generic/include/config/jffs2/zlib.h ./src/linux-headers-2.6.24-19-generic/include/linux/zlib.h But, the zlib.h file is present in the libkml directory: /libkml-0.4.0/third_party/zlib-1.2.3/contrib/minizip So maybe, we can include the path in the include directories path in the Makefile For my project, I must use a "cmake" makefile, so I generated the CMakeLists.txt, and I have no problem. If you want, I can sent you this file, and the libkml could be compiled with CMake tool ! |
|
,
Sep 16, 2008
zlib is mostly there for ease of windows building. if `make` can't find zlib.h in your standard include path, you're going to have trouble building any other linux project that depends upon it. seems best in the long run that you twiddle your system. thanks for the cmake build. the N x M matrix of platforms and languages is large enough that I couldn't promise that I could keep it current. but if you host it somewhere, I'm more than happy to point at link your way from a wiki page here. how's that? |
|
,
Sep 16, 2008
If you want, you can download our otbkml/CMakeLists.txt file in the following link: http://git.orfeo-toolbox.org/?p=otb-lib-repo.git;a=summary To use it, you must adapted it and change some OTB variables name (suppress OTB var name). |
|
,
Sep 16, 2008
This link is a bit more direct: http://git.orfeo-toolbox.org/?p=otb-lib-repo.git;a=blob_plain;f=Utilities/otbkml/CMakeLists.txt;hb=fec218a84b70a5adf1d3eda3c16472178bb6f50c |
|
|
|