I'm trying to build an app on MacOS X 10.6, that compiled fine on 10.5. When using the same Qt as on 10.5, I get:

Qt Code:
  1. /Users/maroy/src/tools/usr/include/QtGui/qregion.h: In member function 'OpaqueRgnHandle* QRegion::handle(bool) const':
  2. /Users/maroy/src/tools/usr/include/QtGui/qregion.h:159: error: 'toQDRgn' was not declared in this scope
To copy to clipboard, switch view to plain text mode 

so I downloaded Qt 4.6 pr1, compiled it - and now I get:

Qt Code:
  1. /Users/maroy/src/tools/usr/include/QtCore/qglobal.h:288:2: error: #error "You are building a 64-bit application, but using a 32-bit version of Qt. Check your build configuration."
  2. In file included from /Users/maroy/src/tools/usr/include/QtGui/qevent.h:47,
To copy to clipboard, switch view to plain text mode 

(and also the same error as above)

I just built Qt 4.6 from the source tarball, and I sort of expected it to 'just work'

what am I doing wrong?