<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>
      Right, but the QGIS build process is not finding the libraries
      after I've installed postgis2 and postgresql96:<br>
      <br>
      [ 69%] Built target qgis_alignrastertest<br>
      ld: library not found for -lpostgresprovider_a<br>
      clang: error: linker command failed with exit code 1 (use -v to
      see invocation)<br>
      make[3]: ***
[tests/src/providers/CMakeFiles/qgis_postgresprovidertest.dir/build.make:149:
      output/bin/qgis_postgresprovidertest] Error 1<br>
      make[3]: Leaving directory
      '/Users/liontooth/software/QGIS/QGIS-2.99a/build-release'<br>
      make[2]: *** [CMakeFiles/Makefile2:19159:
      tests/src/providers/CMakeFiles/qgis_postgresprovidertest.dir/all]
      Error 2<br>
      <br>
      In the makefile I added:<br>
      <br>
                     
-DPOSTGRES_CONFIG_PREFER_PATH:FILEPATH=/opt/local/lib/postgresql96/pkgconfig
      \<br>
                     
      -DPOSTGRES_INCLUDE_DIR:FILEPATH=/opt/local/include/postgresql96 \<br>
                     
      -DPOSTGRES_LIBRARY:FILEPATH=/opt/local/lib/postgresql96/libpq.dylib
      \<br>
      <br>
      This is clearly not quite correct, but it finds libpq-fe.h. Has
      anyone figured this out for OS X?<br>
      <br>
      Debian is a breeze compared to OS X -- I do most of my work in
      Linux, but I need QGIS on a mac laptop and it's a pain. <br>
      <br>
      Cheers,<br>
      Dave<br>
      <br>
      On 9/21/17 2:08 AM, Patrick Dunford wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1b735c1e-efa6-8e23-0577-178529aa77fe@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p>It is only giving you libraries, isn't it? On Linux systems all
        you have to do is install a postgresql developer package. You do
        not actually have to set up the Postgresql DBMS or have one
        available. So all you are doing building it on Debian (as I
        have) is having the libraries available for it to compile. <br>
      </p>
      <br>
      <div class="moz-cite-prefix">On 21/09/17 21:02, David Liontooth
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:286bfab6-b02f-49c0-7f3c-3a427c22931b@cogweb.net">
        <meta http-equiv="Content-Type" content="text/html;
          charset=utf-8">
        <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"
            moz-do-not-send="true">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"
                moz-do-not-send="true">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"
                  moz-do-not-send="true">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"
                  moz-do-not-send="true">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"
                  moz-do-not-send="true">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"
                  moz-do-not-send="true">Qgis-user@lists.osgeo.org</a> <br>
                List info: <a class="moz-txt-link-freetext"
                  href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
                  moz-do-not-send="true">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"
                  moz-do-not-send="true">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"
                moz-do-not-send="true">Qgis-user@lists.osgeo.org</a> <br>
              List info: <a class="moz-txt-link-freetext"
                href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
                moz-do-not-send="true">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"
                moz-do-not-send="true">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"
              moz-do-not-send="true">Qgis-user@lists.osgeo.org</a> <br>
            List info: <a class="moz-txt-link-freetext"
              href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
              moz-do-not-send="true">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"
              moz-do-not-send="true">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"
            moz-do-not-send="true">Qgis-user@lists.osgeo.org</a> <br>
          List info: <a class="moz-txt-link-freetext"
            href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
            moz-do-not-send="true">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"
            moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
        </blockquote>
        <p><br>
        </p>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
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>
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></pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>