Skip to content

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

Notifications You must be signed in to change notification settings

psamim/qt-raspberry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published