Reply is at the bottom.

Il 25/10/18 11:20, Marco Calistri via wsjt-devel ha scritto:
>
>
> Il 22/10/18 17:31, Adam Schaible ha scritto:
>> 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-----------
>>
> Hello Adam,
>
> I verified on my system and I had already all dependencies installed,
> but ruby2.5-rubygem-asciidoctor and  asciidoc.
>
> When I tried to install the latter package, zypper answers with a
> warning that to accompany this, I would need to install *2207*
> additional "texlive packages",
> then of course I didn't hit 'yes'!
>
> I suppose this requirement of having asciidoc installed can be easily
> omitted by telling to "configure" script to not install the
> "man-pages" and the "html docs".
>
> Thus I will try to build the WSJT-X source again following only
> partially your guidelines.
>
> Regards,
> -- 
> 73 de P1ZRJ
>
>
> _______________________________________________
> wsjt-devel mailing list
> wsjt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wsjt-devel
The error is exactly the same I faced all the times I tried to compile
WSJT-X from source.

It is related to hamlib and not to docs files as it should be due the
missing asciidocs package, so for now I will suspend my unsuccesfull
attempts

-- Building wsjtx-2.0.0-rc3
-- ******************************************************
-- Building for for: Linux-x86_64
-- ******************************************************
-- Boost version: 1.63.0
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP_Fortran: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5") 
-- Found FFTW3: /usr/lib64/libfftw3_threads.so 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'hamlib'
--   Found hamlib, version 4.0~git
-- Found hamlib
CMake Error at
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find hamlib (missing: hamlib_LIBRARY_DIRS) (Required is at least
  version "3")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378
(_FPHSA_FAILURE_MESSAGE)
  CMake/Modules/Findhamlib.cmake:81 (find_package_handle_standard_args)
  CMakeLists.txt:852 (find_package)


-- Configuring incomplete, errors occurred!
See also
"/home/marco/WSJT-X_build/wsjtx-2.0.0-rc3/wsjtx_release/wsjtx-2.0.0-rc3/wsjtx-prefix/src/wsjtx-build/CMakeFiles/CMakeOutput.log".
gmake[3]: *** [CMakeFiles/wsjtx-install.dir/build.make:73:
wsjtx-prefix/src/wsjtx-stamp/wsjtx-configure] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:361:
CMakeFiles/wsjtx-install.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:432: CMakeFiles/install.dir/rule]
Error 2
gmake: *** [Makefile:261: install] Error 2

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

Reply via email to