<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><br>
      Thanks, Patrick! I also run a Debian server and checked
      dependencies there; QGIS2 does not require postgresql.<br>
      <br>
      On my mac laptop, I'd rather not install postgresql -- it's not
      that it's complicated to do so, I just don't expect to use it and
      would rather avoid the clutter.<br>
      <br>
      So I'm just looking for a way to turn off postgresql in the build
      of QGIS2.99. I tried adding this to David Marteau's makefile:<br>
      <blockquote>                -DWITH_POSTGRESQL=FALSE \<br>
      </blockquote>
      But it's not turning off postgresql. testqgspostgresprovider.cpp
      insists on including it. Maybe I can turn off the test suite?<br>
      <br>
      So what I'm trying to find out is just how to turn off this
      dependency, since it appears to be optional. Who would know?<br>
      <br>
      Cheers,<br>
      David<br>
      <br>
      Configuration from makefile (added libzip lines)<br>
      <br>
      configure:<br>
              mkdir -p $(BUILDDIR)<br>
              rm -rf $(BUILDDIR)/CMakeCache.txt<br>
              cd $(BUILDDIR) && cmake $(CMAKE_OPTS) \<br>
                      -DWITH_ASTYLE=ON \<br>
                      -DCMAKE_INSTALL_PREFIX:PATH=$(INSTALL_PATH) \<br>
                      -DWITH_SERVER=ON \<br>
                      -DWITH_POSTGRESQL=FALSE \<br>
                      -DLIBZIP_INCLUDE_DIR:PATH=/opt/local/include \<br>
                     
      -DLIBZIP_CONF_INCLUDE_DIR:FILEPATH=/opt/local/lib/libzip/include \<br>
                     
      -DLIBZIP_LIBRARY:FILEPATH=/opt/local/lib/libzip.dylib \<br>
                      -DEXPAT_INCLUDE_DIR:PATH=/opt/local/include \<br>
                     
      -DEXPAT_LIBRARY:FILEPATH=/opt/local/lib/libexpat.dylib \<br>
                      -DSQLITE3_INCLUDE_DIR:PATH=/opt/local/include \<br>
                     
      -DSQLITE3_LIBRARY:FILEPATH=/opt/local/lib/libsqlite3.dylib \<br>
                     
      -DQT_QMAKE_EXECUTABLE:FILEPATH=/opt/local/libexec/qt5/bin/qmake \<br>
                     
      -DQWT_INCLUDE_DIR:PATH=/opt/local/libexec/qt5/include/qwt \<br>
                     
      -DQWT_LIBRARY:FILEPATH=/opt/local/libexec/qt5/lib/libqwt.dylib \<br>
                     
      -DQCA_INCLUDE_DIR:PATH=/opt/local/libexec/qt5/include/QtCrypto \<br>
                     
      -DQCA_LIBRARY:FILEPATH=/opt/local/libexec/qt5/lib/libqca-qt5.dylib
      \<br>
                     
      -DQSCINTILLA_INCLUDE_DIR:PATH=/opt/local/libexec/qt5/include \<br>
                     
-DQSCINTILLA_LIBRARY:FILEPATH=/opt/local/libexec/qt5/lib/libqscintilla2_qt5.dylib
      \<br>
                     
      -DQTKEYCHAIN_INCLUDE_DIR:PATH=/usr/local/include/qt5keychain \<br>
                     
      -DQTKEYCHAIN_LIBRARY:FILEPATH=/usr/local/lib/libqt5keychain.dylib
      \<br>
                     
      -DQT_LRELEASE_EXECUTABLE:FILEPATH=/opt/local/libexec/qt5/bin/lrelease
      \<br>
      <br>
      <br>
      <br>
      On 9/20/17 10:24 PM, Patrick Dunford wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:64ac015a-1799-f7d3-b940-ffe3e263c0ea@gmail.com">Ok so I
      gave you a Linux answer :)
      <br>
      <br>
      The install file I have says you do a postgresql installation
      through this site, I assume that is supposed to provide the
      libraries you need
      <br>
      <br>
      <a class="moz-txt-link-abbreviated" href="http://www.kyngchaos.com/software/postgres">www.kyngchaos.com/software/postgres</a>
      <br>
      <br>
      I would guess from that you should be able to work out if it has
      provided the library file as part of that.
      <br>
      <br>
      <br>
      On 21/09/17 13:58, David Liontooth wrote:
      <br>
      <blockquote type="cite">
        <br>
        Great, thanks!
        <br>
        <br>
        Does QGIS3 require postgresql?
        <br>
        <br>
        I didn't think it did, but the build bugs out:
        <br>
        <br>
           In file included from
        <br>
