msmitherdc / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

Linux / make: cannot find zlib.h file #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by thomas.f...@c-s.cnes.fr on 12 Sep 2008 at 9:59

GoogleCodeExporter commented 9 years ago
I think you must install libzipios++ devel headers first

Original comment by florent....@gmail.com on 14 Sep 2008 at 12:10

GoogleCodeExporter commented 9 years ago
do you have zlib.h in /usr/include or /usr/local/include?

Original comment by kml.mash...@gmail.com on 15 Sep 2008 at 7:40

GoogleCodeExporter commented 9 years ago
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 ! 

Original comment by thomas.f...@c-s.cnes.fr on 16 Sep 2008 at 7:00

GoogleCodeExporter commented 9 years ago
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?

Original comment by kml.mash...@gmail.com on 16 Sep 2008 at 7:06

GoogleCodeExporter commented 9 years ago
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).

Original comment by thomas.f...@c-s.cnes.fr on 16 Sep 2008 at 8:02

GoogleCodeExporter commented 9 years ago
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

Original comment by emmanuel...@gmail.com on 16 Sep 2008 at 10:00