Changes between Initial Version and Version 1 of Ticket #46853, comment 3


Ignore:
Timestamp:
May 26, 2015, 7:57:31 AM (9 years ago)
Author:
RJVB (René Bertin)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #46853, comment 3

    initial v1  
    11If you add Qt support via variants, they typically need to be mutually exclusive, and this port is no exception from what I can see.
     2
     3I haven't looked at the source code layout, but if you would like to offer both Qt4 and Qt5 support (plugins or however VTK integrates this; something I would encourage you to investigate based on my own work on co-installable Qt ports), you could try making subports. This *might* work like follows:
     4
     5- the main port takes care not to include Qt support.
     6- Qt4 subport calls cmake with the appropriate flags in the TLD, and then invokes make in the qt4 (or qt-specific) subdirectory. Installing will be done from that same directory.
     7- Qt5 subport calls cmake with the appropriate flags in the TLD, and then invokes make in the qt5 (or qt-specific) subdirectory. Installing will be done from that same directory.
     8
     9Given how cmake usually works, this will cause anything that the Qt4 or Qt5 support needs to be built, but not the whole VTK tree, which would take way too much time. And it'd only install the files that contain the Qt specific stuff.