Skip to main content

Installing Qt Cross Compilation Toolchain for Beaglebone Black

This is the guide that I went through to successfully set the environment. If you get stuck on something, feel free to have a look at the references in the bottom most.

These are the steps that worked for me so I hope it helps.

  • Just making sure of the dependencies
    • sudo apt-get update
    • sudo apt-get upgrade
    • sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 libstdc++6:i386 ia32-libs
    • Assuming that you can get access to the root
  • Set up Cross compiler
    • Download and install
      • wget -c https://releases.linaro.org/components/toolchain/binaries/6.4-2018.05/arm-linux-gnueabihf/gcc-linaro-6.4.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz
      • tar xf gcc-linaro-6.4.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz
      • export CC=`pwd`/gcc-linaro-6.4.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
    • Test installation
      • ${CC}gcc --version
  • Download qt source
    • #do this in a directory that is not in your root filesystem, i.e. ~
    • git clone git://code.qt.io/qt/qt5.git
    • cd qt5
    • ./init-repository
  • Fix symlinks
    • git clone git://gitorious.org/cross-compile-tools/cross-compile-tools.git
    • cd cross-compile-tools
    • ./fixQualifiedLibraryPaths /Rootfs/of/the/target_device/ /home/cosik/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/arm-linux-gnueabihf-g++
  • Running Qt configuration script
    • go to qt5 directory
    • It is best to paste the following instruction in a bash script file and edit it however wanted:
    • ./configure \
-opengl es2 \
-device linux-beagleboard-g++ \
-device-option CROSS_COMPILE=/home/angelos/Tools/qt/gcc-linaro-6.4.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- \
-sysroot /home/angelos/Projects/innov8/rootfs/ \
-opensource \
-confirm-license \
-optimized-qmake \
-linuxfb \
-release \
-make libs \
-prefix /home/angelos/Tools/qt/qt_build \
-no-pch \
-nomake examples \
-nomake tests \
-no-xcb \
-eglfs \
-v

Comments

Popular posts from this blog

Getting Used to tmux!

This is a short guide to multiplexing in your terminal! Installation Install  $ sudo apt install tmux launch $ tmux Core Commands Here is a small list of the most useful set of commands. Just remember these and you shall be tmuxing around in no time! Adding panes Add panes vertically ctl + b % Add panes Horizontally ctl + b "  Moving around panes Move to the panes to the right ctl + b <Right> Move to the panes to the left ctl + b <LEFT> Move to the panes to the up ctl + b <UP> Move to the panes to the down ctl + b <DOWN> Closing Window  Close current panes ctl + d Tip!!! You can resize panes by pressing: $ ctl + b + <arrow button> Scroll: $ ctl + b [ press < UP > or < DOWN > Quit $ q  

How to Set a Custom Display Resolution on Linux

 Here's how to set a custom display resolution on linux. This guide has been tested on Linux Mint 22 It is a trying to set a display resolution of 1352x878 This also changes the display resolution of a the native display of the laptop ( eDP-1) $ cvt 1352 878 grab the return string  Modeline "1352x878_60.00"   97.50  1352 1432 1568 1784  878 881 891 912 -hsync +vsync $ xrandr --newmode "1352x878_60.00"   97.50  1352 1432 1568 1784  878 881 891 912 -hsync +vsync $ xrandr --addmode eDP-1 "1352x878_60.00" $ xrandr --output eDP-1 --mode "1352x878_60.00"    Enjoy!