<div dir="ltr">This discussion is going a bit off-topic, but I think the problem could be in your Homebrew installation. If someone changes the reference to qt from qt4 to qt5 may cause some issue (I call it a mess, but I am biased, I had a very bad time with these issue – thanks to Larry did fix them). Maybe you will have to uninstall all qt related formulas and reinstall qt 4 and 5.<div>I see Remi Desgrange made a formula for the released QGIS 3 here: <a href="https://github.com/RemiDesgrange/homebrew-qgisrelease">https://github.com/RemiDesgrange/homebrew-qgisrelease</a><span class="sewbrxoktv5omcu"></span><span class="sewxp22wll4m110"></span></div><div>Are you using it?</div><div>c</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 9, 2018 at 5:22 PM, Timur Girgin <span dir="ltr"><<a href="mailto:girgin.timur@gmail.com" target="_blank">girgin.timur@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><img width="0" height="0" class="m_-8512531774492646212mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/cc403395e8759fc4a1bddf710f5529bde3431125.png?u=645319">Hello Carlo,<div><br></div><div>Would you advice building Qt5 from source then, rather than using brew?</div><div><br></div><div>Thanks<br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 9, 2018 at 11:13 AM, Carlo A. Bertelli (Charta s.r.l.) <span dir="ltr"><<a href="mailto:carlo.bertelli@gmail.com" target="_blank">carlo.bertelli@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div>I suggest to remind that using Homebrew carries in another issue. The maintainers decided to force everyone to use Qt5 as Qt4 is deprecated by Qt developers. Everything that was called qt5-something should become qt-something, so everyone who uses Qt4 had to make formulas called qt4-something for every Qt4 dependency.</div><div>This was the case even for OsGeo4Mac (<a href="https://github.com/OsGeo/homebrew-osgeo4mac/" target="_blank">https://github.com/OsGeo/home<wbr>brew-osgeo4mac/</a>) and Larry Shaffer had to recreate all the needed dependencies inside this tap. If you have old Qt dependencies inside your Homebrew, it may happen that qt-something is still qt4-something even if brew thinks it's qt5... Feeling bewildered? So am I.</div><div>c</div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Thu, Mar 8, 2018 at 4:10 PM, Timur Girgin <span dir="ltr"><<a href="mailto:girgin.timur@gmail.com" target="_blank">girgin.timur@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-8512531774492646212h5"><div dir="ltr"><img width="0" height="0" class="m_-8512531774492646212m_-5766890822770442187m_-7714440263139980451mailtrack-img" alt="" style="display:flex"><div></div>Hello everyone,<div><br></div><div>I am having trouble building the QGIS release-3_0 branch on my Mac. I finally got it to cmake, however I am getting an error during the make process in which it seems that spatialite is using the system's Python(@2) executable to find PyQT5 when in reality it should be looking for it in the Python@3 executable that has been given during CMAKE. I am guessing this is what is causing the issue.</div><div><br></div><div>Please find the error at the bottom of this email. If anyone knows what I am doing wrong, would you please let me know? </div><div><br></div><div>Thank you very much!</div><div>Tim</div><div><br></div><div>Here is my CMAKE:</div><div><br></div><div><div>cmake -D CMAKE_INSTALL_PREFIX=~/Downloa<wbr>ds/QGIS-build \</div><div>  -D CMAKE_BUILD_TYPE=MINSIZEREL -D ENABLE_TESTS=FALSE \</div><div>  -D SPATIALINDEX_LIBRARY=/usr/loca<wbr>l/Cellar/spatialindex/1.8.5/li<wbr>b/libspatialindex.4.dylib \</div><div>  -D SPATIALINDEX_INCLUDE_DIR=/usr/<wbr>local/Cellar/spatialindex/1.8.<wbr>5/include/spatialindex/\</div><div>  -D QWT_LIBRARY=/usr/local/qwt-6.1<wbr>.3/lib/libqwt.dylib \</div><div>  -D QWT_INCLUDE_DIR=/usr/local/qwt<wbr>-6.1.3/include \</div><div>  -D BISON_EXECUTABLE=/usr/local/Ce<wbr>llar/bison/3.0.4_1/bin/bison \</div><div>  -D GEOS_LIBRARY=/usr/local/Cellar<wbr>/geos/3.6.2/lib/libgeos.dylib \</div><div>  -D GEOS_INCLUDE_DIR=/usr/local/Ce<wbr>llar/geos/3.6.2/include \</div><div>  -D LIBZIP_LIBRARY=/usr/local/Cell<wbr>ar/libzip/1.4.0/lib/libzip.5.0<wbr>.dylib \</div><div>  -D LIBZIP_INCLUDE_DIR=/usr/local/<wbr>Cellar/libzip/1.4.0/include \</div><div>  -D LIBZIP_CONF_INCLUDE_DIR=/usr/l<wbr>ocal/Cellar/libzip/1.4.0/inclu<wbr>de \</div><div>  -D EXPAT_LIBRARY=/usr/local/Cella<wbr>r/expat/2.2.5/lib/libexpat.1.6<wbr>.7.dylib \</div><div>  -D EXPAT_INCLUDE_DIR=/usr/local/C<wbr>ellar/expat/2.2.5/include \</div><div>  -D Qt5Core_DIR=/usr/local/Cellar/<wbr>qt/5.10.1/lib/cmake/Qt5Core \</div><div>  -D Qt5Gui_DIR=/usr/local/Cellar/q<wbr>t/5.10.1/lib/cmake/Qt5Gui \</div><div>  -D Qt5Test_DIR=/usr/local/Cellar/<wbr>qt/5.10.1/lib/cmake/Qt5Test \</div><div>  -D Qt5Widgets_DIR=/usr/local/Cell<wbr>ar/qt/5.10.1/lib/cmake/Qt5Widg<wbr>ets \</div><div>  -D Qt5Concurrent_DIR=/usr/local/C<wbr>ellar/qt/5.10.1/lib/cmake/Qt5C<wbr>oncurrent \</div><div>  -D Qt5OpenGL_DIR=/usr/local/Cella<wbr>r/qt/5.10.1/lib/cmake/Qt5OpenG<wbr>L \</div><div>  -D Qt5Xml_DIR=/usr/local/Cellar/q<wbr>t/5.10.1/lib/cmake/Qt5Xml \</div><div>  -D Qt5Svg_DIR=/usr/local/Cellar/q<wbr>t/5.10.1/lib/cmake/Qt5Svg \</div><div>  -D Qt5Network_DIR=/usr/local/Cell<wbr>ar/qt/5.10.1/lib/cmake/Qt5Netw<wbr>ork \</div><div>  -D Qt5PrintSupport_DIR=/usr/local<wbr>/Cellar/qt/5.10.1/lib/cmake/Qt<wbr>5PrintSupport \</div><div>  -D Qt5Positioning_DIR=/usr/local/<wbr>Cellar/qt/5.10.1/lib/cmake/Qt5<wbr>Positioning \</div><div>  -D Qt5XmlPatterns_DIR=/usr/local/<wbr>Cellar/qt/5.10.1/lib/cmake/Qt5<wbr>XmlPatterns \</div><div>  -D Qt5WebKit_DIR=/usr/local/Cella<wbr>r/qt/5.10.1/lib/cmake/Qt5WebVi<wbr>ew \</div><div>  -D Qt5UiTools_DIR=/usr/local/Cell<wbr>ar/qt/5.10.1/lib/cmake/Qt5UiTo<wbr>ols \</div><div>  -D Qt5Sql_DIR=/usr/local/Cellar/q<wbr>t/5.10.1/lib/cmake/Qt5Sql \</div><div>  -D QCA_INCLUDE_DIR=/usr/local/Cel<wbr>lar/qt/5.10.1/lib/qca-qt5.fram<wbr>ework/Versions/2.1.3/Headers \</div><div>  -D QCA_LIBRARY=/usr/local/Cellar/<wbr>qt/5.10.1/lib/qca-qt5.framewor<wbr>k/Versions/2.1.3/qca-qt5 \</div><div>  -D LIBTASN1_LIBRARY=/usr/local/Ce<wbr>llar/libtasn1/4.13/lib/libtasn<wbr>1.6.dylib \</div><div>  -D LIBTASN1_INCLUDE_DIR=/usr/loca<wbr>l/Cellar/libtasn1/4.13/include \</div><div>  -D QSCINTILLA_INCLUDE_DIR=/usr/lo<wbr>cal/Cellar/qscintilla2/2.10.2_<wbr>1/include \</div><div>  -D QSCINTILLA_LIBRARY=/usr/local/<wbr>Cellar/qscintilla2/2.10.2_1/li<wbr>b/libqscintilla2_qt5.13.1.0.dy<wbr>lib \</div><div>  -D QTKEYCHAIN_INCLUDE_DIR=/usr/lo<wbr>cal/Cellar/qtkeychain/0.8.0/in<wbr>clude \</div><div>  -D QTKEYCHAIN_LIBRARY=/usr/local/<wbr>Cellar/qtkeychain/0.8.0/lib/li<wbr>bqt5keychain.0.8.0.dylib \</div><div>  -D SPATIALITE_LIBRARY=/usr/local/<wbr>Cellar/libspatialite/4.3.0a_6/<wbr>lib/mod_spatialite.7.dylib \</div><div>  -D SPATIALITE_INCLUDE_DIR=/usr/lo<wbr>cal/Cellar/libspatialite/4.3.0<wbr>a_6/include \</div><div>  -D SQLITE3_LIBRARY=/usr/local/Cel<wbr>lar/sqlite/3.22.0/lib/libsqlit<wbr>e3.0.dylib \</div><div>  -D PYTHON_EXECUTABLE=/usr/local/b<wbr>in/python3 \</div><div>  -D PYTHON_INCLUDE_PATH=/usr/local<wbr>/Frameworks/Python.framework/V<wbr>ersions/3.6/Headers \</div><div>  -D PYTHON_LIBRARY=/usr/local/Fram<wbr>eworks/Python.framework/Versio<wbr>ns/3.6/Python \</div><div>  -D WITH_QTWEBKIT=FALSE \</div><div>  ..</div></div><div><br></div><div>Which outputs:</div><div><br></div><div><div>-- QGIS version: 3.0.0 Girona (30000)</div><div>-- Could not find GRASS 7</div><div>-- Found Proj: /Library/Frameworks/PROJ.frame<wbr>work</div><div>-- Found GEOS: /usr/local/Cellar/geos/3.6.2/l<wbr>ib/libgeos.dylib (3.6.2)</div><div>-- Found GDAL: /usr/local/Cellar/gdal2/2.2.3/<wbr>lib/libgdal.dylib (2.2.3)</div><div>-- Found Expat: /usr/local/Cellar/expat/2.2.5/<wbr>lib/libexpat.1.6.7.dylib</div><div>-- Found Spatialindex: /usr/local/Cellar/spatialindex<wbr>/1.8.5/lib/libspatialindex.4.d<wbr>ylib</div><div>-- Found Qwt: /usr/local/qwt-6.1.3/lib/libqw<wbr>t.dylib (6.1.3)</div><div>-- Found libzip: /usr/local/Cellar/libzip/1.4.0<wbr>/lib/libzip.5.0.dylib</div><div>-- Found Sqlite3: /usr/local/Cellar/sqlite/3.22.<wbr>0/lib/libsqlite3.0.dylib</div><div>-- Found PostgreSQL: /usr/local/lib/libpq.dylib</div><div>-- Found SpatiaLite: /usr/local/Cellar/libspatialit<wbr>e/4.3.0a_6/lib/mod_spatialite.<wbr>7.dylib</div><div>-- Qt WebKit support DISABLED.</div><div>-- Found Qt version: 5.10.1</div><div>-- Found QScintilla2: /usr/local/Cellar/qscintilla2/<wbr>2.10.2_1/lib/libqscintilla2_qt<wbr>5.13.1.0.dylib (2.10.2)</div><div>-- Found QtKeychain: /usr/local/Cellar/qtkeychain/0<wbr>.8.0/lib/libqt5keychain.0.8.0.<wbr>dylib</div><div>-- Found QCA: /usr/local/Cellar/qt/5.10.1/li<wbr>b/qca-qt5.framework/Versions/2<wbr>.1.3/qca-qt5 (2.1.3)</div><div>-- QtCore/QCA include/lib variables missing or CMake is cross-compiling,</div><div>--   skipping QCA OpenSSL plugin C++ check</div><div>-- Pedantic compiler settings enabled</div><div>-- Found Python executable: /usr/local/bin/python3</div><div>-- Found Python version: 3.6.4</div><div>-- Found Python library: /usr/local/Frameworks/Python.f<wbr>ramework/Versions/3.6/Python</div><div>-- Found Python site-packages: /usr/local/lib/python3.6/site-<wbr>packages</div><div>pyqt_version:050a01</div><div>pyqt_version_num:330241</div><div>pyqt_version_str:5.10.1</div><div>pyqt_version_tag:</div><div>pyqt_mod_dir:/usr/local/Cellar<wbr>/python/3.6.4_3/Frameworks/Pyt<wbr>hon.framework/Versions/3.6/lib<wbr>/python3.6/site-packages/PyQt5</div><div>pyqt_sip_dir:/usr/local/Cellar<wbr>/python/3.6.4_3/Frameworks/Pyt<wbr>hon.framework/Versions/3.6/sha<wbr>re/sip</div><div>pyqt_sip_flags:-t WS_MACX -t Qt_5_10_1</div><div>pyqt_bin_dir:/usr/local/Cellar<wbr>/python/3.6.4_3/Frameworks/Pyt<wbr>hon.framework/Versions/3.6/bin</div><div><br></div><div>-- Found PyQt5 version: 5.10.1</div><div>-- Found SIP version: 4.19.8</div><div>-- Found QScintilla2 PyQt module: 2.10.2</div><div>-- txt2tags not found - disabled</div><div>-- Found GSL: -L/usr/local/Cellar/gsl/2.4/li<wbr>b -lgsl -lgslcblas</div><div>-- Qsci sip file not found - disabling bindings for derived classes</div><div>-- Configuring done</div><div>-- Generating done</div><div>-- Build files have been written to: /Users/tgirgin/Downloads/QGIS/<wbr>build</div></div><div><br></div><div>I added a MESSAGE to output the version and more of PyQt5, and it seems to be exactly where I expect it to be. However, during make it is being looked for using Python2.</div><div><br></div><div>Output of make -j8:</div><div><br></div><div><div>[  9%] Built target zzz-MetaSearch-47-depend</div><div>[  9%] Built target zzz-MetaSearch-46-depend</div><div>[  9%] Built target zzz-MetaSearch-45-depend</div><div>[  9%] Generating resources_rc.py</div><div>[  9%] Built target zzz-db_manager-13-depend</div><div>[  9%] Built target pyutils</div><div>[  9%] Built target zzz-db_manager-12-depend</div><div>[  9%] Generating resources_rc.py</div><div>/System/Library/Frameworks/Pyt<wbr>hon.framework/Versions/2.7/Res<wbr>ources/Python.app/Contents/Mac<wbr>OS/Python: No module named PyQt5</div><div>make[2]: *** [python/plugins/db_manager/res<wbr>ources_rc.py] Error 1</div><div>make[1]: *** [python/plugins/db_manager/CMa<wbr>keFiles/zzz-db_manager-14-depe<wbr>nd.dir/all] Error 2</div><div>make[1]: *** Waiting for unfinished jobs....</div><div>[  9%] Built target zzz-db_manager-2-depend</div><div>[  9%] Built target zzz-db_manager-6-depend</div><div>[  9%] Built target zzz-db_manager-4-depend</div><div>/System/Library/Frameworks/Pyt<wbr>hon.framework/Versions/2.7/Res<wbr>ources/Python.app/Contents/Mac<wbr>OS/Python: No module named PyQt5</div><div>make[2]: *** [python/plugins/db_manager/db_<wbr>plugins/postgis/resources_rc.p<wbr>y] Error 1</div><div>make[1]: *** [python/plugins/db_manager/db_<wbr>plugins/postgis/CMakeFiles/zzz<wbr>-db_manager-1-depend.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div></div>
<br></div></div><span>______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br></span></blockquote></div><span class="m_-8512531774492646212HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-8512531774492646212m_-5766890822770442187gmail_signature" data-smartmail="gmail_signature">------------------------------<wbr>------------------------------<wbr>--------------<br>Carlo A. Bertelli<br>   Charta servizi e sistemi per il territorio e la storia ambientale srl <br>          Dipendenze del palazzo Doria, <br>          vc. alla Chiesa della Maddalena 9/2 16124      Genova (Italy)<br>          tel./fax +39(0)10 2475439  <a href="tel:+39%20010%20856%206195" value="+390108566195" target="_blank">+39 0108566195</a>  mobile:<a href="tel:+39%20393%20159%200711" value="+393931590711" target="_blank">+39 393 1590711</a><br>   e-mail: <a href="mailto:bertelli@chartasrl.eu" target="_blank">bertelli@chartasrl.eu</a>      <a href="http://www.chartasrl.eu" target="_blank">http://www.chartasrl.eu</a><br>------------------------------<wbr>------------------------------<wbr>--------------<br><br><br><br></div>
</font></span></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">--------------------------------------------------------------------------<br>Carlo A. Bertelli<br>   Charta servizi e sistemi per il territorio e la storia ambientale srl <br>          Dipendenze del palazzo Doria, <br>          vc. alla Chiesa della Maddalena 9/2 16124      Genova (Italy)<br>          tel./fax +39(0)10 2475439  +39 0108566195  mobile:+39 393 1590711<br>   e-mail: <a href="mailto:bertelli@chartasrl.eu" target="_blank">bertelli@chartasrl.eu</a>      <a href="http://www.chartasrl.eu" target="_blank">http://www.chartasrl.eu</a><br>--------------------------------------------------------------------------<br><br><br><br></div>
</div>