[MacPorts] #53231: QGIS @2_18_2_2 build failure

classic Classic list List threaded Threaded
83 messages Options
12345
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by SiggyF):

 Replying to [comment:37 michaelld]:
 > I'm attaching a patch to fix the Qsci cmake issue. QGIS still doesn't
 build for me, even with all of the patches attached or noted here.

 This patch is also relevant for #53668. This same pattern should also be
 used for the qt5 version which is now called `libqscintilla2_qt5.dylib`.

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:40>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by fgassert):

 With the patches supplied here by Fabrice and Michael, I am able to get
 the build farther, but am still hitting an error with sip on Sierra
 10.12.3.

 {{{
 :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/gui/sip_guipart3.cpp:5968:7:
 error: deleted function '~sipQgsFileDownloader' cannot override a non-
 deleted function
 :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/gui/sip_guipart3.cpp:5968:30:
 error: base class '::QgsFileDownloader' has private destructor
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:41>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by Veence):

 So, I've that PORTFILE that pulls from HEAD and compiles 2.99 fine EXCEPT
 for a missing qgis_python.h file.
 Is anyone conversant with CMAKE to help me find the bug?

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:43>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by michaelld):

 Replying to [comment:43 Veence]:
 > So, I've that PORTFILE that pulls from HEAD and compiles 2.99 fine
 EXCEPT for a missing qgis_python.h file.
 > Is anyone conversant with CMAKE to help me find the bug?

 I do a lot of CMake & maybe can help out. Can you post your Portfile or a
 "git diff" of the port or a tarball of the port?

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:44>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by Veence):

 Thanks a bunch! Will do that in a short while. Hold on.

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:45>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by Veence):

 Ok, sorry. Can you get the Portfile I posted a while ago and try it? What
 outwits me is how the "qgis_python.h" file is generated.
 I see it in a few Cmake text files, but not in a way that would indicate a
 creation. I’m a bit baffled/flummoxed/nonplussed (pick the relevant one).

 Thanks a bunch

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:46>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by michaelld):

 You mean the tarball "QGIS_head.tgz"?

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:47>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------
Changes (by Veence):

 * status:  assigned => accepted


Comment:

 Replying to [comment:47 michaelld]:
 > You mean the tarball "QGIS_head.tgz"?
 Yup.
 You can substitute that one for your regular Portfile and see what
 happens.
 But no wait. I'm going to upload a fresh one with the correct Qscintilla
 library. Hold on.

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:48>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------
Changes (by Veence):

 * Attachment "qgis.tgz" added.

 Latest HEAD portfile

--
Ticket URL: <https://trac.macports.org/ticket/53231>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by Veence):

 Done

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:49>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by michaelld):

 OK; thx. I'll take a look over the weekend.

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:50>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by Veence):

 Thanks to ''you''! :)

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:51>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by michaelld):

 After some work on your Portfile, I can get the recently released 2.18.5
 to build. I can't get the current GIT master head to build, with the same
 issue as you encountered (no file "qgis_python.h"). I'm really not sure
 why you included the cmake and GitHub PortGroups without really using
 them, so I reenabled using them to simplify the Portfile. I'll look into
 the missing file situation a bit further before porting my updates, just
 in case it's an easy solution.

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:52>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by Veence):

 Fantastic. Let me know when you're ready, I'll commit your Portfile.
 Thanks a bunch again.

 (The Portfile I gave you was mainly experimental, that’s why I left a lot
 of cruft in it)

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:53>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by michaelld):

 Finally! Recent GIT master commits to QGIS allow it to build! But I have
 to fix some dependency ports first, because they don't handle SIP
 dependencies correctly .... grrr ... 2.18.5 does work as is, so maybe
 folks can find use in it. I'll attach my current Portfile for testing &
 work on getting these other commits in place for the devel version.

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:54>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------
Changes (by michaelld):

 * Attachment "qgis_Portfile" added.


--
Ticket URL: <https://trac.macports.org/ticket/53231>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------
Changes (by michaelld):

 * Attachment "qgis_Portfile" added.


--
Ticket URL: <https://trac.macports.org/ticket/53231>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by michaelld):

 Updated Portfile to fix conflicts. My bad on the bad variable name.

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:55>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------

Comment (by aaschwanden):

 Thank you guys for all your efforts, I'm now (almost) able to build QGIS
 using python 3.5 instead of 3.6 as in the above port file. I don't know if
 its related to my choice of the python version, but I get


 {{{
 :info:configure -- Ctest Binary Directory set to:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/build/output/bin
 :info:configure -- Configuring incomplete, errors occurred!
 :info:configure See also
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/build/CMakeFiles/CMakeOutput.log".

 }}}

 I'll attach the main.log, I can't make much sense of it.

 I assume it will not be possible to build QGIS 2.8.15 with python 2.7
 instead? (I know that QGIS 3 will require python at QT5). There are still
 way too many python modules that are not python 3 compatible that I use on
 a daily basis (e.g. the PETSc build system, dolfin, ocgis), so making the
 switch to python 3 will be hard.

--
Ticket URL: <https://trac.macports.org/ticket/53231#comment:56>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53231: 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')

MacPorts
In reply to this post by MacPorts
#53231: 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')
-----------------------+----------------------
  Reporter:  gcarlino  |      Owner:  Veence
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------
Changes (by aaschwanden):

 * Attachment "main.2.log" added.


--
Ticket URL: <https://trac.macports.org/ticket/53231>
MacPorts <https://www.macports.org/>
Ports system for macOS
12345