Last active
August 14, 2024 01:52
-
-
Save onetransistor/3e12e2e3a900b1110c111a0efda6ee4a to your computer and use it in GitHub Desktop.
Script to compile and install PulseView on Ubuntu Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script that will download, compile and install PulseView and its dependencies | |
# For more information visit: | |
# https://www.onetransistor.eu/2017/11/script-to-compile-and-install-pulseview.html | |
set -e | |
echo "PulseView: Download, build and install" | |
echo "Installing dependencies" | |
sudo apt -y install autoconf autoconf-archive automake check cmake doxygen g++ gcc git-core libboost-filesystem-dev libboost-system-dev libboost-test-dev libboost-thread-dev libftdi-dev libglib2.0-dev libglibmm-2.4-dev libqt5svg5-dev libtool libusb-1.0-0-dev libzip-dev make pkg-config python3-dev python-dev python-gi-dev python-numpy python-setuptools qtbase5-dev swig libserialport-dev libftdi1-dev libieee1284-3-dev | |
echo "Downloading and building sources" | |
mkdir -p pulseview_sources | |
cd pulseview_sources | |
echo "1. libserialport" | |
git clone git://sigrok.org/libserialport | |
cd libserialport | |
./autogen.sh | |
./configure | |
make -j2 | |
sudo make install | |
cd .. | |
echo "2. libsigrok" | |
git clone git://sigrok.org/libsigrok | |
cd libsigrok | |
./autogen.sh | |
./configure | |
make -j2 | |
sudo make install | |
sudo cp contrib/60-libsigrok.rules /etc/udev/rules.d/60-libsigrok.rules | |
sudo cp contrib/61-libsigrok-plugdev.rules /etc/udev/rules.d/61-libsigrok-plugdev.rules | |
sudo cp contrib/61-libsigrok-uaccess.rules /etc/udev/rules.d/61-libsigrok-uaccess.rules | |
cd .. | |
echo "3. libsigrokdecode" | |
git clone git://sigrok.org/libsigrokdecode | |
cd libsigrokdecode | |
./autogen.sh | |
./configure | |
make -j2 | |
sudo make install | |
cd .. | |
echo "4. sigrok-cli" | |
git clone git://sigrok.org/sigrok-cli | |
cd sigrok-cli | |
./autogen.sh | |
./configure | |
make -j2 | |
sudo make install | |
cd .. | |
echo "5. pulseview" | |
git clone git://sigrok.org/pulseview | |
cd pulseview | |
cmake . | |
make -j2 | |
sudo make install | |
cd .. | |
echo "6. Prebuilt firmware" | |
wget -O sigrok-firmware-fx2lafw-bin-0.1.6.tar.gz http://sigrok.org/download/binary/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-bin-0.1.6.tar.gz | |
tar zxf sigrok-firmware-fx2lafw-bin-0.1.6.tar.gz | |
sudo cp -r sigrok-firmware-fx2lafw-bin-0.1.6 /usr/local/share/sigrok-firmware | |
sudo chmod -R u+rwX,go+rX,go-w /usr/local/share/sigrok-firmware/ | |
echo "Deleting sources" | |
cd .. | |
sudo rm -rf pulseview_sources | |
sudo ldconfig | |
sudo udevadm control --reload | |
echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment