Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] App Icon vanished after moving Qt 4.8.x and projects from Mac OS 10.6 to 10.7
Forum Updated to NodeBB v4.3 + New Features

[Solved] App Icon vanished after moving Qt 4.8.x and projects from Mac OS 10.6 to 10.7

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vadeva
    wrote on last edited by
    #1

    I have been developing Qt projects under Mac OS 10.6.x for two years. I use QtCreator IDE. Adding macx:ICON=<path_to_icon> to .pro file has always been enough to provide an icon for the resulting app (application bundle).

    However, after upgrading to Mac OS 10.7.3 (Lion) and installing new xCode I have found that although the Qt projects are successfully compiled and ran, application icon is never added.

    Eventually, Info.plist file and the icon are not copied into <compiled application>.app/Contents/Resources/. However, when looking through the automatically generated Makefile, I find all the directives intended to perform the copying.

    I have tried a standard workaround adding macx:QMAKE_INFO_PLIST = MyCustomInfo.plist into .pro file and writing the MyCustomInfo.plist manually. Unfortunately, it did not work.

    I have tried completely erasing and reinstalling xCode and Qt SDK (v1.2 with Qt 4.8.0 and v.1.2.1 with Qt 4.8.1). It did not help either.

    Did anybody face similar problems? Do you have any ideas where to look for solution?

    Thank you in advance for your suggestions...

    [UPDATE: THE ISSUE IS SOLVED]
    For some reason the icon was not added into Mac OS App if build was performed in a separate directory nested on the same level with .pro file. In case build is run in .pro file directory everything goes smooth. Despite Qt warnings when you build project in a directory nested above .pro file everything also goes O.K.

    Mac OS 10.7.3 (Lion), Qt 4.8.0, Qt 4.8.1

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved