I am "pretty sure" carbon/cocoa are switched on/off by whatever QT tells VTK to use: (VTK/CMakeLists:306) If this logic is not working correctly please let me know.<div><br></div><div><div>IF(VTK_USE_QT)</div><div>
# Now require Qt 4.5.0 or later</div><div> SET(QT_MIN_VERSION "4.5.0")</div><div> SET(QT_OFFICIAL_VERSION "4.5")</div><div> SET(QT_REQUIRED TRUE)</div><div> SET(QT_USE_QTSQL 1)</div><div> FIND_PACKAGE(Qt4)</div>
<div> IF(NOT QT4_FOUND)</div><div> MESSAGE(SEND_ERROR "Qt ${QT_MIN_VERSION} or greater not found. Please check the QT_QMAKE_EXECUTABLE variable.")</div><div> ELSE(NOT QT4 FOUND)</div><div> # enforce Carbon or Cocoa in VTK for Qt/Mac</div>
<div> IF(Q_WS_MAC)</div><div> IF(QT_MAC_USE_COCOA)</div><div> SET(VTK_USE_CARBON OFF CACHE BOOL "Build VTK with Carbon" FORCE)</div><div> SET(VTK_USE_COCOA ON CACHE BOOL "Build VTK with Cocoa" FORCE)</div>
<div> ELSE(QT_MAC_USE_COCOA)</div><div> SET(VTK_USE_CARBON ON CACHE BOOL "Build VTK with Carbon" FORCE)</div><div> SET(VTK_USE_COCOA OFF CACHE BOOL "Build VTK with Cocoa" FORCE)</div>
<div> ENDIF(QT_MAC_USE_COCOA)</div><div> ENDIF(Q_WS_MAC)</div><div> ENDIF(NOT QT4_FOUND)</div><div>ENDIF(VTK_USE_QT)</div><br><div class="gmail_quote">On Tue, Apr 13, 2010 at 10:47 AM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Not sure about the X11 part but you would definitely want to set VTK_USE_CARBON=OFF and VTK_USE_COCOA=ON in the CMakeCache for VTK, how ever you need to do this with ExternalProject_add(). I would think that it should "just work".<br>
<br>
___________________________________________________________<br>
Mike Jackson <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software Dayton, Ohio<div class="im"><br>
<br>
<br>
On Apr 13, 2010, at 10:19 AM, kent williams wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've descended into a confusing morass of complicated CMake macros,<br>
and I need help getting out!<br>
<br>
The situation is this: I didn't have much trouble building VTK with<br>
QT as long as I stuck with Carbon. Now I'm running into some serious<br>
problems (phantom dependencies on X11 libraries, for starters) when I<br>
try to use QT/Cocoa -- which is necessary, according to my boss, to<br>
build on OS X 10.6.<br>
<br>
So does anyone have a successful example of building VTK against QT<br>
using ExternalProject?<br>
2<br>
</blockquote>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br></div>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><div class="im"><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</div><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>