SatDump installing on LINUX


Weather satellites image reception software SatDump,Windows_x64 version(ui) was
instantly installed and run. I am under construction LINUX version(tar.gz) now.
At the end of the following procedure, it stops at 16%. (Solved on Ubuntu18.04)

 


> Download "SatDump-master.zip" from the next
> github site and extract it in Home folder.
> https://github.com/SatDump/SatDump
> https://www.satdump.org/
$ sudo apt install git build-essential cmake g++ pkgconf
$ sudo apt install libfftw3-dev libvolk1-dev libpng-dev libluajit-5.1-dev
$ git clone https://github.com/nanomsg/nng.git
$ cd nng
$ mkdir build && cd build
$ cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr ..
$ make -j4
$ sudo make install
$ cd ../..
$ sudo apt install librtlsdr-dev libhackrf-dev libairspy-dev libairspyhf-dev
$ sudo apt install libglew-dev libglfw3-dev
$ sudo apt install ocl-icd-opencl-dev
$ git clone https://github.com/altillimity/satdump.git
$ cd satdump
$ mkdir build && cd build
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
$ make -j`nproc`
In "make", this process stopped at 16%. (solved)


Delete "CMakeCache.txt" in folder "/home/(user)/satdump/build". I tried
"$ make -j`nproc`" again, but it still stops at 16%. After updating ZSTD
in the error message to Ver1.5.5 and making it, I passed the 16% barrier.
I appreciate accurate advice from both JH4XSY/1 and K4KDR.

> Download & Extrac "zstd v1.5.5" from:
> https://github.com/facebook/zstd/releases/
> https://github.com/SatDump/SatDump/issues/142
$ cd zstd/zstd-1.5.5
$ cd build/cmake
$ mkdir builddir
$ cd builddir
$ cmake -DZSTD_BUILD_TESTS=ON -DZSTD_LEGACY_SUPPORT=ON ..
$ make
$ sudo make install
$ cd
$ cd satdump/build
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
$ make -j`nproc`
$ sudo make install
$ ln -s ../pipelines .
$ ln -s ../resources .
$ ln -s ../satdump_cfg.json .
$ ./satdump-ui

 


$ make -j`nproc`
> target fengyun3_support: failed
Reached 39%. I don't know why it stopped. (6 Jun 2023)

"volk-3.0.0.tar.gz" extracted & installed:
https://github.com/SatDump/SatDump/issues/126

JH4XSY/1 wrote: I asked ChatGPT. (Tnx.)
> If you get the error 'std::filesystem' has not been declared,
> GCC version may be outdated. "std::filesystem" introduced in C++17 is
> supported after GCC 8.0. Ubuntu 18.04 comes with GCC 7.3 installed by default,
> so it need to install a newer version of GCC to use "std::filesystem".
> Install GCC 8.0 by running the following command.
> 
> $ sudo apt-get install gcc-8 g++-8

JE9PEL/JR6 wrote:
I experimented with JH4XSY/1's accurate comment. In my environment,
the same error message as last time appeared and stopped.
Therefore, one step stronger,

> $ sudo apt-get install gcc-9 g++-9

Then I installed gcc-9 g++-9. As a result, it increased by 1% and built up to 40%.
In addition to the red error messages in the above image, many black and bold
warning messages have appeared so far, and I think that it is impossible to proceed
with Ubuntu_18.04. Because the work has not progressed for the past week, my stomach
broke due to overeating and drinking from the stress.

 


gcc_ver9.2.0 installing
$ sudo apt -y update
$ sudo apt -y install autogen flex bison build-essential make
$ sudo apt -y install libreadline-dev
$ sudo apt -y install libgmp-dev
$ sudo apt -y install libmpfr-dev
$ sudo apt -y install libmpc-dev
$ sudo apt -y install libppl-dev
$ sudo apt -y install libcloog-ppl-dev
$ export SRCURL=http://ftp.jaist.ac.jp/pub/GNU
$ cd /tmp
    if [ ! -f gcc-9.2.0.tar.gz ]; then 
      wget ${SRCURL}/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz
    fi
