Commit a655102f authored by Sami Nurmenniemi's avatar Sami Nurmenniemi

Added README.txt

parent eb589d69
Docker builder for Qt on Artik 530
1. Set up your development PC
sudo apt install git curl qemu-user-static binfmt-support
2. Clone the Artik Qt5 builder
git clone https://git.qt.io/sanurmen/artik_qt5_builder.git
cd artik_qt5_builder
3. Set up docker to your system
See https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04 for Ubuntu 16.04 and other distributions
scripts/setup_docker_ubuntu_18.04.sh
Activate docker group by rebooting
You can also activate it to current terminal by su - ${USER}
4. Set up build directory
mkdir build
cd build
5. Clone Qt5 to the build directory (or take it from https://download.qt.io/archive/qt/5.11/5.11.2/single/ and extract to build/qt5)
git clone https://code.qt.io/qt/qt5.git
cd qt5
git checkout v5.11.2
git submodule update --init --recursive
6. Build
cd ../..
scripts/create_docker.sh
scripts/do_initial_build.sh
You can rebuild with scripts/docker_exec.sh build
7. Now you should have in the qt5 available in build/qt5_install
8. Boot your device and check it's IP address
ifconfig
9. Set up automatic SSH access to the device (unless you want to give password several times)
ssh root@IP_ADDR "mkdir .ssh; chmod 700 .ssh"
ssh-keygen
scp ~/.ssh/id_rsa.pub root@IP_ADDR:.ssh/authorized_keys
ssh root@IP_ADDR "chmod 600 .ssh/authorized_keys"
10. Download qt-ubuntu-32bit.zip from https://developer.artik.io/downloads/qt-ubuntu-32bit/download and put it to the artik_qt5_builder directory
11. Run setup & deploy scripts
scripts/setup_device.sh IP_ADDR
Please note the Qt environmental variables that are appended to /etc/profile
scripts/deploy_to_device.sh IP_ADDR
12. Compiling your Qt application
Copy the source to the build directory
./docker_exec.sh debug
~/build/qt5_install/bin/qmake
make
exit
scp ../build/appdir/appbinary root@IP_ADDR:/path/in/device
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment