psamim / qt-raspberry

My scripts, docs and helpers to compile qt for raspberry pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configurations

Configuration settings are done using env vars. You can source .envrc or use direnv.

Steps

  1. Boot Raspbian up, run raspi-config, change it to boot to the console instead of X, change the GPU memory to 256 MB, make it auto-login, enable SSH.
  2. With a working SSH connection to device run ssh pi@$IP 'sudo bash -s' < build.sh

Get Libraries for Compiling Qt on Desktop PC

  1. Get libraries and sysroot from Raspbian to host by running sync-from-pi-to-host.sh.
  2. Correct relative links by running sysroot-relativelinks.py $SYSROOT.

Compile and Deploy Qt to Raspberry

When qt-source is checked out, run the following to deploy qt to pi (from utils).

  1. init-repository-before-configure.sh
  2. configure-qt-before-make.sh
  3. cd $QT_SOURCE;
  4. make -j4
  5. make install
  6. sync-from-host-to-pi.sh

Troubleshooting

Sometimes checking out the stable branch helps, in qt-source run qt5_tool -p --Branch stable; or rm -rf $QT_SOURCE then git submodule update.

About

My scripts, docs and helpers to compile qt for raspberry pi


Languages

Language:Shell 74.3%Language:Python 25.7%