Giter Club home page Giter Club logo

crossqt's Introduction

C++/Qt cross compilation environment

Tools and libs for c++ compilation and packaging on linux and windows.

Features

Based on ubuntu:18.04.

Libs: boost qt5 sqlite proj eigen Documentation: doxygen sphinx Packaging: zip dpkg-deb appimage Cross compilation: xme Running tests: wine

Install docker if needed

sudo apt install docker.io
sudo usermod -aG docker $USER

Then close and re-open session.

Setup proxy

If ou are behind a proxy:

mkdir -p ~/.docker
echo '{"proxies":{"default":{"httpProxy": "http://YOURPROXY:PORT","httpsProxy": "http://YOURPROXY:PORT", "noProxy": "localhost,127.0.0.1"}}}' > ~/.docker/config.json

And set YOURPROXY:PORT in ~/.docker/config.json

It may be necessary to add a systemd configuration as root:

sudo mkdir /etc/systemd/system/docker.service.d
echo '[Service]
Environment="HTTP_PROXY=http://YOURPROXY:PORT/"
Environment="HTTPS_PROXY=http://YOURPROXY:PORT/"
Environment="NO_PROXY=localhost,127.0.0.1"' > tmp.conf
sudo mv tmp.conf /etc/systemd/system/docker.service.d/http-proxy.conf
sudo systemctl daemon-reload
sudo systemctl restart docker.service

Build docker image

docker build --network=host -t crossqt1804 .

It needs 2 GB of disk space.

Run image

Create a compile_all.sh that will run every compilation and packaging step (see compile_all_example.sh). Make sure to have a "install" target in your makefile in order to use AppImage.

On host system, from the project source folder, run:

docker run --rm --device /dev/fuse --privileged -v $(pwd)/.:/src crossqt1804 /src/compile_all.sh

For interactive compilation:

docker run -ti --rm --device /dev/fuse --privileged -v $(pwd)/.:/src crossqt1804 bash

Remove docker image

docker rmi crossqt1804

crossqt's People

Contributors

jmimu avatar

Watchers

 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.