[Gammaray-interest] Fwd: building GammaRay on OS X

René J.V. Bertin rjvbertin at gmail.com
Thu May 28 23:07:25 CEST 2015


On Thursday May 28 2015 16:47:44 Allen Winter wrote:

> 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..

Yes, I'd expect the opposite effect to arise if you have VTK built for Qt4 and try to build the Qt5 probe.
> 
> looking at the bottom of /usr/lib64/cmake/vtk/VTKConfig.cmake I see:
> SET(VTK_QT_VERSION "4")

Mine says "5" instead. Figures.

> 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

The question is if you can do that without finding the package first, which will still mess up the Qt settings if they don't match?

> oh, another trick you can use to turnoff VTK is
> passing -DCMAKE_DISABLE_FIND_PACKAGE_VTK=True to cmake

Now that's a nice trick, thanks! Does that work for any package?

René


More information about the Gammaray-interest mailing list