<div dir="ltr">Hi,<div><br></div><div>You're using the system spatialite while you should use the brew one.</div><div><br></div><div>After is my cmake output.</div><div><br></div><div>Good luck!</div><div><br></div><div>Denis</div><div><br></div><div><p style="margin:0px"><span style="color:rgb(170,0,0)">-- QGIS version: 3.1.0 Master (30100)</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Could not find GRASS 7</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found Proj: /usr/local/opt/proj/lib/libproj.dylib</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found GEOS: /usr/local/Cellar/geos/3.6.2/lib/libgeos_c.dylib (3.6.2)</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found GDAL: /usr/local/opt/gdal2/lib/libgdal.dylib (2.2.3)</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found Expat: /usr/local/opt/expat/lib/libexpat.dylib</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found Spatialindex: /usr/local/opt/spatialindex/lib/libspatialindex.dylib</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found Qwt: /usr/local/opt/qwt/lib/qwt.framework (6.1.3)</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found libzip: /usr/local/opt/libzip/lib/libzip.dylib</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found Sqlite3: /usr/local/opt/sqlite/lib/libsqlite3.dylib</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found PostgreSQL: /usr/local/lib/libpq.dylib</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found SpatiaLite: /usr/local/opt/libspatialite/lib/libspatialite.dylib</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Qt WebKit support enabled</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found Qt version: 5.10.1</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found QScintilla2: /usr/local/opt/qscintilla2/lib/libqscintilla2_qt5.dylib (2.10.2)</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found QtKeychain: /usr/local/lib/libqt5keychain.dylib</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found QCA: /usr/local/opt/qca/lib/qca-qt5.framework (2.1.3)</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- QtCore/QCA include/lib variables missing or CMake is cross-compiling,</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">--   skipping QCA OpenSSL plugin C++ check</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Pedantic compiler settings enabled</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Debug output enabled</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found Python executable: /usr/local/bin/python3</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found Python version: 3.6.4</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found Python library: /usr/local/Frameworks/Python.framework/Versions/3.6/Python</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found Python site-packages: /usr/local/lib/python3.6/site-packages</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found PyQt5 version: 5.10</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found SIP version: 4.19.7</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found QScintilla2 PyQt module: 2.10.2</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- txt2tags not found - disabled</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Found GSL: -L/usr/local/Cellar/gsl/2.4/lib -lgsl -lgslcblas</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Ctest Binary Directory set to: /Users/denis/opt/qgis/build-QGIS-Qt5/output/bin</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Configuring done</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Generating done</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)">-- Build files have been written to: /Users/denis/opt/qgis/build-QGIS-Qt5</span></p><p style="margin:0px"><span style="color:rgb(170,0,0)"><br></span></p><p style="margin:0px"><br></p></div></div><br><div class="gmail_quote"><div dir="ltr">Le lun. 5 mars 2018 à 16:39, Mikhail Katychev <<a href="mailto:mkatych@gmail.com">mkatych@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Perhaps this is more relevant to the dev mailing list,<br><br>Has anyone had any luck building QGIS 3 on macOS? I 
keep getting unknown class names and identifiers that are very close to 
the expected ones such as: <pre><code>'IDataStream'; did you mean 'QDataStream'?</code></pre>and <br><pre><code>error: no type named 'Region' in namespace 'SpatialIndex'; did you mean 'QRegion'?<br><br></code></pre><pre><code><font face="arial,helvetica,sans-serif">as well as an indication that Rtree is unable to be found even when I did a pip install rtree:<br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:78:25: error: use of undeclared identifier 'RTree'<br><br></span></font></code></pre><pre><code><font face="arial,helvetica,sans-serif"><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">Here is my cmake command arguments:<br></font><br>cmake ../CMakeLists.txt \<br>-DGRASS_PREFIX7=/usr/local/Cellar/grass7/7.2.2/grass-base \<br>-DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison \<br>-DWITH_QTWEBKIT=false \<br>-DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.10.1 \<br>-DQSCINTILLA_INCLUDE_DIR=/usr/local/Cellar/qscintilla2/2.10.3/include/ \<br>-DQSCI_SIP_DIR=/usr/local/Cellar/qscintilla2/2.10.3/share/sip/Qsci \<br>-DQSCINTILLA_LIBRARY=/usr/local/Cellar/qscintilla2/2.10.3/lib/libqscintilla2_qt5.13.1.1.dylib<font face="arial,helvetica,sans-serif"><br><br></font></span></font></code></pre><pre><code><font face="arial,helvetica,sans-serif"><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">Here is my cmake output for the previous command:<br></font><br>-- QGIS version: 3.1.0 Master (30100)<br>-- Found GRASS 7: /usr/local/Cellar/grass7/7.2.2/grass-base (7.2.2, off_t size = )<br>-- Found Proj: /Library/Frameworks/PROJ.framework<br>-- Found GEOS: /Library/Frameworks/GEOS.framework (3.6.1)<br>-- Found GDAL: /Library/Frameworks/GDAL.framework (2.1.3)<br>-- Found Expat: /usr/lib/libexpat.dylib<br>-- Found Spatialindex: /usr/local/lib/libspatialindex.dylib<br>-- Found Qwt: /usr/local/lib/qwt.framework (6.1.3)<br>-- Found libzip: /usr/local/lib/libzip.dylib<br>-- Found Sqlite3: /Library/Frameworks/SQLite3.framework<br>-- Found PostgreSQL: /usr/local/lib/libpq.dylib<br>-- Found SpatiaLite: /Library/Frameworks/SQLite3.framework<br>-- Qt WebKit support DISABLED.<br>-- Found Qt version: 5.10.1<br>-- Found QScintilla2: /usr/local/Cellar/qscintilla2/2.10.3/lib/libqscintilla2_qt5.13.1.1.dylib (2.10.3)<br>-- Found QtKeychain: /usr/local/lib/libqt5keychain.dylib<br>-- Found QCA: /usr/local/lib/qca-qt5.framework (2.1.3)<br>-- QtCore/QCA include/lib variables missing or CMake is cross-compiling,<br>--   skipping QCA OpenSSL plugin C++ check<br>-- Pedantic compiler settings enabled<br>-- Found Python executable: /usr/local/bin/python3<br>-- Found Python version: 3.6.4<br>-- Found Python library: /usr/local/Frameworks/Python.framework/Versions/3.6/Python<br>-- Found Python site-packages: /usr/local/lib/python3.6/site-packages<br>-- Found PyQt5 version: 5.10.1<br>-- Found SIP version: 4.19.8<br>-- Found QScintilla2 PyQt module: 2.10.3<br>-- txt2tags not found - disabled<br>-- Found GSL: -L/usr/local/Cellar/gsl/2.4/lib -lgsl -lgslcblas<br>-- Ctest Binary Directory set to: /Users/user/Downloads/QGIS-master/output/bin<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /Users/user/Downloads/QGIS-master<font face="arial,helvetica,sans-serif"><br><br></font></span></font></code></pre><pre><code><font face="arial,helvetica,sans-serif"><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">And finally, here is my fatal error output log mostly referencing qgspointlocator.cpp:<br></font></span></font></code></pre><div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:33:8: error: no type named 'Point' in namespace 'SpatialIndex'; did you mean 'QPoint'?</span><br><span style="font-family:monospace,monospace">static SpatialIndex::Point point2point( const QgsPointXY &point )</span><br><span style="font-family:monospace,monospace">       ^~~~~~~~~~~~~~~~~~~</span><br><span style="font-family:monospace,monospace">       QPoint</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgsmaptopixel.h:28:7: note: 'QPoint' declared here</span><br><span style="font-family:monospace,monospace">class QPoint;</span><br><span style="font-family:monospace,monospace">      ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:36:10: error: use of undeclared identifier 'Point'</span><br><span style="font-family:monospace,monospace">  return Point( plow, 2 );</span><br><span style="font-family:monospace,monospace">         ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:40:8: error: no type named 'Region' in namespace 'SpatialIndex'; did you mean 'QRegion'?</span><br><span style="font-family:monospace,monospace">static SpatialIndex::Region rect2region( const QgsRectangle &rect )</span><br><span style="font-family:monospace,monospace">       ^~~~~~~~~~~~~~~~~~~~</span><br><span style="font-family:monospace,monospace">       QRegion</span><br><span style="font-family:monospace,monospace">/usr/local/Cellar/qt/5.10.1/lib/QtGui.framework/Headers/qpainterpath.h:61:7: note: 'QRegion' declared here</span><br><span style="font-family:monospace,monospace">class QRegion;</span><br><span style="font-family:monospace,monospace">      ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:44:24: error: no member named 'Region' in namespace 'SpatialIndex'</span><br><span style="font-family:monospace,monospace">  return SpatialIndex::Region( pLow, pHigh, 2 );</span><br><span style="font-family:monospace,monospace">         ~~~~~~~~~~~~~~^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:62:39: error: unknown class name 'IDataStream'; did you mean 'QDataStream'?</span><br><span style="font-family:monospace,monospace">class QgsPointLocator_Stream : public IDataStream</span><br><span style="font-family:monospace,monospace">                                      ^~~~~~~~~~~</span><br><span style="font-family:monospace,monospace">                                      QDataStream</span><br><span style="font-family:monospace,monospace">/usr/local/Cellar/qt/5.10.1/lib/QtCore.framework/Headers/qurl.h:61:7: note: 'QDataStream' declared here</span><br><span style="font-family:monospace,monospace">class QDataStream;</span><br><span style="font-family:monospace,monospace">      ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:65:56: error: use of undeclared identifier 'RTree'</span><br><span style="font-family:monospace,monospace">    explicit QgsPointLocator_Stream( const QLinkedList<RTree::Data *> &dataList )</span><br><span style="font-family:monospace,monospace">                                                       ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:65:69: error: expected expression</span><br><span style="font-family:monospace,monospace">    explicit QgsPointLocator_Stream( const QLinkedList<RTree::Data *> &dataList )</span><br><span style="font-family:monospace,monospace">                                                                    ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:70:5: error: unknown type name 'IData'</span><br><span style="font-family:monospace,monospace">    IData *getNext() override { return mIt.next(); }</span><br><span style="font-family:monospace,monospace">    ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:71:20: error: only virtual member functions can be marked 'override'</span><br><span style="font-family:monospace,monospace">    bool hasNext() override { return mIt.hasNext(); }</span><br><span style="font-family:monospace,monospace">                   ^~~~~~~~~</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:73:21: error: only virtual member functions can be marked 'override'</span><br><span style="font-family:monospace,monospace">    uint32_t size() override { Q_ASSERT( false && "not available" ); return 0; }</span><br><span style="font-family:monospace,monospace">                    ^~~~~~~~~</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:74:19: error: only virtual member functions can be marked 'override'</span><br><span style="font-family:monospace,monospace">    void rewind() override { Q_ASSERT( false && "not available" ); }</span><br><span style="font-family:monospace,monospace">                  ^~~~~~~~~</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:77:17: error: use of undeclared identifier 'RTree'</span><br><span style="font-family:monospace,monospace">    QLinkedList<RTree::Data *> mDataList;</span><br><span style="font-family:monospace,monospace">                ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:77:30: error: expected expression</span><br><span style="font-family:monospace,monospace">    QLinkedList<RTree::Data *> mDataList;</span><br><span style="font-family:monospace,monospace">                             ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:78:25: error: use of undeclared identifier 'RTree'</span><br><span style="font-family:monospace,monospace">    QLinkedListIterator<RTree::Data *> mIt;</span><br><span style="font-family:monospace,monospace">                        ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:78:38: error: expected expression</span><br><span style="font-family:monospace,monospace">    QLinkedListIterator<RTree::Data *> mIt;</span><br><span style="font-family:monospace,monospace">                                     ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:90:53: error: expected class name</span><br><span style="font-family:monospace,monospace">class QgsPointLocator_VisitorNearestVertex : public IVisitor</span><br><span style="font-family:monospace,monospace">                                                    ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:100:27: error: unknown type name 'INode'</span><br><span style="font-family:monospace,monospace">    void visitNode( const INode &n ) override { Q_UNUSED( n ); }</span><br><span style="font-family:monospace,monospace">                          ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:101:39: error: unknown type name 'IData'</span><br><span style="font-family:monospace,monospace">    void visitData( std::vector<const IData *> &v ) override { Q_UNUSED( v ); }</span><br><span style="font-family:monospace,monospace">                                      ^</span><br><span style="font-family:monospace,monospace">/Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:103:27: error: unknown type name 'IData'</span><br><span style="font-family:monospace,monospace">    void visitData( const IData &d ) override</span><br></blockquote>                          ^<br><br></div><div>Any help is appreciated.<br><br></div><div>Thanks,<br></div><div>MK</div><br></div>
_______________________________________________<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/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>