[fdo-users] RE: RE: RE: RE: Postgis/OGR providers on Ubuntu?

Jo Cook j.cook at OXFORDARCH.CO.UK
Thu Aug 23 07:26:01 EDT 2007


Hi Traian,

I have started from scratch here, as I was trying to move over to Ubuntu
7.04 anyhow, so I have rebuilt my install of mapguide from the latest svn. 

So- what I now have is libgdal in /usr/local/lib, and ogrsf_frmts.h in
/usr/local/include and /usr/local/mapguideopensource/include. 

How do I a) check whether the two versions of the header files are the same,
and b) tell the build to use one in particular?

Many thanks

Jo


Traian Stanev wrote:
> 
> 
> One way to start is to look for how many copies of a common header file,
> like ogrsf_frmts.h exist in the file system.
> You can use something like whereis or find on the command line. You
> should have one under /usr/include and may be more in other places. It
> may be that when compiling, the compiler uses the header from a place
> other than /usr/include and then link against the library that is under
> /usr/include, which does not match that header.
> 
> 
> Traian
> 
> 
> -----Original Message-----
> From: fdo-users-bounces at lists.osgeo.org
> [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Jo Cook
> Sent: Wednesday, August 22, 2007 4:03 AM
> To: fdo-users at lists.osgeo.org
> Subject: [fdo-users] RE: RE: RE: Postgis/OGR providers on Ubuntu?
> 
> 
> Hi Traian,
> 
> Thanks for getting back to me. 
> 
> Sorry, how do I do this? (I'm still pretty new to all of this)
> 
> Jo
> 
> 
> Traian Stanev wrote:
>> 
>> 
>> The error you see happens during linking. This could mean that it is
>> compiling against headers that are a different version from the binary
>> it links to. So, make sure that if linking is done against
>> /usr/lib/libgdal, then compiling is done against OGR headers in
>> /usr/include/. I can't think of anything else that would cause this
>> problem.
>> 
>> 
>> 
>> 
>> -----Original Message-----
>> From: fdo-users-bounces at lists.osgeo.org
>> [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Jo Cook
>> Sent: Monday, August 20, 2007 6:16 AM
>> To: fdo-users at lists.osgeo.org
>> Subject: [fdo-users] RE: RE: Postgis/OGR providers on Ubuntu?
>> 
>> 
>> Hi Traian,
>> 
>> Many thanks for replying. Unfortunately I think I might need a bit
> more
>> of a
>> step-by-step guide here, because when I try and follow your
> instructions
>> I
>> just end up with more undefined references on top of the ones I had
>> before!
>> 
>> Where I am starting from is a build of fdo from svn following the
>> instructions (so build third party then build fdo). On top of that I
>> have
>> added (both the normal and dev versions of) gdal, xalan and xerces
> using
>> aptitude, and I have checked where libgdal is (/usr/lib). I have
>> re-built
>> the fdo library using make/make install, and have checked to make sure
>> that
>> gdal, xerces and xalan are not in /usr/local/fdo-3.2.2/lib. When I do
>> all of
>> this I end up with undefined references to xalan and xerces. If I put
>> them
>> back in /fdo-3.2.2/lib then I lose those undefined references but I
>> still
>> have the basic:
>> 
>> /tmp/cc3XlLjR.o: In function `.L313':OgrFdoUtil.cpp:(.text+0x6cb):
>> undefined
>> reference to `OGRFeature::SetField(int, int, int, int, int, int, int,
>> int)'
>> /tmp/cc3XlLjR.o: In function `.L310':OgrFdoUtil.cpp:(.text+0x99b):
>> undefined
>> reference to `OGRFeature::SetField(int, int, int, int, int, int, int,
>> int)'
>> /tmp/ccn687Fv.o: In function
>> `OgrConnection::Close()':OgrProvider.cpp:(.text+0x83): undefined
>> reference
>> to `OGRDataSource::DestroyDataSource(OGRDataSource*)'
>> /tmp/ccn687Fv.o: In function
>> `__static_initialization_and_destruction_0(int,
>> int)':OgrProvider.cpp:(.text+0xbb4): undefined reference to
>> `OGRRegisterAll'
>> /tmp/ccn687Fv.o: In function `OgrFeatureReader::GetDateTime(wchar_t
>> const*)':OgrProvider.cpp:(.text+0xeb0): undefined reference to
>> `OGRFeature::GetFieldAsDateTime(int, int*, int*, int*, int*, int*,
> int*,
>> int*)'
>> /tmp/ccn687Fv.o: In function
>> `OgrConnection::Open()':OgrProvider.cpp:(.text+0x177c): undefined
>> reference
>> to `OGRSFDriverRegistrar::Open(char const*, int, OGRSFDriver**)'
>> /tmp/ccn687Fv.o: In function `OgrDataReader::GetDateTime(wchar_t
>> const*)':OgrProvider.cpp:(.text+0x46fd): undefined reference to
>> `OGRFeature::GetFieldAsDateTime(int, int*, int*, int*, int*, int*,
> int*,
>> int*)'
>> collect2: ld returned 1 exit status
>> 
>> So I assume that either I am not following the instructions you've
> given
>> me
>> correctly, or I have a version problem with ogr?
>> 
>> Thanks again
>> 
>> Jo
>> 
>> Traian Stanev wrote:
>>> 
>>> 
>>> 
>>> To add more info to this... I just did a build of the OGR provider on
>>> Ubuntu (64 bit), and I got it to compile and link ok. However, I did
>> not
>>> use the third party components that come with FDO. I used Synaptic to
>> add
>>> xerces and xalan and cppunit and then ran the makefile for FDO rather
>> than
>>> the build script. This generates libFDO linked to the already
>> installed
>>> xerces. 
>>> 
>>> I also got the latest GDAL available (1.4.2) and installed that in
> the
>>> default location (/usr/local/). After that the OGR provider built
>> without
>>> errors.
>>> 
>>> To check which gdal your build is using try a command like:
>>> 
>>> whereis libgdal
>>> 
>>> I can try to do a 32 build using the regular build process, since
> this
>>> could be partly the reason why it's not working out for you so
> well...
>> but
>>> that will  need more time to set up, so I can't do it immediately.
>>> 
>>> 
>>> Traian
>>> 
>>> -----Original Message-----
>>> From:	fdo-users-bounces at lists.osgeo.org on behalf of Traian
> Stanev
>>> Sent:	Sat 8/18/2007 12:22 PM
>>> To:	FDO Users Mail List; fdo-users at lists.osgeo.org
>>> Cc:	
>>> Subject:	RE: [fdo-users] RE: Postgis/OGR providers on Ubuntu?
>>> 
>>>  
>>> What version of GDAL/OGR are you linking against? It could be finding
>>> older ogr libraries somewhere in the path and trying to link against
>> them.
>>> May be it is linking against the GDAL that comes with FDO, which is
> an
>> old
>>> version and will not work, since it doesn't have these API calls.
>>>  
>>> When I compiled on Linux, I installed both GDAL and Xerces using my
>>> distribution's (Gentoo x64) installer rather than compile the ones
>> that
>>> come with FDO. I recommend this approach -- and also remove xerces
> and
>>> gdal from the /usr/local/fdo-3.2.2/lib if they are there.
>>>  
>>>  
>>> Traian
>>> 
>>> 	-----Original Message----- 
>>> 	From: fdo-users-bounces at lists.osgeo.org on behalf of Jo Cook 
>>> 	Sent: Wed 8/15/2007 11:04 AM 
>>> 	To: fdo-users at lists.osgeo.org 
>>> 	Cc: 
>>> 	Subject: [fdo-users] RE: Postgis/OGR providers on Ubuntu?
>>> 	
>>> 	
>>> 
>>> 
>>> 	OK,
>>> 	
>>> 	By including /usr/local/fdo-3.2.2/lib in LD_LIBRARY_PATH I have
>> got rid
>>> of
>>> 	warnings, but I still have the following error:
>>> 	
>>> 	==============begin============
>>> 	/tmp/ccgHSqr3.o: In function
>> `.L313':OgrFdoUtil.cpp:(.text+0x6cb):
>>> undefined
>>> 	reference to `OGRFeature::SetField(int, int, int, int, int, int,
>> int,
>>> int)'
>>> 	/tmp/ccgHSqr3.o: In function
>> `.L310':OgrFdoUtil.cpp:(.text+0x99b):
>>> undefined
>>> 	reference to `OGRFeature::SetField(int, int, int, int, int, int,
>> int,
>>> int)'
>>> 	/tmp/ccCoNaFF.o: In function
>>> 	`OgrConnection::Close()':OgrProvider.cpp:(.text+0x83): undefined
>>> reference
>>> 	to `OGRDataSource::DestroyDataSource(OGRDataSource*)'
>>> 	/tmp/ccCoNaFF.o: In function
>>> `__static_initialization_and_destruction_0(int,
>>> 	int)':OgrProvider.cpp:(.text+0xbb4): undefined reference to
>>> `OGRRegisterAll'
>>> 	/tmp/ccCoNaFF.o: In function
>> `OgrFeatureReader::GetDateTime(wchar_t
>>> 	const*)':OgrProvider.cpp:(.text+0xeb0): undefined reference to
>>> 	`OGRFeature::GetFieldAsDateTime(int, int*, int*, int*, int*,
>> int*, int*,
>>> 	int*)'
>>> 	/tmp/ccCoNaFF.o: In function
>>> 	`OgrConnection::Open()':OgrProvider.cpp:(.text+0x177c):
>> undefined
>>> reference
>>> 	to `OGRSFDriverRegistrar::Open(char const*, int, OGRSFDriver**)'
>>> 	/tmp/ccCoNaFF.o: In function `OgrDataReader::GetDateTime(wchar_t
>>> 	const*)':OgrProvider.cpp:(.text+0x46fd): undefined reference to
>>> 	`OGRFeature::GetFieldAsDateTime(int, int*, int*, int*, int*,
>> int*, int*,
>>> 	int*)'
>>> 	collect2: ld returned 1 exit status
>>> 	=========end=========
>>> 	
>>> 	Any thoughts?
>>> 	
>>> 	Jo
>>> 	
>>> 	
>>> 	Jo Cook wrote:
>>> 	>
>>> 	> Hi,
>>> 	>
>>> 	> Hmm, I thought I'd sorted that, but it appears not. New error
>> message
>>> from
>>> 	> compile.sh:
>>> 	>
>>> 	> ===========begin error msg========
>>> 	>
>>> 	> /usr/bin/ld: warning: libxalanMsg.so.17, needed by
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so, not found (try using
>> -rpath or
>>> 	> -rpath-link)
>>> 	> /usr/bin/ld: warning: libxerces-c.so.25, needed by
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so, not found (try using
>> -rpath or
>>> 	> -rpath-link)
>>> 	> /tmp/ccs942wc.o: In function
>> `.L313':OgrFdoUtil.cpp:(.text+0x6cb):
>>> 	> undefined reference to `OGRFeature::SetField(int, int, int,
>> int, int,
>>> int,
>>> 	> int, int)'
>>> 	> /tmp/ccs942wc.o: In function
>> `.L310':OgrFdoUtil.cpp:(.text+0x99b):
>>> 	> undefined reference to `OGRFeature::SetField(int, int, int,
>> int, int,
>>> int,
>>> 	> int, int)'
>>> 	> /tmp/ccXqYF0e.o: In function
>>> 	> `OgrConnection::Close()':OgrProvider.cpp:(.text+0x83):
>> undefined
>>> reference
>>> 	> to `OGRDataSource::DestroyDataSource(OGRDataSource*)'
>>> 	> /tmp/ccXqYF0e.o: In function
>>> 	> `__static_initialization_and_destruction_0(int,
>>> 	> int)':OgrProvider.cpp:(.text+0xbb4): undefined reference to
>>> 	> `OGRRegisterAll'
>>> 	> /tmp/ccXqYF0e.o: In function
>> `OgrFeatureReader::GetDateTime(wchar_t
>>> 	> const*)':OgrProvider.cpp:(.text+0xeb0): undefined reference to
>>> 	> `OGRFeature::GetFieldAsDateTime(int, int*, int*, int*, int*,
>> int*,
>>> int*,
>>> 	> int*)'
>>> 	> /tmp/ccXqYF0e.o: In function
>>> 	> `OgrConnection::Open()':OgrProvider.cpp:(.text+0x177c):
>> undefined
>>> 	> reference to `OGRSFDriverRegistrar::Open(char const*, int,
>>> OGRSFDriver**)'
>>> 	> /tmp/ccXqYF0e.o: In function
>> `OgrDataReader::GetDateTime(wchar_t
>>> 	> const*)':OgrProvider.cpp:(.text+0x46fd): undefined reference
>> to
>>> 	> `OGRFeature::GetFieldAsDateTime(int, int*, int*, int*, int*,
>> int*,
>>> int*,
>>> 	> int*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::DTDEntityDecl::getProtoType() const'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xalanc_1_7::ProblemListener::~ProblemListener()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLTransService::makeNewTranscoderFor(unsigned
>> short
>>> const*,
>>> 	> xercesc_2_5::XMLTransService::Codes&, unsigned int,
>>> 	> xercesc_2_5::MemoryManager*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	>
>>
> `xercesc_2_5::DTDEntityDecl::serialize(xercesc_2_5::XSerializeEngine&)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xalanc_1_7::XSLTInputSource::XSLTInputSource()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLRefInfo::getProtoType() const'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLPlatformUtils::Terminate()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::InputSource::setPublicId(unsigned short const*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLPlatformUtils::Initialize(char const*, char
>> const*,
>>> 	> xercesc_2_5::PanicHandler*, xercesc_2_5::MemoryManager*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	>
>>>
>>
> `xercesc_2_5::SAX2XMLReaderImpl::SAX2XMLReaderImpl(xercesc_2_5::MemoryMa
>> nager*,
>>> 	> xercesc_2_5::XMLGrammarPool*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>> `typeinfo
>>> for
>>> 	> xercesc_2_5::XMLException'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>> `typeinfo
>>> for
>>> 	> xercesc_2_5::BinInputStream'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::AbstractDOMParser::adoptDocument()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::Base64::decode(unsigned char const*, unsigned
>> int*,
>>> 	> xercesc_2_5::MemoryManager*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::BinInputStream::~BinInputStream()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::SAXParseException::getColumnNumber() const'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLEntityDecl::~XMLEntityDecl()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::DTDEntityDecl::isSerializable() const'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMemory::operator delete(void*,
>>> 	> xercesc_2_5::MemoryManager*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	>
>>>
>>
> `xercesc_2_5::XercesDOMParser::XercesDOMParser(xercesc_2_5::XMLValidator
>> *,
>>> 	> xercesc_2_5::MemoryManager*, xercesc_2_5::XMLGrammarPool*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLUni::fgXercesLoadExternalDTD'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::SAXParseException::getLineNumber() const'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xalanc_1_7::XalanTransformer::XalanTransformer()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLUni::fgDOMWRTFormatPrettyPrint'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLUni::fgXercesSchema'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLPlatformUtils::fgMemoryManager'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	>
>>
> `xercesc_2_5::XMLAttDefList::serialize(xercesc_2_5::XSerializeEngine&)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	>
>>>
>>
> `xalanc_1_7::XalanTransformer::setStylesheetParam(xalanc_1_7::XalanDOMSt
>> ring
>>> 	> const&, xalanc_1_7::XalanDOMString const&)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>> `typeinfo
>>> for
>>> 	> xercesc_2_5::XMLEntityDecl'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>> `typeinfo
>>> for
>>> 	> xalanc_1_7::ProblemListener'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>> `typeinfo
>>> for
>>> 	> xercesc_2_5::SAXParseException'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	>
>> `xalanc_1_7::XalanTransformer::transform(xalanc_1_7::XSLTInputSource
>>> 	> const&, xalanc_1_7::XSLTInputSource const&, void*, unsigned
>> int
>>> (*)(char
>>> 	> const*, unsigned int, void*), void (*)(void*))'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLAttDefList::getProtoType() const'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMemory::operator new(unsigned int)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xalanc_1_7::ProblemListener::ProblemListener()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::SAXParseException::~SAXParseException()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xalanc_1_7::XalanDOMString::XalanDOMString(char const*,
>> unsigned int)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	>
>> `xercesc_2_5::XMLRefInfo::serialize(xercesc_2_5::XSerializeEngine&)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::InputSource::setEncoding(unsigned short const*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	>
>>>
>>
> `xercesc_2_5::SAXParseException::SAXParseException(xercesc_2_5::SAXParse
>> Exception
>>> 	> const&)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMemory::operator delete(void*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xalanc_1_7::XalanTransformer::initialize()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLString::release(unsigned char**)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLString::release(char**)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>> `typeinfo
>>> for
>>> 	> xercesc_2_5::InputSource'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLChar1_0::isValidQName(unsigned short const*,
>> unsigned
>>> 	> int)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::AbstractDOMParser::parse(char const*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	>
>> `xercesc_2_5::InputSource::InputSource(xercesc_2_5::MemoryManager*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xalanc_1_7::XalanTransformer::~XalanTransformer()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	>
>>>
>>
> `xercesc_2_5::XercesDOMParser::setErrorHandler(xercesc_2_5::ErrorHandler
>> *)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::Base64::encode(unsigned char const*, unsigned
>> int,
>>> unsigned
>>> 	> int*, xercesc_2_5::MemoryManager*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLChar1_0::fgCharCharsTable1_0'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLRefInfo::isSerializable() const'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xalanc_1_7::XalanDOMString::transcode() const'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	>
>> `xercesc_2_5::DOMImplementationRegistry::getDOMImplementation(unsigned
>>> 	> short const*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLString::transcode(unsigned short const*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::BinInputStream::BinInputStream()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>> `typeinfo
>>> for
>>> 	> xalanc_1_7::XSLTInputSource'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLString::release(unsigned short**)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLAttDefList::isSerializable() const'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLPlatformUtils::fgTransService'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xalanc_1_7::XalanTransformer::terminate()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::InputSource::~InputSource()'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::InputSource::setSystemId(unsigned short const*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>> `typeinfo
>>> for
>>> 	> xalanc_1_7::XSLException'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLString::transcode(char const*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMLUni::fgXercescDefaultLocale'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	> `xercesc_2_5::XMemory::operator new(unsigned int,
>>> 	> xercesc_2_5::MemoryManager*)'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>> `vtable for
>>> 	> xalanc_1_7::XSLTInputSource'
>>> 	> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to
>>> 	>
>> `xercesc_2_5::LocalFileFormatTarget::LocalFileFormatTarget(char
> const*,
>>> 	> xercesc_2_5::MemoryManager*)'collect2: ld returned 1 exit
>> status
>>> 	> =======end error msg===========
>>> 	>
>>> 	> So- do I need to install libxalan and libxerces or is it just
>> asking me
>>> to
>>> 	> link something?
>>> 	>
>>> 	> Thanks
>>> 	>
>>> 	> Jo
>>> 	>
>>> 	>
>>> 	>
>>> 	>
>>> 	>
>>> 	> Traian Stanev wrote:
>>> 	>>
>>> 	>> 
>>> 	>> Hi,
>>> 	>> 
>>> 	>> Could you post the contents of the compilation shell file
>> that you are
>>> 	>> using to compile the OGR provider? It should be a one line
>> shell
>>> script.
>>> 	>> The one you are using may have the wrong location for FDO...
>>> 	>> FYI if you don't hear again from me till next week, it is
>> because I
>>> have
>>> 	>> no internet where I am currently.
>>> 	>> 
>>> 	>> Traian
>>> 	>>
>>> 	>>      -----Original Message-----
>>> 	>>      From: fdo-users-bounces at lists.osgeo.org on behalf of Jo
>> Cook
>>> 	>>      Sent: Wed 8/15/2007 7:01 AM
>>> 	>>      To: fdo-users at lists.osgeo.org
>>> 	>>      Cc:
>>> 	>>      Subject: [fdo-users] Postgis/OGR providers on Ubuntu?
>>> 	>>     
>>> 	>>     
>>> 	>>
>>> 	>>
>>> 	>>      Hi All,
>>> 	>>     
>>> 	>>      I would like to add the OGR and Postgis providers to my
>> Ubuntu
>>> install
>>> 	>> of
>>> 	>>      Mapguide Open Source and would appreciate it if someone
>> could
>>> give me a
>>> 	>>      little help with it. I have tried to install the ogr
>> provider
>>> from svn,
>>> 	>> but
>>> 	>>      this failed at the beginning of the configure stage with
>> the
>>> message
>>> 	>>     
>>> 	>>      stdafx.h:3:17: error: Fdo.h: No such file or directory
>>> 	>>     
>>> 	>>      followed by line upon line of error. I can post a log
>> file of
>>> this if
>>> 	>> that
>>> 	>>      would be handy. Because the readme file with the source
>> said that
>>> it
>>> 	>> wanted
>>> 	>>      gdal 1.4, and it wanted it somewhere accessible, I
>> compiled and
>>> 	>> installed
>>> 	>>      gdal1.4.0 from source, which installed itself in
>>> /usr/local/share/gdal.
>>> 	>> My
>>> 	>>      fdo installation (installed as part of the mapguide
>> installation)
>>> is in
>>> 	>>      /usr/local/fdo-3.2.2.
>>> 	>>     
>>> 	>>      When I look at the postgis provider in svn, I can't even
>> tell how
>>> I
>>> 	>> would go
>>> 	>>      about installing it!
>>> 	>>     
>>> 	>>      I thought that another option would be to include the
>> providers
>>> into the
>>> 	>>      checkoutsvn.sh script for the fdo build, but I don't
>> really know
>>> how I
>>> 	>> would
>>> 	>>      proceed from there.
>>> 	>>     
>>> 	>>      If anyone can give me some pointers on this I'd be
>> extremely
>>> grateful as
>>> 	>> I
>>> 	>>      have a very lonely postgresql database that's simply
>> yearning to
>>> be put
>>> 	>> on a
>>> 	>>      map!
>>> 	>>     
>>> 	>>      Many thanks
>>> 	>>     
>>> 	>>      Jo
>>> 	>>     
>>> 	>>      --
>>> 	>>      View this message in context:
>>> 	>>
>>>
>>
> http://www.nabble.com/Postgis-OGR-providers-on-Ubuntu--tf4272057s18162.h
>> tml#a12158992
>>> 	>>      Sent from the fdo-users mailing list archive at
>> Nabble.com.
>>> 	>>     
>>> 	>>      _______________________________________________
>>> 	>>      fdo-users mailing list
>>> 	>>      fdo-users at lists.osgeo.org
>>> 	>>      http://lists.osgeo.org/mailman/listinfo/fdo-users
>>> 	>>     
>>> 	>>
>>> 	>>
>>> 	>> _______________________________________________
>>> 	>> fdo-users mailing list
>>> 	>> fdo-users at lists.osgeo.org
>>> 	>> http://lists.osgeo.org/mailman/listinfo/fdo-users
>>> 	>>
>>> 	>>
>>> 	>
>>> 	>
>>> 	
>>> 	--
>>> 	View this message in context:
>>>
>>
> http://www.nabble.com/Postgis-OGR-providers-on-Ubuntu--tf4272057s18162.h
>> tml#a12163869
>>> 	Sent from the fdo-users mailing list archive at Nabble.com.
>>> 	
>>> 	_______________________________________________
>>> 	fdo-users mailing list
>>> 	fdo-users at lists.osgeo.org
>>> 	http://lists.osgeo.org/mailman/listinfo/fdo-users
>>> 	
>>> 
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> fdo-users mailing list
>>> fdo-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/fdo-users
>>> 
>>> 
>> 
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/Postgis-OGR-providers-on-Ubuntu--tf4272057s18162.h
>> tml#a12233304
>> Sent from the fdo-users mailing list archive at Nabble.com.
>> 
>> _______________________________________________
>> fdo-users mailing list
>> fdo-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/fdo-users
>> 
>> 
>> _______________________________________________
>> fdo-users mailing list
>> fdo-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/fdo-users
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Postgis-OGR-providers-on-Ubuntu--tf4272057s18162.h
> tml#a12269999
> Sent from the fdo-users mailing list archive at Nabble.com.
> 
> _______________________________________________
> fdo-users mailing list
> fdo-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fdo-users
> 
> 
> _______________________________________________
> fdo-users mailing list
> fdo-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fdo-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Postgis-OGR-providers-on-Ubuntu--tf4272057s18162.html#a12291755
Sent from the fdo-users mailing list archive at Nabble.com.



More information about the fdo-users mailing list