[Qt-interest] building qt-embedded for x-86
Sean Harmer
sean.harmer at maps-technology.com
Sun Jan 23 14:26:20 CET 2011
Hi,
On Sunday 23 January 2011 10:15:13 piyush pandey wrote:
> I have build the qt-embedded-4.5.3 for the arm on my Desktop and have made
> it successfully .
>
> But I also want to build the qt-embedded-4.5.3 for the x86 i.e. for my
> computer but I am not getting the clue of how to do it .
>
> I don't know how to build the qt-embedded-4.5.3 with the gcc and not with
> the arm-linux gcc .
If you set and used a prefix for the cross-compiled version above (ie you did
a make install to install the libs/headers/docs somewhere else) then just do a
make confclean in your source directory and reconfigure with something along
these lines:
./configure -prefix /usr/local/qt-embedded \
-embedded \
-qt-gfx-qvfb \
-depths 8,16,18,32 \
-qt-kbd-qvfb \
-qt-mouse-qvfb
or with a different prefix plus whatever other options you wish to use. The
configure script should identify your system architecture as x86 and use the
correct toolchain. Then run make and make install as per normal.
To use this you then simply need to set up your path to find the correct
version of qmake depending on if you are doing a host or target build.
To actually run a host build using Qt embedded it is useful to build the qvfb
application. This can be found in your usual desktop build of Qt. Launch the
qvfb application then launch your own app passing in the -qws option on the
command line and it will display inside the qvfb application.
Hope this helps,
Sean
More information about the Qt-interest-old
mailing list