[CMake] CMake QT4 toolbar icons disappear

James Sutherland James.Sutherland at utah.edu
Fri Jul 29 12:58:02 EDT 2011


I have the following in my CMakeLists.txt:

  install( DIRECTORY "${QT_PLUGINS_DIR}/imageformats"
    DESTINATION ${plugin_dest_dir}/plugins
    COMPONENT Runtime
    )

This results in the appropriate libraries (libqtiff.dylib included) being
installed in my app bundle at
  Contents/MacOS/plugins/imageformats

Then I have this:

  install( CODE "
    file(GLOB_RECURSE QTPLUGINS

\"\${CMAKE_INSTALL_PREFIX}/${plugin_dest_dir}/plugins/imageformats/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
    include(BundleUtilities)
    fixup_bundle( \"${APPS}\"
                  \"\${QTPLUGINS}\"
                  \"${DIRS}\")
    " COMPONENT Runtime
    )

Is it obvious what I am missing?
I double checked that the QTPLUGINS variable above does, in fact, contain
the appropriate shared libraries.  But "fixup_bundle" is entirely mysterious
to me...

James



On Fri, Jul 29, 2011 at 10:14 AM, David Cole <david.cole at kitware.com> wrote:

> Probably qtiff4 ...
>
> You can see the available ones in your Qt build tree at
> "plugins/imageformats"
>
>
> On Fri, Jul 29, 2011 at 12:10 PM, James Sutherland
> <James.Sutherland at utah.edu> wrote:
> > The icons are all *.tif images.
> > Would that require a plugin?  Do you happen to know what one?
> > James
> >
> > On Thu, Jul 28, 2011 at 9:33 PM, clinton at elemtech.com <
> clinton at elemtech.com>
> > wrote:
> >>
> >> Sounds like your icons are in a format supported by a plugin, and the
> >> installation has missing that plugin.
> >>
> >> Clint
> >>
> >> ----- Reply message -----
> >> From: "James Sutherland" <James.Sutherland at utah.edu>
> >> Date: Thu, Jul 28, 2011 8:01 pm
> >> Subject: [CMake] CMake QT4 toolbar icons disappear
> >> To: "cmake" <cmake at cmake.org>
> >>
> >> I have a QT4 application that I am building via CMake.
> >> In the build directory where the "local" application is built, it works
> >> fine.
> >> In the install directory, that application is missing all toolbar icons
> >> when it runs (but is otherwise functional).
> >> Any ideas what could be causing this?  It must have something to do with
> >> the installation process I guess?
> >> FWIW, I followed the example code at the link
> >> on http://www.vtk.org/Wiki/BundleUtilitiesExample
> >> James
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the CMake FAQ at:
> >> http://www.cmake.org/Wiki/CMake_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.cmake.org/mailman/listinfo/cmake
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> > http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110729/d86ecd41/attachment.htm>


More information about the CMake mailing list