03 November 2021

SDR HD Radio

This was saved as an unfinished daft from a few years ago... figured I would post it anyway.

I just spent a ton of hours getting nrsc5 installed on my macOS without using ports or brew. The question is was it worth it?

Dependencies
- git
- cmake
- autoconf
- libtool
  - help2man
  - xz
  - automake
- libao
- libfftw3
    ./configure --enable-threads && make -j8 && sudo make install
    ./configure --enable-float --enable-threads && make -j8 && sudo make install
- librtlsdr
  - libusb
  - pkg-config
      ./configure --with-internal-glib
  edit CMakeLists.txt
    cmake_policy(SET CMP0075 NEW)
    set(CMAKE_MACOSX_RPATH 1)


nrsc5
edit CMakeLists.txt
  -check_symbol_exists (_Imaginary_I complex.h HAVE_IMAGINARY_I)
  -check_symbol_exists (_Complex_I complex.h HAVE_COMPLEX_I)
  +check_symbol_exists (I complex.h HAVE_IMAGINARY_I)
  +check_symbol_exists (complex complex.h HAVE_COMPLEX_I)
sudo ln -s /usr/local/bin/libtoolize /usr/local/bin/glibtoolize
cmake -DUSE_COLOR=ON ..
make -j8
sudo make install

and it works...

Would I do it again? Probably, but only now that I have this info on what I needed and what to change for it to work. Heck you could almost make a script out of it...

No comments:

Post a Comment