SoapySDRPlay compile error on Unbuntu 14

Post information or questions regarding SDRplay products here
brucep
Posts: 5
Joined: Sat Jun 03, 2017 7:16 am

SoapySDRPlay compile error on Unbuntu 14

Postby brucep » Sat Jun 03, 2017 8:09 am

My last post seemed to go astray ! Apologies if this is the second time you see this.

I have been unable to install Skywave Linux, as the mini PC target I'm using can't install anything Ubuntu 16 due to a video issue.

So I'm been trying the long way to install under Ubuntu 14, following the github guide for CubicSDR linux installation given.
Before that, I was able to successfully install the SDRPlay 2.10 libraries using the .run file.

[NB: wxWidgets 3.1.0 version is not where the guide says anymore, but I was able to get it as a zip file OK].

The problem occurs when I attempt to make SoapySDRPlay:

$ make
Scanning dependencies of target sdrPlaySupport
[ 33%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Registation.cpp.o
[ 66%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Settings.cpp.o
[100%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Streaming.cpp.o
Linking CXX shared module libsdrPlaySupport.so
/usr/local/lib/libmirsdrapi-rsp.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [libsdrPlaySupport.so] Error 1
make[1]: *** [CMakeFiles/sdrPlaySupport.dir/all] Error 2
make: *** [all] Error 2

I saw elsewhere that SDRPlay say the 2.10 libraries are backwards compatible with 1.97 (which the guide used), so I don't understand why I'd get this error ?
Last edited by brucep on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

octave9
Posts: 59
Joined: Sun Feb 19, 2017 7:54 pm

Re: SoapySDRPlay compile error on Unbuntu 14

Postby octave9 » Sat Jun 03, 2017 11:33 am

I see your original post has appeared. Pretty sure it wasn't there earlier, so a forum glitch I guess.

I'd recommend trying to follow the 'Non-Windows Workflow' pdf at http://www.sdrplay.com/downloads/ but I see there's still a mistake (or two) in it.

Both the cjcliffe guide on the github Wiki and the Workflow guide say the same URL for WxWidgets and it seems to be working today. Maybe try to wget it again in case the contents of the zip you mentioned is causing the problem. I got it with:

wget https://github.com/wxWidgets/wxWidgets/ ... .0.tar.bz2

There's an unfortunate line break in section 6.2 of the Workflow guide which may have caught you out, so use the line above. Similarly; the line which says 'cd wxWidgets=3.1.0' should say 'cd wxWidgets-3.1.0'.

The ./configure line splits when you copy it, so use:

./configure --with-opengl --disable-shared --enable-monolithic --with-libjpeg --with-libtiff --with-libpng --with-zlib --disable-sdltest --enable-unicode --enable-display --enable-propgrid --disable-webkit --disable-webview --disable-webviewwebkit --prefix=`echo ~/Dev/wxWidgets-staticlib` CXXFLAGS="-std=c++0x"

Which you should be able to cut n paste as one very long command line...

Hoping it helps, but ask again if you're still stuck. Seems there are a few users who prefer Linux - even over the quite nice SDRUno...

Reason: No reason

octave9
Posts: 59
Joined: Sun Feb 19, 2017 7:54 pm

Re: SoapySDRPlay compile error on Unbuntu 14

Postby octave9 » Sat Jun 03, 2017 11:39 am

Section 6.2 of the workflow doc has been fixed in the version now available. The back-slashes make the command work by 'escaping' the line breaks (I think). 8-)

Reason: No reason

brucep
Posts: 5
Joined: Sat Jun 03, 2017 7:16 am

Re: SoapySDRPlay compile error on Unbuntu 14

Postby brucep » Tue Jun 06, 2017 4:09 am

Hi,

Thanks for your replies about wxWidgets. I actually got through that bit OK, even if not quite the way described in the guide. I downloaded a zip file to a windows box of v3.1.0 tag, unzipped it there and copied the whole lot to the Ubuntu 14 PC. All configured and compiled OK. CubicSDR actually runs, but there are no devices.

The problem I experienced was with SoapySDRPlay, which I ultimately need to talk to my SDRPlay box ! I might be wrong, but I don't think SoapySDRPlay has any dependency on wxWidgets at all. It seems like the libmirsdrapi-rsp.so I have installed isn't what the rest of Soapy expects to see.
Last edited by brucep on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 569
Joined: Wed Jan 07, 2015 7:58 am

Re: SoapySDRPlay compile error on Unbuntu 14

Postby sdrplay » Thu Jun 08, 2017 9:13 pm

That error means you have the wrong API for your system. What is your system (processor type) and what API did you download?

Best regards,

SDRplay Support

Reason: No reason

brucep
Posts: 5
Joined: Sat Jun 03, 2017 7:16 am

Re: SoapySDRPlay compile error on Unbuntu 14

Postby brucep » Tue Jun 20, 2017 9:07 am

Hi,

I have an x6_64 target.
I downloaded the .run file and ran it, so I don't know what API type I have downloaded. Is there some sort of auto-detection ? I couldn't see anything obvious in the .run file itself.
If the run file only gets x86 target API, how do I get the x86_64 version from the SDRPlay website ?
Last edited by brucep on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 569
Joined: Wed Jan 07, 2015 7:58 am

Re: SoapySDRPlay compile error on Unbuntu 14

Postby sdrplay » Tue Jun 20, 2017 9:41 am

That error means the .so is in the wrong format for your system. What OS and processor are you using?

Best regards,

SDRplay Support

Reason: No reason

src1138
Posts: 4
Joined: Thu Jul 27, 2017 1:00 pm

Re: SoapySDRPlay compile error on Unbuntu 14

Postby src1138 » Thu Jul 27, 2017 1:34 pm

Hi - I am having the same problem.

OS: Ubuntu 16.04 LTS 64-bit
Processor: Intel® Core™ i3-4030U CPU @ 1.90GHz × 4

I kept running into this problem when trying to build SoapySDRPlay on a pre-existing install of Ubuntu 16.04 LTS 64-bit, so I did a clean install and still get an error on make:

-- Build files have been written to: /home/src1138/backup_20170727/Desktop/sdrplay/SoapySDRPlay/build
Scanning dependencies of target sdrPlaySupport
[ 25%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Registation.cpp.o
[ 50%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Settings.cpp.o
[ 75%] Building CXX object CMakeFiles/sdrPlaySupport.dir/Streaming.cpp.o
[100%] Linking CXX shared module libsdrPlaySupport.so
/usr/local/lib/libmirsdrapi-rsp.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
CMakeFiles/sdrPlaySupport.dir/build.make:148: recipe for target 'libsdrPlaySupport.so' failed
make[2]: *** [libsdrPlaySupport.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/sdrPlaySupport.dir/all' failed
make[1]: *** [CMakeFiles/sdrPlaySupport.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
[ 25%] Linking CXX shared module libsdrPlaySupport.so
/usr/local/lib/libmirsdrapi-rsp.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
CMakeFiles/sdrPlaySupport.dir/build.make:148: recipe for target 'libsdrPlaySupport.so' failed
make[2]: *** [libsdrPlaySupport.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/sdrPlaySupport.dir/all' failed
make[1]: *** [CMakeFiles/sdrPlaySupport.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2


Any help would be appreciated - I am stuck with an RSP2 I can´t use :(
Last edited by src1138 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 569
Joined: Wed Jan 07, 2015 7:58 am

Re: SoapySDRPlay compile error on Unbuntu 14

Postby sdrplay » Thu Jul 27, 2017 2:26 pm

As I asked above, what processor are you running on? The format error means you have the wrong API library for the processor you are using.

Best regards,

SDRplay Support

Reason: No reason

sdrplay
Posts: 569
Joined: Wed Jan 07, 2015 7:58 am

Re: SoapySDRPlay compile error on Unbuntu 14

Postby sdrplay » Thu Jul 27, 2017 3:04 pm

Sorry, you do mention the processor - can you say what API download you are using?

Thanks,

SDRplay Support

Reason: No reason


Return to “SDRplay related”

Who is online

Users browsing this forum: No registered users and 1 guest