[CMake] Problem with QtTest Bundle Utility Example?

Clinton Stimpson clinton at elemtech.com
Fri Mar 12 15:42:09 EST 2010


The warnings come from the Qt plugins being compiled as shared libraries 
instead of modules.  As shared libraries, the first line refers to itself.

So I think the fix is to modify GetPrerequisites.cmake's 
function(get_prerequisites ...)
So if the first line returned from gp_tool matches the target, skip it.

That should fix the warnings and prevent the extra copies.

Clint

On Friday 12 March 2010 01:20:50 pm Bradley Lowekamp wrote:
> Hello,
> 
> I am trying run the QtTest-Package-Example from:
>  http://www.vtk.org/Wiki/BundleUtilitiesExample and I am getting some
>  errors on install.
> 
> I am running CMake 2.8, with Qt 4.6.2 Cocoa universal, on OSX 10.6.2.
> 
> During the fixup_bundle phase I am getting some error message and some
>  undesired behavior. It appears the qt plugin libraries are problematic.
>  Here is snipits of the output:
> 
> - Install configuration: ""
> -- Installing: ~/Downloads/QtTest/./install/./QtTest.app
> -- Installing: ~/Downloads/QtTest/./install/./QtTest.app/Contents
> -- Installing:
>  ~/Downloads/QtTest/./install/./QtTest.app/Contents/Info.plist --
>  Installing: ~/Downloads/QtTest/./install/./QtTest.app/Contents/MacOS --
>  Installing:
>  ~/Downloads/QtTest/./install/./QtTest.app/Contents/MacOS/QtTest --
>  Installing: ~/Downloads/QtTest/./install/./QtTest.app/Contents/Resources
>  -- Installing:
>  ~/Downloads/QtTest/./install/./QtTest.app/Contents/Resources/QtTest.icns
>  -- Installing:
>  ~/Downloads/QtTest/./install/QtTest.app/Contents/MacOS/plugins/imageformat
> s -- Installing:
>  ~/Downloads/QtTest/./install/QtTest.app/Contents/MacOS/plugins/imageformat
> s/libqgif.dylib -- Installing:
>  ~/Downloads/QtTest/./install/QtTest.app/Contents/MacOS/plugins/imageformat
> s/libqico.dylib -- Installing:
>  ~/Downloads/QtTest/./install/QtTest.app/Contents/MacOS/plugins/imageformat
> s/libqjpeg.dylib -- Installing:
>  ~/Downloads/QtTest/./install/QtTest.app/Contents/MacOS/plugins/imageformat
> s/libqmng.dylib -- Installing:
>  ~/Downloads/QtTest/./install/QtTest.app/Contents/MacOS/plugins/imageformat
> s/libqsvg.dylib -- Installing:
>  ~/Downloads/QtTest/./install/QtTest.app/Contents/MacOS/plugins/imageformat
> s/libqtiff.dylib -- fixup_bundle
> --   app='./install/QtTest.app'
> --  
>  libs='~/Downloads/QtTest/./install/QtTest.app/Contents/MacOS/plugins/image
> formats/libqgif.dylib;~/Downloads/QtTest/./install/QtTest.app/Contents/MacO
> S/plugins/imageformats/libqico.dylib;~/Downloads/QtTest/./install/QtTest.ap
> p/Contents/MacOS/plugins/imageformats/libqjpeg.dylib;~/Downloads/QtTest/./i
> nstall/QtTest.app/Contents/MacOS/plugins/imageformats/libqmng.dylib;~/Downl
> oads/QtTest/./install/QtTest.app/Contents/MacOS/plugins/imageformats/libqsv
> g.dylib;~/Downloads/QtTest/./install/QtTest.app/Contents/MacOS/plugins/imag
> eformats/libqtiff.dylib' --   dirs=''
> -- fixup_bundle: preparing...
> 


More information about the CMake mailing list