azzeddine1265 / libkml

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

Include a C API #82

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is an enhancement.

Adding a C API to libkml would enable the library to be used by C
programmers with no knowledge of C++. 

Original issue reported on code.google.com by homme.zw...@gmail.com on 15 May 2009 at 9:19

GoogleCodeExporter commented 9 years ago
This is an enhancement request.  KML and the libkml dom are
inherently object-oriented so pure C is a challenge.

Original comment by kml.b...@gmail.com on 20 May 2009 at 10:55

GoogleCodeExporter commented 9 years ago
I have no doubt that it is a challenge! You might be interested to note that it 
is a
challenge that the GEOS project (http://geos.refractions.net) has risen to. 
This is a
complex object-oriented C++ geometry engine that has a very useful C interface
wrapper (http://download.osgeo.org/geos/doxygen/c_iface.html).

Original comment by homme.zw...@gmail.com on 21 May 2009 at 8:50

GoogleCodeExporter commented 9 years ago
Could you support iphone object c? 

Original comment by chai.hua...@gmail.com on 9 Jul 2009 at 8:18

GoogleCodeExporter commented 9 years ago
No plans to support Objective C. ObjC itself has support for calling C++ static
libraries, so you may want to try that.

Original comment by kml.mash...@gmail.com on 9 Jul 2009 at 10:14

GoogleCodeExporter commented 9 years ago
Could some one help me to compile it. I only can use the compiled library for 
iphone simulator but cannot get 
the library for my device. some post the solution at 
http://latenitesoft.blogspot.com/2008/10/iphone-
programming-tips-building-unix.html, but it cannot work. Could someone help me 
to do this and post the 
steps?  Thanks

Original comment by chai.hua...@gmail.com on 13 Jul 2009 at 3:37

GoogleCodeExporter commented 9 years ago
When i compile it for the iphone. It repeats the error:

checking expat.h usability... no
checking expat.h presence... yes
configure: WARNING: expat.h: present but cannot be compiled
configure: WARNING: expat.h:     check for missing prerequisite headers?
configure: WARNING: expat.h: see the Autoconf documentation
configure: WARNING: expat.h:     section "Present But Cannot Be Compiled"
configure: WARNING: expat.h: proceeding with the preprocessor's result
configure: WARNING: expat.h: in the future, the compiler will take precedence
configure: WARNING:     ## 
----------------------------------------------------- ##
configure: WARNING:     ## Report this to 
http://code.google.com/p/libkml/issues ##
configure: WARNING:     ## 
----------------------------------------------------- ##
checking for expat.h... yes
checking for XML_ParserCreate in -lexpat... no
configure: error: "Expat library not found. Use configure --help to see how to 
specify the search path"
make: *** No targets specified and no makefile found.  Stop.

Original comment by chai.hua...@gmail.com on 13 Jul 2009 at 7:32

GoogleCodeExporter commented 9 years ago
Awesome that you're taking a crack at iphone!  Wish I had the bandwidth myself
for that as well as android ndk.

Maybe you need to back up a step and build a simple hello world with expat.
Just to keep this all complicated (or maybe make it easier) note that expat 
itself
is all plain C.

Enjoy and keep us posted!

Original comment by kml.b...@gmail.com on 14 Jul 2009 at 1:06