[Gammaray-interest] Fwd: building GammaRay on OS X
Kevin Funk
kevin.funk at kdab.com
Fri May 29 09:34:34 CEST 2015
On Friday 29 May 2015 08:52:39 Volker Krause wrote:
> On Thursday 28 May 2015 16:47:44 Allen Winter wrote:
> > On Thursday, May 28, 2015 10:11:47 PM René J.V. Bertin wrote:
> > > On Thursday May 28 2015 11:14:54 Volker Krause wrote:
> > >
> > > Hi,
> > >
> > > > Yep, GAMMARAY_PROBE_ONLY_BUILD.
> > >
> > > That seems to work, but I had to remove the whole VTK-scanning section
> > > from the toplevel Makefile to be able to build the Qt4 probe with
> > > GammaRay and VTK built and installed for Qt5. It looks like VTK's
> > > CMakeFiles set and export flags that signal that Qt5 has been found. I'm
> > > not sure if there's an elegant way to get around that (move the VTK
> > > section to before the Qt section?) other than unsetting all the
> > > offending
> > > Qt5 flags if ENFORCE_QT4 is true. If the probe itself doesn't link to
> > > VTK
> > > you could probably skip the VTK section if PROBE_ONLY_BUILD is set?
> >
> > interesting. we had a similar bug report recently for a Windows build
> > that
> > got hit by the VTK stuff. but I think he had the opposite; ie. if VTK is
> > found then a Qt4 build was forced..
> >
> > looking at the bottom of /usr/lib64/cmake/vtk/VTKConfig.cmake I see:
> > SET(VTK_QT_VERSION "4")
> >
> > seems we need to check VTK_QT_VERSION in our top-level CMakeLists.txt
> > then.
> > if building with qt5 and VTK_QT_VERSION is 4, then we turn-off vtk support
> > and vice-versa
> >
> > oh, another trick you can use to turnoff VTK is
> > passing -DCMAKE_DISABLE_FIND_PACKAGE_VTK=True to cmake
>
> Considering VTK keeps causing confusion and build issues, for a very very
> niche Qt4-only feature, how about we disable that by default in general?
>
> Kevin, would you be ok with that?
Sure. Considering it's a not-so-useful feature anyway => Go for it!
Cheers
> regards,
> Volker
--
Kevin Funk | kevin.funk at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7021 bytes
Desc: not available
URL: <http://mail.kdab.com/pipermail/gammaray-interest/attachments/20150529/3b483c4e/attachment.p7s>
More information about the Gammaray-interest
mailing list