Installation#
These instructions primarily focus on the PixieSDK. We encourage all users to migrate to the latest version of the library. For convenience, we have kept the C API library named Pixie16Api.
We will not be distributing any precompiled binaries for the time being. This is due to the extreme variability of the compiler / architecture options for Windows.
There are a number of CMake Options available when generating the build system files. The defaults will always build the PixieSDK and the Pixie16Api compatibility library.
Prerequisites#
You’ve already
installed the Broadcom PCI/PCIe SDK 8.00 or newer,
exported the
PLX_SDK_DIR
in your environment,installed CMake 3.10+,
the cmake application is available in your path, and
installed a compiler that supports C++ 17 standard on a supported platform.
Windows 10#
Instructions#
Clone or download the project and put the
pixie_sdk
directory in yourDownloads
folder.Open an x64_x86 Cross Tools Visual Studio Developer Command Prompt
Navigate to the source folder
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>cd %USERPROFILE%\Downloads\pixie_sdk
Create and enter the build directory
C:Users\username\Downloads\pixie_sdk>mkdir build && cd build
Generate the nmake build scripts
C:Users\username\Downloads\pixie_sdk\build>cmake.exe ..\
Build the project
C:Users\username\Downloads\pixie_sdk\build>cmake --build .\
OR
C:Users\username\Downloads\pixie_sdk\build>msbuild ALL_BUILD.vcxproj /p:Configuration=Release -maxcpucount:4
Optional Install the project (requires administrative command prompt)
C:Users\username\Downloads\pixie_sdk\build>msbuild INSTALL.vcxproj /p:Configuration=Release -maxcpucount:4
Linux#
Instructions#
These installation instructions assume that you’re using git to obtain a copy of the project. If you’re starting with a zip folder from a release then skip to Step 2.
Clone the project
[user@localhost ~]$ git clone https://github.com/xiallc/pixie_sdk.git
Navigate to the cloned project
[user@localhost ~]$ cd pixie_sdk
Configure and build the project
[user@localhost pixie_sdk]$ mkdir build; cd build; cmake ../
Compile the project
[user@localhost build]$ make
(Optional) Install the software system-wide. Defaults to
/usr/local/xia/PixieSDK
.[user@localhost build]$ sudo make install
(Optional) Add the
XIA_PIXIE_SDK
environment variable (assumes bash)[user@localhost build]$ echo -e "export XIA_PIXIE_SDK=/usr/local/xia/PixieSDK\n" | sudo tee -a /etc/profile.d/xia_pixie_sdk.sh
CMake Options#
Primary Options#
Option |
Description |
Default |
---|---|---|
BUILD_EXAMPLES |
Builds the example programs |
ON |
BUILD_SDK |
Builds PixieSdk.a |
ON |
BUILD_TESTS |
Builds the test suites |
OFF |
Dependent Options#
Option |
Depends on |
Default |
---|---|---|
BUILD_INTEGRATION_TESTS |
BUILD_TESTS BUILD_SDK |
ON |
BUILD_PIXIE16_API |
BUILD_SDK |
ON |
BUILD_SYSTEM_TESTS |
BUILD_TESTS BUILD_SDK |
ON |
BUILD_SDK_UNIT_TESTS |
BUILD_TESTS BUILD_SDK |
ON |