Open dwadi opened 1 year ago
This worked for me:
git clone https://github.com/rtlsdrblog/rtl-sdr-blog.git cd rtl-sdr-blog/ autoreconf -i ./configure make
I than copied the dylib into the SDR++ App.
➜ build git:(master) cmake ../
-- The C compiler identification is AppleClang 15.0.0.15000309
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Extracting version information from git describe...
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2")
-- Checking for module 'libusb-1.0'
-- Found libusb-1.0, version 1.0.27
-- Udev rules not being installed, install them with -DINSTALL_UDEV_RULES=ON
-- Building with kernel driver detaching disabled, use -DDETACH_KERNEL_DRIVER=ON to enable
-- Building with usbfs zero-copy support disabled, use -DENABLE_ZEROCOPY=ON to enable
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Building for version: 0.6.0-120-g63ce / 0.6git
-- Using install prefix: /usr/local
-- Configuring done (0.8s)
-- Generating done (0.0s)
-- Build files have been written to: ~/Developer/rtl-sdr-blog/build
➜ build git:(master) ✗ make LIBRARY_PATH=/usr/local/lib
[ 3%] Building C object src/CMakeFiles/rtlsdr.dir/librtlsdr.c.o
[ 6%] Building C object src/CMakeFiles/rtlsdr.dir/tuner_e4k.c.o
[ 9%] Building C object src/CMakeFiles/rtlsdr.dir/tuner_fc0012.c.o
[ 12%] Building C object src/CMakeFiles/rtlsdr.dir/tuner_fc0013.c.o
[ 15%] Building C object src/CMakeFiles/rtlsdr.dir/tuner_fc2580.c.o
[ 18%] Building C object src/CMakeFiles/rtlsdr.dir/tuner_r82xx.c.o
[ 21%] Linking C shared library librtlsdr.dylib
ld: warning: ignoring duplicate libraries: '-lusb-1.0'
ld: library 'usb-1.0' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/librtlsdr.0.6git.dylib] Error 1
make[1]: *** [src/CMakeFiles/rtlsdr.dir/all] Error 2
make: *** [all] Error 2
➜ build git:(master) ✗ brew ls libusb
/opt/homebrew/Cellar/libusb/1.0.27/include/libusb-1.0/libusb.h
/opt/homebrew/Cellar/libusb/1.0.27/lib/libusb-1.0.0.dylib
/opt/homebrew/Cellar/libusb/1.0.27/lib/pkgconfig/libusb-1.0.pc
/opt/homebrew/Cellar/libusb/1.0.27/lib/ (2 other files)
/opt/homebrew/Cellar/libusb/1.0.27/share/libusb/ (9 files)
Still have same compilation problems, any idea?
Hi, I've experienced some kind of bug and wasn't able to compile driver for my MBA with M1 SoC on latest OS version. Also tested this on Windows and I think AGS isn't working properly.
Used steps from this site for MacOS