pothosware / SoapySDRPlay2

Soapy SDR plugin for SDRPlay
MIT License
50 stars 11 forks source link

Cannot build SoapySDRPlay on Ubuntu 18.04 with packaged binaries #57

Closed ccera-astro closed 4 years ago

ccera-astro commented 4 years ago

Trying to build SoapySDRplay on Ubuntu 18.04, using the packaged binaries for SoapySDR and friends.

Initially, it couldn't find:

SoapySDRConfig.cmake

So, grabbed the latest source package from git and pointed Cmake at that file in the source package.

That yielded:

CMake Error at CMakeLists.txt:7 (find_package): Could not find a configuration file for package "SoapySDR" that is compatible with requested version "0.4.0".

The following configuration files were considered but not accepted:

/home/mleech/SoapySDR/cmake/Modules/SoapySDRConfig.cmake, version: unknown

Which means that the SoapySDRPlay package needs a version of SoapySDR that is older than that in the PPAs or in the distro packages.

What do, what do?

SDRplay commented 4 years ago

If you've got SoapySDR version 0.4, that's pretty old - I would recommend getting the latest version of SoapySDR and SoapySDRPlay - they will build in minutes (build them in that order).

guruofquality commented 4 years ago

@ccera-astro did you install the development package? You may want to read this https://github.com/pothosware/SoapySDR/wiki/ConfigGuide See "Attention debian/ubuntu/PPA users"

compatible with requested version "0.4.0"

This is just the minimum compatible version thats listed in SoapySDRPlay

ccera-astro commented 4 years ago

On 10/08/2019 04:12 PM, Josh Blum wrote:

@ccera-astro https://github.com/ccera-astro did you install the development package? You may want to read this https://github.com/pothosware/SoapySDR/wiki/ConfigGuide See "Attention debian/ubuntu/PPA users"

compatible with requested version "0.4.0"

This is just the minimum compatible version thats listed in SoapySDRPlay

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pothosware/SoapySDRPlay/issues/57?email_source=notifications&email_token=AFN6WN6HNCWDEHHAQYEEXMDQNTSS3A5CNFSM4I6VRXI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAVOQTA#issuecomment-539682892, or mute the thread https://github.com/notifications/unsubscribe-auth/AFN6WN5V37ZGWDPTV63FHFLQNTSS3ANCNFSM4I6VRXIQ.

Well, it doesn't appear to be on the system at all. Hmmm. I shall have to try this again.

Certainly, there are no "-devel" or "-dev" packages in the standard Ubuntu packages--do the PPAs install the "-dev[el]" packages?

guruofquality commented 4 years ago

Certainly, there are no "-devel" or "-dev" packages in the standard Ubuntu packages--do the PPAs install the "-dev[el]" packages?

Not sure what you mean the -dev packages are standard for basically and and all C/C++ projects packaged in debian/ubuntu systems. You can see those exact files (ex SoapySDRConfig.cmake) are packaged in ubuntu mainline: https://packages.ubuntu.com/disco/amd64/libsoapysdr-dev/filelist If the PPA happens to have a newer version, the same files should still be present.

/home/mleech/SoapySDR/cmake/Modules/SoapySDRConfig.cmake, version: unknown

Did you manually tell cmake to look in this directory or was this automatic? if this is an issue, I cmake considers a certain structure in the home directory to be part of its search path. So even though this looks like its a source check out. So if installing the development package doesnt fix this particular error I would move the git clone to a subdirectory. -- Though if you use the development packages from the apt repo, you shouldnt need the source checkout obviously.

ccera-astro commented 4 years ago

On 10/08/2019 04:29 PM, Josh Blum wrote:

Certainly, there are no "-devel" or "-dev" packages in the standard
Ubuntu packages--do the PPAs install the "-dev[el]" packages?

Not sure what you mean the -dev packages are standard for basically and and all C/C++ projects packaged in debian/ubuntu systems. You can see those exact files (ex SoapySDRConfig.cmake) are packaged in ubuntu mainline: https://packages.ubuntu.com/disco/amd64/libsoapysdr-dev/filelist If the PPA happens to have a newer version, the same files should still be present.

/home/mleech/SoapySDR/cmake/Modules/SoapySDRConfig.cmake, version:
unknown

Did you manually tell cmake to look in this directory or was this automatic? if this is an issue, I cmake considers a certain structure in the home directory to be part of its search path. So even though this looks like its a source check out. So if installing the development package doesnt fix this particular error I would move the git clone to a subdirectory. -- Though if you use the development packages from the apt repo, you shouldnt need the source checkout obviously.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pothosware/SoapySDRPlay/issues/57?email_source=notifications&email_token=AFN6WN6ZPHKIXQHFTOXOPYDQNTUTFA5CNFSM4I6VRXI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAVQKKQ#issuecomment-539690282, or mute the thread https://github.com/notifications/unsubscribe-auth/AFN6WN2OHUTMVTXL5LMRUDDQNTUTFANCNFSM4I6VRXIQ.

I manually told cmake to look there, using a source checkout of latest SoapySDR. A "find" on the system produced no evidence that the relevant .cmake files were anywhere on it, proor to installing the source checkout.

So, I now wonder about the repos my ubuntu instance is using--might be something fishy about them--this is on a AtomicPi, which comes with Ubuntu 18.04 pre-installed.

ccera-astro commented 4 years ago

This was, after retracing my steps, PEBKAC, and can be closed.