From: Alessandro G. <al...@li...> - 2019-12-22 16:36:57
|
Hi all, I try to recompile wsjtx after a hamlib git clone git://git.code.sf.net/u/bsomervi/hamlib src git checkout integration hamlib compile go well, but seems as vfo_t this month change type from int to unsigned int. I rollback to a older version of hamlib and it work. Compiler is gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 7.3.0 included in QT 5.12.6 cmake version 3.15.5 Is it a my misunderstanding ???????? [ 89%] Building CXX object CMakeFiles/wsjt_qt.dir/TraceFile.cpp.obj [ 89%] Building CXX object CMakeFiles/wsjt_qt.dir/AudioDevice.cpp.obj [ 89%] Building CXX object CMakeFiles/wsjt_qt.dir/Transceiver.cpp.obj [ 89%] Building CXX object CMakeFiles/wsjt_qt.dir/TransceiverBase.cpp.obj [ 89%] Building CXX object CMakeFiles/wsjt_qt.dir/EmulateSplitTransceiver.cpp.obj [ 89%] Building CXX object CMakeFiles/wsjt_qt.dir/TransceiverFactory.cpp.obj [ 90%] Building CXX object CMakeFiles/wsjt_qt.dir/PollingTransceiver.cpp.obj [ 90%] Building CXX object CMakeFiles/wsjt_qt.dir/HamlibTransceiver.cpp.obj In file included from C:\JTSDK64\zzgit64\src\TransceiverFactory.cpp:5:0: C:\JTSDK64\zzgit64\src\HamlibTransceiver.hpp:17:15: error: conflicting declaration 'typedef int vfo_t' typedef int vfo_t; ^~~~~ In file included from C:\JTSDK64\zzgit64\src\HamlibTransceiver.hpp:8:0, from C:\JTSDK64\zzgit64\src\TransceiverFactory.cpp:5: C:/JTSDK64/hamlib/include/hamlib/rig.h:366:22: note: previous declaration as 'typedef unsigned int vfo_t' typedef unsigned int vfo_t; ^~~~~ mingw32-make.exe[2]: *** [CMakeFiles\wsjt_qt.dir\build.make:457: CMakeFiles/wsjt_qt.dir/TransceiverFactory.cpp.obj] Error 1 mingw32-make.exe[2]: *** Waiting for unfinished jobs.... In file included from C:\JTSDK64\zzgit64\src\HamlibTransceiver.cpp:1:0: C:\JTSDK64\zzgit64\src\HamlibTransceiver.hpp:17:15: error: conflicting declaration 'typedef int vfo_t' typedef int vfo_t; ^~~~~ In file included from C:\JTSDK64\zzgit64\src\HamlibTransceiver.hpp:8:0, from C:\JTSDK64\zzgit64\src\HamlibTransceiver.cpp:1: C:/JTSDK64/hamlib/include/hamlib/rig.h:366:22: note: previous declaration as 'typedef unsigned int vfo_t' typedef unsigned int vfo_t; ^~~~~ mingw32-make.exe[2]: *** [CMakeFiles\wsjt_qt.dir\build.make:487: CMakeFiles/wsjt_qt.dir/HamlibTransceiver.cpp.obj] Error 1 mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:304: CMakeFiles/wsjt_qt.dir/all] Error 2 mingw32-make.exe: *** [Makefile:151: all] Error 2 C:\JTSDK64> -- 73 Sandro IW3RAB |
From: Bill S. <g4...@cl...> - 2019-12-22 16:43:36
|
On 22/12/2019 16:36, Alessandro Gorobey via wsjt-devel wrote: > Hi all, > > I try to recompile wsjtx after a hamlib > git clone git://git.code.sf.net/u/bsomervi/hamlib src > git checkout integration > > hamlib compile go well, but seems as vfo_t this month change type from > int to unsigned int. > I rollback to a older version of hamlib and it work. Hi Sandro, this patch will fix the build: ---------------------- Transceiver/HamlibTransceiver.hpp ---------------------- index bcc040d23..fcc17eeb9 100644 @@ -10,13 +10,6 @@ #include "TransceiverFactory.hpp" #include "PollingTransceiver.hpp" -extern "C" -{ - typedef struct rig RIG; - struct rig_caps; - typedef int vfo_t; -} - // hamlib transceiver and PTT mostly delegated directly to hamlib Rig class class HamlibTransceiver final : public PollingTransceiver 73 Bill G4WJS. |
From: Alessandro G. <al...@li...> - 2019-12-22 17:15:38
|
Thanks and season's greetings Il 22/12/2019 17:43, Bill Somerville ha scritto: > On 22/12/2019 16:36, Alessandro Gorobey via wsjt-devel wrote: >> Hi all, >> >> I try to recompile wsjtx after a hamlib >> git clone git://git.code.sf.net/u/bsomervi/hamlib src >> git checkout integration >> >> hamlib compile go well, but seems as vfo_t this month change type from >> int to unsigned int. >> I rollback to a older version of hamlib and it work. > > Hi Sandro, > > this patch will fix the build: > > ---------------------- Transceiver/HamlibTransceiver.hpp > ---------------------- > index bcc040d23..fcc17eeb9 100644 > @@ -10,13 +10,6 @@ > #include "TransceiverFactory.hpp" > #include "PollingTransceiver.hpp" > > -extern "C" > -{ > - typedef struct rig RIG; > - struct rig_caps; > - typedef int vfo_t; > -} > - > // hamlib transceiver and PTT mostly delegated directly to hamlib Rig > class > class HamlibTransceiver final > : public PollingTransceiver > > 73 > Bill > G4WJS. > > > > _______________________________________________ > wsjt-devel mailing list > wsj...@li... > https://lists.sourceforge.net/lists/listinfo/wsjt-devel -- 73 Sandro IW3RAB |
From: Black M. <mdb...@ya...> - 2019-12-22 16:45:57
|
Just change the WSJT-X definition to unsigned int. Actually it would seem to me that typedef in HamliblibTransceiver.hpp should be deleted. de Mike W9MDB On Sunday, December 22, 2019, 10:41:20 AM CST, Alessandro Gorobey via wsjt-devel <wsj...@li...> wrote: Hi all, I try to recompile wsjtx after a hamlib git clone git://git.code.sf.net/u/bsomervi/hamlib src git checkout integration hamlib compile go well, but seems as vfo_t this month change type from int to unsigned int. I rollback to a older version of hamlib and it work. Compiler is gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 7.3.0 included in QT 5.12.6 cmake version 3.15.5 Is it a my misunderstanding ???????? [ 89%] Building CXX object CMakeFiles/wsjt_qt.dir/TraceFile.cpp.obj [ 89%] Building CXX object CMakeFiles/wsjt_qt.dir/AudioDevice.cpp.obj [ 89%] Building CXX object CMakeFiles/wsjt_qt.dir/Transceiver.cpp.obj [ 89%] Building CXX object CMakeFiles/wsjt_qt.dir/TransceiverBase.cpp.obj [ 89%] Building CXX object CMakeFiles/wsjt_qt.dir/EmulateSplitTransceiver.cpp.obj [ 89%] Building CXX object CMakeFiles/wsjt_qt.dir/TransceiverFactory.cpp.obj [ 90%] Building CXX object CMakeFiles/wsjt_qt.dir/PollingTransceiver.cpp.obj [ 90%] Building CXX object CMakeFiles/wsjt_qt.dir/HamlibTransceiver.cpp.obj In file included from C:\JTSDK64\zzgit64\src\TransceiverFactory.cpp:5:0: C:\JTSDK64\zzgit64\src\HamlibTransceiver.hpp:17:15: error: conflicting declaration 'typedef int vfo_t' typedef int vfo_t; ^~~~~ In file included from C:\JTSDK64\zzgit64\src\HamlibTransceiver.hpp:8:0, from C:\JTSDK64\zzgit64\src\TransceiverFactory.cpp:5: C:/JTSDK64/hamlib/include/hamlib/rig.h:366:22: note: previous declaration as 'typedef unsigned int vfo_t' typedef unsigned int vfo_t; ^~~~~ mingw32-make.exe[2]: *** [CMakeFiles\wsjt_qt.dir\build.make:457: CMakeFiles/wsjt_qt.dir/TransceiverFactory.cpp.obj] Error 1 mingw32-make.exe[2]: *** Waiting for unfinished jobs.... In file included from C:\JTSDK64\zzgit64\src\HamlibTransceiver.cpp:1:0: C:\JTSDK64\zzgit64\src\HamlibTransceiver.hpp:17:15: error: conflicting declaration 'typedef int vfo_t' typedef int vfo_t; ^~~~~ In file included from C:\JTSDK64\zzgit64\src\HamlibTransceiver.hpp:8:0, from C:\JTSDK64\zzgit64\src\HamlibTransceiver.cpp:1: C:/JTSDK64/hamlib/include/hamlib/rig.h:366:22: note: previous declaration as 'typedef unsigned int vfo_t' typedef unsigned int vfo_t; ^~~~~ mingw32-make.exe[2]: *** [CMakeFiles\wsjt_qt.dir\build.make:487: CMakeFiles/wsjt_qt.dir/HamlibTransceiver.cpp.obj] Error 1 mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:304: CMakeFiles/wsjt_qt.dir/all] Error 2 mingw32-make.exe: *** [Makefile:151: all] Error 2 C:\JTSDK64> -- 73 Sandro IW3RAB _______________________________________________ wsjt-devel mailing list wsj...@li... https://lists.sourceforge.net/lists/listinfo/wsjt-devel |