dreamstreat / libkml

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

Can not compile at x86 Linux #94

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
issue 56 not fixed
http://code.google.com/p/libkml/issues/detail?id=56

Installed expat-2.5.1 under personal dir, then:

What steps will reproduce the problem?
1. ./configure --prefix=/home/achen2/0work/ge_plugin/libkml
--with-expat-include-dir=/home/achen2/0work/ge_plugin/expat/include
--with-expat-lib-dir=/home/achen2/0work/ge_plugin/expat/lib
2. make
3.

What is the expected output? What do you see instead?
 g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src
-I../../../third_party/boost_1_34_1
-I../../../third_party/uriparser-0.7.1/include
-I../../../third_party/googletest-r108/include -Wall -Werror -ansi
-pedantic -fno-rtti -g -O2 -MT expat_parser.lo -MD -MP -MF
.deps/expat_parser.Tpo -c expat_parser.cc  -fPIC -DPIC -o .libs/expat_parser.o
expat_parser.cc: In member function `bool
kmlbase::ExpatParser::ParseInternalBuffer(size_t, std::string*, bool)':
expat_parser.cc:110: error: `XML_ParsingStatus' was not declared in this scope
expat_parser.cc:110: error: expected `;' before "parsing_status"
expat_parser.cc:111: error: `parsing_status' was not declared in this scope
expat_parser.cc:111: error: `XML_GetParsingStatus' was not declared in this
scope
expat_parser.cc:112: error: `XML_FINISHED' was not declared in this scope
expat_parser.cc:112: warning: unused variable 'XML_FINISHED'
expat_parser.cc:110: warning: unused variable 'XML_ParsingStatus'
expat_parser.cc:111: warning: unused variable 'XML_GetParsingStatus'
expat_parser.cc: In member function `bool
kmlbase::ExpatParser::_ParseString(const std::string&, std::string*)':
expat_parser.cc:130: error: `XML_STATUS_SUSPENDED' was not declared in this
scope
expat_parser.cc:130: warning: unused variable 'XML_STATUS_SUSPENDED'
make[4]: *** [expat_parser.lo] Error 1
make[4]: Leaving directory
`/var/scratch/achen2/software/libkml-0.9.0/src/kml/base'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/scratch/achen2/software/libkml-0.9.0/src/kml'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/scratch/achen2/software/libkml-0.9.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/scratch/achen2/software/libkml-0.9.0'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
0.9.0 with update configure.ac (r525)

Did you run the unit test suite that comes with the project? Did all tests
pass?
no

Please provide any additional information below.
no

Original issue reported on code.google.com by aijunc...@gmail.com on 8 Jun 2009 at 7:22

GoogleCodeExporter commented 8 years ago
I think there is bug.
No matter how I set up the new dir for expat lib and include. It just did not 
work.
I used:
1 --with-expat-lib-dir --with-expat-include-dir
2 LIBS=
3 LD_LIRARY_PATH
4 EXPAT_INCLUDE_DIR
5 EXPAT_LIB_DIR

Original comment by aijunc...@gmail.com on 9 Jun 2009 at 7:45

GoogleCodeExporter commented 8 years ago
is all well if you use the built-in expat?

just do "./configure" with no options

Original comment by kml.b...@gmail.com on 10 Jun 2009 at 1:38

GoogleCodeExporter commented 8 years ago
No.
It always used the /usr/include/ and /usr/lib/ for expat head file and library.

Original comment by aijunc...@gmail.com on 10 Jun 2009 at 2:11