Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added re-compiing from source package

...

Currently (Sept 2015) Ubuntu 15.04 and later support Qt5.4.x libraries. Kaosx already is using Qt v5.5 (however, is another package format - to be done, maybe) . Latest Debian 8 do not.  Support native Eazylink2 package for Ubuntu in Intel, since this Linux defines a good support point. These build notes are based on this excellent tutorial: https://bhavyanshu.me/how-to-make-debian-packages-for-qt-c-based-applications/11/10/2014/.

Create initial signed source and binary packages

Install the following packages:

  • sudo apt-get update; sudo apt-get dist-upgrade    {update system to latest packages, system-wide}

  • sudo apt-get install git

  • sudo apt-get install build-essential dh-make pdebuild pbuilder

  • sudo apt-get install qtbase5-dev qtbase5-dev-tools qt5-qmake qt5-default libqt5serialport5-dev libqt5serialport5

Establish the following for the Debian Package Builder environment:

...

then make. A successfull compilation produces bin/eazylink2. Now, we're ready to setup the Debian package compile environment.

Establish pbuilder environment for Ubuntu Vivid Vervet

Now first create a .pbuilderrc file. In that add the following

Code Block
BASETGZ=$HOME/pbuilder/base.tgz
BUILDPLACE=$HOME/pbuilder/build/
BUILDRESULT=$HOME/pbuilder/result/
DEBEMAIL='Your Name <your@emaild.id>'
BUILDUSERNAME=home user login name
AUTO_DEBSIGN=yes
APTCACHEHARDLINK=no
COMPONENTS="main restricted universe multiverse"
DEBBUILDOPTS="-sa"

Creating a clean chroot environment
sudo pbuilder --create --distribution vivid --mirror "http://archive.ubuntu.com/ubuntu"

Import / create GPG keys for debian source / binary package signing

Debian package signing requires GPG keys, import, if you already them:

...

https://bhavyanshu.me/a-quick-guide-on-how-to-use-gnu-privacy-guard-gpg-to-generate-keys-and-distribute-them/11/27/2014/

 

debuild -i -I -S -sa  {build the source package + signing with gpg key}

pdebuild --debbuildopts -sa {build the installer package via the chroot environment, .deb output in /home/xxx/pbuilder/result}

 

Re-compiling from debian source package (download from SF)

If Eazylink2 was not available for a specific platform as a binary .deb installer package, generate a binary package from source debian package (download from Z88 SF Eazylink2 Client area *.deb.src.tar.gz) using the steps below. Eazylink2 requires Qt v5.4.1 or later to run.

In order to build the Eazylink2 source package, qt5 (5.4.1 or later) development packages and debian package build tools must be installed on your system. The eazylink2 source package is not part of a repository, it is necessary to manually establish the build package dependencies (we cannot use apt-get build-dep).

To rebuild this Debian Eazylink2 source package "manually" do as follows:

  • Install Basic compilers and debian package build tools:
    • sudo apt-get install build-essential fakeroot dpkg-dev devscripts dh-make
  • Install Qt5 dev packages:
    • sudo apt-get install qtbase5-dev qtbase5-dev-tools qt5-qmake qt5-default libqt5serialport5-dev
  • Prepare source package for compilation:
    • dpkg-source -x eazylink2_1.0.0-1.dsc
  • Build the binary .deb package:
    • cd eazylink2-1.0.0
      dpkg-buildpackage -rfakeroot -us -uc -b

      .deb package will be available in parent folder.
  • Install the compiled package:
    • sudo dpkg -i eazylink2_1.0.0-1_<arch>.deb

Linux, Raspberry Pi & Pi2 (Debian Wheezy)

...