Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added "establish Debian sources " section

Here's info about how to compile Eazylink Client from sources for both Intel x86 and Arm platforms.The sections below describe the individual steps. For some platforms Qt5 is also necessary to be compiled from sources to achieve statically linked executable for EazyLink2.

 

...

Table of Contents

...

 

Linux, Intel 32 and 64 bit (static compilation, abandoned)

...

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.

Running build environment: Ubuntu 15.04 desktop.

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/.

...

Initial instalation of compilers, debian build tools and Qt5 developer packages

Install the following packages:

...

Ensure qmake is using Qt5 and that eazylink2 sources are compiled compiles succesfully:

> qmake -version

...

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}

Establish Debian source code folder structure

The source code is checked out from the Git repository, git clone https://bitbucket.org/cambridge/eazylink2.git.

Copy the checkout folder to a new, temporary place and remove the .git repo management contents:

No Format
cp fR eazylink2 /home/xxx/temp/eazylink2-1.0.0
cd /home/xxx/temp
rm -fR eazylink2/.git
mv eazylink2 eazylink2-1.0.0
tar czf eazylink2_1.0.0.orig.tar.gz eazylink2-1.0.0/

Create signed source package and build .deb installer package

cd eazylink2-1.0.0

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}

...

  • 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)

...