qgis / homebrew-qgisdev

Homebrew recipes for QGIS and MacOS
39 stars 31 forks source link

Problem installing qgis3-dev #36

Closed phborba closed 7 years ago

phborba commented 7 years ago

I'm trying to install qgis3-dev but the following error came up:

Philipes-MacBook-Pro:~ philipeborba$ brew install qgis3-dev ==> Installing qgis3-dev from qgis/qgisdev ==> Cloning https://github.com/qgis/QGIS.git Updating /Users/philipeborba/Library/Caches/Homebrew/qgis3-dev--git ==> Checking out branch master ==> cmake -G Ninja -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-D ==> cmake --build . --target all -- -j 4 Last 15 lines from /Users/philipeborba/Library/Logs/Homebrew/qgis3-dev/02.cmake: /usr/local/opt/qt/lib/QtCore.framework/Headers/qstring.h:117:51: error: expected ';' at end of declaration list inline bool operator<=(const QString &s) const Q_DECL_NOTHROW; ^ /usr/local/opt/qt/lib/QtCore.framework/Headers/qstring.h:145:9: error: unknown type name 'QTypedArrayData' typedef QTypedArrayData QStringData; ^ /usr/local/opt/qt/lib/QtCore.framework/Headers/qstring.h:145:24: error: expected unqualified-id typedef QTypedArrayData QStringData; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [4074/4418] /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -DCOLORSCHEMES_DIR=\"/usr/local/Cellar/qgis3-dev/2.99/QGIS.app/Contents/MacOS/../Resources/grass/qtermwidget/color-schemes\" -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UTMPX -DKB_LAYOUT_DIR=\"/usr/local/Cellar/qgis3-dev/2.99/QGIS.app/Contents/MacOS/../Resources/grass/qtermwidget/kb-layouts\" -DQGISDEBUG=1 -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWITH_BINDINGS -DWITH_QTWEBKIT -D_UTMPX_COMPAT -Dgrassplugin7_EXPORTS -I. -I../src/plugins -I../src/app -I../src/core -I../src/core/expression -I../src/core/geometry -I../src/core/metadata -I../src/core/layertree -I../src/core/raster -I../src/core/symbology -I../src/gui -I../src/gui/editorwidgets -I../src/gui/symbology -I../src/gui/layertree -I../src/providers/grass -Isrc/core -Isrc/gui -Isrc/ui -Isrc/app -Isrc/plugins/grass -isystem /usr/local/opt/gdal2/include -isystem /usr/local/opt/proj/include -isystem /usr/local/opt/geos/include -isystem /usr/local/Cellar/postgresql/9.6.5/include -isystem ../src/plugins/grass/qtermwidget -I/usr/local/opt/grass7/grass-base/include -Isrc/plugins/grass/7 -Isrc/providers/grass/7 -iframework /usr/local/opt/qt/lib -isystem /usr/local/opt/qt/lib/QtXml.framework/Headers -isystem /usr/local/opt/qt/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt/./mkspecs/macx-clang -isystem /usr/local/opt/qt/lib/QtConcurrent.framework/Headers -isystem /usr/local/opt/qt/lib/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem /usr/local/opt/qt/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtPrintSupport.framework/Headers -isystem /usr/local/opt/qt/lib/QtSvg.framework/Headers -isystem /usr/local/opt/qt/lib/QtNetwork.framework/Headers -iframework /usr/local/opt/qt5-webkit/lib -isystem /usr/local/opt/qt5-webkit/lib/QtWebKit.framework/Headers -isystem /usr/local/opt/qt5-webkit/lib/QtWebKitWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtSql.framework/Headers -isystem /usr/local/opt/qt/lib/QtPositioning.framework/Headers -isystem /usr/local/opt/qt/include -isystem /usr/local/opt/qt/include/QtUiTools -isystem /usr/local/Cellar/grass7/7.2.1/grass-base/include -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -DNDEBUG -fPIC -fvisibility=hidden -F/usr/local/opt/qwt/lib -F/usr/local/opt/qwtpolar/lib -F/usr/local/opt/qca/lib -DGRASS_BASE=\"/usr/local/opt/grass7/grass-base\" -I/usr/local/opt/gettext/include -fPIC -std=gnu++11 -MD -MT src/plugins/grass/7/CMakeFiles/grassplugin7.dir//qgsgrassaddfeature.cpp.o -MF src/plugins/grass/7/CMakeFiles/grassplugin7.dir//qgsgrassaddfeature.cpp.o.d -o src/plugins/grass/7/CMakeFiles/grassplugin7.dir//qgsgrassaddfeature.cpp.o -c ../src/plugins/grass/qgsgrassaddfeature.cpp [4075/4418] /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -DCOLORSCHEMES_DIR=\"/usr/local/Cellar/qgis3-dev/2.99/QGIS.app/Contents/MacOS/../Resources/grass/qtermwidget/color-schemes\" -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UTMPX -DKB_LAYOUT_DIR=\"/usr/local/Cellar/qgis3-dev/2.99/QGIS.app/Contents/MacOS/../Resources/grass/qtermwidget/kb-layouts\" -DQGISDEBUG=1 -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWITH_BINDINGS -DWITH_QTWEBKIT -D_UTMPX_COMPAT -Dgrassplugin7_EXPORTS -I. -I../src/plugins -I../src/app -I../src/core -I../src/core/expression -I../src/core/geometry -I../src/core/metadata -I../src/core/layertree -I../src/core/raster -I../src/core/symbology -I../src/gui -I../src/gui/editorwidgets -I../src/gui/symbology -I../src/gui/layertree -I../src/providers/grass -Isrc/core -Isrc/gui -Isrc/ui -Isrc/app -Isrc/plugins/grass -isystem /usr/local/opt/gdal2/include -isystem /usr/local/opt/proj/include -isystem /usr/local/opt/geos/include -isystem /usr/local/Cellar/postgresql/9.6.5/include -isystem ../src/plugins/grass/qtermwidget -I/usr/local/opt/grass7/grass-base/include -Isrc/plugins/grass/7 -Isrc/providers/grass/7 -iframework /usr/local/opt/qt/lib -isystem /usr/local/opt/qt/lib/QtXml.framework/Headers -isystem /usr/local/opt/qt/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt/./mkspecs/macx-clang -isystem /usr/local/opt/qt/lib/QtConcurrent.framework/Headers -isystem /usr/local/opt/qt/lib/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem /usr/local/opt/qt/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtPrintSupport.framework/Headers -isystem /usr/local/opt/qt/lib/QtSvg.framework/Headers -isystem /usr/local/opt/qt/lib/QtNetwork.framework/Headers -iframework /usr/local/opt/qt5-webkit/lib -isystem /usr/local/opt/qt5-webkit/lib/QtWebKit.framework/Headers -isystem /usr/local/opt/qt5-webkit/lib/QtWebKitWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtSql.framework/Headers -isystem /usr/local/opt/qt/lib/QtPositioning.framework/Headers -isystem /usr/local/opt/qt/include -isystem /usr/local/opt/qt/include/QtUiTools -isystem /usr/local/Cellar/grass7/7.2.1/grass-base/include -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -DNDEBUG -fPIC -fvisibility=hidden -F/usr/local/opt/qwt/lib -F/usr/local/opt/qwtpolar/lib -F/usr/local/opt/qca/lib -DGRASS_BASE=\"/usr/local/opt/grass7/grass-base\" -I/usr/local/opt/gettext/include -fPIC -std=gnu++11 -MD -MT src/plugins/grass/7/CMakeFiles/grassplugin7.dir//qgsgrasseditrenderer.cpp.o -MF src/plugins/grass/7/CMakeFiles/grassplugin7.dir//qgsgrasseditrenderer.cpp.o.d -o src/plugins/grass/7/CMakeFiles/grassplugin7.dir/__/qgsgrasseditrenderer.cpp.o -c ../src/plugins/grass/qgsgrasseditrenderer.cpp [4076/4418] /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -DCOLORSCHEMES_DIR=\"/usr/local/Cellar/qgis3-dev/2.99/QGIS.app/Contents/MacOS/../Resources/grass/qtermwidget/color-schemes\" -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UTMPX -DKB_LAYOUT_DIR=\"/usr/local/Cellar/qgis3-dev/2.99/QGIS.app/Contents/MacOS/../Resources/grass/qtermwidget/kb-layouts\" -DQGISDEBUG=1 -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWITH_BINDINGS -DWITH_QTWEBKIT -D_UTMPX_COMPAT -Dgrassplugin7_EXPORTS -I. -I../src/plugins -I../src/app -I../src/core -I../src/core/expression -I../src/core/geometry -I../src/core/metadata -I../src/core/layertree -I../src/core/raster -I../src/core/symbology -I../src/gui -I../src/gui/editorwidgets -I../src/gui/symbology -I../src/gui/layertree -I../src/providers/grass -Isrc/core -Isrc/gui -Isrc/ui -Isrc/app -Isrc/plugins/grass -isystem /usr/local/opt/gdal2/include -isystem /usr/local/opt/proj/include -isystem /usr/local/opt/geos/include -isystem /usr/local/Cellar/postgresql/9.6.5/include -isystem ../src/plugins/grass/qtermwidget -I/usr/local/opt/grass7/grass-base/include -Isrc/plugins/grass/7 -Isrc/providers/grass/7 -iframework /usr/local/opt/qt/lib -isystem /usr/local/opt/qt/lib/QtXml.framework/Headers -isystem /usr/local/opt/qt/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt/./mkspecs/macx-clang -isystem /usr/local/opt/qt/lib/QtConcurrent.framework/Headers -isystem /usr/local/opt/qt/lib/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem /usr/local/opt/qt/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtPrintSupport.framework/Headers -isystem /usr/local/opt/qt/lib/QtSvg.framework/Headers -isystem /usr/local/opt/qt/lib/QtNetwork.framework/Headers -iframework /usr/local/opt/qt5-webkit/lib -isystem /usr/local/opt/qt5-webkit/lib/QtWebKit.framework/Headers -isystem /usr/local/opt/qt5-webkit/lib/QtWebKitWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtSql.framework/Headers -isystem /usr/local/opt/qt/lib/QtPositioning.framework/Headers -isystem /usr/local/opt/qt/include -isystem /usr/local/opt/qt/include/QtUiTools -isystem /usr/local/Cellar/grass7/7.2.1/grass-base/include -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -DNDEBUG -fPIC -fvisibility=hidden -F/usr/local/opt/qwt/lib -F/usr/local/opt/qwtpolar/lib -F/usr/local/opt/qca/lib -DGRASS_BASE=\"/usr/local/opt/grass7/grass-base\" -I/usr/local/opt/gettext/include -fPIC -std=gnu++11 -MD -MT src/plugins/grass/7/CMakeFiles/grassplugin7.dir//qgsgrassplugin.cpp.o -MF src/plugins/grass/7/CMakeFiles/grassplugin7.dir//qgsgrassplugin.cpp.o.d -o src/plugins/grass/7/CMakeFiles/grassplugin7.dir//qgsgrassplugin.cpp.o -c ../src/plugins/grass/qgsgrassplugin.cpp ninja: build stopped: subcommand failed.

Thanks in advance for your help!

dakcarto commented 7 years ago

Hi @phborba, thanks for reporting, and good to hear from you again!

Something is off here, as Qt*.framework/Headers/*.h should not be throwing any compilation errors. They shouldn't even be reporting warnings, as they are added with -isystem to clang.

I'm guessing that you have something defined in your shell's environment that is causing issues. Try using a clean default shell.


Please provide Troubleshooting logs.

Also note that the compilation error may be missing from any uploaded brew gits-logs. See: Finding-a-parallel-job-compilation-error

phborba commented 7 years ago

@dakcarto hey thanks once more for your attention! I have just given up on my system and I have uninstalled everything homebrew has installed and I am trying once more. I'll keep you posted of my install attempts. Sorry for the long log, from now on I'll create gist-logs =]

phborba commented 7 years ago

Done! It worked from a fresh homebrew! Thanks @dakcarto , now I'll close this issue