https://github.com/chokobole/felicia-examples
https://github.com/chokobole/felicia-examples
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/chokobole/felicia-examples
- Owner: chokobole
- License: bsd-3-clause
- Created: 2019-11-07T04:48:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-05T11:17:19.000Z (over 5 years ago)
- Last Synced: 2025-02-17T03:42:52.820Z (4 months ago)
- Language: Python
- Size: 95.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Felicia examples
## Prerequisites
please go to [Prerequisites](https://github.com/chokobole/felicia#prerequisites) and make `bazel`, `python` and `python dependencies` ready.
## How to build
### Use Static Library
Build examples.
```bash
# On mac add --cpu darwin_x86_64
bazel //examples/...
```### Use Shared Library
1. First follow the [How To Pakcage](https://github.com/chokobole/felicia/blob/master/README.md#how-to-package).
2. Copy the library and headers.```bash
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.```bash
# On mac add --cpu darwin_x86_64
bazel --define use_shared_library=true //examples/...
```