[Qt-interest] [Qt-embedded-interest] Qt/X11 cross compilng for ARM

umang gupta umang.ece at gmail.com
Sat Oct 23 09:04:56 CEST 2010


Hi shiva ,

On Sat, Oct 23, 2010 at 12:25 PM, Shiva kumar Mishra <
shivajeekumar at gmail.com> wrote:

> you should use ./configure -platform  qws/linux-arm-gnueabi-g++ -xplatform
> x86 etc.
>


I think this is not correct . arg appending to xplatform should be present
in mkspecs/ location .


Umang


> On Sat, Oct 23, 2010 at 2:40 AM, umang gupta <umang.ece at gmail.com> wrote:
>
>> HI ,
>>
>> I am trying to cross compile Qt-X11 for arm .
>>
>> arm toolchain path  export
>> PATH=$PATH:/opt/CodeSourcery/Sourcery_G++_Lite/bin/
>> Modified mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf to include :
>> QMAKE_CC                = arm-none-linux-gnueabi-gcc
>> QMAKE_CXX               = arm-none-linux-gnueabi-g++
>> QMAKE_LINK              = arm-none-linux-gnueabi-g++
>> QMAKE_LINK_SHLIB        = arm-none-linux-gnueabi-g++
>>
>> # modifications to linux.conf
>> QMAKE_AR                = arm-none-linux-gnueabi-ar cqs
>> QMAKE_OBJCOPY           = arm-none-linux-gnueabi-objcopy
>> QMAKE_STRIP             = arm-none-linux-gnueabi-strip
>>
>> Now I am cross compiling using command :
>> ./configure -arch arm -xplatform qws/linux-arm-gnueabi-g++
>>
>> It gives error :
>>
>> Creating qmake. Please wait...
>> make: Nothing to be done for `first'.
>> Basic XLib functionality test failed!
>>  You might need to modify the include and library search paths by editing
>>  QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in
>> /home/umang/qtarmsrc/qt-everywhere-opensource-src-4.7.0/mkspecs/qws/linux-arm-gnueabi-g++.
>>
>>
>> So I include in qmake.conf these :
>> QMAKE_INCDIR_X11        = /media/LABEL2/usr/X11R6/include/
>> QMAKE_LIBDIR_X11        = /media/LABEL2/usr/X11R6/lib/
>>
>> /media/LABEL2 is my target File system where X libraries and headers are
>> present .
>>
>> But still compilation is giving same error ..
>>
>> Any Help will be appreciated .
>>
>> Thanks ;
>> Umang Gupta
>>
>>
>> _______________________________________________
>> Qt-embedded-interest mailing list
>> Qt-embedded-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-embedded-interest
>>
>>
>
>
> --
> "The best way to find yourself is to lose yourself in the service of
> others".
>
> Shiva The Great
>



-- 
Yours :
Umang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101023/1c9371f9/attachment.html 


More information about the Qt-interest-old mailing list