View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010137ParaViewBugpublic2010-01-13 15:352010-04-20 19:31
ReporterEric Monson 
Assigned ToDavid Partyka 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionDevelopment 
Target VersionFixed in Version3.8 
Summary0010137: Qt Widgets library link fails with Cocoa and CVS CMake
DescriptionWhen 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...)
TagsNo tags attached.
Project
Topic Name
Type
Attached Files

 Relationships

  Notes
(0020109)
David Partyka (developer)
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 (manager)
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.

 Issue History
Date Modified Username Field Change
2010-01-13 15:35 Eric Monson New Issue
2010-04-09 10:17 David Partyka Status backlog => tabled
2010-04-09 10:17 David Partyka Assigned To => David Partyka
2010-04-09 10:21 David Partyka Note Added: 0020109
2010-04-09 10:21 David Partyka Status tabled => @80@
2010-04-09 10:21 David Partyka Fixed in Version => 3.8
2010-04-09 10:21 David Partyka Resolution open => fixed
2010-04-20 19:31 Alan Scott Note Added: 0020318
2010-04-20 19:31 Alan Scott Status @80@ => closed


Copyright © 2000 - 2018 MantisBT Team