Hi,
I like many others are trying build qt for asus tinker board according to
this qt blog post:
https://blog.qt.io/blog/2017/05/03/qt-git-tinkerboard-wayland/

I have spent quite some time going over this with no results. As the guide
cross-references another guide (https://wiki.qt.io/RaspberryPi2EGLFS) it
could become easy to make a mistake. To help I have included a short guide
of what I've done. But this will need to be verified.

The original blog that was created a short time ago also has some hyperlink
issues around downloading the toolchain and there are some command issues
when using: rsync -e ssh avz instead of rsync -avz.

I believe there will also need to be some clarification on what system the
blog was performed on (i.e Ubuntu, Debian) and also if the dev- branch of a
qtbase is still required.

Also, I think the additional instruction is necessary on setting up the Qt
environment as there are linking issues with the qmake. please reference
https://forum.qt.io/topic/83776/can-t-build-qt-for-tinkerboard

Please see the attached for the draft user guide.

Thank you
Loading QT on to Asus Tinker

http://blog.qt.io/blog/2017/05/03/qt-git-tinkerboard-wayland/#comments
https://wiki.qt.io/RaspberryPi2EGLFS

Download latest Cross-compiler for x64
https://releases.linaro.org/components/toolchain/binaries/6.3-2017.02/arm-linux-gnueabihf/

Extract and rename to 'toolchain' and place into /tinker folder

Download latest “wayland” variant from the Firefly RK3288 section
https://developer.arm.com/products/software/mali-drivers/user-space

[on Tinker] copy EGL/GLES/GBM/wayland-egl libraries to 
/usr/lib/arm-linux-gnueabihf.

1)[on Tinker] Install a bunch of development files (for simplicity we use 
build-dep, not everything is really needed, but it is easier this way). 
        
        A- Disable auto-starting X
                Command = sudo systemctl set-default multi-user.target or 
systemctl set-default graphical.target (to restore GUI)
        1- Edit sources list in /etc/apt/sources.list with use of your favorite 
editor (nano / vi) and uncomment the 'deb-src' line:
                Command = sudo nano /etc/apt/sources.list
        2- Update your system and install required libraries:
                Command = sudo apt-get update
                Command = sudo apt-get build-dep qt4-x11 libqt5gui5 wayland 
weston
        3- Prepare our target directory
                Command = sudo mkdir /usr/local/qt5
                Command = sudo chown linaro:linaro /usr/local/qt5
        4- Give Root Password
                Command = sudo passwd root
                Command = Password
                Command = Password

2)[on Host] Create a sysroot on the host:
        
        Command = rsync -avz linaro@192.168.0.48:/lib ~/tinker/sysroot
        Command = rsync -avz linaro@192.168.0.48:/usr/include 
~/tinker/sysroot/usr
        Command = rsync -avz linaro@192.168.0.48:/usr/lib ~/tinker/sysroot/usr

3)[on Host] Make all symlinks relative: 
        
        Command = cd ~/tinker
        Command = wget 
https://raw.githubusercontent.com/riscv/riscv-poky/master/scripts/sysroot-relativelinks.py
        Command = chmod +x sysroot-relativelinks.py
        Command = ./sysroot-relativelinks.py sysroot 
        
4) [on Host] Configure with -device linux-tinkerboard-g++: 
        
        Command = git clone git://code.qt.io/qt/qtbase.git -b dev
        //or
        Command = git clone git://code.qt.io/qt/qtbase.git -b 5.10
        
        Command = cd qtbase
        Command =       ./configure -release -opengl es2 -nomake examples 
-nomake tests -opensource -confirm-license -v \
                                -device tinkerboard -device-option 
CROSS_COMPILE=~/tinker/toolchain/bin/arm-linux-gnueabihf- \
                                -sysroot ~/tinker/sysroot -prefix 
/usr/local/qt5 -extprefix ~/tinker/qt5 -hostprefix ~/tinker/qt5-host
                                
        Command = make
        Command = make install

5)[on Host] rsyn to tinker
        return to /tinker
        Command = rsync -avz qt5 linaro@192.168.0.48:/usr/local
        
6)[on Host] Set up QT device and Kit.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to