Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Check out the git repository from github
  • Make sure you have If your Linux machine does NOT have access to SLAC AFS, make sure to install the following libraries install on your Linux machine:
    • python: 3.5.2 (or later)
    • zeromq: 4.2.0 (or later)
    • boost: 1.62.0 (or later)

...

How to build the software

## Go After building the Rogue software engine, go to the software rogue submodulebase directory:

$ cd atlas-chess2/software/rogue/

## Source the setup scriptIf you have access to SLAC AFS and running C Shell:

$ source setup_template.csh

Info
titlesetup_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:

 

## If you have access to SLAC AFS and running BASH Shell:

$ $ source setup_template.cshsh


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

This setup_template.csh is an example /setup_template.sh are examples 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:

...

$ cd atlas-chess2/software/

## If you have access to SLAC AFS and running C Shell:

$ source setup_template.csh

## If you have access to SLAC AFS and running BASH Shell Source the setup script:

$ source setup_template.sh

 

Info
titlesetup_template.csh/setup_template.sh

This setup_template.csh/setup_template.sh are examples of all the software dependencies required to build the software and what environments variables need to be setup.

 

## Launch the python GUI:

$ python3 scripts/FebGui.py 192.168.1.10 


Info
titleFebGui.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.

Contact

Dionisio Doering 

ddoering@slac.stanford.edu