On 20/01/2020 08:24, Paul Kube wrote:
A simple question: Suppose I want to do a little WSJT-X development...
experimenting with new features, bug fixing, submitting the occasional
patch. I'll be coding on Linux, but will want to compile for Windows
as well as Linux for testing. (Not particularly interested in building
my own source tarball.) What's the best way to do this now?
I can build from
https://sourceforge.net/projects/wsjt/files/wsjtx-2.1.2/wsjtx-2.1.2.tgz
<https://sourceforge.net/projects/wsjt/files/wsjtx-2.1.2/wsjtx-2.1.2.tgz/download> just
fine; but I've seen email saying the repository has moved to git, so
I'm not sure that tarball is up to date. On the other hand, following
the git-centric instructions at
https://sourceforge.net/p/wsjt/wsjtx/ci/master/tree/INSTALL, the
build dies with errors like:
wsjtx-prefix/src/HamlibTransceiver.cpp:590:66: error:
‘RIG_PASSBAND_NOCHANGE’ was not declared in this scope
rig_set_mode (rig_.data (), RIG_VFO_CURR, dummy_mode_,
RIG_PASSBAND_NOCHANGE);
wsjtx-prefix/src/HamlibTransceiver.cpp:811:32: error:
‘rig_set_split_freq_mode’ was not declared in this scope
error_check (rig_set_split_freq_mode (rig_.data (),
RIG_VFO_CURR, tx, new_mode, RIG_PASSBAND_NOCHANGE), tr ("setting split
TX frequency and mode"));
Hi Paul,
building on MS Windows is considerably more complicated than on Linux
due to the lack of sensible third-party package management on that
platform, if you are comfortable with working from a Linux terminal
command line then that is probably your best choice for WSJT-X
development. You only need install git and a program editor of your
choice over and above the prerequisites for building WSJT-X and Hamlib
from the official release tarball. You could use the tarball as a
starting point for casual development but cloning the official public
git repository is best for anything other than the simplest of development.
The errors you show above are due to you not having a recent version of
Hamlib built for use with WSJT-X, the versions of Hamlib in most
(probably all) Linux repositiories are too old. You should be able to
clone the official Hamlib git repo and build the master branch for use
with WSJT-X. You should configure the Hamlib build to build a static
library and its probably best to install that locally in your own
directories using the --prefix option of configure. Once you have a
locally installed Hamlib you can tell the WSJT-X CMake build script
where to find it using the configuration variable CMAKE_PREFIX_PATH
which should include the root directory of your locally install Hamlib
package.
73
Bill
G4WJS.
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel