[Qgis-user] 2.10 Build error on OSX

Pieter du Plooy pjduplooy at zpanelcp.com
Tue Aug 18 07:09:08 PDT 2015


Hi guys

I get the following error while building 2.10 on OSX with Homebrew:

[ 51%] Building CXX object
src/providers/grass/6/CMakeFiles/qgisgrass6.dir/__/qgsgrassdatafile.cpp.o
cd
/tmp/qgis-21020150818-13516-6fgnoh/QGIS-final-2_10_1/build/src/providers/grass/6
&& /usr/local/Library/ENV/4.3/clang++   -DQT_CORE_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_SQL_LIB
-DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_XML_LIB -DWITH_QTWEBKIT
-Dqgisgrass6_EXPORTS -I'/usr/local/opt/gettext/include'
-F/usr/local/opt/qt/lib  -DSPATIALITE_VERSION_GE_4_0_0
-DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -std=c++11
-Wno-error=c++11-narrowing -Wall -Wextra -Wno-long-long -Wformat-security
-Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual
-Qunused-arguments -fPIC -isystem /usr/local/Cellar/qt/4.8.7/include
-iframework /usr/local/Cellar/qt/4.8.7/lib -isystem
/usr/local/Cellar/qt/4.8.7/include/QtSvg -isystem
/usr/local/Cellar/qt/4.8.7/include/QtWebKit -isystem
/usr/local/Cellar/qt/4.8.7/include/QtGui -isystem
/usr/local/Cellar/qt/4.8.7/include/QtXml -isystem
/usr/local/Cellar/qt/4.8.7/include/QtSql -isystem
/usr/local/Cellar/qt/4.8.7/include/QtNetwork -isystem
/usr/local/Cellar/qt/4.8.7/lib/QtCore.framework/Headers
-I/tmp/qgis-21020150818-13516-6fgnoh/QGIS-final-2_10_1/build
-I/tmp/qgis-21020150818-13516-6fgnoh/QGIS-final-2_10_1/src/providers/grass/../../core
-I/tmp/qgis-21020150818-13516-6fgnoh/QGIS-final-2_10_1/src/providers/grass/../../core/geometry
-I/tmp/qgis-21020150818-13516-6fgnoh/QGIS-final-2_10_1/src/providers/grass/../../core/raster
-I/tmp/qgis-21020150818-13516-6fgnoh/QGIS-final-2_10_1/src/providers/grass/../../gui
-I/usr/local/include -I/usr/local/Cellar/postgresql/9.4.4/include
-I/tmp/qgis-21020150818-13516-6fgnoh/QGIS-final-2_10_1/build/src/providers/grass
-I/usr/local/opt/grass-64/grass-6.4.4/include
-I/tmp/qgis-21020150818-13516-6fgnoh/QGIS-final-2_10_1/build/src/providers/grass/6
-DCORE_EXPORT= -DGUI_EXPORT= -DPYTHON_EXPORT= -DANALYSIS_EXPORT=
-DAPP_EXPORT= -DCUSTOMWIDGETS_EXPORT= -DSERVER_EXPORT=
-DGRASS_BASE=\"/usr/local/opt/grass-64/grass-6.4.4\"
"-DGRASS_LIB_EXPORT=__attribute__ ((visibility (\"default\")))"
"-DGRASS_EXPORT=" -o CMakeFiles/qgisgrass6.dir/__/qgsgrassdatafile.cpp.o -c
/tmp/qgis-21020150818-13516-6fgnoh/QGIS-final-2_10_1/src/providers/grass/qgsgrassdatafile.cpp
/tmp/qgis-21020150818-13516-6fgnoh/QGIS-final-2_10_1/src/providers/grass/qgsgrassdatafile.cpp:76:7:
error: unknown type name 'fd_set'
      fd_set readFds;
      ^
/tmp/qgis-21020150818-13516-6fgnoh/QGIS-final-2_10_1/src/providers/grass/qgsgrassdatafile.cpp:78:22:
error: variable has incomplete type 'struct timeval'
      struct timeval tv;
                     ^
/tmp/qgis-21020150818-13516-6fgnoh/QGIS-final-2_10_1/src/providers/grass/qgsgrassdatafile.cpp:78:14:
note: forward declaration of 'timeval'
      struct timeval tv;
             ^
2 errors generated.
make[2]: ***
[src/providers/grass/6/CMakeFiles/qgisgrass6.dir/__/qgsgrassdatafile.cpp.o]
Error 1
make[1]: *** [src/providers/grass/6/CMakeFiles/qgisgrass6.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


While doing a search on google, I found that that came up with the guys
over at macports as well.

Any ideas.

I am using the download from QGIS website (2.10.1), and not the github
master.

Pieter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150818/d959b819/attachment.html>


More information about the Qgis-user mailing list