GithubHelp home page GithubHelp logo

csredrat / ubuntu-go-qml-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nikwen/ubuntu-go-qml-template

0.0 2.0 0.0 87 KB

Go QML Ubuntu SDK template for armhf cross-compilation

License: ISC License

Shell 80.53% Go 19.47%

ubuntu-go-qml-template's Introduction

Go QML Ubuntu SDK template for armhf cross-compilation

This is a template for a Go QML Ubuntu SDK project with custom build scripts for armhf cross-compilation. It includes scripts to set up and configure a click chroot to allow armhf cross-compilation for Go QML projects.

Setting up the build environment:

First of all, you need to install the Ubuntu SDK as described in the official documentation: http://developer.ubuntu.com/start/ubuntu-sdk/installing-the-sdk/

In order to be able to compile the template on your PC, you also need to install a few more packages by running the following command:

sudo apt-get install golang g++ qtdeclarative5-dev qtbase5-private-dev qtdeclarative5-private-dev libqt5opengl5-dev qtdeclarative5-qtquick2-plugin

Now it comes to setting up the chroot. Clone the git repository and run the chroot setup scripts using the following commands:

git clone https://github.com/nikwen/ubuntu-go-qml-template.git
cd ubuntu-go-qml-template
chroot-scripts/setup-chroot.sh

Note that it is important to call the setup-chroot.sh script from the top-level project directory.

These commands will create a new click chroot or update an already existing one with the required build dependencies. Afterwards, it will install version 1.3.3 of Go inside the project directory, as it is required for cross-compiling the Go QML package. (Don't worry. The system will not use this one by default. Other projects will still use the golang package installed via apt-get install golang.)

Running the project on your PC:

Running the project on your PC is quite simple. You can either run it from Qt Creator or use the run.sh script, which invokes build.sh for building.

Installing the project on your Ubuntu Phone:

If you want to install the project on your Ubuntu Phone, you just need to run the install-on-device.sh script. It will build the project using the build-in-chroot.sh script, push the generated click package to your device using adb and install it using pkcon install-local.

About using this template:

This software is released under the ISC license, a simple and permissive one which allows you to reuse this code in free and paid software projects alike, without the need to share your source code. I would be very pleased if you add a link to this project to your "About" page and/or let me know that someone is actually using it, but it is, of course, no requirement to do so.

Big thanks to:

ubuntu-go-qml-template's People

Contributors

nikwen avatar

Watchers

 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.