Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Building js8call and wsjtx under Raspberry Pi OS - Bullseye
Hi,
Maybe you know that recently Raspberry Pi OS got a next stable upgrade, which is based on Debian 11 (codename Bullseye). That is nice, because a lot of new stuff is packaged in the distro and bugs are fixed. Our hamradio use of Raspberry Pi computer relied on some really nice programs and Build-a-Pie script to install them. Alas the new version of the Raspberry Pi OS makes things a little bit difficult for a while. For example we can't install recent version of wsjtx on Bullseye, because the binary package from the author is compiled for older Raspberry Pi OS version and the libraries needed for running wsjtx are old and not available in Bullseye. But there is some good news - we can install both js8call and wsjtx from source. The build process is similar for both of them and we need about 45-60 minutes for the task. Most of the time is spent on actual compiling and we doesn't have to stay in front of the computer. So let's begin JS8CALL First we need to allow installing source packages in Raspberry Pi OS sudo nano /etc/apt/sources.list Look for these lines: # Uncomment line below then 'apt-get update' to enable 'apt-get source' #deb-src bullseye main contrib non-free rpi Remove the #? sign in front of deb-src so the line becomes like this: deb-src bullseye main contrib non-free rpi Save and exit. Next we need to make sure the system is up to date: sudo apt update sudo apt upgrade -y Let's install the needed libraries for js8call building: sudo apt-get build-dep js8call -y Last command installs everything including hamlib. If we are happy with older version of hamlib, provided by Raspberry Pi OS we doesn't need to remove it. But if we use hamlib via BAP we need to remove hamlib: OPTIONAL STEP, see above sudo apt remove libhamlib4 libhamlib-dev Next steps are well documented in js8call source code: mkdir ~/hamlib-prefix cd ~/hamlib-prefix git clone src ### Get the JS8Call Source mkdir ~/js8call-prefix cd ~/js8call-prefix git clone src Compile hamlib: cd ~/hamlib-prefix/src ./bootstrap mkdir ../build cd ../build ../src/configure --prefix=$HOME/hamlib-prefix \ ??? --disable-shared --enable-static \ ??? --without-cxx-binding --disable-winradio \ ??? CFLAGS="-g -O2 -fdata-sections -ffunction-sections" \ ??? LDFLAGS="-Wl,--gc-sections" make make install-strip I prefer to run make command with -j 4 option to utilize all 4 cores of the RPi 4 if you like execute make -j 4 instead of make ### Compile JS8Call cd ~/js8call-prefix/src mkdir ../build cd ../build cmake -D CMAKE_PREFIX_PATH=~/hamlib-prefix -D CMAKE_INSTALL_PREFIX=~/usr/local ../src make make package again if we need speed execute make -j 4 instead of make Upon finishing there is a message like this: CPack: - package: /home/pi/js8call-prefix/build/js8call_2.2.1-devel_armhf.deb generated. The package is ready for install via apt command: cd ~/js8call-prefix/build/ sudo apt install -y ./js8call_2.2.1-devel_armhf.deb Congratulations we have built and installed JS8Call. We can save the .deb package for later use in Bullseyeor to share it with a friend. ###WSJTX The process is similar. Most of the tasks are done in js8call steps. Install the needed libraries: sudo apt install qtmultimedia5-dev libqt5serialport5-dev qttools5-dev qttools5-dev-tools libboost-all-dev libfftw3-dev libreadline-dev libusb-1.0-0-dev libudev-dev portaudio19-dev Then we prepare a directory for compiling, download the source and unzip it and start the compiling. At the end we have a .deb package again, ready for install: mkdir ~/wsjtx-build cd ~/wsjtx-build wget tar xzf wsjtx-2.5.2.tgz mkdir build cd build cmake -DWSJT_SKIP_MANPAGES=ON -DWSJT_GENERATE_DOCS=OFF ../wsjtx-2.5.2 cmake --build . cmake --build . --target package The last command produces our .deb file and shows it's location in the terminal window: CPack: - package: /home/pi/wsjtx-build/build/wsjtx-prefix/src/wsjtx-build/wsjtx_2.5.2_armhf.deb generated. It can be installed by apt command: sudo apt install /home/pi/wsjtx-build/build/wsjtx-prefix/src/wsjtx-build/wsjtx_2.5.2_armhf.deb We could also save the .deb file for future use. OK that's was all, I hope you can get js8call and wsjtx running on your Raspberry Pi computers powered by Bullseye. If you have questions please don't hesitate to ask me. -- 73 Daff, LZ1DAF |
Hi there Dafcho,
Thank you for this post. Very clear to follow the steps. I have problems with js8call and my FT-817. Think that the errors most probably have to do with hamlib, they could maybe be fixed with a newer hamlib version? I am not very experienced with stuff like this and so I easily get stuck pretty easily, sorry. I could follow your list and everything goes nicely until the install package is almost ready: CPack Error: Error while execution CPackDeb.cmake CPack Error: Problem compressing the directory CPack Error: Error when generating package: js8call make: *** [Makefile:114: package] Error 1 Could you help with a hint about what to do? Thank you in advance With best regards 73 OH1BKY de Patrik |
Hello Patrik,
toggle quoted message
Show quoted text
Can you type the exact commands when you try to build js8call? Did you compile hamlib from source or rely on Bullseye's package? -- 73 Daff, LZ1DAF On 12.12.21 §Ô. 11:49 §é., patrik.k.gustafsson via groups.io wrote:
Hi there Dafcho, |
On Fri, Dec 24, 2021 at 02:47 PM, n8mac wrote:
Thanks for this post, updated to Bullseye today( probably should have waited.You can use BAP to install WSJTX. ? -- 73, de KM4ACK
|
|
|
Daf, this was a great help.? Wasn't installing js8call, only WSJTX at this point but had previous problems on Buster.? Did a fresh flash of 32 bit Bullseye 11.2 from the RP site and built that first on a 3B+......used the full version.? Then followed your instructions exactly.? The only problem I encountered was a missing CMAKE so installed that and everything went smoothly.? WSJTX 2.5.2.?
Using a 705 with the FT8 preset .... tried manually setting the USB com on the 705 first but what worked in the end is the FT8 preset ... not sure what the difference is. 73 and thanks again for the great help. Now to try to get PAT and ardop working with the 705. K2KGJ-Jules |
¿ªÔÆÌåÓýHi Jules, I'm glad that you've found the instructions useful! I haven't got
a 705 (yet) so maybe someone else could give you an advice. Pat
and ardop should be easy tasks if you utilize flrig for CAT
control. Just make sure to select the right alsa device for ardop. -- 73 Daff, LZ1DAF On 20.02.22 §Ô. 3:25 §é., Julius Madey
wrote:
Daf, this was a great help.? Wasn't installing js8call, only WSJTX at this point but had previous problems on Buster.? Did a fresh flash of 32 bit Bullseye 11.2 from the RP site and built that first on a 3B+......used the full version.? Then followed your instructions exactly.? The only problem I encountered was a missing CMAKE so installed that and everything went smoothly.? WSJTX 2.5.2.? |
to navigate to use esc to dismiss