[gdal-dev] Problem building GDAL with Teigha ODA libraries

Paulo Dias Almeida pda at geomaster.pt
Thu May 14 02:16:28 PDT 2020


Hello,

I was wondering if you could help with a problem I encountered when 
building GDAL with the Open Design Alliance Libraries (ODA >= 2021) on 
Linux.

I've been trying to build GDAL with ODA version 2021.2 based on the 
changes made to build on Windows in the following commit 
<https://github.com/OSGeo/gdal/commit/44ce5be4c043eea2fb2bc719858fb62285a5cc03>.

Following those changes I've edited the configure and dwg's GNUmakefile 
as seen in the attached diff. However I've run into a linking problem 
that I haven't been able to solve. Namely when building the 'gdalinfo' 
target I'm getting several 'undefined reference' errors with the built 
libgdal.so:

...

/bin/bash /home/paulo/Dev/gdal/gdal/libtool --mode=link --silent g++  
gdalinfo_bin.lo  /home/paulo/Dev/gdal/gdal/libgdal.la  -o gdalinfo
/home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to 
`OdDgHostAppServices::program()'
/home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to 
`pcre_study'
/home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to 
`OdDgFontTable::getFont(unsigned int) const'
/home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to 
`OdDgDatabase::getNamedViewTable(OdDg::OpenMode) const'
/home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to 
`OdDgGraphicsElementPE::desc()'
/home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to 
`OdDgElement::elementId() const'
/home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to 
`OdDgArc2d::desc()'
/home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to 
`OdDgHostAppServices::getThumbnail(OdString const&, OdBinaryData&)'

...

collect2: error: ld returned 1 exit status
GNUmakefile:90: recipe for target 'gdalinfo' failed
make[1]: *** [gdalinfo] Error 1


The configure command used for this build was the following:

./configure --with-python=python3 --with-proj=/usr/local --with-pg=yes 
--with-teigha=/home/paulo/Dev/oda/21.2/Drawings_lnxX64_7.2dll 
--with-teigha-krl=/home/paulo/Dev/oda/21.2/Kernel_lnxX64_7.2dll 
--with-teigha-plt=lnxX64_7.2dll

If you could give some insights about this problem it would be greatly 
appreciated.

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200514/e4acd4a2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oda.diff
Type: text/x-patch
Size: 2822 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200514/e4acd4a2/attachment.bin>


More information about the gdal-dev mailing list