Skip to content

Build instructions for MacOS

ameci-iis edited this page Nov 27, 2024 · 1 revision

You need to have CMake and Xcode installed.

  1. Clone the project and make a build folder.
    $ git clone git@github.com:Fraunhofer-IIS/mpegh-ui-translator.git
    $ mkdir -p build_macos
    
  2. Configure the project using CMake.
    $ cmake -S mpegh-ui-translator -B build_macos -G Xcode -DCMAKE_TOOLCHAIN_FILE=<path/to/toolchain-file.cmake>
    
    Use a toolchain file and set the path to it correctly.
  3. Build the project.
    $ cmake --build build_macos --config Release
    
    The build/ folder should, dependent on the set configuration, now contain:
    • lib/Release subfolder with the built project libraries
    • doc/Release subfolder with the generated Doxygen documentation

Toolchain files

The parameter CMAKE_TOOLCHAIN_FILE is added in step 2 of the build instructions above and should point to a file containing a toolchain description. You can find more information on that topic here.

We recommend using one of the following toolchain files: