Building for MacOS

  1. Install Xcode from AppStore.

  2. Execute command in terminal: xcode-select –install

  3. Open Xcode and agree to install additional components.

  4. Install brew.

  5. Install packages in brew:
    brew install cmake
    brew install autoconf
    brew install autoconf-archive
    brew install automake
    brew install nasm
    brew install pkg-config
    brew install wget
    brew install curl
    brew install ninja
    


  6. Install QtCreator.

  7. Download and install vcpkg4aspia (forked from Microsoft repository). To do this, go to the directory where you want to install and run the commands:
    git clone https://github.com/dchapyshev/vcpkg4aspia.git
    cd vcpkg4aspia
    ./bootstrap-vcpkg.sh
    


  8. Install libraries in vcpkg. If you are building on an Intel-based version of MacOS for x86_64, then the installation command looks like:
    ./vcpkg install <library_name>:x64-osx
    

    If you are building on an ARM-based version of MacOS for ARM, then the installation command looks like:

    ./vcpkg install <library_name>:arm64-osx
    

    If you are building on an ARM-based version of MacOS for x86_64, then the installation command looks like:

    arch -arch x86_64 ./vcpkg install <library_name> --triplet=x64-osx --host-triplet=x64-osx
    

    List of libraries to install:

    asio
    curl
    fmt
    gtest
    icu
    libvpx
    libyuv
    openssl
    opus
    protobuf
    qt5-base
    qt5-translations
    rapidjson
    sqlite3
    zstd
    


  9. Open QtCreator -> Tools -> Options -> Kits -> Qt Versions. Click the Add button and specify the path to **/installed//tools/qt5/bin/qmake**.

  10. Open QtCreator -> Tools -> Options -> Kits -> Kits. Click the Add button. Enter a display name for the profile, specify the compilers, and the Qt profile you added earlier.

  11. Open CMakeLists.txt from the Aspia root directory in QtCreator and configure the build using the previously added profile.
  • © 2016-2024 Dmitry Chapyshev