MantisBT - ParaView
View Issue Details
0010137ParaViewBugpublic2010-01-13 15:352010-04-20 19:31
Eric Monson 
David Partyka 
normalminoralways
closedfixed 
Development 
3.8 
0010137: Qt Widgets library link fails with Cocoa and CVS CMake
When building ParaView with CVS CMake (at least 2.9.20100105 to today's) on Mac OS X (10.6.2) with Cocoa Qt (4.6.0), libpqWidgets won't link because the Cocoa framework is not explicitly added to the linker commands.

As Clinton Stimpson says, "FindQt4/UseQt don't put the extra dependencies in there anymore unless Qt is static. So if pqWidgets uses Cocoa, it needs to link against the Cocoa framework."

So, at line 198 in Qt/Widgets/CMakeLists.txt, something like this needs to be added to the if(APPLE) section:

  if(VTK_USE_COCOA)
    TARGET_LINK_LIBRARIES(pqWidgets "-framework Cocoa")
  endif(VTK_USE_COCOA)

(or using elseif, or whatever is standard...)
No tags attached.
Issue History
2010-01-13 15:35Eric MonsonNew Issue
2010-04-09 10:17David PartykaStatusbacklog => tabled
2010-04-09 10:17David PartykaAssigned To => David Partyka
2010-04-09 10:21David PartykaNote Added: 0020109
2010-04-09 10:21David PartykaStatustabled => @80@
2010-04-09 10:21David PartykaFixed in Version => 3.8
2010-04-09 10:21David PartykaResolutionopen => fixed
2010-04-20 19:31Alan ScottNote Added: 0020318
2010-04-20 19:31Alan ScottStatus@80@ => closed

Notes
(0020109)
David Partyka   
2010-04-09 10:21   
Fixed on HEAD and on the 3.8 branch

Committer: Dave Partyka <dave.partyka@kitware.com>
/cvsroot/ParaView3/ParaView3/Qt/Widgets/CMakeLists.txt,v <-- Widgets/CMakeLists.txt
new revision: 1.46; previous revision: 1.45

Committer: Dave Partyka <dave.partyka@kitware.com>
/cvsroot/ParaView3/ParaView3/Qt/Widgets/CMakeLists.txt,v <-- Widgets/CMakeLists.txt
new revision: 1.45.2.1; previous revision: 1.45
(0020318)
Alan Scott   
2010-04-20 19:31   
Trusting that it is fixed (since I don't have a Mac, and there are lots of folks that do, and I am sure will find it and complain).

Please reopen this bug if it is not fixed.