dbdexter-dev / sdrpp_radiosonde

Radiosonde decoder plugin for SDR++
MIT License
87 stars 12 forks source link

Build on macOS fails #23

Closed fred-corp closed 1 year ago

fred-corp commented 1 year ago

I'm trying to compile this plugin one macOS; everything seems to be going well until I get the following error :

[ 61%] Built target radiosonde
[ 62%] Building CXX object decoder_modules/sdrpp_radiosonde/CMakeFiles/radiosonde_decoder.dir/src/main.cpp.o
In file included from /Users/fredericdruppel/Downloads/SDRPlusPlus/decoder_modules/sdrpp_radiosonde/src/main.cpp:7:
In file included from /Users/fredericdruppel/Downloads/SDRPlusPlus/core/src/signal_path/signal_path.h:2:
In file included from /Users/fredericdruppel/Downloads/SDRPlusPlus/core/src/signal_path/iq_frontend.h:3:
/Users/fredericdruppel/Downloads/SDRPlusPlus/core/src/signal_path/../dsp/buffer/reshaper.h:61:13: warning: 'run' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        int run() {
            ^
/Users/fredericdruppel/Downloads/SDRPlusPlus/core/src/signal_path/iq_frontend.h:79:43: note: in instantiation of template class 'dsp::buffer::Reshaper<dsp::complex_t>' requested here
    dsp::buffer::Reshaper<dsp::complex_t> reshape;
                                          ^
/Users/fredericdruppel/Downloads/SDRPlusPlus/core/src/dsp/block.h:65:21: note: overridden virtual function is here
        virtual int run() = 0;
                    ^
/Users/fredericdruppel/Downloads/SDRPlusPlus/decoder_modules/sdrpp_radiosonde/src/main.cpp:57:46: error: too few arguments to function call, expected 5, have 4
        fmDemod.init(vfo->output, bw, bw/2.0f, false);
        ~~~~~~~~~~~~                                ^
/Users/fredericdruppel/Downloads/SDRPlusPlus/core/src/dsp/demod/fm.h:25:14: note: 'init' declared here
        void init(dsp::stream<dsp::complex_t>* in, double samplerate, double bandwidth, bool lowPass, bool highPass) {
             ^
1 warning and 1 error generated.
make[2]: *** [decoder_modules/sdrpp_radiosonde/CMakeFiles/radiosonde_decoder.dir/build.make:118: decoder_modules/sdrpp_radiosonde/CMakeFiles/radiosonde_decoder.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:864: decoder_modules/sdrpp_radiosonde/CMakeFiles/radiosonde_decoder.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Can someone help me ? ^^'

fred-corp commented 1 year ago

Fixed by adding the 5th missing argument. See this PR for more info