Commit 4cf9c4df authored by Sami Nurmenniemi's avatar Sami Nurmenniemi

Update instructions

parent f6e3a1b6
......@@ -8,8 +8,8 @@ Compiling Qt libraries
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
See https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04 for Ubuntu 16.04 and other distributions
Activate docker group by rebooting
You can also activate it to current terminal by su - ${USER}
4. Set up build directory
......@@ -20,8 +20,8 @@ Compiling Qt libraries
cd qt5
git checkout v5.11.2
git submodule update --init --recursive
6. Build
cd ../..
6. Build
scripts/create_docker.sh
scripts/do_initial_build.sh
You can rebuild with scripts/docker_exec.sh build
......@@ -32,15 +32,16 @@ Deploying Qt libraries
1. Boot your device and check it's IP address (see device preparation instructions in the bottom)
ifconfig
2. 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"
If you haven't created your ssh keys yet: ssh-keygen
ARTIK_IP_ADDR=XXX.XXX.XXX.XXX
ssh root@$ARTIK_IP_ADDR "mkdir .ssh; chmod 700 .ssh"
scp ~/.ssh/id_rsa.pub root@$ARTIK_IP_ADDR:.ssh/authorized_keys
ssh root@$ARTIK_IP_ADDR "chmod 600 .ssh/authorized_keys"
3. Download qt-ubuntu-32bit.zip from https://developer.artik.io/downloads/qt-ubuntu-32bit/download and put it to the artik_qt5_builder directory
4. Run setup & deploy scripts
scripts/setup_device.sh IP_ADDR
scripts/setup_device.sh $ARTIK_IP_ADDR
Please note the Qt environmental variables that are appended to /etc/profile
scripts/deploy_to_device.sh IP_ADDR
scripts/deploy_to_device.sh $ARTIK_IP_ADDR
Compiling Qt application
========================
......@@ -56,11 +57,11 @@ Compiling Qt application
Integrating to QtCreator
========================
1. Create a dummy link for mimicking the build machine
1. Create a dummy link for mimicking the build environment
sudo mkdir -p /home/builder
sudo ln -s /absolute/path/to/artik530_qt5_builder/build
2. Install arm compiler to host
sudo apt-get install crossbuild-essential-armhf
sudo ln -s /absolute/path/to/artik530_qt5_builder/build /home/builder/build
2. Install arm compiler and gdb to host
sudo apt-get install crossbuild-essential-armhf gdb-multiarch
3. Add new linux device to the Qt Creator
Go to Tools → Options → Devices
Select tab Devices and click "Add"
......@@ -77,6 +78,11 @@ Integrating to QtCreator
Select tab "Qt Versions" and click "Add"
Select artik530_qt5_builder/build/qt5_install/bin/qmake
Click "Apply"
5. Configure gdb
Go to Tools → Options → Kits
Select tab "Debuggers" and click "Add"
Name = gdb-multiarch
Path = /usr/bin/gdb-multiarch
5. Add new Kit
Go to Tools → Options → Kits
Select tab "Kit" and click "Add"
......@@ -90,7 +96,11 @@ Integrating to QtCreator
Qt version = Qt XXXX (qt5_install)
Click "Apply"
Note: You can't compile examples directly in the default examples directory. You must put the build directory to some other location than under the Qt installation. If that's not done, qmake introduces "-isystem" which breaks the build.
Known issues:
1. You can't compile examples directly in the default examples directory. You must put the build directory to some other location than under the Qt installation. If that's not done, qmake introduces "-isystem" which breaks the build.
2. gdb does not work correctly, all programs segfault on the target device, it can be seen with
gdb /bin/ls
run
Preparing Artik 530 (S) 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