Buonasera Marco,

OpenSUSE Tumbleweed you say? Sure I can handle that. Here is a tested and 
working script to build WSJT-X 2.0.0 RC3 on that distro. 

First, disclaimers/notes and then, the script:

1) I am NOT a WSJT-X developer, I am just a regular ham radio operator who 
loves Linux. (I did meet K1JT once a few years ago at a speech he gave, it was 
fun!) So if you run my script below and it breaks your computer don't blame the 
wonderful WSJT-X devs, blame only me. By the way I have never tried Tumbleweed 
before today and I am very impressed, enough so that I may even use it to make 
a few contacts in WSJT-X :)

2) You do know there is an .rpm binary download of WSJT-X 2.0.0 RC3 available 
right? So we don't actually "need" to do any of this except for "educational" 
purposes. 
 
3) The WSJT-X 2.0.0 RC3 build script below is tested and working on a 6 hours 
old bare metal install of OpenSUSE Tumbleweed (KDE) on my Lenovo ThinkPad T440. 
For purpose of comparison I also built it on OpenSUSE Leap 15 running in a VM 
(AWS t2.micro), process was almost identical with just a few small differences 
that keep it from being able to run as a non-interactive script on Leap (repo 
update and devel-basis install both need command-line interventions, and Leap 
compilers are g++-7/gfortran-7), but it still builds fine. Given these positive 
results, without any further knowledge I can only guess your previous build 
issues were caused by (as usual) missing dependencies.

GL es 73 de Adam KB3ZUV


#!/bin/bash
#-----wsjtx2rc3-opensuseTW-build-script.sh-------
#--------------RUN ME WITH SUDO-------------
#
#first the obligatory OS patching
#since this is Tumbleweed we do full distro upgrade
zypper ref && zypper dup -y
#add user to dialout group allowing rig CAT control on next login
#(if you use VOX you don't actually need this)
usermod -a -G dialout $SUDO_USER
#install a whole bunch of dependencies to compile WSJT-X
#g++, git, and automake are all in devel_basis
zypper in -y --type pattern devel_basis && zypper in -y fftw3-devel \
fftw3-threads-devel gcc-fortran cmake libqt5-qtbase-devel \
libqt5-qtmultimedia-devel libqt5-qtconnectivity-devel \
libqt5-qtserialport-devel libusb-1_0-devel asciidoc hamlib-devel \
ruby2.5-rubygem-asciidoctor libpulse-devel libudev-devel
#create some directories for WSJT-X
sudo -u $SUDO_USER mkdir /home/$SUDO_USER/jtsource 
sudo -u $SUDO_USER mkdir /home/$SUDO_USER/.wsjtx
#grab and unzip the source code from Princeton
wget --no-check-certificate \
https://physics.princeton.edu/pulsar/k1jt/wsjtx-2.0.0-rc3.tgz
sudo -u $SUDO_USER tar -xzvf wsjtx-2.0.0-rc3.tgz \
-C /home/$SUDO_USER/jtsource
cd /home/$SUDO_USER/jtsource/wsjtx-2.0.0-rc3
#set build options
sudo -u $SUDO_USER cmake -D CMAKE_CXX_COMPILER="/usr/bin/g++-8" \
-D CMAKE_Fortran_COMPILER="/usr/bin/gfortran-8" \
-D CMAKE_INSTALL_PREFIX=/home/$SUDO_USER/.wsjtx .
#build WSJT-X on OpenSUSE
sudo -u $SUDO_USER cmake --build . --target install
#after build, to run wsjtx2 RC3 type:  ~/.wsjtx/bin/wsjtx
#---------EOF-----------

-- 
  Adam Schaible
  kb3...@schibes.com

