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:
- Install development headers.
- Install GlobalPlatform 6.0.
- Install
- Install GPShell
Install development headers.
GlobalPlatform 6.0 needs OpenSSL and ZLIB:
$ sudo apt-get install libssl-dev zlib1g-dev
Install GlobalPlatform 6.0
- GlobalPlatform 6.0 downloaded from sourceforge, extract it.
$ tar xvfz globalplatform-6.0.0.tar.gz
$ cd globalplatform-6.0.0/
- Enable debug and no static built is optional, I kind of like those.
$ ./configure --prefix=/usr --enable-debug --disable-static
- Make them (-j4 is making four threads of compilling. Faster if you have multicores CPU, which nowadays not so strange)
$ make -j4
- Install
$ sudo make install
Install GP <–> PCSC connection plugin
- Download from sourceforge and extract it.
$ tar xvfz gppcscconnectionplugin-1.1.0.tar.gz && cd gppcscconnectionplugin-1.1.0
- Enable debug and no static built is optional, I kind of like those.
$ ./configure --prefix=/usr --enable-debug --disable-static
- Make them (-j4 is making four threads of compilling. Faster if you have multicores CPU, which nowadays not so strange)
$ make -j4
- Install
$ sudo make install
Install GPShell
- You know the drill.
$ tar xvfz gpshell-1.4.4.tar.gz && cd gpshell-1.4.4
- And the rest:
$ ./configure --prefix=/usr --enable-debug --disable-static && make -j4 && sudo make install
Done.