Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 983 Bytes

compile_mac.md

File metadata and controls

47 lines (39 loc) · 983 Bytes

Development environment

This page is an introduction to the compilation for macOS.

  1. Host Requirements

    • OS X 10.10 Yosemite (or later)
    • Latest Xcode version (version 11 works so far)
    • A correct shell (we recommend bash,zsh coming...)
    • CocoaPods (for dependency management)
    • brew
    brew install automake git libtool autoconf cmake
  2. build_external

    . setup.env
    cd external/
    ./build_external.sh macOS
  3. build cmdline

    cmdline player need extern library, install using

    brew install sdl2

    build cmdline

    cd cmdline/
    mkdir build
    cd build
    cmake ../
    make

    You can also use Xcode to build cmdline, add -G Xcode to cmake command

  4. build mac platform app

    cd ${TOP_DIR}/platform/Apple/demo/macOS/
    rm -rf SDK
    ./Genxcodeproj.sh
    cd CicadaDemo
    open CicadaDemo.xcworkspace