Prerequisite for this post:

  • Knows about GlobalPlatform and Javacard development (or else this post is unuseful).
  • Already install pcscd, libpcsclite1-dev, and pcsc-tools.
  • Already install
    built-essential.

The build sequence so far I did was:

  1. Install development headers.
  2. Install GlobalPlatform 6.0.
  3. Install
  4. Install GPShell

Install development headers.

GlobalPlatform 6.0 needs OpenSSL and ZLIB:

$ sudo apt-get install libssl-dev zlib1g-dev

Install GlobalPlatform 6.0

  1. GlobalPlatform 6.0 downloaded from sourceforge, extract it.
    $ tar xvfz globalplatform-6.0.0.tar.gz
    $ cd globalplatform-6.0.0/
  2. Enable debug and no static built is optional, I kind of like those.
    $ ./configure --prefix=/usr --enable-debug --disable-static
  3. Make them (-j4 is making four threads of compilling. Faster if you have multicores CPU, which nowadays not so strange)
    $ make -j4
  4. Install
    $ sudo make install

Install GP <–> PCSC connection plugin

  1. Download from sourceforge and extract it.
    $ tar xvfz gppcscconnectionplugin-1.1.0.tar.gz && cd gppcscconnectionplugin-1.1.0
  2. Enable debug and no static built is optional, I kind of like those.
    $ ./configure --prefix=/usr --enable-debug --disable-static
  3. Make them (-j4 is making four threads of compilling. Faster if you have multicores CPU, which nowadays not so strange)
    $ make -j4
  4. Install
    $ sudo make install

Install GPShell

  1. You know the drill.
    $ tar xvfz gpshell-1.4.4.tar.gz && cd gpshell-1.4.4
  2. And the rest:
    $ ./configure --prefix=/usr --enable-debug --disable-static && make -j4 && sudo make install

Done.