Skip to content

Instantly share code, notes, and snippets.

@sam210723
Last active November 2, 2021 23:20
Show Gist options
  • Save sam210723/7f6b452125a7eeeef48c04a0f75feb41 to your computer and use it in GitHub Desktop.
Save sam210723/7f6b452125a7eeeef48c04a0f75feb41 to your computer and use it in GitHub Desktop.
Install scopehal and scopehal-apps (glscopeclient)
# Install dependencies
sudo apt-get install -y build-essential git cmake pkg-config libglm-dev libgtkmm-3.0-dev libsigc++-2.0-dev libyaml-cpp-dev liblxi-dev texlive texlive-fonts-extra libglew-dev
# Install Catch2 v2
git clone https://github.com/catchorg/Catch2
cd Catch2
git checkout v2.x
git fetch
git pull
mkdir build
cd build
cmake ..
make -j4
sudo make install
# Install ffts
git clone https://github.com/anthonix/ffts.git
cd ffts
mkdir build
cd build
cmake .. -DENABLE_SHARED=ON
make -j4
sudo make install
# Install OpenCL support
sudo apt-get install -y intel-opencl-icd ocl-icd-opencl-dev opencl-headers mesa-utils clinfo
# Install NI VISA driver
wget https://download.ni.com/support/softlib/MasterRepository/LinuxDrivers2021Q3/NILinux2021Q3DeviceDrivers.zip
unzip NILinux2021Q3DeviceDrivers.zip
cd NILinux2021Q3DeviceDrivers
sudo apt install ./ni-ubuntu2004firstlook-drivers-2021Q3.deb
sudo apt update
sudo apt install -y ni-visa
sudo dkms autoinstall
# REBOOT
# Install scopehal and scopehal-apps
git clone https://github.com/azonenberg/scopehal-apps.git --recurse-submodules
cd scopehal-apps
mkdir build
cd build
cmake ..
make
# Run glscopeclient
cd src/glscopeclient
./glscopeclient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment