Hi, I would like to compile GDAL with DWGv8 support in Ubuntu.
I already have an ODA account and I've downloaded the Kernel and Drawings SDK (and an activation header): Kernel_lnxX64_5.3dll_21.3 Drawings_lnxX64_5.3dll_21.3 I'm trying to compile GDAL with: CPPFLAGS='-I/home/jgr/dev/gdal/ODA/Kernel_lnxX64_5.3dll_21.3/KernelBase/Include -I/home/jgr/dev/gdal/ODA/Kernel_lnxX64_5.3dll_21.3/Kernel/Include -I/home/jgr/dev/gdal/ODA/Drawings_lnxX64_5.3dll_21.3/Drawing/Include -I/home/jgr/dev/gdal/ODA/Kernel_lnxX64_5.3dll_21.3/Kernel/Extensions/ExServices -I/home/jgr/dev/gdal/ODA/Drawings_lnxX64_5.3dll_21.3/Drawing/Extensions/ExServices -I/home/jgr/dev/gdal/ODA/Kernel_lnxX64_5.3dll_21.3/ThirdParty/activation -I/home/jgr/dev/gdal/ODA/Drawings_lnxX64_5.3dll_21.3/Dgn/include -I/home/jgr/dev/gdal/ODA/Drawings_lnxX64_5.3dll_21.3/Dgn/Extensions/ExServices' LDFLAGS='-L/home/jgr/dev/gdal/ODA/Kernel_lnxX64_5.3dll_21.3/bin/lnxX64_5.3dll/' ./configure --without-libtool --with-python=python3 --with-proj=/usr/local --with-pg=yes --with-poppler --with-teigha=/home/jgr/dev/gdal/ODA/Drawings_lnxX64_5.3dll_21.3 --with-teigha-plt=lnxX64_5.3dll The two ODA related settings are: --with-teigha=/home/jgr/dev/gdal/ODA/Drawings_lnxX64_5.3dll_21.3 --with-teigha-plt=lnxX64_5.3dll I got a small error about missing libTD_ExamplesCommon.a. I did this workaround: ln -s `pwd`/Kernel_lnxX64_5.3dll_21.3/lib/lnxX64_5.3dll/libTD_ExamplesCommon.a `pwd`/Drawings_lnxX64_5.3dll_21.3/lib/lnxX64_5.3dll/libTD_ExamplesCommon.a Then I get many, many link errors, like: /usr/bin/ld: /home/jgr/dev/gdal/gdal/libgdal.so: undefined reference to `typeinfo for ExHostAppServices' /usr/bin/ld: /home/jgr/dev/gdal/ODA/Drawings_lnxX64_5.3dll_21.3/bin/lnxX64_5.3dll/TG_Db.tx: undefined reference to `non-virtual thunk to OdGiWorldDrawImpl::setTransparency(OdCmTransparency const&)' /usr/bin/ld: /home/jgr/dev/gdal/ODA/Kernel_lnxX64_5.3dll_21.3/bin/lnxX64_5.3dll//libTD_Root.so: undefined reference to `[email protected]' /usr/bin/ld: /home/jgr/dev/gdal/ODA/Drawings_lnxX64_5.3dll_21.3/bin/lnxX64_5.3dll/TG_Db.tx: undefined reference to `OdGiBaseVectorizer::worldLine(OdGePoint3d const*)' I never built GDAL with ODA/Teigha before and I'm not able to move forward. Regards, Jorge Gustavo _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
