Bug report #11137
python/analysis/sipanalysispart1.cpp: too many initializers for ‘pyqt4ClassTypeDef
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Build/Install | ||
Affected QGIS version: | 2.2.0 | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | invalid |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 19465 |
Description
I'm getting a build failure in the 2.2 branch:
/usr/src/qgis/build/2.2/python/analysis/sipanalysispart1.cpp:314:1: error: too many initializers for ‘pyqt4ClassTypeDef {aka _pyqt4ClassTypeDef}’ }; ^ /usr/src/qgis/build/2.2/python/analysis/sipanalysispart1.cpp:576:1: error: too many initializers for ‘pyqt4ClassTypeDef {aka _pyqt4ClassTypeDef}’ ^ /usr/src/qgis/build/2.2/python/analysis/sipanalysispart1.cpp:1122:1: error: too many initializers for ‘pyqt4ClassTypeDef {aka _pyqt4ClassTypeDef}’ #line 4 "/usr/src/qgis/qgis-2.2/python/analysis/raster/qgsrastermatrix.sip" ^ /usr/src/qgis/build/2.2/python/analysis/sipanalysispart1.cpp:2456:1: error: too many initializers for ‘pyqt4ClassTypeDef {aka _pyqt4ClassTypeDef}’ #include <qgsrastercalculator.h> ^ /usr/src/qgis/build/2.2/python/analysis/sipanalysispart1.cpp:2690:1: error: too many initializers for ‘pyqt4ClassTypeDef {aka _pyqt4ClassTypeDef}’ #line 2696 "/usr/src/qgis/build/2.2/python/analysis/sipanalysispart1.cpp" ^ /usr/src/qgis/build/2.2/python/analysis/sipanalysispart1.cpp:2967:1: error: too many initializers for ‘pyqt4ClassTypeDef {aka _pyqt4ClassTypeDef}’ ^ /usr/src/qgis/build/2.2/python/analysis/sipanalysispart1.cpp:3470:1: error: too many initializers for ‘pyqt4ClassTypeDef {aka _pyqt4ClassTypeDef}’ make[2]: *** [python/CMakeFiles/python_module_qgis_analysis.dir/analysis/sipanalysispart1.cpp.o] Error 1
The cmake call had nothing to complain about:
-- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/lib/ccache/g++ -- Check for working CXX compiler: /usr/lib/ccache/g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- QGIS version: 2.2.0 Valmiera (20200) -- Could not find GRASS -- Looking for openpty -- Looking for openpty - not found -- Looking for openpty -- Looking for openpty - found -- Found Proj: /usr/lib/libproj.so -- Found GEOS: /usr/local/lib/libgeos_c.so -- Found GDAL: /usr/local/lib/libgdal.so (2.0.0dev) -- Found Expat: /usr/lib/x86_64-linux-gnu/libexpat.so -- Found Spatialindex: /usr/lib/x86_64-linux-gnu/libspatialindex.so -- Found Qwt: /usr/lib/libqwt.so (6.0.0-svn) -- Found Sqlite3: /usr/lib/x86_64-linux-gnu/libsqlite3.so -- Found PostgreSQL: /home/postgresql-9.3.4/lib/libpq.so -- Found SpatiaLite: /usr/lib/x86_64-linux-gnu/libspatialite.so -- Looking for gaiaDropTable in /usr/lib/x86_64-linux-gnu/libspatialite.so -- Looking for gaiaDropTable in /usr/lib/x86_64-linux-gnu/libspatialite.so - found -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found -- Found Qt4: /usr/bin/qmake (found suitable version "4.8.6", minimum required is "4.7.0") -- Found Qt version: 4.8.6 -- Touch support disabled -- Found QScintilla2: /usr/lib/libqscintilla2.so (2.8.1) -- Pedantic compiler settings enabled -- Debug output enabled -- Found PythonInterp: /usr/bin/python (found version "2.7.6") -- Found Python executable: /usr/bin/python -- Found Python version: 2.7.6 -- Found Python library: /usr/lib/x86_64-linux-gnu/libpython2.7.so -- Found SIP version: 4.15.5 -- Found PyQt4 version: 4.10.4 -- Found QScintilla2 PyQt4 module: 2.8.1 -- Found GSL: -L/usr/lib -lgsl -lgslcblas -lm -- Ctest Binary Directory set to: /usr/src/qgis/build/2.2/output/bin -- Configuring done -- Generating done -- Build files have been written to: /usr/src/qgis/build/2.2
History
#1 Updated by Sandro Santilli over 10 years ago
- Resolution set to invalid
- Status changed from Open to Closed
Installing "python-qt4-dev" package fixed the build issue for me.
I guess cmake should complain about the missing dependency.
Should I file another ticket for that ?
See also #11138