Results 1 to 2 of 2

Thread: Crosscompile QT5 on x86_64 Ubuntu16.04 LTS for target BBB running on Debian

  1. #1
    Join Date
    Mar 2017
    Posts
    12
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Question Crosscompile QT5 on x86_64 Ubuntu16.04 LTS for target BBB running on Debian

    Hi,
    I am a beginner in Qt. Usually i use to create some Qt based Gui application for my host machine(Ubuntu 16.04 LTS).
    But now i want to cross compile the QT application for my BBB which is running on Debian with a LCD cape. I googled alot hot to get this done but couldn't make it work in the cross-compiling step. Can some one explain me in detail how to get this done?

  2. #2
    Join Date
    Mar 2017
    Location
    New Hampshire, USA
    Posts
    4
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Crosscompile QT5 on x86_64 Ubuntu16.04 LTS for target BBB running on Debian

    Hi,
    I have been working on the same problem. I do not have the problem completely solved but I am most of the way there. I have switched over to Raspberry Pi 3 because I can get a capacitive touchscreen. The remaining work is to resolve the correct linker flags when building the Qt project and to disable X11 at start up (the last item should be pretty routine). These steps are based on the good info at the following sites:
    BeagleBone Black Beginner's Guide (Qt),
    Raspberry Pi 2 EGLFS, and
    Configuring Qt Creator for Raspberry Pi
    Although these sites are made for Raspberry Pi, both Raspberry Pi and Beaglebone Black are running Debian on an ARM processor. Much of what is on these sites applies to BBB as well.

    I started by following the BeagleBone Black Beginner's Guide. A couple of things to note:
    1. Although there are later versions of the Linaro cross-compiler available, pick the one that matches gcc on your target. For Debian 8 (Jessie) that will be 4.9.x.
    2. The script to fix qualified paths does not work very well. There is a better on on the Raspberry Pi 2 EGLFS site.
    3. The BeagleBone Black Beginner's Guide has you build Qt with no GUI (I believe, e.g. -no-xcb -no-opengl options)
    4. If you want OpenGL ES acceleration, you will need to build the drivers for the BeagleBone (see below)


    Building Drivers for OpenGL ES Acceleration
    See the instructions at https://groups.google.com/forum/#!to...rd/tsRfbDVwjSM considering these additional notes:
    1. Use
      Qt Code:
      1. sudo apt-get install -y {ti-sgx-es8-modules,linux-image,linux-firmware-image}-4.1.9-ti-r20
      To copy to clipboard, switch view to plain text mode 
      to install the kernel modules on BBB.
    2. Get the x86 tools by entering the following URL in a web browser and downloading the zip file (I don’t know how to get the cloned repository to switch to the ti-linux-4.1.y branch and update the files yet): https://github.com/RobertCNelson/ti-...ti-linux-4.1.y


    Configuring and Building Qt
    Now that you've done all that prep work, you can build Qt using the instructions in the Raspberry Pi 2 EGLFS guides. The configure command I used was:
    Qt Code:
    1. sudo /opt/Qt/5.8/Src/qtbase/configure -debug -opengl es2 -device linux-beagleboard-g++ -device-option CROSS_COMPILE=/opt/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/bbb-rootfs -opensource -confirm-license -nomake examples -prefix /usr/local/Qt-5.8 -extprefix /mnt/bbb-rootfs/usr/local/Qt-5.8 -hostprefix /usr/local/qt5bbb
    To copy to clipboard, switch view to plain text mode 
    Note that the paths are different from the ones in the BBB Guide because I did not want to install things in my home directory. I also specify the absolute path for configure because I am doing a shadow build in a different directory.

    I think that is about it. Hopefully that is enough to get you started. If I discover I've left out some important details. I'll edit this post.

    Jim

Similar Threads

  1. Replies: 1
    Last Post: 3rd August 2013, 12:39
  2. Running QT application on Target board
    By vinithr in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 25th April 2012, 09:07
  3. VGA16 video mode not supported, when running on target
    By sepehr in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 15th March 2012, 10:52
  4. Icons not getting displayed while running on target.
    By Shiva in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 22nd October 2010, 09:43
  5. qte crosscompile
    By leiyuhong in forum Qt Programming
    Replies: 0
    Last Post: 15th July 2007, 04:01

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.