<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>I thought we already required it for building MVT no?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>I'm fine with having pkg-config dependency. I'm pretty sure I'm already using it for building shp2pgsql-gui and MVT for the windows packages.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Since the only windows compilation supported for Windows is under MingW/mingW-w64 as far as windows, goes, I don't think you need to worry about MS VS which I don't think supports pkg-config.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>I don't think anyone has really picked up the ball on CMake.  Not sure what CMake does (is pkg-config an autoconf only thing?)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Regina<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> postgis-devel [mailto:postgis-devel-bounces@lists.osgeo.org] <b>On Behalf Of </b>Raúl Marín Rodríguez<br><b>Sent:</b> Friday, February 08, 2019 5:20 PM<br><b>To:</b> PostGIS Development Discussion <postgis-devel@lists.osgeo.org><br><b>Subject:</b> Re: [postgis-devel] Using pkg-config for PROJ<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>> <span style='font-size:10.5pt;color:#222222'>but I'm not convinced my</span><o:p></o:p></p><div><p class=MsoNormal><span style='font-size:10.5pt;color:#222222'>from-source builds will be detectable.<o:p></o:p></span></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Mine are. Also Docker is building several dependencies from source and it doesn't seem to have issues. OTOH, Postgis' defaults are pretty much?tailored just for Linux.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>There is an easy way to check:<o:p></o:p></p></div><div><p class=MsoNormal>pkg-config --libs proj (or whatever other project)<o:p></o:p></p></div><div><p class=MsoNormal>pkg-config --cflags proj<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>With pkg-config there is a way to pass the flags (env variables PROJ_CFLAGS and PROJ_LDFLAGS) and in that case the default will be ignored. This is both why I don't get why Postgis has its own way to do it and why, if we want to keep having manual as default, it's not worth it to force pkg-config being mandatory ( and simply check pkg-config if it's installed).<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal><br>On Friday, February 8, 2019, Paul Ramsey <<a href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><p class=MsoNormal>Completely requiring pkg-config is not something I'm super<br>enthusiastic about. I'm sure many of my packaged dependencies have<br>pkg-config entries under MacPorts, but I'm not convinced my<br>from-source builds will be detectable.<br><br>P<br><br>On Fri, Feb 8, 2019 at 12:48 PM Raúl Marín Rodríguez<br><<a href="mailto:rmrodriguez@carto.com">rmrodriguez@carto.com</a>> wrote:<br>><br>> Hi,<br>><br>> I started doing it in <a href="https://github.com/postgis/postgis/pull/372" target="_blank">https://github.com/postgis/postgis/pull/372</a>.<br>> Then I noticed that `json-c` had the same option (and we weren't<br>> including its files correctly) and, after that, that the same happens<br>> with `libpcre` and `cunit`.<br>><br>> Wouldn't it make more sense to drop those 4 options (`--with-projdir`,<br>> `--with-jsondir`, etc) and make pkg-config mandatory instead? My only<br>> concern is Windows, which I don't really know if it can use it.<br>><br>> --<br>> Raúl Marín Rodríguez<br>> <a href="http://carto.com" target="_blank">carto.com</a><br>> _______________________________________________<br>> postgis-devel mailing list<br>> <a href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a><br>_______________________________________________<br>postgis-devel mailing list<br><a href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a><o:p></o:p></p></blockquote><p class=MsoNormal><br><br>-- <o:p></o:p></p><div><div><div><div><div><p class=MsoNormal><b><span style='font-size:9.5pt;color:#666666'>Raúl Marín Rodríguez <br></span></b><a href="http://carto.com/" target="_blank"><span style='font-size:9.5pt'>carto.com</span></a><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>