[Qgis-user] Building QGIS3 for OS X with MacPorts
Patrick Dunford
blackwhitekez at gmail.com
Wed Sep 20 22:13:49 PDT 2017
libpq-fe is a Postgresql library. Although the build I did back from
January this year doesn't have a #include in testqgspostgresprovider.cpp
for libpq-fe unlike your example, it certainly does have those test files.
I haven't done many builds, mostly my interest was to get a more stable
development version than the most recent one so I actually could use it
with real data, as there are enough differences in project file formats
to make it difficult to maintain separate 2.18 and master versions. At
some point along the way I felt it was stable enough to use on a day to
day basis, but every so often a new version introduces some sort of
issue and then you need something older to fall back on.
It is possible that among the packages you had to download and install
from package repositories (or whatever you use for your platform) a
package that contains this library was omitted. See this for example:
https://www.garron.me/en/bits/solved-pg-gem-arch-linux-libpq-fe-h.html
(pacman is the package manager for Arch Linux)
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 at 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 at 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 at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
More information about the Qgis-user
mailing list