cjcliffe / CubicSDR

Cross-Platform Software-Defined Radio Application
http://www.cubicsdr.com
GNU General Public License v2.0
2.02k stars 249 forks source link

Can't compile CubicSDR on Mac M1 Pro, last step #969

Open catmater opened 1 year ago

catmater commented 1 year ago

When compile last step CubicSDR , got error: [ 99%] Linking CXX executable x64/CubicSDR.app/Contents/MacOS/CubicSDR ld: library not found for -lpng clang: error: linker command failed with exit code 1 (use -v to see invocation)

But I have installed libpng (brew install libpng) already. Please, help, what's wrong?

supertorqued commented 1 year ago

I have the same issue. I'm trying to build it for my Mac to address the resolution issue.

BG5VGK commented 1 year ago

I have built the arm version, the link is here: https://github.com/BG5VGK/CubicSDR/releases/tag/0.2.7

supertorqued commented 1 year ago

I get the dreaded "No SoapySDR modules were found." dialog when loading this version of cubic sdr. I pulled the head version of SoapySDR and SoapySDRPlay.
SoapySDR built with out any issues. However SoapySDRPlay bombs when calling sudo make install with: ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

my libSoapySDR files are: ls -l /usr/local/lib/libSoapySDR* lrwxr-xr-x 1 root wheel 23 Nov 27 20:34 /usr/local/lib/libSoapySDR.0.8-2.dylib -> libSoapySDR.0.8.1.dylib -rwxr-xr-x 1 root wheel 366580 Nov 27 21:49 /usr/local/lib/libSoapySDR.0.8.1.dylib lrwxr-xr-x 1 root wheel 23 Nov 27 20:34 /usr/local/lib/libSoapySDR.dylib -> libSoapySDR.0.8-2.dylib

Any help would be much appreciated.

BG5VGK commented 1 year ago

I have got the same error. I tried my best to reload SDRPLAY API, but I failed. I thought it might be SDRPLAY's problem.

destroy314 commented 1 year ago

I have built the arm version, the link is here: https://github.com/BG5VGK/CubicSDR/releases/tag/0.2.7

When I run it, I got "No SoapySDR modules were found." and this in terminal:

SDR enumerator starting.
SoapySDR init..
    API Version: v0.8.200
    ABI Version: v0.8-2
    Install root: /usr/local
    Loading modules... 
[ERROR] SoapySDR::loadModule(/usr/local/lib/SoapySDR/modules0.8-2/libsdrPlaySupport.so)
  dlopen() failed: dlopen(/usr/local/lib/SoapySDR/modules0.8-2/libsdrPlaySupport.so, 0x0001): tried: '/usr/local/lib/SoapySDR/modules0.8-2/libsdrPlaySupport.so' (code signature in <A32E4E8F-68C8-3B53-91CF-D0B2FAB765AA> '/usr/local/lib/SoapySDR/modules0.8-2/libsdrPlaySupport.so' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/SoapySDR/modules0.8-2/libsdrPlaySupport.so' (no such file), '/usr/local/lib/SoapySDR/modules0.8-2/libsdrPlaySupport.so' (code signature in <A32E4E8F-68C8-3B53-91CF-D0B2FAB765AA> '/usr/local/lib/SoapySDR/modules0.8-2/libsdrPlaySupport.so' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?))

this library is built and installed from https://github.com/pothosware/SoapySDRPlay.git sign it might fix this according to stackoverflow, but I don't have an apple developer id