title: Forcing a Qt "Hello World" app to build 32 bit - harder than it seems
body: <p>Xcode 5.0.1, Mac OS 10.9, Trying to use Qt-Creator 3.0 beta.</p>
  
  <p>I need to use Qt 5.2 with a 32 bit third party library, so I want Qt and my App to be 32 bit. Yes, I know it's 2013... But I have no choice in the matter for now.</p>
  
  <p>I built Qt 5.2 (beta) with the following, did "make" and "make install". All fine.</p>
  
  <pre><code>./configure -debug-and-release -commercial -confirm-license -nomake examples -platform macx-clang-32 -arch x86 -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql  -no-sql-symbian -no-sql-symsql -no-sql-tds  -prefix ~/dev/qt5
  </code></pre>
  
  <p>Now I wanted to test Qt 5.2 by building a simple "Hello World" application. But even tough my Qt is built for 32 bit, and even though the Qt Versions and Kits are set, and I'm using "Clang (x86 32 bit in /usr/bin) as my compiler, I am getting link errors as if my "hello world" application is being built for x86_64.</p>
  
  <p>First I'm getting warnings:</p>
  
  <pre><code>"...QtGui.framework/QtGui, file was built for i386 which is not the architecture being linked (x86_64)...   QtWidgets.framework/QtWidgets, file was built for i386 which is not the architecture being linked (x86_64)...... etc"
  </code></pre>
  
  <p>Then I'm getting the errors themselves:</p>
  
  <pre><code>Undefined symbols for architecture x86_64:
    "qt_assert(char const*, char const*, int)", referenced from:
        QScopedPointer&lt;QObjectData, QScopedPointerDeleter&lt;QObjectData&gt; &gt;::operator-&gt;() const in moc_mainwindow.o
    "QArrayData::deallocate(QArrayData*, unsigned long, unsigned long)", referenced from:
        QTypedArrayData&lt;unsigned short&gt;::deallocate(QArrayData*) in mainwindow.o
    "QStatusBar::QStatusBar(QWidget*)", referenced from:
        Ui_MainWindow::setupUi(QMainWindow*) in mainwindow.o
    "QMainWindow::addToolBar(QToolBar*)", referenced from: ..... etc
  </code></pre>
  
  <p>I tried adding this into my *.Pro file:</p>
  
  <pre><code>CONFIG += qt x86
  CONFIG -= x86_64
  </code></pre>
  
  <p>But it still tries to build X86_64.</p>
  
  <p>How can I force my hello-world application to build for 32 bits and be compatible with the 32 bit Qt framework I've built?</p>
  
  <p>Thanks.</p>