Python 

This document describes how to build the Python bindings for ADLX, and the ADLX Python samples, as well as the environment in which they can be executed. The ADLX Python samples demonstrate how to program with ADLX in a Python application.

Supported Operating Systems 

Windows® 10 (32- and 64-bit versions) and up.

Building the ADLXCSharpBind 

These are the instructions for building the ADLX Python bindings for the ADLX Python samples.

Build Tool 

Visual Studio 2019 with C and C++ components for desktop.

Prerequisites 

  • ADLX SDK is installed.

  • Python 3.9 is installed.

  • pybind11 is installed.

  • The path to the Python 3.9 installation is set to the PYHOME system environment variable.

Note: The ADLX library is installed along with the AMD display driver.

Build Instructions 

  1. Run Visual Studio 2019.

  2. Open ~ADLX\drivers\ADLX\Samples\python\ADLXPybind\ADLXPybind.sln.

  3. Rebuild the project.

Building the ADLX Python samples 

These are the instructions for building the DisplayInfo ADLX Python sample. Similar instructions must be followed for building the other ADLX Python samples.

Build Tool 

Visual Studio Code

Prerequisites 

  • ADLX SDK is installed.

  • ADLXCSharpBind is built.

Note: The ADLX library is installed along with the AMD display driver.

Build Instructions 

  1. Run Visual Studio Code.

  2. Open ~ADLX\drivers\ADLX\Samples\python\DisplayInfo.

  3. Rebuild the project.