Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 1.14 KB

File metadata and controls

39 lines (33 loc) · 1.14 KB

BKP Programmer

This is a shared library intended to be part of a microservice architecture.

This library will expose an interface to enable communication between Quartus Programmer and BKP Service.

Build in docker

To build BKP Programer on docker, from docker folder run:

    ./build-ext.sh OPENSSL_AARCH64_VERSION="<openssl_version>" BOOST_AARCH64_VERSION="<boost_version>" LIBCURL_AARCH64_VERSION="<libcurl_version>"

Development

To use shared library, compile your program and link with the library as in the example below:

  1. Sample main.cpp:
    #include <iostream>
    #include "pgm_plugin_bkp_export.h"
    int main()
    {
        std::cout << get_version() << std::endl;
        return 0;
    }
  2. Change name of the bkp_programmer library to libbkpprog.so and place it in your libraries folder:
  3. Compile:
    g++ -Wall -I /path/to/header/files -L /path/to/libraries/folder main.cpp -lbkpprog -o program
  4. If needed, add path to your libraries folder:
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/libraries/folder
  5. Run:
    ./program