title: QT building applications for arm linux
body: <p>I got a little confused when it comes to QT and cross compiling
  appliations for my arm-linux:</p>
  
  <p>So far I have a linux running on my AT91SAM9263-EK and an appropriate
  filessystem including QT libs build via buildroot.</p>
  
  <p>Also I have build QT-4.8 on my ubuntu.</p>
  
  <p>Now I want to build an example application:</p>
  
  <ol>
  <li><p>I created a makefile in an examples folder in QT on my ubuntu using
  qmake; I used the given qmake.conf in mkspecs/qws/linux-arm-g++.</p></li>
  <li><p>when executing make I get an error because it includes qatomic_i386.h
  and the message "error: impossible constraint in 'asm'".
  this header file does obviously not match to my arm toolchain.</p></li>
  </ol>
  
  <p>my question:
  how to configure Qt on my ubuntu to build Qt binaries for my embedded linux
  on arm? Do I need to include any libs build by the arm toolchain?</p>
  
  <p>any help is appreciated!</p>
  
  <p>regards</p>
  
  <p>EDIT:
  I use the -spec flag and pass the path to "mkspecs/qws/arm-linux-g++" where a "qmake.conf" is located. I did not change anything in here because I dont know wich qmake variable are relevant to link to my arm related libs.
  So the right compiler is used, which I could verify when the make process starts. But I observed that in a config file called qconfig.h there is an ARCH flag which is set to i386 but I didnt figure out how one can configure this. I dont think I should manually edit this file.</p>
  
  <p>EDIT2:
  someone knows whats behind the file qconfig.h?? should I adjust it manually?</p>