Created
July 4, 2016 23:07
-
-
Save rxseger/2c0aea05f47e162725f5ec703461d32a to your computer and use it in GitHub Desktop.
inspectrum compile error against liquid-dsp 1.2.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew tap dholm/sdr | |
| brew install dholm/sdr/liquid-dsp | |
| # problem: installs liquid-dsp 1.2.0, released Apr 26, 2012, | |
| # FIX: brew install --HEAD dholm/sdr/liquid-dsp | |
| git clone https://github.com/miek/inspectrum | |
| # https://github.com/miek/inspectrum/tree/fc9e575052a069923a21b496f73f2b4867539a2f | |
| cd inspectrum | |
| cmake . | |
| make | |
| build $ make | |
| [ 4%] Automatic moc for target inspectrum | |
| [ 4%] Built target inspectrum_automoc | |
| [ 9%] Building CXX object CMakeFiles/inspectrum.dir/frequencydemod.cpp.o | |
| /Users/admin/rf/inspectrum/frequencydemod.cpp:33:5: error: unknown type name 'freqdem'; did you mean 'freqmodem'? | |
| freqdem fdem = freqdem_create(0.05f); | |
| ^~~~~~~ | |
| freqmodem | |
| /usr/local/include/liquid/liquid.h:3129:30: note: 'freqmodem' declared here | |
| typedef struct freqmodem_s * freqmodem; | |
| ^ | |
| /Users/admin/rf/inspectrum/frequencydemod.cpp:33:20: error: use of undeclared identifier 'freqdem_create'; did you mean 'modem_create'? | |
| freqdem fdem = freqdem_create(0.05f); | |
| ^~~~~~~~~~~~~~ | |
| modem_create | |
| /usr/local/include/liquid/liquid.h:3023:7: note: 'modem_create' declared here | |
| modem modem_create(modulation_scheme _scheme); | |
| ^ | |
| /Users/admin/rf/inspectrum/frequencydemod.cpp:33:35: error: cannot initialize a parameter of type 'modulation_scheme' with an rvalue of type 'float' | |
| freqdem fdem = freqdem_create(0.05f); | |
| ^~~~~ | |
| /usr/local/include/liquid/liquid.h:3023:38: note: passing argument to parameter '_scheme' here | |
| modem modem_create(modulation_scheme _scheme); | |
| ^ | |
| /Users/admin/rf/inspectrum/frequencydemod.cpp:35:9: error: use of undeclared identifier 'freqdem_demodulate'; did you mean 'freqmodem_demodulate'? | |
| freqdem_demodulate(fdem, in[i], &out[i]); | |
| ^~~~~~~~~~~~~~~~~~ | |
| freqmodem_demodulate | |
| /usr/local/include/liquid/liquid.h:3154:6: note: 'freqmodem_demodulate' declared here | |
| void freqmodem_demodulate(freqmodem _fm, | |
| ^ | |
| /Users/admin/rf/inspectrum/frequencydemod.cpp:35:34: error: no viable conversion from 'std::__1::complex<float>' to 'liquid_float_complex' | |
| freqdem_demodulate(fdem, in[i], &out[i]); | |
| ^~~~~ | |
| /usr/local/include/liquid/liquid.h:86:1: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'std::__1::complex<float>' to | |
| 'const liquid_float_complex &' for 1st argument | |
| LIQUID_DEFINE_COMPLEX(float, liquid_float_complex); | |
| ^ | |
| /usr/local/include/liquid/liquid.h:82:47: note: expanded from macro 'LIQUID_DEFINE_COMPLEX' | |
| # define LIQUID_DEFINE_COMPLEX(R,C) typedef struct {R real; R imag;} C; | |
| ^ | |
| /usr/local/include/liquid/liquid.h:86:1: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'std::__1::complex<float>' to | |
| 'liquid_float_complex &&' for 1st argument | |
| /usr/local/include/liquid/liquid.h:82:47: note: expanded from macro 'LIQUID_DEFINE_COMPLEX' | |
| # define LIQUID_DEFINE_COMPLEX(R,C) typedef struct {R real; R imag;} C; | |
| ^ | |
| /usr/local/include/liquid/liquid.h:3155:48: note: passing argument to parameter '_y' here | |
| liquid_float_complex _y, | |
| ^ | |
| /Users/admin/rf/inspectrum/frequencydemod.cpp:37:5: error: use of undeclared identifier 'freqdem_destroy'; did you mean 'freqmodem_destroy'? | |
| freqdem_destroy(fdem); | |
| ^~~~~~~~~~~~~~~ | |
| freqmodem_destroy | |
| /usr/local/include/liquid/liquid.h:3140:6: note: 'freqmodem_destroy' declared here | |
| void freqmodem_destroy(freqmodem _fm); | |
| ^ | |
| 6 errors generated. | |
| make[2]: *** [CMakeFiles/inspectrum.dir/frequencydemod.cpp.o] Error 1 | |
| make[1]: *** [CMakeFiles/inspectrum.dir/all] Error 2 | |
| make: *** [all] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment