Skip to content

Instantly share code, notes, and snippets.

@prjemian
Created April 28, 2020 16:11
Show Gist options
  • Select an option

  • Save prjemian/d8e98cdedfa4e0193b5a52116c3b4725 to your computer and use it in GitHub Desktop.

Select an option

Save prjemian/d8e98cdedfa4e0193b5a52116c3b4725 to your computer and use it in GitHub Desktop.
sets up the Linux Mint shell for building caQtDM
#!/bin/bash
# usage: source ./setup_caQtDM_build_environment.sh
# (empirical) required packages to build on LinuxMint 19
# ref: https://packages.debian.org/buster/allpackages
#
# error | resolution
# ---------------- | ----------------------------------
# qmake | `sudo apt-get install qt5-default`
# uitools designer | `sudo apt-get install qttools5-dev`
# qwt | `sudo apt-get install libqwt-qt5-6 libqwt-qt5-dev`
# -lqwt | `pushd /usr/lib && sudo ln -s ./libqwt-qt5.so ./libqwt.so && popd`
# -lQt5OpenGL | `pushd /usr/lib && sudo ln -s ./x86_64-linux-gnu/libQt5OpenGL.so.5 ./libQt5OpenGL.so && popd`
# Python.h | `sudo apt-get install python3-dev`
# svg | `sudo apt-get install libqt5svg5*`
# x11extras | `sudo apt-get install libqt5x11extras5 libqt5x11extras5-dev`
# sets up the shell for building caQtDM
# makes certain that Anaconda Python is not providing Qt to the build
export EPICS_ROOT=/usr/local/epics
export EPICS_BASE=${EPICS_ROOT}/base
export EPICSEXTENSIONS=${EPICS_ROOT}/opi
# export EPICSEXTENSIONS=${EPICS_ROOT}/extensions
export EPICS_HOST_ARCH=`${EPICS_ROOT}/base/startup/EpicsHostArch`
PATH=${HOME}/bin
PATH+=:/usr/local/sbin
PATH+=:/usr/local/bin
PATH+=:/usr/sbin
PATH+=:/usr/bin
PATH+=:/sbin
PATH+=:/bin
# PATH+=:/usr/games
# PATH+=:/usr/local/games
PATH+=:${EPICS_BASE}/bin/
PATH+=:${EPICS_BASE}/lib/
PATH+=:${EPICSEXTENSIONS}/bin/
PATH+=:${EPICS_BASE}/bin/${EPICS_HOST_ARCH}
PATH+=:${EPICS_BASE}/lib/${EPICS_HOST_ARCH}
PATH+=:${EPICSEXTENSIONS}/bin/${EPICS_HOST_ARCH}
export PATH
export PYTHONVERSION=3.6m
export PYTHONINCLUDE=/usr/include/python$PYTHONVERSION
export PYTHONLIB=/usr/lib/
export EPICSINCLUDE=${EPICS_BASE}/include
export EPICSLIB=${EPICS_BASE}/lib/$EPICS_HOST_ARCH
export QTHOME=/usr
export QWTHOME=/usr
export QWTINCLUDE=/usr/include/qwt
export QWTLIB=${QWTHOME}/lib
export QTCONTROLS_LIBS=`pwd`/caQtDM_Binaries
export CAQTDM_COLLECT=`pwd`/caQtDM_Binaries
export QTBASE=${QTCONTROLS_LIBS}
export QTDM_LIBINSTALL=${EPICSEXTENSIONS}/lib/${EPICS_HOST_ARCH}
export QTDM_BININSTALL=${EPICSEXTENSIONS}/bin/${EPICS_HOST_ARCH}
mkdir -p ${QTDM_BININSTALL}
mkdir -p ${QTDM_LIBINSTALL}
#export QTDM_RPATH=${QTDM_LIBINSTALL}:${QTBASE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment