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
Re: [wsjt-devel] WSJT-X & JTSDK future?
Marco Calistri via wsjt-devel Mon, 22 Oct 2018 06:45:33 -0700
- [wsjt-devel] WSJT-X & JTSDK future? Paul Bramscher
- Re: [wsjt-devel] WSJT-X & JTSDK fut... Adam Schaible
- Re: [wsjt-devel] WSJT-X & JTSDK... Evariste Courjaud
- Re: [wsjt-devel] WSJT-X & JTSDK... Paul Bramscher
- Re: [wsjt-devel] WSJT-X & J... Stan Gammons
- Re: [wsjt-devel] WSJT-X & J... Bill Somerville
- Re: [wsjt-devel] WSJT-X &am... Adam Schaible
- Re: [wsjt-devel] WSJT-... Marco Calistri via wsjt-devel
- Re: [wsjt-devel] W... Adam Schaible
- Re: [wsjt-deve... Marco Calistri via wsjt-devel
- Re: [wsjt-deve... Marco Calistri via wsjt-devel
- Re: [wsjt-deve... Marco Calistri via wsjt-devel
- Re: [wsjt-deve... Adam Schaible
- Re: [wsjt-deve... Marco Calistri via wsjt-devel
- Re: [wsjt-deve... Adam Schaible
- Re: [wsjt-deve... Marco Calistri via wsjt-devel
- Re: [wsjt-deve... Greg Beam
- Re: [wsjt-deve... Bill Somerville