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

Allen Winter allen.winter at kdab.com
Thu May 28 22:47:44 CEST 2015


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



-- 
Allen Winter | allen.winter at kdab.com | Senior Software Engineer
KDAB (USA) LLC, a KDAB Group company
Tel. USA +1-866-777-KDAB(5322) ext3
KDAB - The Qt Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5905 bytes
Desc: not available
URL: <http://mail.kdab.com/pipermail/gammaray-interest/attachments/20150528/7b02e693/attachment.p7s>


More information about the Gammaray-interest mailing list