SpinCore Logo Home
Applications
Contact Us
Purchasing Info
About Us
Software Downloads

banner_left.jpg banner_right.jpg




Help For Compiling On Linux

Overview:

=========

The 20220722 x86_64 version supports PulseBlaster, PBDDS-I-300, PBDDS-II, PBDDS-III,
PulseBlasterESR, PulseBlasterESR-PRO, PulseBlasterESR-PRO-II, PB-DualCore, PB-QuadCore, USB-PTS, and RadioProcessor boards.

The contents of each directory is explained below.

lib            - contains the SpinAPI library
include        - contains the SpinAPI headers
src            - contains the source code for the SpinAPI library
examples       - contains the source code for the SpinAPI examples

Compilation Support:

====================

Required packages, on Ubuntu 18.04: build-essential cmake

Required packages, on Fedora 36: cmake gcc-c++

If you are cross compiling, also install: gcc-multilib g++multilib

CMake version 3.6 or later is required.

To perform a full rebuild of SpinAPI and the examples:

    cd SpinAPI_linux-20220722-x86_64
    mkdir build
    cd build
    cmake ..
    make

The freshly compiled programs will be inside the build directory, for example:

    cd SpinAPI_linux-20220722-x86_64
    sudo ./build/examples/General/pb_read_firmware

Note that root privileges are required, or the programs may segfault.

Note: UEFI Boot Mode may not work for PCI boards. Please use Legacy Boot Mode.

Device Permissions:

====================

Device permissions must be set properly in order run SpinAPI programs. It is recommended that users set device permissions using a udev rules file. An example udev rules file can be found here: 99-spincore.rules. This file should typically be placed in "/etc/udev/rules.d/", but this path may vary depending on your Linux distribution. This file is created for the RadioProcessorUSB and PulseBlasterUSB boards. Once the rules file has been added, you can update the system rules using the command "udevadm control --reload-rules". If the SpinCore board is plugged in while performing this step, power the board off and on. Any user in group "spincore" should now have access to the board. Alternatively, applications may be run as root, but this is not recommended.



Home | Products | Applications | Contact Us | Purchasing Info | About Us | Software Downloads

© 2022 SpinCore Technologies, Inc.