Open yash-jain16 opened 4 years ago
Not sure what would cause this, though you previously built it successfully, no? Can you describe your build environment?
Yes, it is working for me inside Docker, but I want to execute it directly on my machine. So I am using a Linux machine on AWS EC2 (Linux 5.3.0-1019-aws x86_64) I have gdal and CMake(3.17) already installed there
Which Linux distribution? How were GDAL and GEOS installed?
Linux is Ubuntu bionic Ubuntu 18.04 LTS
GDAL and GEOS installed using anaconda env in python
Ah, the conda env is probably screwing with the linking. Why not just install GDAL and GEOS via apt?
Hey, so I tried this way and it executed properly till "make" but on "sudo make install" I have the following error:
[ 75%] Linking CXX executable exactextract libexactextract.a(geos_utils.cpp.o): In function, std::allocator > , std::cxx11::basic_string<char, std::char_traits, std::allocator >) const'
/usr/lib/libgdal.so: undefined reference to , std::allocator > const&, std:: cxx11::basic_string<char, std::char_traits, std::allocator > )'
/usr/lib/libgdal.so: undefined reference to , std::allocator > const&, std:: cxx11::basic_string<char, std::char_traits, std::allocator >)'
/usr/lib/libgdal.so: undefined reference to cxx11::basic_string<char, std::char_traits, std::allocator >*) const'
/usr/lib/libgdal.so: undefined reference to
exactextract::segment_intersection(GEOSContextHandle_HS*, exactextract::Coordinate const&, exactextract::Coordinate const&, exactextract::Coordinate const&, exactextract::Coordinate const&, exactextract::Coordinate&)': geos_utils.cpp:(.text+0x41c): undefined reference to
GEOSSegmentIntersection_r' libexactextract.a(geos_utils.cpp.o): In functionexactextract::geos_get_box(GEOSContextHandle_HS*, GEOSGeom_t const*)': geos_utils.cpp:(.text+0x4ad): undefined reference to
GEOSGeom_getXMin_r' geos_utils.cpp:(.text+0x4c5): undefined reference toGEOSGeom_getYMin_r' geos_utils.cpp:(.text+0x4d9): undefined reference to
GEOSGeom_getXMax_r' geos_utils.cpp:(.text+0x4ed): undefined reference toGEOSGeom_getYMax_r' libexactextract.a(geos_utils.cpp.o): In function
exactextract::geos_is_ccw(GEOSContextHandle_HS, GEOSCoordSeq_t const)': geos_utils.cpp:(.text+0x5ac): undefined reference toGEOSCoordSeq_isCCW_r' libexactextract.a(geos_utils.cpp.o): In function
exactextract::geos_get_component_boxes(GEOSContextHandle_HS, GEOSGeom_t const)': geos_utils.cpp:(.text+0x92a): undefined reference toGEOSGeom_getXMin_r' geos_utils.cpp:(.text+0x93e): undefined reference to
GEOSGeom_getYMin_r' geos_utils.cpp:(.text+0x952): undefined reference toGEOSGeom_getXMax_r' geos_utils.cpp:(.text+0x966): undefined reference to
GEOSGeom_getYMax_r' /usr/lib/libgdal.so: undefined reference toTIFFReadDirectory@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFClientdata@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference tokmlengine::Href::Parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/libgdal.so: undefined reference to
xercesc_3_2::DOMImplementationRegistry::getDOMImplementation(char16_t const)' /usr/lib/libgdal.so: undefined reference toTIFFLastDirectory@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFReadRGBAStripExt@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFWriteEncodedStrip@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFSwabArrayOfShort@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFIsTiled@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFIsByteSwapped@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to `kmlengine::KmzFile::ReadKmlAndGetPath(std::__cxx11::basic_string<char, std::char_traitsTIFFFlushData@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFWriteCheck@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFSetWriteOffset@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFDefaultStripSize@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFScanlineSize64@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libpoppler.so.73: undefined reference to
TIFFFdOpen@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to `kmldom::ParseNS(std::cxx11::basic_string<char, std::char_traitsTIFFIsBigEndian@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFWriteScanline@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toxercesc_3_2::XSModel::getComponentsByNamespace(xercesc_3_2::XSConstants::COMPONENT_TYPE, char16_t const*)' /usr/lib/libgdal.so: undefined reference to
_TIFFfree@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference tokmlengine::KmzFile::OpenFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/libgdal.so: undefined reference to
TIFFSwabShort@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFFreeDirectory@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFGetField@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFNumberOfStrips@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFWriteBufferSetup@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFScanlineSize@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFWriteEncodedTile@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toxercesc_3_2::InputSource::setEncoding(char16_t const*)' /usr/lib/libgdal.so: undefined reference to
TIFFSwabLong@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFTileSize@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFWriteDirectory@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFReadEncodedTile@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
xercesc_3_2::XMLString::transcode(char16_t const, xercesc_3_2::MemoryManager)' /usr/lib/libgdal.so: undefined reference toTIFFClose@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFFlush@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFSetTagExtender@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFRGBAImageOK@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFWriteRawStrip@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFErrorExt@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference tokmldom::SerializePretty[abi:cxx11](boost::intrusive_ptr<kmldom::Element> const&)' /usr/lib/libgdal.so: undefined reference to
TIFFGetFieldDefaulted@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFSwabArrayOfLong@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
kmldom::Parse(std::cxx11::basic_string<char, std::char_traitsTIFFNumberOfDirectories@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFTileSize64@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to `xercesc_3_2::XSModel::getElementDeclaration(char16_t const, char16_t const*)' /usr/lib/libgdal.so: undefined reference tolibdap::Connect::Connect(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' /usr/lib/libgdal.so: undefined reference to
TIFFWriteRawTile@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toxercesc_3_2::XMLString::release(char16_t**, xercesc_3_2::MemoryManager*)' /usr/lib/libgdal.so: undefined reference to
TIFFStripSize64@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFCreateDirectory@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
xercesc_3_2::InputSource::setPublicId(char16_t const)' /usr/lib/libgdal.so: undefined reference toTIFFSetSubDirectory@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
xercesc_3_2::InputSource::setSystemId(char16_t const)' /usr/lib/libgdal.so: undefined reference toTIFFStripSize@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFSwabArrayOfDouble@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFReadRGBATileExt@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFReadEncodedStrip@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFUnlinkDirectory@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFUnsetField@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFSetField@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFMergeFieldInfo@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFCurrentDirOffset@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFIsCODECConfigured@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to `kmlengine::KmzFile::ReadFile(char const*, std::TIFFDataWidth@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFSetWarningHandler@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFGetConfiguredCODECs@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFSetErrorHandler@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFGetSizeProc@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFRewriteDirectory@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference toTIFFSetDirectory@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to
TIFFReadScanline@LIBTIFF_4.0' /usr/lib/libgdal.so: undefined reference to `TIFFNumberOfTiles@LIBTIFF_4.0' collect2: error: ld returned 1 exit status CMakeFiles/exactextract_bin.dir/build.make:181: recipe for target 'exactextract' failed make[2]: [exactextract] Error 1 CMakeFiles/Makefile2:155: recipe for target 'CMakeFiles/exactextract_bin.dir/all' failed make[1]: [CMakeFiles/exactextract_bin.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2