f4exb / sdrangel

SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay and FunCube
GNU General Public License v3.0
2.94k stars 447 forks source link

LimeSDR Plugin - Failed build #133

Closed FFY00 closed 6 years ago

FFY00 commented 6 years ago

I have the latest drivers from git.

[ 44%] Building CXX object sdrgui/CMakeFiles/sdrgui.dir/gui/commandkeyreceiver.cpp.o
/home/anubis/git/sdrangel/plugins/samplesink/limesdroutput/limesdroutput.cpp: In member function ‘virtual bool LimeSDROutput::handleMessage(const Message&)’:
/home/anubis/git/sdrangel/plugins/samplesink/limesdroutput/limesdroutput.cpp:632:32: error: ‘struct lms_stream_status_t’ has no member named ‘sampleRate’
                         status.sampleRate,
                                ^~~~~~~~~~
[ 44%] Building CXX object sdrgui/CMakeFiles/sdrgui.dir/gui/commandoutputdialog.cpp.o
/home/anubis/git/sdrangel/plugins/samplesource/limesdrinput/limesdrinput.cpp: In member function ‘virtual bool LimeSDRInput::handleMessage(const Message&)’:
/home/anubis/git/sdrangel/plugins/samplesource/limesdrinput/limesdrinput.cpp:631:32: error: ‘struct lms_stream_status_t’ has no member named ‘sampleRate’
                         status.sampleRate,
                                ^~~~~~~~~~
f4exb commented 6 years ago

Obviously lms_stream_status_t is in the LimeSuite API amd good chances are that your copy or clone is outdated. See: http://docs.myriadrf.org/LMS_API/structlms__stream__status__t.html

f4exb commented 6 years ago

In fact it is the opposite. sampleRate has been removed from the structure. As a quick fix try to check out commit 04b57e0 in LimeSuite. It does not look like it is used so I can probably remove it

f4exb commented 6 years ago

Removed on dev branch

FFY00 commented 6 years ago

Thanks, I'm able to build the dev branch now. Although I can only tune the LimeSDR between 3kHz and 30kHz. The main frequency is synchronized with the NCO frequency.

f4exb commented 6 years ago

I don't know why it is doing that. This is a regression of LimeSuite maybe try to check out an earlier commit. Frequency is in kHz so actually this is 3.8 to 30 MHz.

It looks like it was introduced by https://github.com/myriadrf/LimeSuite/commit/c02f4358b6eb3a83f333e8951419f34b18667dde

So do git checkout ebd027169defc9689d1eefa0f57d4df617b7cc4d in LimeSuite then build and install again. Then rebuild SDRangel. This should fix the issue.

f4exb commented 6 years ago

The frequency limit problem appears with the Mini version only along with other problems. It seems they did a big mess for the Mini in the recent versions of LimeSuite. The "big" one seems unaffected.

FFY00 commented 6 years ago

What do you mean? I have a normal LimeSDR.

f4exb commented 6 years ago

Then you should be able to tune any frequency in the available range (30 to 3800 MHz)

FFY00 commented 6 years ago

When I tested it I wasn't able to. I'll try again when I have time.

f4exb commented 6 years ago

The frequency issue (solved in Lime Suite) is being followed up on #139 This one can be closed.