On Mon, Oct 22, 2018, at 9:04 AM, Marco Calistri via wsjt-devel wrote:
> 
> 
> Il 21/10/18 07:22, Adam Schaible ha scritto:
> > Good morning Linux WSJT-X fans,
> >
> > Awesome discussion going on in this thread, using all the feedback so far 
> > I've gone and hacked up some build scripts for RC3 on a couple different 
> > Linux distros (Debian and Solus). First some banter and then, the scripts.
> >
> > 1) Scripts use Paul's cmake flags and attempt to be compliant with Bill's 
> > statement on build permissions. You do still need to run the scripts as 
> > sudo to install dependencies up top but I've reduced permissions down below 
> > where the actual build takes place. 
> >
> > 2) Scripts are tested and working on stock Debian 9 (AWS t2.micro 
> > instance), Raspbian Stretch (this is for you Evariste, I compiled it on my 
> > Pi 3+), and Solus 3.9999 (my Dell laptop). Bill will probably be able to 
> > find several more superfluous packages in my script(s) beyond what Paul has 
> > mentioned but those can always be cleaned up later on, I just want to get 
> > something up and running to share with everyone ASAP. 
> >
> > 3) What is Solus? It's a new, cheerfully minimalist Linux distro that uses 
> > neither .deb nor .rpm files, so there is no other way to get WSJT-X RC3 
> > running on it other than to build from source. I had been using Mint for 
> > over five years and while Stan is considering migrating to it, I've moved 
> > completely off because of some very bad experiences upgrading to Mint 19 a 
> > couple months ago (particularly the new "Timeshift" feature which 
> > bludgeoned my hard drive almost beyond recognition). Hopefully Stan has 
> > better luck than I did. Meanwhile I plan on contacting the Solus devs to 
> > see if they will consider packaging WSJT-X in their own ".eopkg" format for 
> > when 2.0 is officially released, and if not, I'll probably move over to the 
> > Arch Linux distro family and write/maintain a WSJT-X 2.0 PKGBUILD for the 
> > AUR (Arch User Repository) if someone else doesn't beat me to the punch.
> >
> > Tnx es 73 de Adam KB3ZUV
> >
> >
> > #!/bin/bash
> > #-----wsjtx2rc3-debian-build-script.sh-------
> > #---------------RUN ME WITH SUDO-------------
> > #
> > #first the obligatory OS patches
> > apt update && apt upgrade -y
> > #add user to dialout group allowing rig CAT control on next login
> > #(if you use VOX you don't actually need this)
> > usermod -a -G dialout $SUDO_USER
> > #install a whole bunch of dependencies to compile WSJT-X
> > #g++ is in build-essential along with lots of other good stuff
> > apt install -y build-essential gfortran-6 libfftw3-dev \
> > libqt5x11extras5-dev libtool libudev-dev libusb-1.0.0-dev \
> > python-pkgconfig python-pyqt5 qtmultimedia5-dev texinfo \
> > libqt5serialport5 libqt5serialport5-dev cmake automake asciidoc \
> > asciidoctor libxslt1-dev docbook-xsl xsltproc libxml2-utils git
> > #create some directories for WSJT-X
> > sudo -u $SUDO_USER mkdir /home/$SUDO_USER/jtsource
> > sudo -u $SUDO_USER mkdir /home/$SUDO_USER/.wsjtx
> > #grab and unzip the source code from Princeton
> > wget --no-check-certificate \
> > https://physics.princeton.edu/pulsar/k1jt/wsjtx-2.0.0-rc3.tgz
> > sudo -u $SUDO_USER tar -xzvf wsjtx-2.0.0-rc3.tgz \
> > -C /home/$SUDO_USER/jtsource
> > cd /home/$SUDO_USER/jtsource/wsjtx-2.0.0-rc3
> > #set build options
> > sudo -u $SUDO_USER cmake -D CMAKE_CXX_COMPILER="/usr/bin/g++" \
> > -D CMAKE_Fortran_COMPILER="/usr/bin/gfortran-6" \
> > -D CMAKE_INSTALL_PREFIX=/home/$SUDO_USER/.wsjtx .
> > #build WSJT-X on Debian
> > sudo -u $SUDO_USER cmake --build . --target install
> > #---------EOF-----------
> >
> >
> > #!/bin/bash
> > #-----wsjtx2rc3-solus-build-script.sh-------
> > #--------------RUN ME WITH SUDO-------------
> > #
> > #first the obligatory OS patches
> > eopkg -y up
> > #add user to dialout group allowing rig CAT control on next login
> > #(if you use VOX you don't actually need this)
> > usermod -a -G dialout $SUDO_USER
> > #install a whole bunch of dependencies to compile WSJT-X
> > #g++ is in system.devel along with lots of other good stuff
> > eopkg -y it -c system.devel && eopkg -y it git fftw-devel \
> > qt5-multimedia-devel qt5-connectivity-devel qt5-serialport-devel \
> > ruby-devel libusb-devel asciidoc
> > #asciidoctor is not in Solus repo and has to be added as a Ruby gem
> > gem install asciidoctor
> > #create some directories for WSJT-X
> > sudo -u $SUDO_USER mkdir /home/$SUDO_USER/jtsource 
> > sudo -u $SUDO_USER mkdir /home/$SUDO_USER/.wsjtx
> > #grab and unzip the source code from Princeton
> > wget --no-check-certificate \
> > https://physics.princeton.edu/pulsar/k1jt/wsjtx-2.0.0-rc3.tgz
> > sudo -u $SUDO_USER tar -xzvf wsjtx-2.0.0-rc3.tgz \
> > -C /home/$SUDO_USER/jtsource
> > cd /home/$SUDO_USER/jtsource/wsjtx-2.0.0-rc3
> > #set build options
> > sudo -u $SUDO_USER cmake -D CMAKE_CXX_COMPILER="/usr/bin/g++" \
> > -D CMAKE_Fortran_COMPILER="/usr/bin/gfortran" \
> > -D CMAKE_INSTALL_PREFIX=/home/$SUDO_USER/.wsjtx .
> > #build WSJT-X on Solus
> > sudo -u $SUDO_USER cmake --build . --target install
> > #---------EOF-----------
> >
> Sirs,
> 
> Unluckily on my openSUSE Tumbleweed 64bits the WSJTX  source compiling
> attempt has failed repeatedly, also by using the hamlib provided by G4WJS.
> 
> I've tried in several ways but all the times the cmake failed on same
> point related to hamlib which has not been found.
> 
> "Could NOT find hamlib (missing: hamlib_LIBRARY_DIRS) (Required is at least
> version "3")"
> 
> I've also deliberately added the path of my wsjtx-build hamlib folder
> into the environment by executing:
> 
> export
> LD_LIBRARY_PATH=/home/marco/WSJT-X_build/wsjtx-2.0.0-rc3/hamlib-prefix/lib64
> 
> Please if you can, try to resolve this issue in "a general and unified
> way" because as I verified on the mailing-list that the exactly same
> problem afflicts the project since several years now.
> 
> Having the possibility to built WSJT-X on the proper machine should be
> very good!
> 
> 
> Thanks and regards,
> 
> 
> -- 
> Marco Calistri PY1ZRJ
> 
> 
> 
> 
> _______________________________________________
> wsjt-devel mailing list
> wsjt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wsjt-devel


_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to