$ cd /tmp 
$ gzip -d <  gcc-9.2.0.tar.gz | tar -xvof -
$ sed -e '/m64=/s/lib64/lib/' -i.orig /tmp/gcc-9.2.0/gcc/config/i386/t-linux64
$ mkdir /tmp/gcc-9.2.0/build
$ cd /tmp/gcc-9.2.0/build
$ ../configure --prefix=/usr/local --disable-multilib --with-system-zlib --enable-languages=c,c++,fortran --enable-shared 
$ make bootstrap (--This process took 10 hours)
$ make
$ sudo make install

gcc version Switch
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9
$ sudo update-alternatives --list gcc
> /usr/bin/gcc-9
$ sudo update-alternatives --config gcc
$ gcc --version
> gcc (Ubuntu 9.4.0-1ubuntu1~18.04) 9.4.0

For some reason, the latest gcc/ver9.4.0 was installed.(Stomach pain is almost gone.)
By the way, when there are many characters following "$ " on Terminal, it is difficult
to move with the arrow keys. There are keyboard shortcuts for moving.
  ctrl + a ... Move to beginning of line. (Ahead)
  ctrl + e ... Move to end of line. (End)
  ctrl + f ... Move right one character. (Forward)
  ctrl + b ... Move left one character. (Back)


SatDump gcc、It will be finished in a little while!!! It was built up to 96%!!!
How to clear the last error message??? (10 Jun 2023)

After fixed "cmake: SDR_SUPPORT", finally reached Built_99%.
Here is the syntax that does not include unnecessary SDR hardware support.
I see that the RTL-SDR is Error. I think it will be difficult to clear the remaining 1%.
https://github.com/SatDump/SatDump/issues/127

$ cmake -DCMAKE_BUILD_TYPE=Release -DPLUGIN_AIRSPYHF_SDR_SUPPORT=OFF
 -DPLUGIN_HACKRF_SDR_SUPPORT=OFF -DPLUGIN_LIMESDR_SDR_SUPPORT=OFF
 -DPLUGIN_PLUTOSDR_SDR_SUPPORT=OFF -DPLUGIN_BLADERF_SDR_SUPPORT=OFF
 -DPLUGIN_SDRPLAY_SDR_SUPPORT=OFF -DPLUGIN_MIRISDR_SDR_SUPPORT=OFF
 -DPLUGIN_SPYSERVER_SUPPORT=OFF -DCMAKE_INSTALL_PREFIX=/usr ..
$ make -j`nproc`
> [99%] Built target rtlsdr_sdr_support

 


Finally I reached Built_100% and "SatDump v1.1.0" run on LINUX_Ubuntu18.04!!!
CMAKE after turning off USRP_SDR_SUPPORT that was visible in the 99% error message
above, and explicitly turning on RTLSDR_SDR_SUPPORT, then I could reach Built_100%.
I summarize the last command I typed on Terminal.

$ cd satdump/build
$ cmake -DCMAKE_BUILD_TYPE=Release -DPLUGIN_AIRSPYHF_SDR_SUPPORT=OFF
 -DPLUGIN_HACKRF_SDR_SUPPORT=OFF -DPLUGIN_LIMESDR_SDR_SUPPORT=OFF
 -DPLUGIN_PLUTOSDR_SDR_SUPPORT=OFF -DPLUGIN_BLADERF_SDR_SUPPORT=OFF
 -DPLUGIN_SDRPLAY_SDR_SUPPORT=OFF -DPLUGIN_MIRISDR_SDR_SUPPORT=OFF
 -DPLUGIN_SPYSERVER_SUPPORT=OFF -DPLUGIN_USRP_SDR_SUPPORT=OFF
 -DPLUGIN_RTLSDR_SDR_SUPPORT=ON -DCMAKE_INSTALL_PREFIX=/usr ..
$ make -j`nproc`
$ sudo make install
$ ln -s ../pipelines .
$ ln -s ../resources .
$ ln -s ../satdump_cfg.json .
$ ./satdump-ui





Back to Top
Back to Home Page