Skip navigation
Goal: use a 3rd party library in my c++ project, on Windows and Linux. Continuing from post 4a, where I configured the Linux build.   I'm assuming here that the 3rd party provides a compiled lib and the necessary header files. And that you did the steps in that post.   Link and Test on Windows x86 / x64 In my use case, the 3rd party library archive for windows contains a .dll and .def file. That's good. We can work with that. We can even work with a plain .dll only. But when t ...
Goal: use a 3rd party library in my c++ project, on Windows and Linux. Example: the support library for a USB smart card reader. I'm starting from previous project, that's already set up for both platforms.   I'm assuming here that the 3rd party provides a compiled lib and the necessary header files. I'll be using shared libraries: .so in Linux, .dll for Windows.   I intended to write both Linux and WIndows instructions in the same post. But it was getting long. So I write shar ...
Goal: debug the project from the previous blog. Both the Windows and Linux version, from the same Eclipse project on your Windows laptop. The Windows version as a local program - we're running eclipse on Windows and can debug locally. The Linux version as a remote application. Our debugger will deploy on a Raspberry Pi, start the program in debug mode and link the Eclipse debugger. In both scenarios, the effect is the same: You start a debug session, the debugger halts on the first line of main ...
Goal: build a project in Eclipse, on Windows, that builds binaries for Windows Intel and Linux Arm. When you create a project, you tell Eclipse what toolchain to use. In our case, we'll want 2 chains: GCC compiler for Windows (I'm using Cygwin + GCC) GCC cross-compiler for Linux Arm (I'm using the Linaro chain)   When we use the wizard, we can select only one, so let's:   1: start with an Arm Linux project   Create the project.   Now let's do the first exercises ...
Use case: Build an application that runs on a Windows Intel PC and on a Linux ARM (Raspberry Pi, BBB, ...), using 3rd party libraries. In my case: I want to use a USB NFC card reader that comes with precompiled Linux lib and Windows DLL. Let's say you want to make a program that runs on both platforms uses a single Eclipse project, on a windows laptop uses the GCC toolchain can be built on that Windows Eclipse, for both targets can be debugged on that Eclipse platform, for both targets ...
Follow up on my project to create an object oriented framework for smart card use. In this article I want to add vendor-specific card functionality. That is when I I find out that I'd better relocate some functions away from the Reader classes, to avoid that I have to adapt that family for any card I want to support.     In my original design, the Reader created the Card objects. Depending on the card standard, it would create the appropriate object. But now, I want to add a spe ...
In this article I make a c++ application for the D-Logic card reader and a set of smart cards. This time I focus on the ISO14443_4 / APDU protocol. Getting results instead of focusing on Object Oriented Design.   In contrast to previous posts, I'm going for some real results here. The goal is to use the smart card session I created in the previous posts, to have a discussion with the application running on the card: Open a session with the smart card, retrieve ID and card version. &# ...
In this article I make a c++ application for the D-Logic card reader and a set of smart cards. This time I make a class that can deal with ISO14443 protocol.   Specialised Interface for ISO14443 / APDU Cards  I have a set of ISO14443 cards (from a roadtest) that support the ISO14443_4 protocol. They support a smart card protocol called APDU. I've reviewed that in Blockchain - Talk Directly to the Infineon 2Go Smart Cards API. In this post, I'm extending my little c++ framework to ...
In this article I make a c++ application for the D-Logic card reader and a set of smart cards. It's again a simple console program that checks the type of card is on top of the reader, and get the card ID. The purpose is to show that you can use it in a c++, with objects. I have a Digital Logic µFR Nano reader. I'm using D-Logic's API and library, on a Linux device (say: BB, Raspberry Pi, ...). My development environment is Eclipse on a Windows 10 laptop, with ARM-Linux cross compile ...
In this article I make a C(++) application for the D-Logic card reader and a set of smart cards. It's a simple console program that checks the type of card is on top of the reader, and get the card ID. I have a Digital Logic µFR Nano reader. I'm using D-Logic's API and library, on a Linux device (say: BB, Raspberry Pi, ...). My development environment is Eclipse on a Windows 10 laptop, with ARM-Linux cross compile toolchain.   The Program  I'm making something simple that ...

Filter Blog

By date: By tag: