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

MacPorts noreply at macports.org
Wed Mar 27 14:32:53 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 news24lor):

 Replying to [comment:19 news24lor]:
 > Replying to [comment:16 Veence]:
 > > There is now a +server option with the release 1 of QGIS 3.6.0. Please
 try it!
 >
 > Great. I try immediately!
 >
 > Thanks!!

 Hi Vincent

 I'm trying to install QGIS server 3.6. The old version 2.18.x had no
 installation problems and all drivers were loaded. In the new version
 there are some libraries that are not loaded. The first obstacle I managed
 to overcome was a symbolic link that loads the server protocol library:

 {{{
 sudo ln -sf /Applications/MacPorts/Qgis3.app/Contents/MacOS/lib
 /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib
 }}}

 This link loads the modules you need for QGIS server.

 At this point I made a comparison between the results obtained by
 installing QGIS server 3.6 on Ubuntu and Mac OS.

 Running the binary on Ubuntu 18.04:

 {{{
 /usr/lib/cgi-bin/qgis_mapserv.fcgi
 }}}

 I get this result:

 {{{
 ...
 Initializing server modules from  "/usr/lib/qgis/server"

 "Checking /usr/lib/qgis/server for native services modules"
 "Loading native module /usr/lib/qgis/server/libdummy.so"
 "Loading native module /usr/lib/qgis/server/libwcs.so"
 "Loading native module /usr/lib/qgis/server/libwfs.so"
 "Loading native module /usr/lib/qgis/server/libwms.so"
 "Loading native module /usr/lib/qgis/server/libwmts.so"
 QFileInfo::absolutePath: Constructed with empty filename
 QFSFileEngine::open: No file name specified
 Content-Length: 54
 Content-Type: text/xml; charset=utf-8
 Server:  Qgis FCGI server - QGis version 3.6.0-Noosa
 Status:  500

 <ServerException>Project file error</ServerException>

 }}}

 .... and this is OK. It works.


 Running the binary on Mac OS 10.14.x:

 {{{
 /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/qgis_mapserv.fcgi
 }}}

 I get this result:

 {{{
 Initializing server modules from
 "/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server"

 "Checking /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-
 bin/lib/qgis/server for native services modules"
 "Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS
 /fcgi-bin/lib/qgis/server/libdummy.so"
 "Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS
 /fcgi-bin/lib/qgis/server/libwcs.so"
 "Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS
 /fcgi-bin/lib/qgis/server/libwfs.so"
 "Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS
 /fcgi-bin/lib/qgis/server/libwms.so"
 "Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS
 /fcgi-bin/lib/qgis/server/libwmts.so"

 "Couldn't load SIP module.
 Python support will be disabled.

 Traceback (most recent call last):
   File \"\", line 1, in
 ModuleNotFoundError: No module named 'qgis'

 Python version:
 3.6.8 (default, Dec 30 2018, 13:01:27)
 [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)]

 QGIS version:
 3.6.0-Noosa 'Noosa', exported

 Python path:
 ['/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-
 bin/../Resources/python', '/Users/lore/Library/Application
 Support/QGIS/QGIS3/profiles/default/python',
 '/Users/lore/Library/Application
 Support/QGIS/QGIS3/profiles/default/python/plugins',
 '/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-
 bin/../Resources/python/plugins',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
 /lib-dynload',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
 /site-packages']"
 "An error occurred during execution of following code:
 qgis.utils.uninstallErrorHook()

 Traceback (most recent call last):
   File \"\", line 1, in
 NameError: name 'qgis' is not defined

 Python version:
 3.6.8 (default, Dec 30 2018, 13:01:27)
 [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)]

 QGIS version:
 3.6.0-Noosa 'Noosa', exported

 Python path:
 ['/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-
 bin/../Resources/python', '/Users/lore/Library/Application
 Support/QGIS/QGIS3/profiles/default/python',
 '/Users/lore/Library/Application
 Support/QGIS/QGIS3/profiles/default/python/plugins',
 '/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-
 bin/../Resources/python/plugins',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
 /lib-dynload',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
 /site-packages']" QFSFileEngine::open: No file name specified Content-
 Length: 54 Content-Type: text/xml; charset=utf-8 Server: Qgis FCGI server
 - QGis version 3.6.0-Noosa Status: 500 Project file error

 }}}

 ... and QGIS Server 3.6 does not start.

 The libraries are loaded at first as in the Linux version but then there
 are errors. I checked again and all modules are installed (SIP and
 others).

 Are there any links missing or what?

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


More information about the macports-tickets mailing list