root@go:/usr/src/SoapySDRPlay/build# make
[ 25%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Registation.cpp.o
In file included from /usr/src/SoapySDRPlay/Registation.cpp:25:0:
/usr/src/SoapySDRPlay/SoapySDRPlay.hpp: In constructor ‘SDRPlayGainPref::SDRPlayGainPref(double, double, double, int, int, int)’:
/usr/src/SoapySDRPlay/SoapySDRPlay.hpp:51:26: warning: ‘SDRPlayGainPref::grLNA’ will be initialized after [-Wreorder]
int grTarget, grMax, grLNA;
^~~~~
/usr/src/SoapySDRPlay/SoapySDRPlay.hpp:51:19: warning: ‘int SDRPlayGainPref::grMax’ [-Wreorder]
int grTarget, grMax, grLNA;
^~~~~
/usr/src/SoapySDRPlay/SoapySDRPlay.hpp:53:5: warning: when initialized here [-Wreorder]
SDRPlayGainPref(double lo, double min, double max, int targetGain = 40, int lnaGain = 24, int maxGain = 102) : loFreq(lo), freqMin(min), freqMax(max), grTarget(targetGain), grLNA(lnaGain), grMax(maxGain) { }
^~~~~~~
[ 50%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Settings.cpp.o
In file included from /usr/src/SoapySDRPlay/Settings.cpp:25:0:
/usr/src/SoapySDRPlay/SoapySDRPlay.hpp: In constructor ‘SDRPlayGainPref::SDRPlayGainPref(double, double, double, int, int, int)’:
/usr/src/SoapySDRPlay/SoapySDRPlay.hpp:51:26: warning: ‘SDRPlayGainPref::grLNA’ will be initialized after [-Wreorder]
int grTarget, grMax, grLNA;
^~~~~
/usr/src/SoapySDRPlay/SoapySDRPlay.hpp:51:19: warning: ‘int SDRPlayGainPref::grMax’ [-Wreorder]
int grTarget, grMax, grLNA;
^~~~~
/usr/src/SoapySDRPlay/SoapySDRPlay.hpp:53:5: warning: when initialized here [-Wreorder]
SDRPlayGainPref(double lo, double min, double max, int targetGain = 40, int lnaGain = 24, int maxGain = 102) : loFreq(lo), freqMin(min), freqMax(max), grTarget(targetGain), grLNA(lnaGain), grMax(maxGain) { }
^~~~~~~
/usr/src/SoapySDRPlay/Settings.cpp: In constructor ‘SoapySDRPlay::SoapySDRPlay(const Kwargs&)’:
/usr/src/SoapySDRPlay/Settings.cpp:31:18: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
mir_sdr_ErrT err;
^~~
/usr/src/SoapySDRPlay/Settings.cpp: In member function ‘virtual SoapySDR::Kwargs SoapySDRPlay::getHardwareInfo() const’:
/usr/src/SoapySDRPlay/Settings.cpp:81:18: warning: unused variable ‘err’ [-Wunused-variable]
mir_sdr_ErrT err;
^~~
/usr/src/SoapySDRPlay/Settings.cpp: In static member function ‘static std::__cxx11::string SoapySDRPlay::IFtoString(mir_sdr_If_kHzT)’:
/usr/src/SoapySDRPlay/Settings.cpp:465:14: error: ‘mir_sdr_IF_Undefined’ was not declared in this scope
case mir_sdr_IF_Undefined:
^~~~~~~~
make[2]: [CMakeFiles/sdrPlaySupport.dir/build.make:87: CMakeFiles/sdrPlaySupport.dir/Settings.cpp.o] Error 1
make[1]: [CMakeFiles/Makefile2:68: CMakeFiles/sdrPlaySupport.dir/all] Error 2
make: *** [Makefile:128: all] Error 2
Need help. gcc version is 6.2.0.
What else?
root@go:/usr/src/SoapySDRPlay/build# make [ 25%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Registation.cpp.o In file included from /usr/src/SoapySDRPlay/Registation.cpp:25:0: /usr/src/SoapySDRPlay/SoapySDRPlay.hpp: In constructor ‘SDRPlayGainPref::SDRPlayGainPref(double, double, double, int, int, int)’: /usr/src/SoapySDRPlay/SoapySDRPlay.hpp:51:26: warning: ‘SDRPlayGainPref::grLNA’ will be initialized after [-Wreorder] int grTarget, grMax, grLNA; ^~~~~ /usr/src/SoapySDRPlay/SoapySDRPlay.hpp:51:19: warning: ‘int SDRPlayGainPref::grMax’ [-Wreorder] int grTarget, grMax, grLNA; ^~~~~ /usr/src/SoapySDRPlay/SoapySDRPlay.hpp:53:5: warning: when initialized here [-Wreorder] SDRPlayGainPref(double lo, double min, double max, int targetGain = 40, int lnaGain = 24, int maxGain = 102) : loFreq(lo), freqMin(min), freqMax(max), grTarget(targetGain), grLNA(lnaGain), grMax(maxGain) { } ^
~~~~~~ [ 50%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Settings.cpp.o In file included from /usr/src/SoapySDRPlay/Settings.cpp:25:0: /usr/src/SoapySDRPlay/SoapySDRPlay.hpp: In constructor ‘SDRPlayGainPref::SDRPlayGainPref(double, double, double, int, int, int)’: /usr/src/SoapySDRPlay/SoapySDRPlay.hpp:51:26: warning: ‘SDRPlayGainPref::grLNA’ will be initialized after [-Wreorder] int grTarget, grMax, grLNA; ^~~~~ /usr/src/SoapySDRPlay/SoapySDRPlay.hpp:51:19: warning: ‘int SDRPlayGainPref::grMax’ [-Wreorder] int grTarget, grMax, grLNA; ^~~~~ /usr/src/SoapySDRPlay/SoapySDRPlay.hpp:53:5: warning: when initialized here [-Wreorder] SDRPlayGainPref(double lo, double min, double max, int targetGain = 40, int lnaGain = 24, int maxGain = 102) : loFreq(lo), freqMin(min), freqMax(max), grTarget(targetGain), grLNA(lnaGain), grMax(maxGain) { } ^~~~~~~ /usr/src/SoapySDRPlay/Settings.cpp: In constructor ‘SoapySDRPlay::SoapySDRPlay(const Kwargs&)’: /usr/src/SoapySDRPlay/Settings.cpp:31:18: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] mir_sdr_ErrT err; ^~~ /usr/src/SoapySDRPlay/Settings.cpp: In member function ‘virtual SoapySDR::Kwargs SoapySDRPlay::getHardwareInfo() const’: /usr/src/SoapySDRPlay/Settings.cpp:81:18: warning: unused variable ‘err’ [-Wunused-variable] mir_sdr_ErrT err; ^~~ /usr/src/SoapySDRPlay/Settings.cpp: In static member function ‘static std::__cxx11::string SoapySDRPlay::IFtoString(mir_sdr_If_kHzT)’: /usr/src/SoapySDRPlay/Settings.cpp:465:14: error: ‘mir_sdr_IF_Undefined’ was not declared in this scope case mir_sdr_IF_Undefined: ^~~~~~~~ make[2]: [CMakeFiles/sdrPlaySupport.dir/build.make:87: CMakeFiles/sdrPlaySupport.dir/Settings.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:68: CMakeFiles/sdrPlaySupport.dir/all] Error 2 make: *** [Makefile:128: all] Error 2