[PATCH] Mac OS X application icon support

Benjamin Reed rangerrick at gmail.com
Mon Feb 11 07:40:20 CET 2008

On Dec 30, 2007 6:30 AM, Ralf Habacker <ralf.habacker at freenet.de> wrote:

> >> Would appreciate the patch in KDE 4.0, otherwise, KDE apps will look sad
> >> in the OS X dock.
> >>
> >>
> > Go ahead.
> >
> >
> It is checked in.

I was just doing a kde trunk build, and it appears there's something
wrong with the app icon stuff (at least, with cmake 2.4.8):

[ 75%] Built target kalgebra
[100%] Built target calgebra
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing /Users/ranger/cvs/kdemac/kdeedu/root/opt/kde4/lib/libanalitza.dylib
-- Installing /Users/ranger/cvs/kdemac/kdeedu/root/opt/kde4/bin/kalgebra.app
-- Installing /Users/ranger/cvs/kdemac/kdeedu/root/opt/kde4/bin/kalgebra.app/Contents
-- Installing /Users/ranger/cvs/kdemac/kdeedu/root/opt/kde4/bin/kalgebra.app/Contents/Info.plist
-- Installing /Users/ranger/cvs/kdemac/kdeedu/root/opt/kde4/bin/kalgebra.app/Contents/MacOS
-- Installing /Users/ranger/cvs/kdemac/kdeedu/root/opt/kde4/bin/kalgebra.app/Contents/MacOS/kalgebra
-- Installing /Users/ranger/cvs/kdemac/kdeedu/root/opt/kde4/share/applications/kde4/kalgebra.desktop
CMake Error: Error in cmake code at
FILE INSTALL cannot find file
to install.
Current CMake stack:
[2]	/Users/ranger/rcs/kdemac/compile.build/kdeedu/kalgebra/src/cmake_install.cmake
[1]	/Users/ranger/rcs/kdemac/compile.build/kdeedu/kalgebra/cmake_install.cmake

...the specification in the kalgebra CMakeLists.txt looks like this:


...if I try to add this to KDE4Macros.cmake:

message(STATUS "Found icon ${_icon} (${_outfilename}.icns)")
# Append the icns file to the sources list so it will be a dependency to the
# main target
list(APPEND ${appsources} ${_outfilename}.icns)

foreach(as ${appsources})
  message(STATUS "as = ${as}")

...the cmake build says:

-- Found icon /Users/ranger/rcs/kdemac/source.build/kdeedu/kalgebra/src/../icons/hi128-app-kalgebra.png
-- as = kalgebra_SRCS

Which, unless I'm misusing/misunderstanding foreach, it's giving me
the name of the list specified in CMakeLists.txt, not a list.

Any ideas what's going wrong?

Benjamin Reed a.k.a. Ranger Rick
Fink, KDE, and Mac OS X development

More information about the Kde-buildsystem mailing list