chokobole / felicia-examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Felicia examples

Prerequisites

please go to Prerequisites and make bazel, python and python dependencies ready.

How to build

Use Static Library

Build examples.

# On mac add --cpu darwin_x86_64
bazel //examples/...

Use Shared Library

  1. First follow the How To Pakcage.

  2. Copy the library and headers.

    mkdir include lib
    # Common
    cp /path/to/felicia/bazel-bin/felicia/felicia_hdrs.tar include/
    tar -xf feilcia_hdrs.tar -C include/
    
    # For linux
    cp /path/to/felicia/bazel-bin/felicia/libfelicia.so lib/
    # For windows
    cp /path/to/felicia/bazel-bin/felicia/felicia.dll lib/
    cp /path/to/felicia/bazel-bin/felicia/felicia.lib lib/
    # For mac
    cp /path/to/felicia/bazel-bin/felicia/libfelicia.dylib lib/
  3. Build examples. NOTE: Watch out the compilation_mode, if you build library with dbg, then you should put dbg to build. It depends on how you build shared library.

    # On mac add --cpu darwin_x86_64
    bazel --define use_shared_library=true //examples/...

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%