pombreda / libkml

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

Linux build issues in 0.2.1 #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Sun JDK 1.5
2. ./configure --with-java-include-dir=/path/to/jdk/include
--with-java-lib-dir=/path/to/jdk/lib
3. make

What is the expected output? What do you see instead?
Expected configure to correctly find everything.  Configure could not
locate jni_md.h and does not appear to honor $CPPFLAGS.

What version of the product are you using? On what operating system?
libkml 0.2.1, Red Hat Enterprise 4.  Sun JDK 1.5.0_14.

Please provide any additional information below.
It appears that the configure script (at least in the Java section) sets
aside the setting of env variable CPPFLAG, and resets it to the setting of
--with-java-include-dir.  The jni.h file in Sun's JDK also includes
jni_md.h, which resides in include/linux.  If that path is not included via
a '-I' switch, then including jni.h fails.  I modified the configure
script, such that CPPFLAGS has both the setting of --with-java-include-dir
AND the CPPFLAGS env variable, and configure ran to normal completion.

ALSO...
After getting configure to run to completion, 'make' failed.  See the
attached output file from the make command.  This occurs even after running
the unmodified 'configure' script.

Original issue reported on code.google.com by wedg...@gmail.com on 7 May 2008 at 3:52

Attachments:

GoogleCodeExporter commented 9 years ago
Version 0.2.2 still exhibits the same problems.

Original comment by wedg...@gmail.com on 14 May 2008 at 3:14

GoogleCodeExporter commented 9 years ago
I located the source of the 'make' failure in the third_party tree.  In
libkml-0.2.2/third_party/Makefile.in (on or about line 224) the AM_CPPFLAGS 
variable
is missing its -I switch.  The line should read...

AM_CPPFLAGS = -I${top_srcdir)/third_party/zlib-1.2.3/contrib

Original comment by wedg...@gmail.com on 14 May 2008 at 4:14

GoogleCodeExporter commented 9 years ago
Good catch. Thanks!

http://code.google.com/p/libkml/source/detail?r=79

Original comment by kml.mash...@gmail.com on 14 May 2008 at 5:05

GoogleCodeExporter commented 9 years ago
I just uploaded a 0.3 tarball to the downloads area. This should fix your 
problem. The java files aren't installed 
anywhere yet, but all should be built correctly.

Thanks for the report (and patience). Please reopen if there are any other 
issues.

Original comment by kml.mash...@gmail.com on 28 Jun 2008 at 6:14