GithubHelp home page GithubHelp logo

qt5-crosscompile-rpi-ansible's Introduction

qt5-crosscompile-rpi-ansible

This is an ansible playbook for cross-compiling Qt5 for the Raspberry Pi. It is mostly based on the Qt RPi beginner guide.

Running

This requires linux, and root access. Install ansible (1.6 or higher), and then type ./run, as root. Paths are currently hardcoded, all files will be downloaded in /opt/buildroot.

After running the ./run script, Qt5 will be downloaded and configured and ready for compilation. Compiling takes a long time, so this could be done best in a screen session:

cd /opt/buildroot/qt5
make -j 4
make install

Compiling an example

After installation, all Qt tools will be installed in /usr/local/qt5pi/bin. You can now compile any Qt .pro project for the RPi by calling /usr/local/qt5pi/bin/qmake.

Note that this will compile Qt as static libraries, with the idea that the output binary is statically linked to the Qt library, for easy portability.

qt5-crosscompile-rpi-ansible's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.