Opened 7 years ago

Closed 7 years ago

#55020 closed request (fixed)

QGIS3 packaging request

Reported by: Liontooth (David Liontooth) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Veence (Vincent), gnw3
Port: qgis

Description

QGIS3 is available in pre-release from the master branch at https://github.com/qgis/QGIS.

It has a slew of new and attractive features, but the MacPorts build will need some tweaking, likely including some upstream changes.

The current INSTALL file instructions for OS X suggest several dubious procedures and it would be great if Macports had a clean solution.

https://www.3liz.com/blog/rldhont/index.php?post/2017/06/01/How-to-build-qgis-on-OSX-with-MacPort has good instructions, but they're incomplete.

The official QGIS3 release is scheduled for 2017-12-08. If possible, the two versions should be able to coexist.

Change History (21)

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: Veence added

comment:2 Changed 7 years ago by gnw3

Cc: gnw3 added

comment:3 Changed 7 years ago by gnw3

QGIS2 is fragile when I build with qt5, less fragile when using qt4. Unfortunately, QGIS depends on qwt61 which has to be either qt4 or qt5, so qgis +qt4 and qgis5 +qt5 won't be able to coexist.

comment:4 Changed 7 years ago by Veence (Vincent)

I’ll do that next week. Thanks for pinging me if I forget!

comment:5 Changed 7 years ago by Veence (Vincent)

What do you want me to package here? QGis 2.99 rXXXXXX, I mean, a snapshot of the Github tree?

comment:6 Changed 7 years ago by Liontooth (David Liontooth)

Hi Vince,

Yes, the 2.99 snapshot! It's feature complete (frozen last week), so a good time to test the build, make sure everything is working, and give feedback -- also on the build process. The official release is scheduled for 2017-12-08 -- I'd like us to give them feedback on major issues before that happens, especially any platform-specific problems. The qt4 vs qt5 issue is also interesting.

comment:7 Changed 7 years ago by Veence (Vincent)

Where do you get it? I trawled through the Internet and couldn’t find it.

Thanks!

comment:8 Changed 7 years ago by Malauch

Is there any progress in that topic? It would be great to install QGIS3 via MacPorts.

comment:9 Changed 7 years ago by Veence (Vincent)

I just committed 2.18.14 with support for the new PostGreSQL 10/PostGIS 2.4. So there's absolutely nothing preventing a QGIS 3 port to pop up, except I can't seem to find a suitable URL to download it.

comment:10 Changed 7 years ago by Malauch

Github master branch isn't what you need - https://github.com/qgis/QGIS/tree/master? QGIS3dev Homebrew formula uses something like that:

 url "https://github.com/qgis/QGIS.git", :branch => "master"
    version "2.99"

Sorry, if I just wrote something stupid/obvious. I'm just a user.

comment:11 Changed 7 years ago by Liontooth (David Liontooth)

Hi Vince,

The master branch at https://github.com/qgis/QGIS is 2.99. So you specify the older branches, but not 2.99. The previous poster points out that homebrew correctly labels the master branch as 2.99.

David

comment:12 Changed 7 years ago by Veence (Vincent)

Fine, but that means pulling out a git snapshot. By Macports policy, in order that every build be repeatable, I need to choose a snapshot number and freeze it in the Portfile. Do you have any preference, or do I simply take the most recent snapshot?

comment:13 Changed 7 years ago by Malauch

I believe most recent snapshot will be OK for testing purpose before releasing stable versions at 2017-12-08

comment:14 Changed 7 years ago by Liontooth (David Liontooth)

We should use the most recent snapshop so that our bug reports are the most relevant for the developers.

comment:15 Changed 7 years ago by Malauch

Hi Veence, did you have time for preparing QGIS3 port?

comment:16 Changed 7 years ago by Veence (Vincent)

Heya. Unfortunately, something is missing, namely qtkeychain. It is required by qgis 3, but is not available under MacPorts. I’ll file a request for someone to pull it out.

comment:17 Changed 7 years ago by Liontooth (David Liontooth)

David Marteau ran into the same problem, and a few other wrinkles.

comment:18 Changed 7 years ago by Veence (Vincent)

Ok, I’ve committed an initial port for QGIS 3. It should work.

Caveats:

  1. QGIS server does not compile. Server option is OFF for this build;
  2. The “qgis_bench” benchmark application isn’t linked correctly and caused rev-upgrade cycles. I deleted it in the post-destroot phase, so it’s not installed. If you need, I’ll figure out the correct install_name_tool magic to make it work;
  3. QGIS does not detect the Python 3.6 interpreter despite it being correctly configured. I’m not sure this happens because of a bug or simply because QGIS’s python interface is not ready at the time.

Anyway, don’t hesitate to report any further bug you might encounter.

Have fun.

comment:19 Changed 7 years ago by Liontooth (David Liontooth)

Frantastic; it's great to have this working, in good time for the official release of QGIS3.

Could we also try the 3D component? It was merged from https://github.com/wonder-sk/qgis3d three months ago:

"To build with 3D support, set WITH_3D=TRUE in CMake. This will build qgis_3d library and a testing executable qgis3d"

So maybe

configure.args-append  "-DCMAKE_INSTALL_PREFIX=${applications_dir}"
configure.args-append  "-DWITH_3D=TRUE"

comment:20 Changed 7 years ago by Veence (Vincent)

Err… I think it’s been merged already. It works. Try ⇧⌘M, load a DEM and a vector file. Shift+mouse to vary your height

comment:21 Changed 7 years ago by Veence (Vincent)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.