<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/">https://github.com/OsGeo/homebrew-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">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><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_-7714440263139980451mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/0ae68be8cb0dd08da9b85de8ee4b68401999edac.png?u=645319"><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=~/<wbr>Downloads/QGIS-build \</div><div>  -D CMAKE_BUILD_TYPE=MINSIZEREL -D ENABLE_TESTS=FALSE \</div><div>  -D SPATIALINDEX_LIBRARY=/usr/<wbr>local/Cellar/spatialindex/1.8.<wbr>5/lib/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.<wbr>1.3/lib/libqwt.dylib \</div><div>  -D QWT_INCLUDE_DIR=/usr/local/<wbr>qwt-6.1.3/include \</div><div>  -D BISON_EXECUTABLE=/usr/local/<wbr>Cellar/bison/3.0.4_1/bin/bison \</div><div>  -D GEOS_LIBRARY=/usr/local/<wbr>Cellar/geos/3.6.2/lib/libgeos.<wbr>dylib \</div><div>  -D GEOS_INCLUDE_DIR=/usr/local/<wbr>Cellar/geos/3.6.2/include \</div><div>  -D LIBZIP_LIBRARY=/usr/local/<wbr>Cellar/libzip/1.4.0/lib/<wbr>libzip.5.0.dylib \</div><div>  -D LIBZIP_INCLUDE_DIR=/usr/local/<wbr>Cellar/libzip/1.4.0/include \</div><div>  -D LIBZIP_CONF_INCLUDE_DIR=/usr/<wbr>local/Cellar/libzip/1.4.0/<wbr>include \</div><div>  -D EXPAT_LIBRARY=/usr/local/<wbr>Cellar/expat/2.2.5/lib/<wbr>libexpat.1.6.7.dylib \</div><div>  -D EXPAT_INCLUDE_DIR=/usr/local/<wbr>Cellar/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/<wbr>qt/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/<wbr>Cellar/qt/5.10.1/lib/cmake/<wbr>Qt5Widgets \</div><div>  -D Qt5Concurrent_DIR=/usr/local/<wbr>Cellar/qt/5.10.1/lib/cmake/<wbr>Qt5Concurrent \</div><div>  -D Qt5OpenGL_DIR=/usr/local/<wbr>Cellar/qt/5.10.1/lib/cmake/<wbr>Qt5OpenGL \</div><div>  -D Qt5Xml_DIR=/usr/local/Cellar/<wbr>qt/5.10.1/lib/cmake/Qt5Xml \</div><div>  -D Qt5Svg_DIR=/usr/local/Cellar/<wbr>qt/5.10.1/lib/cmake/Qt5Svg \</div><div>  -D Qt5Network_DIR=/usr/local/<wbr>Cellar/qt/5.10.1/lib/cmake/<wbr>Qt5Network \</div><div>  -D Qt5PrintSupport_DIR=/usr/<wbr>local/Cellar/qt/5.10.1/lib/<wbr>cmake/Qt5PrintSupport \</div><div>  -D Qt5Positioning_DIR=/usr/local/<wbr>Cellar/qt/5.10.1/lib/cmake/<wbr>Qt5Positioning \</div><div>  -D Qt5XmlPatterns_DIR=/usr/local/<wbr>Cellar/qt/5.10.1/lib/cmake/<wbr>Qt5XmlPatterns \</div><div>  -D Qt5WebKit_DIR=/usr/local/<wbr>Cellar/qt/5.10.1/lib/cmake/<wbr>Qt5WebView \</div><div>  -D Qt5UiTools_DIR=/usr/local/<wbr>Cellar/qt/5.10.1/lib/cmake/<wbr>Qt5UiTools \</div><div>  -D Qt5Sql_DIR=/usr/local/Cellar/<wbr>qt/5.10.1/lib/cmake/Qt5Sql \</div><div>  -D QCA_INCLUDE_DIR=/usr/local/<wbr>Cellar/qt/5.10.1/lib/qca-qt5.<wbr>framework/Versions/2.1.3/<wbr>Headers \</div><div>  -D QCA_LIBRARY=/usr/local/Cellar/<wbr>qt/5.10.1/lib/qca-qt5.<wbr>framework/Versions/2.1.3/qca-<wbr>qt5 \</div><div>  -D LIBTASN1_LIBRARY=/usr/local/<wbr>Cellar/libtasn1/4.13/lib/<wbr>libtasn1.6.dylib \</div><div>  -D LIBTASN1_INCLUDE_DIR=/usr/<wbr>local/Cellar/libtasn1/4.13/<wbr>include \</div><div>  -D QSCINTILLA_INCLUDE_DIR=/usr/<wbr>local/Cellar/qscintilla2/2.10.<wbr>2_1/include \</div><div>  -D QSCINTILLA_LIBRARY=/usr/local/<wbr>Cellar/qscintilla2/2.10.2_1/<wbr>lib/libqscintilla2_qt5.13.1.0.<wbr>dylib \</div><div>  -D QTKEYCHAIN_INCLUDE_DIR=/usr/<wbr>local/Cellar/qtkeychain/0.8.0/<wbr>include \</div><div>  -D QTKEYCHAIN_LIBRARY=/usr/local/<wbr>Cellar/qtkeychain/0.8.0/lib/<wbr>libqt5keychain.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/<wbr>local/Cellar/libspatialite/4.<wbr>3.0a_6/include \</div><div>  -D SQLITE3_LIBRARY=/usr/local/<wbr>Cellar/sqlite/3.22.0/lib/<wbr>libsqlite3.0.dylib \</div><div>  -D PYTHON_EXECUTABLE=/usr/local/<wbr>bin/python3 \</div><div>  -D PYTHON_INCLUDE_PATH=/usr/<wbr>local/Frameworks/Python.<wbr>framework/Versions/3.6/Headers \</div><div>  -D PYTHON_LIBRARY=/usr/local/<wbr>Frameworks/Python.framework/<wbr>Versions/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.<wbr>framework</div><div>-- Found GEOS: /usr/local/Cellar/geos/3.6.2/<wbr>lib/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/<wbr>spatialindex/1.8.5/lib/<wbr>libspatialindex.4.dylib</div><div>-- Found Qwt: /usr/local/qwt-6.1.3/lib/<wbr>libqwt.dylib (6.1.3)</div><div>-- Found libzip: /usr/local/Cellar/libzip/1.4.<wbr>0/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/<wbr>libspatialite/4.3.0a_6/lib/<wbr>mod_spatialite.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_<wbr>qt5.13.1.0.dylib (2.10.2)</div><div>-- Found QtKeychain: /usr/local/Cellar/qtkeychain/<wbr>0.8.0/lib/libqt5keychain.0.8.<wbr>0.dylib</div><div>-- Found QCA: /usr/local/Cellar/qt/5.10.1/<wbr>lib/qca-qt5.framework/<wbr>Versions/2.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.<wbr>framework/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/<wbr>Cellar/python/3.6.4_3/<wbr>Frameworks/Python.framework/<wbr>Versions/3.6/lib/python3.6/<wbr>site-packages/PyQt5</div><div>pyqt_sip_dir:/usr/local/<wbr>Cellar/python/3.6.4_3/<wbr>Frameworks/Python.framework/<wbr>Versions/3.6/share/sip</div><div>pyqt_sip_flags:-t WS_MACX -t Qt_5_10_1</div><div>pyqt_bin_dir:/usr/local/<wbr>Cellar/python/3.6.4_3/<wbr>Frameworks/Python.framework/<wbr>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/<wbr>lib -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/<wbr>Python.framework/Versions/2.7/<wbr>Resources/Python.app/Contents/<wbr>MacOS/Python: No module named PyQt5</div><div>make[2]: *** [python/plugins/db_manager/<wbr>resources_rc.py] Error 1</div><div>make[1]: *** [python/plugins/db_manager/<wbr>CMakeFiles/zzz-db_manager-14-<wbr>depend.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/<wbr>Python.framework/Versions/2.7/<wbr>Resources/Python.app/Contents/<wbr>MacOS/Python: No module named PyQt5</div><div>make[2]: *** [python/plugins/db_manager/db_<wbr>plugins/postgis/resources_rc.<wbr>py] Error 1</div><div>make[1]: *** [python/plugins/db_manager/db_<wbr>plugins/postgis/CMakeFiles/<wbr>zzz-db_manager-1-depend.dir/<wbr>all] Error 2</div><div>make: *** [all] Error 2</div></div></div>
<br>______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org">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/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br></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></div>