Skip to content

Instantly share code, notes, and snippets.

@hdoverobinson
Last active January 16, 2022 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hdoverobinson/a539d4e0a3afea480c425e37904365b9 to your computer and use it in GitHub Desktop.
Save hdoverobinson/a539d4e0a3afea480c425e37904365b9 to your computer and use it in GitHub Desktop.
Installs goestools from source on Debian/Ubuntu without any prompt for deleting /usr/src/goestools
#!/bin/bash
GOESTOOLS_DIR="/usr/src/goestools"
GOESTOOLS_REPO="https://github.com/pietern/goestools.git"
BUILD_PACKAGES="apt-utils build-essential ca-certificates cmake git libairspy-dev libopencv* librtlsdr-dev pkg-config"
if [ "$EUID" -ne 0 ]
then echo "This script must be run as root!"
exit 1
fi &&
#get requisite packages
apt-get update &&
apt-get -y install --no-install-recommends $BUILD_PACKAGES &&
#build goestools
rm -rf "$GOESTOOLS_DIR"
git clone --recursive "$GOESTOOLS_REPO" "$GOESTOOLS_DIR" &&
cd "$GOESTOOLS_DIR" &&
mkdir -p build &&
cd build/ &&
cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_GOESRECV=ON -DBUILD_GOESLRIT=ON -DBUILD_GOESPROC=ON &&
make -j4 &&
make install &&
cd ../ &&
mkdir -p bin &&
cd bin/ &&
cp "$GOESTOOLS_DIR"/build/src/goeslrit/goeslrit . &&
cp "$GOESTOOLS_DIR"/build/src/goesproc/goesproc . &&
cp "$GOESTOOLS_DIR"/build/src/goesrecv/goesrecv . &&
chmod +x * &&
cp "$GOESTOOLS_DIR"/etc/* . &&
echo "Done!" &&
exit
@halifax57
Copy link

Thanks for the script. However, it terminates thusly, just like when using the other step-wise instructions elsewhere on the web. Here is the tail end of the screen output:

-- Performing Test NN_HAVE_MSG_CONTROL - Success
-- Performing Test NN_HAVE_GCC_ATOMIC_BUILTINS
-- Performing Test NN_HAVE_GCC_ATOMIC_BUILTINS - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'libairspy'
-- Found libairspy, version 1.0
-- Checking for module 'librtlsdr'
-- Found librtlsdr, version 0.6.0
-- Checking for module 'opencv'
-- No package 'opencv' found
CMake Error at /usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:545 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:733 (_pkg_check_modules_internal)
src/goesproc/CMakeLists.txt:23 (pkg_check_modules)

-- Configuring incomplete, errors occurred!
See also "/usr/src/goestools/build/CMakeFiles/CMakeOutput.log".
See also "/usr/src/goestools/build/CMakeFiles/CMakeError.log".

===========================================

This has something to do with OpenCV 4 ...

pietern/goestools#95

There will likely be other errors due to version changes, etc. because that's what is happening now with all of the online sequences I could find. I hope that you can fix this!

Kindest regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment