Opened 7 years ago

Closed 7 years ago

#53309 closed defect (duplicate)

QGIS @2_18_2_2: error: virtual function 'dataType' has a different return type ('int') than the function it overrides (which has return type 'QGis::DataType')

Reported by: paul0207 Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: Cc:
Port: QGIS

Description (last modified by ryandesign (Ryan Carsten Schmidt))

When I try to compile QGIS the installation fails with:

:info:build Exit code: 2
:error:build org.macports.build for port QGIS returned: command execution failed
:debug:build Error code: CHILDSTATUS 56716 2

After uninstalling all ports and MacPorts directories and reinstalling it the problem persists. I have attached the main.log file. Thanks.

Attachments (1)

main.log.zip (142.4 KB) - added by paul0207 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by paul0207

Attachment: main.log.zip added

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: Veence removed
Description: modified (diff)
Owner: set to Veence
Port: QGIS added; QGIS-2_18_2_2 removed
Status: newassigned
Summary: QGIS fails to compile with CHILDSTATUS error codeQGIS @2_18_2_2: error: virtual function 'dataType' has a different return type ('int') than the function it overrides (which has return type 'QGis::DataType')

Looks the error in the log is:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sip_corepart1.cpp:86260:9: error: virtual function 'dataType' has a different return type ('int') than the function it overrides (which has return type 'QGis::DataType')
:info:build     int dataType(int) const;
:info:build     ~~~ ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/../src/core/raster/qgsrasterprojector.h:101:20: note: overridden virtual function is here
:info:build     QGis::DataType dataType( int bandNo ) const override;
:info:build     ~~~~~~~~~~~~~~ ^

comment:2 Changed 7 years ago by Veence (Vincent)

Resolution: duplicate
Status: assignedclosed

Yeah, dup of #53231

Note: See TracTickets for help on using tickets.