Friday, August 18, 2017

Building wsjt-x 1.8rc1 on Fedora 26

The available binaries of wsjt-x don't run on Fedora 26. There's no problem building but it took a while to figure out the dependencies so this post is a note for myself that might help someone else.



From a fresh Fedora 26, here's the dependencies I needed to add before building.

sudo dnf install autoconf automake libtool libusb libusb-devel fftw-libs-single fftw-devel texinfo qt5 cmake asciidoc gcc-gfortran gcc-c++ qwt5-qt4 qwt qwt-qt5-devel qwt-qt5 qt5-qtmultimedia qt5-qtmultimedia-devel asciidoctor qt5-qtserialport qt5-qtserialport-devel

I stumbled around a bit figuring out what the missing thing was called in Fedora so there's undoubtedly things in that list that aren't actually needed.

At the end of the build I got an error linking -ludev so needed to do this to let ld find the library.

sudo ln -s /usr/lib64/libudev.so.1 /usr/lib64/libudev.so

(Let me know if there's a correct way to do this, I couldn't find a -devel package that should normally do this).

I basically follow the instructions directly from the excellent INSTALL document but I'm substituting the 1.8rc1 tag so I get the latest FT8 stuff.

cd ~
mkdir wsjtx-prefix
cd wsjtx-prefix

Download a snapshot from:
https://sourceforge.net/p/wsjt/wsjt/HEAD/tree/tags/wsjtx-1.8.0-rc1/

Unzip then rename:
mv wsjt-wsjt-8028-tags-wsjtx-1.8.0-rc1 src

From the file src/INSTALL, follow the instructions to download, build and install hamlib.

# As per the instructions in INSTALL
cd ~/wsjtx-prefix
mkdir build
cd build
cmake -D CMAKE_PREFIX_PATH=~/hamlib-prefix ../src
cmake --build .
sudo cmake --build . --target install

wsjtx 

Building is a good way to exercise your CPU.


Binaries?

I notice this site hopes to have binaries available but the builds seem to be failing. Does anyone know what I need to do to build wsjt-x as a static binary for easy distribution?

No comments: