BlindAI
Search…
Build the BlindAI Client SDK from source

Build the client SDK from source

BlindAI Client SDK can currently be built from source on Linux and Windows platforms.

Requirements

Before proceeding to build the client, make sure the following requirements are installed in your environment.
Linux
Windows
  • CMake >= 3.12
  • Make >= 4.0
  • g++ >= 7.1
  • python >= 3.6.8
  • python3-dev package (or python-devel in CentOs based distros) - The version of python3-dev depends on the version of python you are using.
  • Microsoft visual Studio 2017 15 with CMake installed
  • Windows PowerShell
  • Perl
  • python >= 3.6.8

Building and installing the package

Clone the repository

1
git clone https://github.com/mithril-security/blindai
2
cd blindai/client
Copied!

Install third party libraries

1
git submodule init
2
git submodule update
Copied!

Create and activate a virtual environment

Linux
Windows
1
python3 -m venv env
2
source env/bin/activate
Copied!
1
python -m venv env
2
.\env\Scripts\activate.exe
Copied!

Check pip version

pip >= 21 is needed, so make sure to check your pip version,is and to update it in case a prior version was installed.
  • Check pip version
1
$ pip --version
Copied!
  • If the installed version is pip 9.x.x , upgrade pip
1
$ pip install -U pip
Copied!

Install development dependencies

1
$ pip install -r requirements.txt
Copied!

Trigger the Build process

1
pip install . --use-feature=in-tree-build
Copied!
If you are building on windows, administrator access will be needed at a certain point of the build process.
BlindAI Client SDK will be then built and installed in the virtual environment.