Results 1 to 13 of 13

Thread: How to create QT version for arm-linux-generic-elf-32

  1. #1
    Join Date
    Oct 2015
    Posts
    27
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default How to create QT version for arm-linux-generic-elf-32

    In my debian linux (with i386 processor).i installed QT creator thats works fine.Also i installed G++ cross compiler to run over another system which is having Debian linux with ARM processor.

    Now in QT creator "Tools->Options->Build&Run-->Compilers" i added G++ compiler thats also using "Add" option that also fine.

    Now in QT creator "Tools->Options->Build&Run-->Kits" i added new Kit with Name as "G++" , device type as "Desktop" , compiler as "G++ (above step added compiler)" thats also fine.

    The problem here is in QT version option.In my QT version option having "QT 5.5.0 GCC 64bit" only. If i select that option it is showing the error because G++ compiler is "arm-linux-generic-elf-32 bit".

    It is showing the error like , "The compiler G++ (arm-linux-generic-elf-32 bit) cannot produce code for the QT version QT 5.5.0 GCC 64bit (x86-linux-generic-elf-64bit)"

    Guide me how to add QT version for arm-linux-generic-elf-32bit

    For me the executable file only enough, no need to run on target directly.
    Last edited by shivcena; 13th October 2015 at 08:36.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to create QT version for arm-linux-generic-elf-32

    You need to download or build a version of Qt that is compatible with your ARM device and that was built using your cross-compiler. This may be available as a standard Qt binary download. If it is, you are lucky. If it isn't, then you will have to build the parts of Qt you need from the source code, using your cross-compiler.

    The Qt download site shows these versions for linux and other platforms. I do not know if that is what you need, but you can try it.

    I use the Android 32-bit distribution for Windows host, along with the Android NDK toolchains.
    Last edited by d_stranz; 13th October 2015 at 15:32.

  3. #3
    Join Date
    Oct 2015
    Posts
    27
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to create QT version for arm-linux-generic-elf-32

    Thanks for the information, Actually i installed cross compiler "arm-linux-gnueabi-gcc-4.4" in my PC. but i dont have any idea of how to create Qmake file for this compiler. How to create Qmake file for the compiler "arm-linux-gnueabi-gcc-4.4" . without your guidance i cant move a single step forward.Pls guide me,

  4. #4
    Join Date
    Oct 2015
    Posts
    27
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Unhappy How to create Qmake file for cross compilers

    Hi,
    Im getting so tired of searching to create Qmake file for compiler. Actually i installed "arm-linux-gnueabi-gcc-4.4" to cross compile. i added the installed compiler in Qt creator "compiler" option also. Now for "kits" option "Device type" , i dont have Qmake file for this compiler supported to add. i dont have any clue for how to make Qmake for this compiler . If any body knows please guide me to resolve this issue.

  5. #5
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to create QT version for arm-linux-generic-elf-32

    I started Qt Creator, switched to the "Welcome" page, changed the drop-down to show "Qt 5.4.1 (android armv7)" (the version I have installed). I then opened the "Analog Clock" example. In the "Projects" page, I selected "Android for armeabi-v7a" and clicked "Configure Project".

    The .pro file looks like this:

    Qt Code:
    1. QT += widgets
    2.  
    3. HEADERS = analogclock.h
    4. SOURCES = analogclock.cpp \
    5. main.cpp
    6.  
    7. QMAKE_PROJECT_NAME = widgets_analogclock
    8.  
    9. # install
    10. target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/analogclock
    11. INSTALLS += target
    To copy to clipboard, switch view to plain text mode 

    As you can see, there is nothing in there that identifies ARM as the target platform; that's all in Qt Creator and your kit and project configuration. I can't help you any more than this - the problem seems to be in how you are configuring Qt for your Android kit.

    Capture.jpg

    Capture1.jpg

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to create QT version for arm-linux-generic-elf-32

    I am not sure what the problem is.

    Where to you build/install Qt for the target platform? That target directory should have a "bin" directory and qmake should be in it.

    Cheers,
    _

  7. #7
    Join Date
    Oct 2015
    Posts
    27
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to create QT version for arm-linux-generic-elf-32

    i did not installed QT in target platform. To create QT executable for target platform , i installed cross compiler (arm-linux-gnueabi-gcc-4.4) in host system. Then i added the installed cross compiler in QT creator (Tools-->Options-->Build&Run-->Compiler) like below image,
    Qtcompiler.jpg

    Then i added this compiler in kits option, But in kits option there is option called QT version. In that device type combo box having the Qmake file path , that is not suitable for this installed compiler. So i have to create new Qmake file according to the installed cross compiler (arm-linux-gnueabi-gcc-4.4) , but i have no idea of how to create/configure Qmake file path for this.
    Please Refer below image so that you will get the idea in kits option.
    QTkits.jpg

  8. #8
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to create QT version for arm-linux-generic-elf-32

    You first need to create the cross compiled build of Qt.
    After that you can choose the qmake of that in Qt Creator.

    Cheers,
    _

  9. #9
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to create QT version for arm-linux-generic-elf-32

    As I said in my first answer to your question:

    You need to download or build a version of Qt that is compatible with your ARM device and that was built using your cross-compiler. This may be available as a standard Qt binary download.
    I downloaded the version I use from the Qt web site, and it works just fine with my Samsung Android tablet.

  10. #10
    Join Date
    Oct 2015
    Posts
    27
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to create QT version for arm-linux-generic-elf-32

    cross compiled build of Qt? can you guide me how to build it? (or) are you have any tutorial link to build it , hope thats help me. For your reference, i installed "arm-linux-gnueabi-gcc-4.4" is a cross compiler i installed in my system. If i found how to make Qmake file for that compiler , then i can build executable for that i hope so,

  11. #11
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to create QT version for arm-linux-generic-elf-32


  12. #12
    Join Date
    Oct 2015
    Posts
    27
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to create QT version for arm-linux-generic-elf-32

    FInally i cross compiled the QT creator application using angstrom cross compiler tool . Then i copied the executable in my board also. Now if i run the executable it is giving the error like "usr/lib/fonts" not found

  13. #13
    Join Date
    Oct 2015
    Posts
    27
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to create QT version for arm-linux-generic-elf-32

    FInally i cross compiled the QT creator application using angstrom cross compiler tool . Then i copied the executable in my board also. Now if i run the executable it is giving the error like "usr/lib/fonts" not found

Similar Threads

  1. Determine Linux desktop version
    By RolandHughes in forum Qt Programming
    Replies: 3
    Last Post: 23rd June 2015, 19:05
  2. Replies: 0
    Last Post: 2nd November 2011, 11:32
  3. Replies: 2
    Last Post: 8th May 2011, 22:27
  4. Replies: 5
    Last Post: 15th March 2010, 02:25
  5. Replies: 1
    Last Post: 19th October 2008, 21:30

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.