Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. To build Universal Application using Qt4.6 on SnowLeopard!
Forum Updated to NodeBB v4.3 + New Features

To build Universal Application using Qt4.6 on SnowLeopard!

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 1.9k 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.
  • N Offline
    N Offline
    nehaR
    wrote on last edited by
    #1

    Hi,

    I am using Qt4.6 on my mac snowleopard(10.6) machine. When I installed static Qt on SnowLeopard and try to build Universal Application , then it gives lots of errors if I commment "CONFIG+=x86 ppc x86_64 ppc64" then it works fine but my Application is Intel based not ppc. How to make universal Application using snowleopard.

    I think Power PC supports till Mac OS 10.5.

    Is there any way that I can define some conditions/Macros in pro file that for Mac OS 10.5 and below it consider "CONFIG+=x86 ppc x86_64 ppc64" and for above version than leopard it wont consider ppc support.

    Regards,
    Neha

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rcari
      wrote on last edited by
      #2

      You most probably have linking errors because there are missing symbols for some architectures. First you have to build your own Qt version specifying your targeted architectures (you need to make your Qt binaries universal first!). The latest Qt binaries only ship i386 and x86_64, so you'll have to add ppc and ppc64.
      Moreover make sure that you are compiling against the Mac OS 10.5 SDK and make sure that you use GCC 4.0, not 4.2 as Apple has broken ABI compatibility between the C++ runtime for GCC 4.2 on Mac OS 10.6 and Mac OS 10.5 (simply explained any program compiled with GCC 4.2 on Mac OS 10.6 can potentially crash on Mac OS 10.5, which is not the case if it was compiled using GCC 4.0).

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        Please have a look at the forum tabs results of this "search":/search?search=ppc+x86_64, it's very likely that those threads contain a solution for your problem already.

        If you want to deploy to 10.5, you'll probably need to build Qt manually, the prebuilt binaries won't be sufficient.

        http://www.catb.org/~esr/faqs/smart-questions.html

        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