Skip to content

Instantly share code, notes, and snippets.

@sultanqasim
Last active July 1, 2024 21:03
Show Gist options
  • Save sultanqasim/c7997eac6683fc1bf8a5385f59c8ea04 to your computer and use it in GitHub Desktop.
Save sultanqasim/c7997eac6683fc1bf8a5385f59c8ea04 to your computer and use it in GitHub Desktop.

Revisions

  1. sultanqasim revised this gist Jul 1, 2024. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions build_sigdigger_mac.sh
    Original file line number Diff line number Diff line change
    @@ -8,12 +8,12 @@ CPU_COUNT="$(sysctl -n hw.ncpu)"
    QT_PATH="${HOME}/Qt/6.7.1/macos"

    # Homebrew dependencies
    #brew update
    #brew install volk fftw libsndfile libxml2 portaudio qt@6
    #brew tap pothosware/homebrew-pothos
    ##brew install pothossoapy soapyairspyhf # broken build
    #brew install soapyrtlsdr soapyhackrf soapybladerf soapyairspy soapyredpitaya soapyiris soapyplutosdr limesuite
    #brew install --head soapyuhd # avoiding C++14 compilation issue, as fix hasn't yet been tagged in a release
    brew update
    brew install volk fftw libsndfile libxml2 portaudio qt@6
    brew tap pothosware/homebrew-pothos
    #brew install pothossoapy soapyairspyhf # broken build
    brew install soapyrtlsdr soapyhackrf soapybladerf soapyairspy soapyredpitaya soapyiris soapyplutosdr limesuite
    brew install --head soapyuhd # avoiding C++14 compilation issue, as fix hasn't yet been tagged in a release

    # get the code
    if [ ! -e sigutils ]; then
  2. sultanqasim revised this gist Jul 1, 2024. 1 changed file with 12 additions and 10 deletions.
    22 changes: 12 additions & 10 deletions build_sigdigger_mac.sh
    Original file line number Diff line number Diff line change
    @@ -5,21 +5,23 @@ set -eux
    BREW_PREFIX="$(brew --prefix)"
    CPU_COUNT="$(sysctl -n hw.ncpu)"

    QT_PATH="${HOME}/Qt/6.7.1/macos"

    # Homebrew dependencies
    brew update
    brew install volk fftw libsndfile libxml2 portaudio qt@6
    brew tap pothosware/homebrew-pothos
    #brew install pothossoapy soapyairspyhf # broken build
    brew install soapyrtlsdr soapyhackrf soapybladerf soapyairspy soapyredpitaya soapyiris soapyplutosdr limesuite
    brew install --head soapyuhd # avoiding C++14 compilation issue, as fix hasn't yet been tagged in a release
    #brew update
    #brew install volk fftw libsndfile libxml2 portaudio qt@6
    #brew tap pothosware/homebrew-pothos
    ##brew install pothossoapy soapyairspyhf # broken build
    #brew install soapyrtlsdr soapyhackrf soapybladerf soapyairspy soapyredpitaya soapyiris soapyplutosdr limesuite
    #brew install --head soapyuhd # avoiding C++14 compilation issue, as fix hasn't yet been tagged in a release

    # get the code
    if [ ! -e sigutils ]; then
    git clone -b develop --recurse-submodules https://github.com/sultanqasim/sigutils.git
    git clone -b master --recurse-submodules https://github.com/sultanqasim/sigutils.git
    fi

    if [ ! -e suscan ]; then
    git clone -b develop --recurse-submodules https://github.com/sultanqasim/suscan.git
    git clone -b master --recurse-submodules https://github.com/sultanqasim/suscan.git
    fi

    if [ ! -e SuWidgets ]; then
    @@ -68,7 +70,7 @@ fi

    (
    cd SuWidgets
    qmake SuWidgetsLib.pro PREFIX="$DEPLOYROOT/usr" "CONFIG += ${QMAKE_BUILD_TYPE}"
    "${QT_PATH}/bin/qmake" SuWidgetsLib.pro PREFIX="$DEPLOYROOT/usr" "CONFIG += ${QMAKE_BUILD_TYPE}"
    make clean
    make -j${CPU_COUNT}
    make install
    @@ -77,7 +79,7 @@ fi
    # build SigDigger (not as dmg for now)
    (
    cd SigDigger
    qmake SigDigger.pro PREFIX="$DEPLOYROOT/usr" SUWIDGETS_PREFIX="$DEPLOYROOT/usr" "CONFIG += ${QMAKE_BUILD_TYPE}"
    "${QT_PATH}/bin/qmake" SigDigger.pro PREFIX="$DEPLOYROOT/usr" SUWIDGETS_PREFIX="$DEPLOYROOT/usr" "CONFIG += ${QMAKE_BUILD_TYPE}"
    make clean
    make -j${CPU_COUNT}
    make install
  3. sultanqasim revised this gist Sep 3, 2023. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions build_sigdigger_mac.sh
    Original file line number Diff line number Diff line change
    @@ -9,8 +9,8 @@ CPU_COUNT="$(sysctl -n hw.ncpu)"
    brew update
    brew install volk fftw libsndfile libxml2 portaudio qt@6
    brew tap pothosware/homebrew-pothos
    #brew install pothossoapy soapyairspyhf soapyplutosdr # broken build
    brew install soapyrtlsdr soapyhackrf soapybladerf soapyairspy soapyredpitaya soapyiris limesuite
    #brew install pothossoapy soapyairspyhf # broken build
    brew install soapyrtlsdr soapyhackrf soapybladerf soapyairspy soapyredpitaya soapyiris soapyplutosdr limesuite
    brew install --head soapyuhd # avoiding C++14 compilation issue, as fix hasn't yet been tagged in a release

    # get the code
  4. sultanqasim revised this gist Aug 24, 2023. 1 changed file with 13 additions and 4 deletions.
    17 changes: 13 additions & 4 deletions build_sigdigger_mac.sh
    Original file line number Diff line number Diff line change
    @@ -36,13 +36,22 @@ rm -rf "$DEPLOYROOT"
    mkdir -p "$DEPLOYROOT"
    export PKG_CONFIG_PATH="$DEPLOYROOT/usr/lib/pkgconfig"

    DEBUG=0
    if [ "$DEBUG" == "1" ]; then
    CMAKE_BUILD_TYPE="Debug"
    QMAKE_BUILD_TYPE="debug"
    else
    CMAKE_BUILD_TYPE="Release"
    QMAKE_BUILD_TYPE="release"
    fi

    # build the source dependencies
    (
    cd sigutils
    rm -rf build
    mkdir -p build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX="$DEPLOYROOT/usr" -DCMAKE_SKIP_RPATH=ON -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_BUILD_TYPE=Release
    cmake .. -DCMAKE_INSTALL_PREFIX="$DEPLOYROOT/usr" -DCMAKE_SKIP_RPATH=ON -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_BUILD_TYPE="$CMAKE_BUILD_TYPE"
    make -j${CPU_COUNT}
    make install
    )
    @@ -52,14 +61,14 @@ export PKG_CONFIG_PATH="$DEPLOYROOT/usr/lib/pkgconfig"
    rm -rf build
    mkdir -p build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX="$DEPLOYROOT/usr" -DCMAKE_SKIP_RPATH=ON -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_PREFIX_PATH="$DEPLOYROOT/usr" -DCMAKE_BUILD_TYPE=Release
    cmake .. -DCMAKE_INSTALL_PREFIX="$DEPLOYROOT/usr" -DCMAKE_SKIP_RPATH=ON -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_PREFIX_PATH="$DEPLOYROOT/usr" -DCMAKE_BUILD_TYPE="$CMAKE_BUILD_TYPE"
    make -j${CPU_COUNT}
    make install
    )

    (
    cd SuWidgets
    qmake SuWidgetsLib.pro PREFIX="$DEPLOYROOT/usr" "CONFIG += release"
    qmake SuWidgetsLib.pro PREFIX="$DEPLOYROOT/usr" "CONFIG += ${QMAKE_BUILD_TYPE}"
    make clean
    make -j${CPU_COUNT}
    make install
    @@ -68,7 +77,7 @@ export PKG_CONFIG_PATH="$DEPLOYROOT/usr/lib/pkgconfig"
    # build SigDigger (not as dmg for now)
    (
    cd SigDigger
    qmake SigDigger.pro PREFIX="$DEPLOYROOT/usr" SUWIDGETS_PREFIX="$DEPLOYROOT/usr" "CONFIG += release"
    qmake SigDigger.pro PREFIX="$DEPLOYROOT/usr" SUWIDGETS_PREFIX="$DEPLOYROOT/usr" "CONFIG += ${QMAKE_BUILD_TYPE}"
    make clean
    make -j${CPU_COUNT}
    make install
  5. sultanqasim revised this gist Aug 24, 2023. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions build_sigdigger_mac.sh
    Original file line number Diff line number Diff line change
    @@ -7,27 +7,27 @@ CPU_COUNT="$(sysctl -n hw.ncpu)"

    # Homebrew dependencies
    brew update
    brew install volk fftw libsndfile libxml2 portaudio pkgconfig qt@6
    brew install volk fftw libsndfile libxml2 portaudio qt@6
    brew tap pothosware/homebrew-pothos
    #brew install pothossoapy soapyairspyhf soapyplutosdr # broken build
    brew install soapyrtlsdr soapyhackrf soapybladerf soapyairspy soapyredpitaya soapyiris limesuite
    brew install --head soapyuhd # avoiding C++14 compilation issue, as fix hasn't yet been tagged in a release

    # get the code
    if [ ! -e sigutils ]; then
    git clone -b develop --recurse-submodules https://github.com/BatchDrake/sigutils.git
    git clone -b develop --recurse-submodules https://github.com/sultanqasim/sigutils.git
    fi

    if [ ! -e suscan ]; then
    git clone -b develop --recurse-submodules https://github.com/BatchDrake/suscan.git
    git clone -b develop --recurse-submodules https://github.com/sultanqasim/suscan.git
    fi

    if [ ! -e SuWidgets ]; then
    git clone -b develop https://github.com/BatchDrake/SuWidgets
    git clone -b develop https://github.com/sultanqasim/SuWidgets
    fi

    if [ ! -e SigDigger ]; then
    git clone -b develop https://github.com/BatchDrake/SigDigger.git
    git clone -b develop https://github.com/sultanqasim/SigDigger.git
    fi

    # prepare the deploy path
    @@ -42,7 +42,7 @@ export PKG_CONFIG_PATH="$DEPLOYROOT/usr/lib/pkgconfig"
    rm -rf build
    mkdir -p build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX="$DEPLOYROOT/usr" -DCMAKE_SKIP_RPATH=ON -DCMAKE_SKIP_INSTALL_RPATH=ON
    cmake .. -DCMAKE_INSTALL_PREFIX="$DEPLOYROOT/usr" -DCMAKE_SKIP_RPATH=ON -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_BUILD_TYPE=Release
    make -j${CPU_COUNT}
    make install
    )
    @@ -52,14 +52,14 @@ export PKG_CONFIG_PATH="$DEPLOYROOT/usr/lib/pkgconfig"
    rm -rf build
    mkdir -p build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX="$DEPLOYROOT/usr" -DCMAKE_SKIP_RPATH=ON -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_PREFIX_PATH="$DEPLOYROOT/usr"
    cmake .. -DCMAKE_INSTALL_PREFIX="$DEPLOYROOT/usr" -DCMAKE_SKIP_RPATH=ON -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_PREFIX_PATH="$DEPLOYROOT/usr" -DCMAKE_BUILD_TYPE=Release
    make -j${CPU_COUNT}
    make install
    )

    (
    cd SuWidgets
    qmake SuWidgetsLib.pro PREFIX="$DEPLOYROOT/usr"
    qmake SuWidgetsLib.pro PREFIX="$DEPLOYROOT/usr" "CONFIG += release"
    make clean
    make -j${CPU_COUNT}
    make install
    @@ -68,7 +68,7 @@ export PKG_CONFIG_PATH="$DEPLOYROOT/usr/lib/pkgconfig"
    # build SigDigger (not as dmg for now)
    (
    cd SigDigger
    qmake SigDigger.pro PREFIX="$DEPLOYROOT/usr" SUWIDGETS_PREFIX="$DEPLOYROOT/usr"
    qmake SigDigger.pro PREFIX="$DEPLOYROOT/usr" SUWIDGETS_PREFIX="$DEPLOYROOT/usr" "CONFIG += release"
    make clean
    make -j${CPU_COUNT}
    make install
  6. sultanqasim revised this gist Aug 17, 2023. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions build_sigdigger_mac.sh
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ CPU_COUNT="$(sysctl -n hw.ncpu)"

    # Homebrew dependencies
    brew update
    brew install volk fftw libsndfile libxml2 portaudio qt@6
    brew install volk fftw libsndfile libxml2 portaudio pkgconfig qt@6
    brew tap pothosware/homebrew-pothos
    #brew install pothossoapy soapyairspyhf soapyplutosdr # broken build
    brew install soapyrtlsdr soapyhackrf soapybladerf soapyairspy soapyredpitaya soapyiris limesuite
    @@ -19,11 +19,11 @@ if [ ! -e sigutils ]; then
    fi

    if [ ! -e suscan ]; then
    git clone -b develop --recurse-submodules https://github.com/sultanqasim/suscan.git
    git clone -b develop --recurse-submodules https://github.com/BatchDrake/suscan.git
    fi

    if [ ! -e SuWidgets ]; then
    git clone -b develop https://github.com/sultanqasim/SuWidgets
    git clone -b develop https://github.com/BatchDrake/SuWidgets
    fi

    if [ ! -e SigDigger ]; then
  7. sultanqasim created this gist Aug 17, 2023.
    75 changes: 75 additions & 0 deletions build_sigdigger_mac.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,75 @@
    #!/bin/sh
    #
    set -eux

    BREW_PREFIX="$(brew --prefix)"
    CPU_COUNT="$(sysctl -n hw.ncpu)"

    # Homebrew dependencies
    brew update
    brew install volk fftw libsndfile libxml2 portaudio qt@6
    brew tap pothosware/homebrew-pothos
    #brew install pothossoapy soapyairspyhf soapyplutosdr # broken build
    brew install soapyrtlsdr soapyhackrf soapybladerf soapyairspy soapyredpitaya soapyiris limesuite
    brew install --head soapyuhd # avoiding C++14 compilation issue, as fix hasn't yet been tagged in a release

    # get the code
    if [ ! -e sigutils ]; then
    git clone -b develop --recurse-submodules https://github.com/BatchDrake/sigutils.git
    fi

    if [ ! -e suscan ]; then
    git clone -b develop --recurse-submodules https://github.com/sultanqasim/suscan.git
    fi

    if [ ! -e SuWidgets ]; then
    git clone -b develop https://github.com/sultanqasim/SuWidgets
    fi

    if [ ! -e SigDigger ]; then
    git clone -b develop https://github.com/BatchDrake/SigDigger.git
    fi

    # prepare the deploy path
    DEPLOYROOT="$(pwd)/deploy-root"
    rm -rf "$DEPLOYROOT"
    mkdir -p "$DEPLOYROOT"
    export PKG_CONFIG_PATH="$DEPLOYROOT/usr/lib/pkgconfig"

    # build the source dependencies
    (
    cd sigutils
    rm -rf build
    mkdir -p build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX="$DEPLOYROOT/usr" -DCMAKE_SKIP_RPATH=ON -DCMAKE_SKIP_INSTALL_RPATH=ON
    make -j${CPU_COUNT}
    make install
    )

    (
    cd suscan
    rm -rf build
    mkdir -p build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX="$DEPLOYROOT/usr" -DCMAKE_SKIP_RPATH=ON -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_PREFIX_PATH="$DEPLOYROOT/usr"
    make -j${CPU_COUNT}
    make install
    )

    (
    cd SuWidgets
    qmake SuWidgetsLib.pro PREFIX="$DEPLOYROOT/usr"
    make clean
    make -j${CPU_COUNT}
    make install
    )

    # build SigDigger (not as dmg for now)
    (
    cd SigDigger
    qmake SigDigger.pro PREFIX="$DEPLOYROOT/usr" SUWIDGETS_PREFIX="$DEPLOYROOT/usr"
    make clean
    make -j${CPU_COUNT}
    make install
    )