<html><head></head><body><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div>Hi</div><div><br></div><div><span><span><div>I'm using QGIS Server version 2.18.17 and it works well on Mac OS X.</div><div>I initially tested the official version of QGIS for Mac OS X from the qgis website but the server application immediately failed while the desktop part is working well.</div><div><br></div><div>So I tried to install QGIS 3.6.0 from MacPorts.org and the desktop part also works well here. The server option was included in the software, a first attempt to build the QGIS Server application.  The binary was built but unfortunately there are some errors difficult to understand.</div></span><span><div>I have made some comparisons with the Ubuntu version and I would like to understand from you where the problems of compilation are assuming that the desktop version works well and all software dependencies are compiled.</div></span></span><span><span><div><br></div><div>The binary of QGIS Server 3.6.x is built within the application and if I start it from the terminal I have this information:</div><div><br></div></span></span></div></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div><span><div>airml $ /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/qgis_mapserv.fcgi</div></span></div></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><br></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>Initializing server modules from  "/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server"</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><br></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>"Checking /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server for native services modules"</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>"Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libdummy.so"</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>"Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwcs.so"</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>"Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwfs.so"</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>"Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwms.so"</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>"Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwmts.so"</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>"<font color=\"red\">Couldn't load SIP module.<br>Python support will be disabled.</font><br><pre><br>Traceback (most recent call last):<br>&nbsp; File \"<string>\", line 1, in <module><br>ModuleNotFoundError: No module named 'qgis'<br><br></pre>Python version:<br>3.6.8 (default, Dec 30 2018, 13:01:27) <br>[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)]<br><br>QGIS version:<br>3.6.0-Noosa 'Noosa', exported<br><br>Python path:<br>['/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/../Resources/python', '/Users/airml/Library/Application Support/QGIS/QGIS3/profiles/default/python', '/Users/airml/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']"</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>"<font color=\"red\">An error occurred during execution of following code:<br><tt>qgis.utils.uninstallErrorHook()</tt></font><br><pre><br>Traceback (most recent call last):<br>&nbsp; File \"<string>\", line 1, in <module><br>NameError: name 'qgis' is not defined<br><br></pre>Python version:<br>3.6.8 (default, Dec 30 2018, 13:01:27) <br>[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)]<br><br>QGIS version:<br>3.6.0-Noosa 'Noosa', exported<br><br>Python path:<br>['/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/../Resources/python', '/Users/airml/Library/Application Support/QGIS/QGIS3/profiles/default/python', '/Users/airml/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']"</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>QFSFileEngine::open: No file name specified</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>Content-Length: 54</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>Content-Type: text/xml; charset=utf-8</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>Server:  Qgis FCGI server - QGis version 3.6.0-Noosa</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>Status:  500</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><br></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><ServerException>Project file error</ServerException></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div>airml $airml $ /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/qgis_mapserv.fcgi</div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>Initializing server modules from  "/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server"</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div><br></div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>"Checking /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server for native services modules"</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>"Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libdummy.so"</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>"Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwcs.so"</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>"Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwfs.so"</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>"Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwms.so"</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>"Loading native module /Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/lib/qgis/server/libwmts.so"</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>"<font color=\"red\">Couldn't load SIP module.<br>Python support will be disabled.</font><br><pre><br>Traceback (most recent call last):<br>&nbsp; File \"<string>\", line 1, in <module><br>ModuleNotFoundError: No module named 'qgis'<br><br></pre>Python version:<br>3.6.8 (default, Dec 30 2018, 13:01:27) <br>[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)]<br><br>QGIS version:<br>3.6.0-Noosa 'Noosa', exported<br><br>Python path:<br>['/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/../Resources/python', '/Users/ben/Library/Application Support/QGIS/QGIS3/profiles/default/python', '/Users/ben/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']"</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>"<font color=\"red\">An error occurred during execution of following code:<br><tt>qgis.utils.uninstallErrorHook()</tt></font><br><pre><br>Traceback (most recent call last):<br>&nbsp; File \"<string>\", line 1, in <module><br>NameError: name 'qgis' is not defined<br><br></pre>Python version:<br>3.6.8 (default, Dec 30 2018, 13:01:27) <br>[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)]<br><br>QGIS version:<br>3.6.0-Noosa 'Noosa', exported<br><br>Python path:<br>['/Applications/MacPorts/Qgis3.app/Contents/MacOS/fcgi-bin/../Resources/python', '/Users/ben/Library/Application Support/QGIS/QGIS3/profiles/default/python', '/Users/ben/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']"</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>QFSFileEngine::open: No file name specified</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>Content-Length: 54</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>Content-Type: text/xml; charset=utf-8</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>Server:  Qgis FCGI server - QGis version 3.6.0-Noosa</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>Status:  500</div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div><br></div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div><ServerException>Project file error</ServerException></div></span></div></span></div><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><span><div>airml $</div></span></div></span></div></blockquote><div class="ydpf4a83090yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><span><div><br></div><div><br></div><div><span><span><div>As you can see in the first part are loaded modules, such as the Ubuntu version, but then come the errors and these are complex. Example: no SIP module but the module is installed.</div></span><span><div>The end result is that QGIS Server 3.6.x does not work.</div><div><br></div><div>Can you help me understand how to intervene and how to compile the server version at best?</div><div><br></div><div>Thank you in advance</div><div>Lorenzo</div></span></span></div></span></div></body></html>