/Users/liontooth/software/QGIS/QGIS-2.99a/tests/src/providers/testqgspostgresprovider.cpp:4:
        <br>
           In file included from
        <br>
/Users/liontooth/software/QGIS/QGIS-2.99a/src/providers/postgres/qgspostgresprovider.h:24:
        <br>
/Users/liontooth/software/QGIS/QGIS-2.99a/src/providers/postgres/qgspostgresconn.h:33:10:
        <br>
           fatal error: 'libpq-fe.h' file not found
        <br>
           #include <libpq-fe.h>
        <br>
                     ^
        <br>
           1 error generated.
        <br>
        <br>
        /tests/src/providers/testqgspostgresprovider.cpp seems to demand
        it.
        <br>
        <br>
        Cheers,
        <br>
        Dave
        <br>
        <br>
        On 9/20/17 11:01 AM, Patrick Dunford wrote:
        <br>
        <blockquote type="cite">3.0 is not released yet, you can only
          get 2.99 development versions.
          <br>
          <br>
          You get them from Github:
          <br>
          <br>
          <a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS">https://github.com/qgis/QGIS</a>
          <br>
          <br>
          Click on "Clone or Download" button on the right and then
          "Download Zip"
          <br>
          <br>
          This is for the latest release, you can get older ones if you
          know the commit ID
          <br>
          <br>
          <br>
          <br>
          On 21/09/17 05:51, David Liontooth wrote:
          <br>
          <blockquote type="cite">
            <br>
            I followed David Marteau's very helpful instructions for
            building QGIS3 at
<a class="moz-txt-link-freetext" href="https://www.3liz.com/blog/rldhont/index.php?post/2017/06/01/How-to-build-qgis-on-OSX-with-MacPort">https://www.3liz.com/blog/rldhont/index.php?post/2017/06/01/How-to-build-qgis-on-OSX-with-MacPort</a>,
            on a Sierra OS X with all updates and a current MacPorts
            installation.
            <br>
            <br>
            I needed to add these dependencies:
            <br>
            <br>
                lbzip2 py36-setuptools
            <br>
            <br>
            Where can I find QGIS 3.0 source files? I downloaded
            <a class="moz-txt-link-freetext" href="http://qgis.org/downloads/qgis-latest.tar.bz2">http://qgis.org/downloads/qgis-latest.tar.bz2</a>, but that's
            qgis-2.18.13.
            <br>
            <br>
            I also tried
            <a class="moz-txt-link-freetext" href="https://github.com/wonder-sk/QGIS/archive/3d-2.zip">https://github.com/wonder-sk/QGIS/archive/3d-2.zip</a>, using
            Marteau's makefile, replacing spaces with tabs. Cmake didn't
            find libzip, so I modified
            <br>
            <br>
                cmake/FindLibZip.cmake txt2tags
            <br>
            <br>
            to include the paths to MacPort's libzip package
            (/opt/local/..).
            <br>
            <br>
            However, there's a syntax error relating to the 3D features,
            reported separately.
            <br>
            <br>
            Is there a mainline version of QGIS3 we can test build, just
            to get ready for the release?
            <br>
            <br>
            Cheers,
            <br>
            Dave
            <br>
            <br>
            <br>
            <br>
            _______________________________________________
            <br>
            Qgis-user mailing list
            <br>
            <a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
            <br>
            List info:
            <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
            <br>
            Unsubscribe:
            <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
            <br>
          </blockquote>
          <br>
          _______________________________________________
          <br>
          Qgis-user mailing list
          <br>
          <a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
          <br>
          List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
          <br>
          Unsubscribe:
          <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
          <br>
        </blockquote>
        <br>
        <br>
        _______________________________________________
        <br>
        Qgis-user mailing list
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
        <br>
        List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
        <br>
        Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
        <br>
      </blockquote>
      <br>
      _______________________________________________
      <br>
      Qgis-user mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
      <br>
      List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
      <br>
      Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>