<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I found the problem. </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Even though I was running a new configure file and calling make clean each time to remove the last built files, some files like config.status were not updated so the installation was running with the same faulty configuration over and over. It seems I could
 add configuration options, but I could not remove what had already been added. </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Before calling ./configure, I had to call make distclean to remove everything that was installed by configure. The command make clean removes things that were generated by Make and the command make distclean removed things that were generated by Configure and
 Libtools. </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I still don't know why my old configuration was not working... but now it works so I don't need to investigate.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Have a nice day!</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>De :</b> Michaël Landry<br>
<b>Envoyé :</b> 2 février 2020 09:12<br>
<b>À :</b> gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org><br>
<b>Objet :</b> Can't build GDAL 3.0.X to read GML format on Linux (Ubuntu 18.04)</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
Hi,<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
I have successfully built and tested GDAL 3.0.1 and 3.0.4 with the SWIG java bindings and everything works fine except that I can't read GML format files. When I call the java method ogr.open( .. ), it always returns null. I investigated and i found out that
 I cannot open GML files with the ogrinfo app either. It seems the problem is on the native side and not on the bindings side. Here is the output of the command ogrinfo --formats for the app.<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<img title="pastedImage.png" width="620" height="124.85517241379311" style="display:inline" data-outlook-trace="F:0|T:2" src="cid:2fd2948e-3523-4798-a6b1-c35c2e941e0b"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
I am using a configure script to build my makefiles. <span style="font-size:12pt">I read online at </span><a href="https://gdal.org/drivers/vector/gml.html" target="_blank" style="font-size:12pt">https://gdal.org/drivers/vector/gml.html</a><span style="font-size:12pt">​
 that XERCES or EXPAT is needed to read gml files. I first started to build with only EXPAT and now I am building with EXPAT and XERCES, but I still can't read GML files. Here is my configuration output from the console.</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt"><br>
</span></p>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">C++14 support:             no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  LIBTOOL support:           yes</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  LIBZ support:              external</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  LIBLZMA support:           no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  ZSTD support:              no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  cryptopp support:          no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  crypto/openssl support:    no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  GRASS support:             no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  CFITSIO support:           no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  PCRaster support:          internal</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  LIBPNG support:            internal</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  DDS support:               no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  GTA support:               no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  LIBTIFF support:           internal (BigTIFF=yes)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  LIBGEOTIFF support:        internal</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  LIBJPEG support:           internal</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  12 bit JPEG:               yes</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  12 bit JPEG-in-TIFF:       yes</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  LIBGIF support:            internal</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  JPEG-Lossless/CharLS:      no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  OGDI support:              no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  HDF4 support:              no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  HDF5 support:              no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  Kea support:               no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  NetCDF support:            no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  Kakadu support:            no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  JasPer support:            no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  OpenJPEG support:          no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  ECW support:               yes</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  MrSID support:             yes</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  MrSID/MG4 Lidar support:   no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  JP2Lura support:           no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  MSG support:               no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  EPSILON support:           no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  WebP support:              no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  cURL support (wms/wcs/...):yes</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  PostgreSQL support:        no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  LERC support:              yes</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  MySQL support:             no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  Ingres support:            no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  Xerces-C support:          yes</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  Expat support:             yes</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  libxml2 support:           no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  Google libkml support:     no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  ODBC support:              no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  FGDB support:              no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  MDB support:               no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  PCIDSK support:            internal</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  OCI support:               no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  GEORASTER support:         no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  SDE support:               no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  Rasdaman support:          no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  DODS support:              no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  SQLite support:            yes</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  PCRE support:              no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  SpatiaLite support:        no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  RasterLite2 support:       no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  Teigha (DWG and DGNv8):    no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  INFORMIX DataBlade support:no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  GEOS support:              no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  SFCGAL support:            no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  QHull support:             internal</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  Poppler support:           no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  Podofo support:            no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  PDFium support:            no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  OpenCL support:            no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  Armadillo support:         no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  FreeXL support:            no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  SOSI support:              no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  MongoDB support:           no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  MongoCXX v3 support:       no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  HDFS support:              no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  TileDB support:            no</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">  userfaultfd support:       yes</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif"><br>
</div>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt">I did not disable the gml driver and the makefile says that gml is built by default. Here is the list of the available formats listed for ogr where you can see gml. </span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt"><br>
</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt"><img title="pastedImage.png" width="620" height="207.78833107191315" style="display:inline" data-outlook-trace="F:0|T:2" src="cid:4d09603f-8ab8-4bfb-9380-3e23227760f5"></span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt"><br>
</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt"><span style="font-size:16px; background-color:rgb(255,255,255)">Here is the call i make to configure and to make in my script file to build GDAL.</span></span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt"><span style="font-size:16px; background-color:rgb(255,255,255)"><br>
</span></span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt"><span style="font-size:16px; background-color:rgb(255,255,255)"><img title="pastedImage.png" width="620" height="194.89859594383773" style="display:inline" data-outlook-trace="F:0|T:2" src="cid:9db827de-93bd-401f-ae0a-1a881134d61a"></span></span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt"><span style="font-size:16px; background-color:rgb(255,255,255)"><br>
</span></span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt"><span style="font-size:16px; background-color:rgb(255,255,255)"><span style="background-color:rgb(255,255,255)">I also built GDAL 3.0.1 on Windows and the command </span><span style="background-color:rgb(255,255,255)">ogrinfo --formats
 lists all the possible formats, including gml and maybe 50+ others. Is there a way to build gdal on linux so that all the formats are also available for ogr? I joined my script file to build gdal.</span><br>
</span></span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt"><span style="font-size:16px; background-color:rgb(255,255,255)"><br>
​Thank you for your time!</span></span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt"><span style="font-size:16px; background-color:rgb(255,255,255)"><br>
</span></span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt"><span style="font-size:16px; background-color:rgb(255,255,255)">Michael</span></span></p>
<br>
</div>
</div>
</div>
</body>
</html>