This page matches SDK 2.0.0. Linux and Windows share the same C++ API in the
facebetter namespace (facebetter/*.h).Requirements
Ubuntu / Debian
Fedora / RHEL
Step 1: Clone the repository
Step 2: Place the SDK files
Put the Linux SDK underdemo/cpp/sdk/:
build/linux/release. You can copy include/, lib/libfacebetter.so, and resource.fbd into demo/cpp/sdk/ as above.
Step 3: Configure license
Setapp_id / app_key (online v2 auth) or license_token before you run. If license_token is non-empty, it takes priority (license token string, {token} JSON, or offline .lic contents). Details: Auth & License.
Step 4: Build the demo
resource/resource.fbd (and demo.png if present) into build/resource/.
Step 5: Prepare a preview image (optional)
Step 6: Run
Troubleshooting
Q:libfacebetter.so: cannot open shared object fileA: Use
LD_LIBRARY_PATH=../sdk/lib ./facebetter_demo, copy the .so next to the binary, or add the path with ldconfig.
Q: Engine create returns nullptr / license failedA: Point
resource_path at resource.fbd, and set license_token or valid app_id + app_key. See Auth & License.
Q: CMake cannot find OpenGLA: Install
libgl1-mesa-dev (Ubuntu) or mesa-libGL-devel (Fedora), then re-run CMake.
Q: GLFW: X11: Display variable not setA: Run inside a graphical session, or set
DISPLAY (X11) / WAYLAND_DISPLAY (Wayland).
Next steps
Implement beauty
Create the engine, set effects, and process frames.
API reference
Full C++ API (same as Windows) plus Linux notes.

