I am trying to build Qt on the Mac with the -universal flag specified, but it fails. What's wrong?

If you are building Qt on a PowerPC you need to specify the sdk path as well
as the universal flag because the default libraries installed on Tiger do not
include Intel, i.e:

  1. -universal -sdk /path/to/MacOSX10.4u.sdk

If you don’t specify the sdk path on a PowerPC then it will fail giving a
warning like:

  1. /usr/lib/gcc/i686-apple-darwin8/4.0.1/libstdc++.dylib does not
  2. contain an architecture that matches the specified -arch flag: i386

You also need to specify the sdk in the .pro file when you are building your
application. Add:

  1. QMAKE_SDK_PATH = /path/to/MacOSX10.4u.sdk

No comments

Write a comment

Sorry, you must be logged in to post a comment.