Well, I have both 2.18 LTS latest version, and various editions of masters, and they all have postgresql support built in.

On 21/09/17 21:02, David Liontooth wrote:

Thanks, Patrick! I also run a Debian server and checked dependencies there; QGIS2 does not require postgresql.

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.

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:

                    -DWITH_POSTGRESQL=FALSE \

But it's not turning off postgresql. testqgspostgresprovider.cpp insists on including it. Maybe I can turn off the test suite?

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?

Cheers,
David

Configuration from makefile (added libzip lines)

configure:
        mkdir -p $(BUILDDIR)
        rm -rf $(BUILDDIR)/CMakeCache.txt
        cd $(BUILDDIR) && cmake $(CMAKE_OPTS) \
                -DWITH_ASTYLE=ON \
                -DCMAKE_INSTALL_PREFIX:PATH=$(INSTALL_PATH) \
                -DWITH_SERVER=ON \
                -DWITH_POSTGRESQL=FALSE \
                -DLIBZIP_INCLUDE_DIR:PATH=/opt/local/include \
-DLIBZIP_CONF_INCLUDE_DIR:FILEPATH=/opt/local/lib/libzip/include \
-DLIBZIP_LIBRARY:FILEPATH=/opt/local/lib/libzip.dylib \
                -DEXPAT_INCLUDE_DIR:PATH=/opt/local/include \
-DEXPAT_LIBRARY:FILEPATH=/opt/local/lib/libexpat.dylib \
                -DSQLITE3_INCLUDE_DIR:PATH=/opt/local/include \
-DSQLITE3_LIBRARY:FILEPATH=/opt/local/lib/libsqlite3.dylib \
-DQT_QMAKE_EXECUTABLE:FILEPATH=/opt/local/libexec/qt5/bin/qmake \
-DQWT_INCLUDE_DIR:PATH=/opt/local/libexec/qt5/include/qwt \
-DQWT_LIBRARY:FILEPATH=/opt/local/libexec/qt5/lib/libqwt.dylib \
-DQCA_INCLUDE_DIR:PATH=/opt/local/libexec/qt5/include/QtCrypto \
-DQCA_LIBRARY:FILEPATH=/opt/local/libexec/qt5/lib/libqca-qt5.dylib \
-DQSCINTILLA_INCLUDE_DIR:PATH=/opt/local/libexec/qt5/include \
-DQSCINTILLA_LIBRARY:FILEPATH=/opt/local/libexec/qt5/lib/libqscintilla2_qt5.dylib \
-DQTKEYCHAIN_INCLUDE_DIR:PATH=/usr/local/include/qt5keychain \
-DQTKEYCHAIN_LIBRARY:FILEPATH=/usr/local/lib/libqt5keychain.dylib \
-DQT_LRELEASE_EXECUTABLE:FILEPATH=/opt/local/libexec/qt5/bin/lrelease \



On 9/20/17 10:24 PM, Patrick Dunford wrote:
Ok so I gave you a Linux answer :)

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

www.kyngchaos.com/software/postgres

I would guess from that you should be able to work out if it has provided the library file as part of that.


On 21/09/17 13:58, David Liontooth wrote:

Great, thanks!

Does QGIS3 require postgresql?

I didn't think it did, but the build bugs out:

   In file included from
/Users/liontooth/software/QGIS/QGIS-2.99a/tests/src/providers/testqgspostgresprovider.cpp:4:
   In file included from
/Users/liontooth/software/QGIS/QGIS-2.99a/src/providers/postgres/qgspostgresprovider.h:24: /Users/liontooth/software/QGIS/QGIS-2.99a/src/providers/postgres/qgspostgresconn.h:33:10:
   fatal error: 'libpq-fe.h' file not found
   #include <libpq-fe.h>
             ^
   1 error generated.

/tests/src/providers/testqgspostgresprovider.cpp seems to demand it.

Cheers,
Dave

On 9/20/17 11:01 AM, Patrick Dunford wrote:
3.0 is not released yet, you can only get 2.99 development versions.

You get them from Github:

https://github.com/qgis/QGIS

Click on "Clone or Download" button on the right and then "Download Zip"

This is for the latest release, you can get older ones if you know the commit ID



On 21/09/17 05:51, David Liontooth wrote:

I followed David Marteau's very helpful instructions for building QGIS3 at https://www.3liz.com/blog/rldhont/index.php?post/2017/06/01/How-to-build-qgis-on-OSX-with-MacPort, on a Sierra OS X with all updates and a current MacPorts installation.

I needed to add these dependencies:

    lbzip2 py36-setuptools

Where can I find QGIS 3.0 source files? I downloaded http://qgis.org/downloads/qgis-latest.tar.bz2, but that's qgis-2.18.13.

I also tried https://github.com/wonder-sk/QGIS/archive/3d-2.zip, using Marteau's makefile, replacing spaces with tabs. Cmake didn't find libzip, so I modified

    cmake/FindLibZip.cmake txt2tags

to include the paths to MacPort's libzip package (/opt/local/..).

However, there's a syntax error relating to the 3D features, reported separately.

Is there a mainline version of QGIS3 we can test build, just to get ready for the release?

Cheers,
Dave



_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to