Bug report #16032
Updated by matteo ghetta over 5 years ago
Building qgis 2.18.2, I get the error
<pre>
python/core/sip_corepart0.cpp:18732:28: error: ‘QGeoSatelliteInfo’ was not declared in this scope
</pre>
A quick workaround is to comment out the line
<pre>
%Include gps/qgsqtlocationconnection.sip
</pre>
in the file
<pre>
src/core/qgis.h
</pre>
(patch attached).
For information, my complete build command:
<pre>
mkdir build
cd build
_pyqt4_sip_dir="/usr/share/sip/PyQt4"
cmake -G "Unix Makefiles" ../ \\
-DCMAKE_INSTALL_PREFIX=/usr \\
-DQGIS_MANUAL_SUBDIR=share/man \\
-DENABLE_TESTS=FALSE \\
-DCMAKE_SKIP_RPATH=TRUE \\
-DPYTHON_EXECUTABLE=/usr/bin/python2 \\
-DWITH_INTERNAL_{DATEUTIL,FUTURE,HTTPLIB2,JINJA2,NOSE2,OWSLIB,PYGMENTS,PYTZ,QWTPOLAR,SIX,WEBKIT_BINDINGS,YAML}=OFF \\
-DWITH_INTERNAL_{QEXTSERIALPORT}=ON \\
-DPYQT4_SIP_DIR="${_pyqt4_sip_dir}" \\
-DWITH_SERVER=ON \\
-DWITH_GLOBE=ON \\
-DWITH_SERVER=ON \\
-DWITH_GLOBE=ON \\
-DWITH_GRASS=OFF \\
-DWITH_GRASS7=ON \\
-DGRASS_PREFIX7=/opt/grass \\
-DWITH_APIDOC=OFF \\
-DWITH_ASTYLE=OFF \\
-DWITH_BINDINGS=ON \\
-DWITH_CUSTOM_WIDGETS=ON \\
-DWITH_DESKTOP=ON \\
-DWITH_ORACLE=OFF \\
-DWITH_POSTGRESQL=ON \\
-DWITH_PYSPATIALITE=ON \\
-DWITH_QSPATIALITE=ON \\
-DWITH_QTMOBILITY=ON \\
-DWITH_QTWEBKIT=ON \\
-DWITH_QWTPOLAR=ON \\
-DWITH_STAGED_PLUGINS=ON \\
-DWITH_TOUCH=ON \\
-DWITH_TXT2TAGS_PDF=OFF \\
msg "Applying a dirty fix for a configuration system error ..."
sed -i "s| /usr/share/sip | ${_pyqt4_sip_dir} |" python/CMakeFiles/{python_module_qgis__analysis,python_module_qgis__gui,python_module_qgis__server,generate_sip_qgis._analysis_cpp_files,python_module_qgis__core,generate_sip_qgis._core_cpp_files,generate_sip_qgis._gui_cpp_files,generate_sip_qgis._networkanalysis_cpp_files,python_module_qgis__networkanalysis}.dir/build.make
make
</pre>
<pre>
python/core/sip_corepart0.cpp:18732:28: error: ‘QGeoSatelliteInfo’ was not declared in this scope
</pre>
A quick workaround is to comment out the line
<pre>
%Include gps/qgsqtlocationconnection.sip
</pre>
in the file
<pre>
src/core/qgis.h
</pre>
(patch attached).
For information, my complete build command:
<pre>
mkdir build
cd build
_pyqt4_sip_dir="/usr/share/sip/PyQt4"
cmake -G "Unix Makefiles" ../ \\
-DCMAKE_INSTALL_PREFIX=/usr \\
-DQGIS_MANUAL_SUBDIR=share/man \\
-DENABLE_TESTS=FALSE \\
-DCMAKE_SKIP_RPATH=TRUE \\
-DPYTHON_EXECUTABLE=/usr/bin/python2 \\
-DWITH_INTERNAL_{DATEUTIL,FUTURE,HTTPLIB2,JINJA2,NOSE2,OWSLIB,PYGMENTS,PYTZ,QWTPOLAR,SIX,WEBKIT_BINDINGS,YAML}=OFF \\
-DWITH_INTERNAL_{QEXTSERIALPORT}=ON \\
-DPYQT4_SIP_DIR="${_pyqt4_sip_dir}" \\
-DWITH_SERVER=ON \\
-DWITH_GLOBE=ON \\
-DWITH_SERVER=ON \\
-DWITH_GLOBE=ON \\
-DWITH_GRASS=OFF \\
-DWITH_GRASS7=ON \\
-DGRASS_PREFIX7=/opt/grass \\
-DWITH_APIDOC=OFF \\
-DWITH_ASTYLE=OFF \\
-DWITH_BINDINGS=ON \\
-DWITH_CUSTOM_WIDGETS=ON \\
-DWITH_DESKTOP=ON \\
-DWITH_ORACLE=OFF \\
-DWITH_POSTGRESQL=ON \\
-DWITH_PYSPATIALITE=ON \\
-DWITH_QSPATIALITE=ON \\
-DWITH_QTMOBILITY=ON \\
-DWITH_QTWEBKIT=ON \\
-DWITH_QWTPOLAR=ON \\
-DWITH_STAGED_PLUGINS=ON \\
-DWITH_TOUCH=ON \\
-DWITH_TXT2TAGS_PDF=OFF \\
msg "Applying a dirty fix for a configuration system error ..."
sed -i "s| /usr/share/sip | ${_pyqt4_sip_dir} |" python/CMakeFiles/{python_module_qgis__analysis,python_module_qgis__gui,python_module_qgis__server,generate_sip_qgis._analysis_cpp_files,python_module_qgis__core,generate_sip_qgis._core_cpp_files,generate_sip_qgis._gui_cpp_files,generate_sip_qgis._networkanalysis_cpp_files,python_module_qgis__networkanalysis}.dir/build.make
make
</pre>