<div dir="ltr"><img width="0" height="0" class="mailtrack-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=~/Downloads/QGIS-build \</div><div>  -D CMAKE_BUILD_TYPE=MINSIZEREL -D ENABLE_TESTS=FALSE \</div><div>  -D SPATIALINDEX_LIBRARY=/usr/local/Cellar/spatialindex/1.8.5/lib/libspatialindex.4.dylib \</div><div>  -D SPATIALINDEX_INCLUDE_DIR=/usr/local/Cellar/spatialindex/1.8.5/include/spatialindex/\</div><div>  -D QWT_LIBRARY=/usr/local/qwt-6.1.3/lib/libqwt.dylib \</div><div>  -D QWT_INCLUDE_DIR=/usr/local/qwt-6.1.3/include \</div><div>  -D BISON_EXECUTABLE=/usr/local/Cellar/bison/3.0.4_1/bin/bison \</div><div>  -D GEOS_LIBRARY=/usr/local/Cellar/geos/3.6.2/lib/libgeos.dylib \</div><div>  -D GEOS_INCLUDE_DIR=/usr/local/Cellar/geos/3.6.2/include \</div><div>  -D LIBZIP_LIBRARY=/usr/local/Cellar/libzip/1.4.0/lib/libzip.5.0.dylib \</div><div>  -D LIBZIP_INCLUDE_DIR=/usr/local/Cellar/libzip/1.4.0/include \</div><div>  -D LIBZIP_CONF_INCLUDE_DIR=/usr/local/Cellar/libzip/1.4.0/include \</div><div>  -D EXPAT_LIBRARY=/usr/local/Cellar/expat/2.2.5/lib/libexpat.1.6.7.dylib \</div><div>  -D EXPAT_INCLUDE_DIR=/usr/local/Cellar/expat/2.2.5/include \</div><div>  -D Qt5Core_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Core \</div><div>  -D Qt5Gui_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Gui \</div><div>  -D Qt5Test_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Test \</div><div>  -D Qt5Widgets_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Widgets \</div><div>  -D Qt5Concurrent_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Concurrent \</div><div>  -D Qt5OpenGL_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5OpenGL \</div><div>  -D Qt5Xml_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Xml \</div><div>  -D Qt5Svg_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Svg \</div><div>  -D Qt5Network_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Network \</div><div>  -D Qt5PrintSupport_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5PrintSupport \</div><div>  -D Qt5Positioning_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Positioning \</div><div>  -D Qt5XmlPatterns_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5XmlPatterns \</div><div>  -D Qt5WebKit_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5WebView \</div><div>  -D Qt5UiTools_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5UiTools \</div><div>  -D Qt5Sql_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Sql \</div><div>  -D QCA_INCLUDE_DIR=/usr/local/Cellar/qt/5.10.1/lib/qca-qt5.framework/Versions/2.1.3/Headers \</div><div>  -D QCA_LIBRARY=/usr/local/Cellar/qt/5.10.1/lib/qca-qt5.framework/Versions/2.1.3/qca-qt5 \</div><div>  -D LIBTASN1_LIBRARY=/usr/local/Cellar/libtasn1/4.13/lib/libtasn1.6.dylib \</div><div>  -D LIBTASN1_INCLUDE_DIR=/usr/local/Cellar/libtasn1/4.13/include \</div><div>  -D QSCINTILLA_INCLUDE_DIR=/usr/local/Cellar/qscintilla2/2.10.2_1/include \</div><div>  -D QSCINTILLA_LIBRARY=/usr/local/Cellar/qscintilla2/2.10.2_1/lib/libqscintilla2_qt5.13.1.0.dylib \</div><div>  -D QTKEYCHAIN_INCLUDE_DIR=/usr/local/Cellar/qtkeychain/0.8.0/include \</div><div>  -D QTKEYCHAIN_LIBRARY=/usr/local/Cellar/qtkeychain/0.8.0/lib/libqt5keychain.0.8.0.dylib \</div><div>  -D SPATIALITE_LIBRARY=/usr/local/Cellar/libspatialite/4.3.0a_6/lib/mod_spatialite.7.dylib \</div><div>  -D SPATIALITE_INCLUDE_DIR=/usr/local/Cellar/libspatialite/4.3.0a_6/include \</div><div>  -D SQLITE3_LIBRARY=/usr/local/Cellar/sqlite/3.22.0/lib/libsqlite3.0.dylib \</div><div>  -D PYTHON_EXECUTABLE=/usr/local/bin/python3 \</div><div>  -D PYTHON_INCLUDE_PATH=/usr/local/Frameworks/Python.framework/Versions/3.6/Headers \</div><div>  -D PYTHON_LIBRARY=/usr/local/Frameworks/Python.framework/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.framework</div><div>-- Found GEOS: /usr/local/Cellar/geos/3.6.2/lib/libgeos.dylib (3.6.2)</div><div>-- Found GDAL: /usr/local/Cellar/gdal2/2.2.3/lib/libgdal.dylib (2.2.3)</div><div>-- Found Expat: /usr/local/Cellar/expat/2.2.5/lib/libexpat.1.6.7.dylib</div><div>-- Found Spatialindex: /usr/local/Cellar/spatialindex/1.8.5/lib/libspatialindex.4.dylib</div><div>-- Found Qwt: /usr/local/qwt-6.1.3/lib/libqwt.dylib (6.1.3)</div><div>-- Found libzip: /usr/local/Cellar/libzip/1.4.0/lib/libzip.5.0.dylib</div><div>-- Found Sqlite3: /usr/local/Cellar/sqlite/3.22.0/lib/libsqlite3.0.dylib</div><div>-- Found PostgreSQL: /usr/local/lib/libpq.dylib</div><div>-- Found SpatiaLite: /usr/local/Cellar/libspatialite/4.3.0a_6/lib/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/2.10.2_1/lib/libqscintilla2_qt5.13.1.0.dylib (2.10.2)</div><div>-- Found QtKeychain: /usr/local/Cellar/qtkeychain/0.8.0/lib/libqt5keychain.0.8.0.dylib</div><div>-- Found QCA: /usr/local/Cellar/qt/5.10.1/lib/qca-qt5.framework/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.framework/Versions/3.6/Python</div><div>-- Found Python site-packages: /usr/local/lib/python3.6/site-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/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PyQt5</div><div>pyqt_sip_dir:/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/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/Cellar/python/3.6.4_3/Frameworks/Python.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/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/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/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named PyQt5</div><div>make[2]: *** [python/plugins/db_manager/resources_rc.py] Error 1</div><div>make[1]: *** [python/plugins/db_manager/CMakeFiles/zzz-db_manager-14-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/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named PyQt5</div><div>make[2]: *** [python/plugins/db_manager/db_plugins/postgis/resources_rc.py] Error 1</div><div>make[1]: *** [python/plugins/db_manager/db_plugins/postgis/CMakeFiles/zzz-db_manager-1-depend.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div></div>