kalibrate-bladeRF
kalibrate-bladeRF copied to clipboard
Fails on Ubuntu 17.04 using libfftw 3.3.5-3
https://github.com/Nuand/kalibrate-bladeRF/blob/7b06cf80137a19b72ea33b31c3664c5881299794/src/fcch_detector.cc#L318
g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT kal-fcch_detector.o -MD -MP -MF .deps/kal-fcch_detector.Tpo -c -o kal-fcch_detector.o
test -f 'fcch_detector.cc' || echo './'fcch_detector.cc fcch_detector.cc: In member function ‘float fcch_detector::freq_detect(const complex*, unsigned int, float*)’: fcch_detector.cc:320:29: error: lvalue required as left operand of assignment fft[i].real() = m_out[i][0]; ^ fcch_detector.cc:321:29: error: lvalue required as left operand of assignment fft[i].imag() = m_out[i][1]; ^ Makefile:470: recipe for target 'kal-fcch_detector.o' failed make: *** [kal-fcch_detector.o] Error 1
Fixed in fcch_detector.cc L318
fft[i] = complex(m_out[i][0], m_out[i][1]);
Also should use constexpr in fcch_detector.h static constexpr double GSM_RATE = 1625000.0 / 6.0;