You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

BEFORE you start to build and the software:


How to build the software

## Go to the software rogue submodule:

$ cd atlas-chess2/software/rogue/

## Source the setup script:

$ source setup_template.csh

setup_template.csh

NOTE: If you are running on a Linux machine with SLAC AFS access, you can use the setup_template.csh and will not need to create a custom script.

This setup_template.csh is an example of all the software dependencies required to build the software and what environments variables need to be setup.

However if you make a custom setup script, make sure to include the python directory paths:

set temp_path=($_)

# Package directories

setenv ROGUE_DIR  `dirname ${PWD}/$temp_path[2]`

# Setup python path

setenv PYTHONPATH ${ROGUE_DIR}/python:${PYTHONPATH}

# Setup library path

setenv LD_LIBRARY_PATH ${ROGUE_DIR}/python:${LD_LIBRARY_PATH}

## Build the Rogue software engine:

$ make

## After building the Rogue software engine, go to the software base directory:

$ cd atlas-chess2/software/

## Source the setup script:

$ source setup_template.csh

setup_template.csh

NOTE: If you are running on a Linux machine with SLAC AFS access, you can use the setup_template.csh and will not need to create a custom script.

This setup_template.csh is an example of all the software dependencies required to build the software and what environments variables need to be setup.

However if you make a custom setup script, make sure to include the python directory paths:

# Python Package directories

setenv FEB_DIR    ${PWD}/../firmware/common/AtlasChess2Feb

setenv SURF_DIR   ${PWD}/../firmware/submodules/surf

setenv ROGUE_DIR ${PWD}/rogue

# Setup python path

setenv PYTHONPATH ${PWD}/python:${SURF_DIR}/python:${FEB_DIR}/python:${ROGUE_DIR}/python

# Setup library path

setenv LD_LIBRARY_PATH ${ROGUE_DIR}/python::${LD_LIBRARY_PATH}

# Setup library path

setenv LD_LIBRARY_PATH ${ROGUE_DIR}/python::${LD_LIBRARY_PATH}

## Build the base software:

$ make


How to run the software

  • Before you can run the software, you will need to complete the step described in the "How to build the software" section above.

## Go to the software base directory:

$ cd atlas-chess2/software/

## Source the setup script:

$ source setup_template.csh

## Launch the python GUI:

$ python3 scripts/FebGui.py 192.168.1.10

FebGui.py Usage

The  FebGui.py script accepts one argument.  If the argument is "PGP", the software will configure the communication for a PGP PCIe card.  Else the software will use the argument for the IP address of the carrier board.

  • No labels