[gdal-dev] DWGDirect and Teigha failing to compile
Carman, Darren
darren.carman at infoterra-global.com
Fri Jan 20 04:56:34 EST 2012
Hi,
I am having problems installing GDAL 1.8.1 using the Open Design
Alliance Teigha v3 software. We run Red Hat EL6.1 64bit which used gcc
4.4. The Teigha distribution contains prebuilt libraries for this
compiler, so no source code.
The servers we are upgrading from were Red Hat EL4.8 32bit running GDAL
1.4.5 and ODA 2.5 (pre Teigha branding and changes). This works fine.
I am unsure if this is still supported and did notice the extra dxf and
dwg directories under ogrsf_frmts, but am unsure whether they are meant
to replace this or use different technologies. I don't see them
mentioned in the configure help.
So far I have:
a) Downloaded the dxfdwg directory and modified GNUMakefile,
ogr_dwg.h, OdFileBuf.cpp and OdFileBuf.h to reflect changes in ODA
function names and allow it to build.
b) Modified GDALmake.opt.in to use new ODA library naming (and new
libraries).
My problem is at the end of the build when the GDAL binaries are being
built. I end up with undefined references and am unsure what libraries
need to be included, ODA or otherwise, or even if I just need extra
changes to GDALmake.opt.in.
I am hoping someone else has been down this road and knows what I am
missing. Any help is greatly appreciated and thanks in advance to anyone
who can solve my problem.
Regards,
Darren
The undefined references:
echo 'CONFIG_VERSION="'`cat ../VERSION`'"' >> gdal-config
echo 'CONFIG_OGR_ENABLED=yes' >> gdal-config
echo 'CONFIG_FORMATS="gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211
xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp
pcidsk airsar rs2 ilwis rmf leveller sgi srtmhgt idrisi gsg ingr ers
jaxapalsar dimap gff cosar pds adrg coasp tsx terragen blx msgn til r
northwood saga xyz hf2 kmlsuperoverlay ozi wcs wms grib bsb ecw jpeg2000
gif jpeg png pcraster rik postgisraster"' >> gdal-config
cat gdal-config.in >> gdal-config
chmod a+x gdal-config
/bin/sh gdal-1.8.1/libtool --mode=link g++ gdalinfo.lo
gdal-1.8.1/libgdal.la -o gdalinfo
libtool: link: g++ .libs/gdalinfo.o -o .libs/gdalinfo
gdal-1.8.1/.libs/libgdal.so
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeCachingCurve3d::originalCurve() const'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeTess2::OptimizedHolder::~OptimizedHolder()'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeTess2::Contour::breakToConvex(unsigned int, double)'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeOffsetCurve3d::curve() const'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeRay2d::OdGeRay2d(OdGePoint2d const&, OdGeVector2d const&)'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeTess2::Contour::create(void const*, bool,
OdGeTess2::MemoryHolder&)'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeLengthScaledCurve3d::OdGeLengthScaledCurve3d(OdGeCurve3d const*,
double)'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeTess2::Contour::addVertex(int, unsigned int)'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeQuaternion::kOrigin'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeTess2::OptimizedHolder::OptimizedHolder(unsigned int, unsigned
int)'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeCompositeCurve3d::getCurveList(OdArray<OdSharedPtr<OdGeCurve3d>,
OdObjectsAllocator<OdSharedPtr<OdGeCurve3d> > >&) const'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeOffsetCurve3d::OdGeOffsetCurve3d(OdGeCurve3d const&, OdGeVector3d
const&, double)'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeSphere::radius() const'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeCompositeCurve3d::globalToLocalParam(double, int&) const'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeSphere::center() const'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeCachingCurve3d::OdGeCachingCurve3d(OdGeCurve3d const*, double)'
gdal-1.8.1/.libs/libgdal.so: undefined reference to
`OdGeCompositeCurve3d::OdGeCompositeCurve3d(OdArray<OdSharedPtr<OdGeCurv
e3d>, OdObjectsAllocator<OdSharedPtr<OdGeCurve3d> > > const&)'
collect2: ld returned 1 exit status
make[1]: *** [gdalinfo] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120120/e7663b28/attachment.html
More information about the gdal-dev
mailing list