Page 1 of 1

OSX libmirsdr_api.so unsupported file format?

Posted: Mon Oct 12, 2015 3:24 pm
by jazzkutya
Hi sdrplay or Tech Support,

we have the below problem when trying to link against the api library libmirsdr_api.so:

LD_RUN_PATH="/usr/local/lib" cc -mmacosx-version-min=10.9 -arch x86_64 -arch i386 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector SDRPlay.o -o blib/arch/auto/K/SDRPlay/SDRPlay.bundle \
-L/usr/local/lib -lmirsdrapi-rsp \

ld: warning: ignoring file /usr/local/lib/libmirsdrapi-rsp.dylib, file was built for unsupported file format ( 0x62 0x6F 0x6F 0x6B 0x00 0x00 0x00 0x00 0x6D 0x61 0x72 0x6B 0x00 0x00 0x00 0x00 ) which is not the architecture being linked (x86_64): /usr/local/lib/libmirsdrapi-rsp.dylib
ld: warning: ignoring file /usr/local/lib/libmirsdrapi-rsp.dylib, file was built for unsupported file format ( 0x62 0x6F 0x6F 0x6B 0x00 0x00 0x00 0x00 0x6D 0x61 0x72 0x6B 0x00 0x00 0x00 0x00 ) which is not the architecture being linked (i386): /usr/local/lib/libmirsdrapi-rsp.dylib

The above linker invocation was performed by perl's ExtUtils::MakeMaker module which seems to not support library filenames ending with .so.
Because of this we made a symlink to libmirsdr_api.so named libmirsdr_api.dylib

OSX 10.9.5 64bit

Can you help with this?
Thanks,
jazzkutya

Re: OSX libmirsdr_api.so unsupported file format?

Posted: Mon Oct 12, 2015 3:38 pm
by sdrplay
Hello Jazzkutya,

When did you download the API? It now installs from .pkg file with the correct filenames etc. to be compatible with the Linux version. Please confirm whether you see the same with the latest install (there should be no reference to libmir_sdr any more.

Best regards,

SDRplay Support

Re: OSX libmirsdr_api.so unsupported file format?

Posted: Mon Oct 12, 2015 3:53 pm
by jazzkutya
Sorry, I meant to write libmirsdrapi-rsp.so, as shown in the copypasted error.

The error is not on my system, I'm using it fine on linux, but on DC1RDB's OSX system, he will report about using the latest installer.

Re: OSX libmirsdr_api.so unsupported file format?

Posted: Mon Oct 12, 2015 4:04 pm
by jazzkutya
From DC1RDB:
"I just did a fresh install on my Macbook using SDRplay_RSP_API_Installer_1.8.pkg downloaded from the OS X page of SDRPlay.com. The API works fine with SoapySDRPlay / CubicSDR."