On 15/11/2018 00:49, Mark Klein wrote:
Hi Bill,

hanks for the info. I have a CentOS VM up now and am investigating why the 
Hamlib package find is failing. We have a home brew CMake package finder for 
Hamlib as no one has contributed the required CMake scripts to ship with 
Hamlib. I really should sort that out and contribute upstream;)
Don’t forget to install the hamlib RPMs too to match my config.

Your CMake configure line could include '-DWSJT_SKIP_MANPAGES=ON 
-DWSJT_GENERATE_DOCS=OFF' which saves having to install many dependencies not 
needed for the core application build.
Thanks for the hints … I’ll add the to my notes for the next build!


73 de km6aow
---
Mark Klein



Hi Mark,

any Hamlib RPMs installed have no bearing on a WSJT-X build from our source tarball.

I am now able to build on CentOS 7 with the following recipe:

My starting point was a VM install of CentOS 7 with the GNOME Desktop group installed, the system was fully updated with 'sudo yum update'.

1) Install required dependencies to build Hamlib and WST-X (without manpages and manual):

sudo yum install gcc-gfortran cmake fftw3-devel libudev-devel libusbx-devel qt5-qtserialport-devel git gcc-c++ make autoconf automake patch libtool texinfo qt5-qtmultimedia-devel

2) Fetch the source tarball:

mkdir -p ~/wsjtx-prefix/build
cd !$/..
wget https://sourceforge.net/projects/wsjt/files/wsjtx-2.0.0-rc4/wsjtx-2.0.0-rc4.tgz
tar xf wsjtx-2.0.0-rc4.tgz

3) Insert patches:

copy the attached patch to ~/wsjtx-prefix/wsjtx-2.0.0-rc4/ overwriting the empty file with the same name.

4) Configure the build tree:

cd build
cmake -DCMAKE_INSTALL_PREFIX=.. -DWSJT_SKIP_MANPAGES=ON -DWSJT_GENERATE_DOCS=OFF ../wsjtx-2.0.0-rc4

5) Build and install the application:

cmake --build . --target install -- -j

6) Run WSJT-X (I found that the default native GUI widgets were nasty so I selected the Qt cross platform fusion sytle, YMMV):

~/wsjtx-prefix/bin/wstx -style fusion

The patch file is only necessary for WSJT-X v2.0.0 RC4 and earlier, I will apply the changes to our repo so the next release will not require them.

73
Bill
G4WJS.

diff --git a/CMake/Modules/Findhamlib.cmake b/CMake/Modules/Findhamlib.cmake
index 1590f05..e880d84 100644
--- a/CMake/Modules/Findhamlib.cmake
+++ b/CMake/Modules/Findhamlib.cmake
@@ -16,8 +16,9 @@ set (hamlib_LIBRARY_DIRS)
 
 # pkg-config?
 find_path (__hamlib_pc_path NAMES hamlib.pc
-  PATH_SUFFIXES lib/pkgconfig
+  PATH_SUFFIXES lib/pkgconfig lib64/pkgconfig
   )
+
 if (__hamlib_pc_path)
   set (ENV{PKG_CONFIG_PATH} "${__hamlib_pc_path}" "$ENV{PKG_CONFIG_PATH}")
   unset (__hamlib_pc_path CACHE)
diff --git a/qt_db_helpers.hpp b/qt_db_helpers.hpp
index 3f159a8..da823b0 100644
--- a/qt_db_helpers.hpp
+++ b/qt_db_helpers.hpp
@@ -25,7 +25,7 @@ class ConditionalTransaction final
 {
 public:
   explicit ConditionalTransaction (QSqlTableModel& model)
-    : model_ {model}
+    : model_ (model)
     , submitted_ {false}
   {
     model_.database ().transaction ();
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to