Python Samples
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
-
Run Visual Studio 2019.
-
Open
~ADLX\drivers\ADLX\Samples\python\ADLXPybind\ADLXPybind.sln
. -
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
-
Run Visual Studio Code.
-
Open
~ADLX\drivers\ADLX\Samples\python\DisplayInfo
. -
Rebuild the project.
Samples
FileName |
Description |
---|---|
Show how to wrap ADLX with pybind11 |
|
Python test uses ADLXPybind.pyd, about the call of ADLX display list changed event |
|
Python test uses ADLXPybind.pyd, about the call of ADLX display |