Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

342.3. wsjtx-3.0.1

FT8, FT4, JT65, Q65, WSPR and other weak-signal digital modes for amateur radio

Version 3.0.1, release 2
Shelf hamradio — Amateur-radio operation: rig control, digital modes, logging, packet and APRS, propagation, and mesh radio
Phase 44_apps (Applications), 245 of 422 in build order
Licence GPL-3.0-or-later
Homepage https://wsjt.sourceforge.io/wsjtx.html
Build time 12.0 SBU
Installed size 33.1 MiB in 69 files
Recipe ports/core/hamradio/wsjtx/kpkgbuild

About

WSJT-X is the weak-signal digital-mode program for amateur radio: FT8, FT4, JT65, JT9, Q65, MSK144, FST4 and WSPR, for HF contacts, meteor scatter and moonbounce. It is built against Qt 5 with Fortran decoders, and it controls the radio through hamlib. The user guide is built as HTML and opened by the Help menu’s Local User Guide entry.

Sources

Dependencies

Depends on: cmake, ninja, pkgconf, gcc, boost, fftw, hamlib, libusb, qt5-qtbase, qt5-qtwayland, qt5-qtserialport, qt5-qtmultimedia, qt5-qtwebsockets, qt5-qttools, asciidoctor, asciidoc, docbook-xsl, docbook-xml, libxslt.

Required by: no port names it.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install wsjtx'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/hamradio/wsjtx.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/hamradio/wsjtx
echo 'd73fb815e370af68b5f8928b6c588bea4aa7160a0734035939624613638216c4  wsjtx-3.0.1.tar.gz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/wsjtx
SRC=$SRC_ROOT/wsjtx-3.0.1
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf wsjtx-3.0.1.tar.gz -C "$SRC" --strip-components=1

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

export FFLAGS="$FFLAGS -ftrampoline-impl=heap"
cmake -B build -G Ninja \
	-DCMAKE_CXX_FLAGS_RELEASE="-O3 -DNDEBUG -Wno-error" \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_POLICY_DEFAULT_CMP0167=NEW \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DWSJT_GENERATE_DOCS=ON \
	-DWSJT_SKIP_MANPAGES=OFF \
	-DWSJT_BUILD_UTILS=OFF \
	-DUPDATE_TRANSLATIONS=OFF \
	-Wno-dev
ninja -C build
DESTDIR=$PKG ninja -C build install
for m in fst4sim ft8code jt4code jt65code jt9code msk144code qra64code qra64sim; do
	rm -f "$PKG/usr/share/man/man1/$m.1.gz"
done

for t in rigctl rigctld rigctlcom; do
	rm -f "$PKG/usr/bin/$t-wsjtx"
	ln -s "$t" "$PKG/usr/bin/$t-wsjtx"
done

rm -f "$PKG/usr/share/applications/wsjtx.desktop" \
	"$PKG/usr/share/applications/message_aggregator.desktop"
install -Dm644 icons/Unix/wsjtx_icon.png \
	"$PKG/usr/share/icons/hicolor/128x128/apps/wsjtx.png"
cat > "$PKG/usr/share/applications/wsjtx.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=WSJT-X
GenericName=Weak-Signal Digital Modes
Comment=FT8, FT4, JT65, Q65, WSPR and MSK144 for weak-signal amateur radio
Exec=wsjtx
Icon=wsjtx
Terminal=false
StartupWMClass=wsjtx
Categories=Network;HamRadio;
Keywords=ham;radio;ft8;ft4;jt65;wspr;q65;msk144;weak;signal;eme;
DESKTOP
cat > "$PKG/usr/share/applications/message_aggregator.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=WSJT-X Message Aggregator
GenericName=Weak-Signal Decode Monitor
Comment=Gather decodes from several WSJT-X instances over UDP
Exec=message_aggregator
Icon=wsjtx
Terminal=false
StartupWMClass=message_aggregator
Categories=Network;HamRadio;
Keywords=ham;radio;wsjtx;udp;decodes;aggregator;
DESKTOP
chmod 644 "$PKG/usr/share/applications/wsjtx.desktop" \
	"$PKG/usr/share/applications/message_aggregator.desktop"

test -x "$PKG/usr/bin/wsjtx"
test -x "$PKG/usr/bin/jt9"
if readelf -lW "$PKG/usr/bin/jt9" | grep GNU_STACK | grep -q RWE; then
	echo "wsjtx: jt9 asks for an executable stack" >&2
	exit 1
fi

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/wsjtx, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf wsjtx-3.0.1-2.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/wsjtx, and runs the triggers its paths call for.

Contents

Installed programs: ALLCALL7.TXT, fcal, fmeasure, fmtave, jt9, message_aggregator, qmap, rigctl-wsjtx, rigctlcom-wsjtx, rigctld-wsjtx, udp_daemon, wsjtx, wsjtx_app_version, wsprd.

Installed directories: /usr/bin/sounds, /usr/share/doc/wsjtx, /usr/share/licenses/wsjtx, /usr/share/wsjtx.

Short descriptions

fcal Calculates a best-fit straight line for calibration data
fmeasure Calculates the properly calibrated frequency of a series of test signals
fmtave Averages raw measurement data
message_aggregator Reference example UDP server
rigctl-wsjtx Hamlib 4 rigctld server.
rigctlcom-wsjtx Hamlib 4 rigctlcom Serial port passthru Kenwood TS-2000 emulator.
rigctld-wsjtx Hamlib 4 rigctld server.
udp_daemon Reference example UDP server
wsjtx Weak signal communications program.
wsprd is a decoder for K1JTs Weak Signal Propagation Reporter (WSPR) mode.

Notes

Upstream copies hamlib’s rigctl, rigctld and rigctlcom into the package under -wsjtx names. build.sh replaces each copy with a symbolic link to the program the hamlib port owns, so there is one binary of each.

Upstream’s two desktop entries carry no window class and name the icon wsjtx_icon, which upstream installs under pixmaps. build.sh replaces both, installs the icon into hicolor, and sets StartupWMClass to the executable’s name, which is Qt’s Wayland app id when no organisation domain is set. The HTML user guide in /usr/share/doc/wsjtx is exempt from the manual prune, because the Help menu opens it (see Size and language policy).