[MacPorts] #57915: QGIS3 does not build on Mac OS Mojave

MacPorts noreply at macports.org
Fri Sep 13 08:27:24 UTC 2019


#57915: QGIS3 does not build on Mac OS Mojave
------------------------+----------------------
  Reporter:  news24lor  |      Owner:  Veence
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:             |   Keywords:
      Port:  qgis3      |
------------------------+----------------------

Comment (by Veence):

 I have just committed a patch and submitted it upstream to fix the wrong
 relative rpaths in QGIS server's providers. This is fixed, and ideally
 this patch should be integrated into future releases. I have not
 investigated why we end up with a wrong QGIS_PREFIX_PATH value in QGIS
 server that subsequently blocks the loading of the various plug-ins and
 providers, whereby the server doesn’t work properly. I have also reported
 that upstream.

 However, there is an easy workaround: just set the environment variable
 QGIS_PREFIX_PATH to "/Applications/MacPorts/Qgis3.app/Contents/MacOS".
 Exemple with lighttpd:

 {{{
 fastcgi.server = ( "/wfs" =>
                     ( "wfs" =>
                         (   "socket" => var.socket_dir + "wfs.socket",
                             "bin-path" =>
 "/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-
 bin/qgis_mapserv.fcgi",
                             "bin-environment" => (
                                 "QGIS_PREFIX_PATH" =>
 "/Applications/MacPorts/Qgis3.app/Contents/MacOS",
                    […]
 }}}

 With that, the server works:

 {{{
 10:03:07 INFO Server[46870]: maximumCacheSize: 52428800
 10:03:08 INFO Server[46870]: Prefix  PATH:
 /Applications/MacPorts/Qgis3.app/Contents/MacOS
 10:03:08 INFO Server[46870]: Plugin  PATH:
 /Applications/MacPorts/Qgis3.app/Contents/MacOS/../PlugIns/qgis
 10:03:08 INFO Server[46870]: PkgData PATH:
 /Applications/MacPorts/Qgis3.app/Contents/MacOS/../Resources
 10:03:08 INFO Server[46870]: User DB PATH:
 /Library/WebServer/Library/Application
 Support/QGIS/QGIS3/profiles/default/qgis.db
 10:03:08 INFO Server[46870]: Auth DB PATH:
 /Library/WebServer/Library/Application Support/QGIS/QGIS3/profiles/default
 /qgis-auth.db
 10:03:08 INFO Server[46870]: SVG PATHS:
 /Applications/MacPorts/Qgis3.app/Contents/MacOS/../Resources/svg/:/Library/WebServer/Library/Application
 Support/QGIS/QGIS3/profiles/default/svg/
 10:03:08 WARNING [46870]: Adding service SampleService 1.0
 10:03:08 WARNING [46870]: Adding service WCS 1.0.0
 10:03:08 WARNING [46870]: Adding service WFS 1.1.0
 10:03:08 WARNING [46870]: Adding service WMS 1.3.0
 10:03:08 WARNING [46870]: Adding service WMTS 1.0.0
 10:03:08 INFO Server[46870]: Server initialized
 10:03:08 INFO /opt/local/var/macports/build/_macports-
 ports_gis_qgis3/qgis3/work/QGIS-
 3_8_2/src/server/qgsserverplugins.cpp[46870]: load library
 /Applications/MacPorts/Qgis3.app/Contents/MacOS/lib/qgispython (3.8.2)
 10:03:08 INFO /opt/local/var/macports/build/_macports-
 ports_gis_qgis3/qgis3/work/QGIS-
 3_8_2/src/server/qgsserverplugins.cpp[46870]: Python support library
 loaded successfully.
 }}}

 I might commit a further patch when I have identified the problem with the
 wrong default QGIS_PREFIX_PATH, but meanwhile this is a satisfactory
 workaround, I thus close the ticket.

-- 
Ticket URL: <https://trac.macports.org/ticket/57915#comment:37>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list