<div dir="ltr">Sounds good - I would love to know the recipe when you get it working:)<br><br>I have no idea who osgeo-forge are?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 13 Nov 2020 at 08:29, Jon Morris <<a href="mailto:Jon.Morris@jbarisk.com">Jon.Morris@jbarisk.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-GB" style="overflow-wrap: break-word;">
<div class="gmail-m_710021622310891249WordSection1">
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">Hi Paul,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">You are right - we need FileGDB write support, so openfilegdb is not suitable for us. I can't believe it is this difficult to be able to write FileGDB on
 Windows (our linux wheels work perfectly), there must be a better way.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">I have tried to modify the conda-forge recipe to include FileGDB and have almost got it working, so I think I'll persist with that for now.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">(I also tried
<a href="https://github.com/osgeo-forge/libgdal-filegdb-feedstock" target="_blank">https://github.com/osgeo-forge/libgdal-filegdb-feedstock</a>, which looked promising, but kept getting build errors).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">If I'm missing something and anyone has better ideas, please let me know.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">Jon<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Paul Harwood <<a href="mailto:runette@gmail.com" target="_blank">runette@gmail.com</a>>
<br>
<b>Sent:</b> 11 November 2020 13:36<br>
<b>To:</b> Jon Morris <<a href="mailto:Jon.Morris@jbarisk.com" target="_blank">Jon.Morris@jbarisk.com</a>><br>
<b>Cc:</b> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [gdal-dev] GDAL conda build<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">The documents are horrendously out of date - I know :) <br>
<br>
I am assuming that you have seen this and that it does not meet your reqs<br>
<a href="https://gdal.org/drivers/vector/openfilegdb.html#vector-openfilegdb" target="_blank">https://gdal.org/drivers/vector/openfilegdb.html#vector-openfilegdb</a><u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Building with an additional driver could, I guess, easily make a difference.<br>
<br>
I am wondering if you have tried a vanilla build first - to see if it is all working<br>
<br>
Personally - I would do this :<br>
<br>
- Clone the gdal-feedstock repo onto my local machine<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">- cd gdal-feedstock                           // cd into the gdal-feedstock dir<br>
- conda create --name gdal              // the actual name does not matter - as long as it does not exist yet<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">- conda activate gdal<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">- conda build recipe<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br>
That *should* I think work since that is more or less what conda-forge does in the azure pipeline - but I am no special expert on that recipe.<br>
<br>
If that works - then you are probably going to have to change the meta.yml to include fileGDB and probably change set_bld_opts.bat to change the build options. And then run 'conda build recipe` again.<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Wed, 11 Nov 2020 at 13:00, Jon Morris <<a href="mailto:Jon.Morris@jbarisk.com" target="_blank">Jon.Morris@jbarisk.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">Hi Paul,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">Thanks for your reply. The only reason we're trying to build locally is to add FileGDB support - if there is a better way
 to add FileGDB write support to conda-forge GDAL, I'd love to hear it! The GDAL docs are very out of date when it comes to building on Windows - the "GDAL Windows Building example for Plugins" links to
<a href="https://trac.osgeo.org/gdal/wiki/BuildingOnWindows" target="_blank">https://trac.osgeo.org/gdal/wiki/BuildingOnWindows</a>.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">The only reason I'm building 3.1.4 is because when I started, 3.2.0 wasn't out yet...</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">Thanks,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">Jon</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Paul Harwood <<a href="mailto:runette@gmail.com" target="_blank">runette@gmail.com</a>>
<br>
<b>Sent:</b> 11 November 2020 09:18<br>
<b>To:</b> Jon Morris <<a href="mailto:Jon.Morris@jbarisk.com" target="_blank">Jon.Morris@jbarisk.com</a>><br>
<b>Cc:</b> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [gdal-dev] GDAL conda build</span><u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">I think we can be fairly certain that gdal-feedstock works, since it has passed in a clean container environment.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal">The most obvious question is - I am assuming that you are using conda build - are you working in a clean conda env? <u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Create a totally new conda env, activate that and then try again.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">I have very occasional noticed conda getting confused about versions in its package cache. You can also try `conda clean --all` to clear out the package cache.<br>
<br>
I am also curious. Sometimes I see messages go by and I think "why". I assume that you know your business much better than me but I do wonder what you are going to get from building the conda recipe locally that is not already built into the conda package?
 What have I missed?<br>
<br>
I am also curious - given you are going through the effort of creating the build - why 3.1.4 and not 3.2.0? Surely, you risk just building in a legacy problem?<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, 10 Nov 2020 at 08:12, Jon Morris <<a href="mailto:Jon.Morris@jbarisk.com" target="_blank">Jon.Morris@jbarisk.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">I've been trying to build a Windows conda package for GDAL 3.1.4, but am having problems with the poppler headers. I'm using
 the conda-forge recipe, which includes a line in the build script to detect the poppler version.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">FOR /F "tokens=1,2 delims=." %%a IN ("%poppler%") DO (</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">  set POPPLER_MAJOR_VERSION=%%a</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">  set POPPLER_MINOR_VERSION=%%b</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"><a href="https://github.com/conda-forge/gdal-feedstock/commit/320e66064c1288d582a3cadd8b573c863af654d6#diff-6f4a4b77035617ba53fd8a4d15347c44bb89f09d8086a0ffc1a5fca230ae2ed5R16" target="_blank">https://github.com/conda-forge/gdal-feedstock/commit/320e66064c1288d582a3cadd8b573c863af654d6#diff-6f4a4b77035617ba53fd8a4d15347c44bb89f09d8086a0ffc1a5fca230ae2ed5R16</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">This doesn't seem to be working, as when we get to compiling the pdf driver, the headers are missing.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">(gdal314) %SRC_DIR%\frmts>cd pdf   && nmake /nologo /f
<a href="http://makefile.vc" target="_blank">makefile.vc</a>   && cd ..   || exit 1</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">        cl   /nologo /MP4 /MD /EHsc /Ox /FC /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG /W4 /wd4127 /wd4251 /wd4275 /wd4786 /wd4100 /wd4245 /wd4206 /wd4351 /wd4611  /DHAVE_SSE_AT_COMPILE_TIME
 /DHAVE_SSSE3_AT_COMPILE_TIME -I..\..\port -I..\..\ogr -I..\..\gcore  -I..\..\alg -I..\..\ogr\ogrsf_frmts  -I..\..\gnm -I..\..\gnm\gnm_frmts -I..\..\apps /DHAVE_AVX_AT_COMPILE_TIME -I..\vrt -I..\mem -I..\..\ogr\ogrsf_frmts\mem  -DPOPPLER_MAJOR_VERSION=0 -DPOPPLER_MINOR_VERSION=23
 -DHAVE_POPPLER    -DGNM_ENABLED  -DGDAL_COMPILATION -DNOMINMAX /c pdfdataset.cpp pdfio.cpp pdfobject.cpp pdfcreatecopy.cpp ogrpdflayer.cpp pdfwritabledataset.cpp pdfreadvectors.cpp pdfcreatefromcomposition.cpp
</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">pdfdataset.cpp</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">pdfio.cpp</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">pdfobject.cpp</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">pdfcreatecopy.cpp</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">c:\bin\anaconda3\conda-bld\gdal_1604943770331\work\frmts\pdf\pdfsdk_headers.h(54): fatal error C1083: Cannot open include file: 'goo/gtypes.h': No such file or directory (compiling source file pdfdataset.cpp)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">In pdfsdkheaders.h we can see it's the wrong poppler version that's causing the error:</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">#if !(POPPLER_MAJOR_VERSION >= 1 || POPPLER_MINOR_VERSION >= 73)</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">#include <goo/gtypes.h></span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">#else</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">typedef unsigned char Guchar;</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt">
<span style="font-family:"Courier New";color:black">#endif</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">The installed version of poppler is 20.11.0, so I don't know why I'm getting major version set to 0 and minor version set
 to 23.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">I'll also ask over at conda as this is most likely a conda build problem, but I thought I would also ask here if anyone
 has successfully built a conda package and knows how to get this recipe working.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">Many thanks!</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">Jon</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-family:Arial,sans-serif;color:black">Jon Morris</span></b><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:rgb(246,161,36)">Software Developer</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><i><span style="font-size:12pt;color:black">COVID-19. During the current outbreak JBA remains open for business and we continue to deliver our services. However, we have adopted
 flexible/remote working as required. I will be receiving and reading email as normal but I may not always be available on the office number.</span></i><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p><a href="https://www.jbagroup.co.uk/sites/www.jbagroup.co.uk/files/documents/15-030%20JBA%20Business%20Continuity%20Briefing%20-%20Latest.pdf" target="_blank"><span style="text-decoration:none"><img border="0" width="449" height="104" style="width: 4.677in; height: 1.0833in;" id="gmail-m_710021622310891249_x0000_i1029" src="https://www.jbagroup.co.uk/imgstore/covid19footer.png" alt="JBA COVID-19 statement"></span></a><u></u><u></u></p>
<p><strong><span style="font-family:Arial,sans-serif;color:rgb(246,161,37)">T</span></strong><span style="font-family:Arial,sans-serif;color:black"> +44 (0) 1756 799919</span><br>
<a href="http://www.jbarisk.com" target="_blank"><span style="font-family:Arial,sans-serif;color:rgb(246,161,37);text-decoration:none">www.jbarisk.com</span></a><u></u><u></u></p>
<p><a href="http://www.jbarisk.com/" target="_blank"><span style="text-decoration:none"><img border="0" width="33" height="26" style="width: 0.3437in; height: 0.2708in;" id="gmail-m_710021622310891249_x0000_i1028" src="http://www.jbagroup.co.uk/imgstore/JBA-Email-Sig-Icons-JBA.png" alt="Visit our website"></span></a> <a href="https://www.linkedin.com/in/jon-morris-a2897b4/" target="_blank"><span style="text-decoration:none"><img border="0" width="33" height="26" style="width: 0.3437in; height: 0.2708in;" id="gmail-m_710021622310891249_x0000_i1027" src="http://www.jbagroup.co.uk/imgstore/JBA-Email-Sig-Icons-LINKEDIN.png"></span></a>
<a href="https://twitter.com/jbarisk" target="_blank"><span style="text-decoration:none"><img border="0" width="33" height="26" style="width: 0.3437in; height: 0.2708in;" id="gmail-m_710021622310891249_x0000_i1026" src="http://www.jbagroup.co.uk/imgstore/JBA-Email-Sig-Icons-TWITTER.png" alt="Follow us on Twitter"></span></a><u></u><u></u></p>
<p><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:black;background:white">Find out more about us here:
<a href="http://www.jbarisk.com/" target="_blank"><span style="color:rgb(5,99,193)">www.jbarisk.com</span></a> and
</span></b><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(68,68,68);background:white"><a href="http://twitter.com/JBARisk" target="_blank"><span style="color:rgb(5,99,193)">follow us on Twitter @JBARisk</span></a> and
<a href="https://www.linkedin.com/company/2370847?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A2370847%2Cidx%3A2-1-2%2CtarId%3A1447414259786%2Ctas%3AJBA%20RISK%20MANAGEMENT" target="_blank">
<span style="color:rgb(5,99,193)">LinkedIn</span></a> </span></b><u></u><u></u></p>
<p><span style="font-size:8pt;font-family:Arial,sans-serif;color:black;background:white">The JBA Group supports the JBA Trust.</span><u></u><u></u></p>
<p style="margin:0cm"><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(68,68,68);background:white">All JBA Risk Management's email messages contain confidential information and are intended only for the individual(s) named. If you are not the
 named addressee you should not disseminate, distribute or copy this e-mail.</span><br>
<span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(68,68,68);background:white">Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system.</span><br>
 <u></u><u></u></p>
<p style="margin:0cm"><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(68,68,68);background:white">JBA Risk Management Limited is registered in England, company number 07732946, 1 Broughton Park, Old Lane North, Broughton, Skipton, North Yorkshire,
 BD23 3FD, </span><span style="font-size:8pt;font-family:Arial,sans-serif;color:black;background:white">Telephone: +441756799919</span><u></u><u></u></p>
<p> <u></u><u></u></p>
</div>
<p class="MsoNormal">_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><u></u><u></u></p>
</blockquote>
</div>
</div>
<p><a href="https://www.jbagroup.co.uk/sites/www.jbagroup.co.uk/files/documents/15-030%20JBA%20Business%20Continuity%20Briefing%20-%20Latest.pdf" target="_blank"><span style="text-decoration:none"><img border="0" width="449" height="104" style="width: 4.677in; height: 1.0833in;" id="gmail-m_710021622310891249_x0000_i1025" src="https://www.jbagroup.co.uk/imgstore/covid19footer.png" alt="JBA COVID-19 statement"></span></a><u></u><u></u></p>
</div>
</blockquote>
</div>
</div>
<p><a href="https://www.jbagroup.co.uk/sites/www.jbagroup.co.uk/files/documents/15-030%20JBA%20Business%20Continuity%20Briefing%20-%20Latest.pdf" target="_blank"><img width="449" src="https://www.jbagroup.co.uk/imgstore/covid19footer.png" alt="JBA COVID-19 statement"></a></p>
</div>

</blockquote></div>