Requirements
Install Dependencies (Ubuntu / Debian)
Install Dependencies (Fedora / RHEL)
Step 1: Clone the Repository
Step 2: Place the SDK Files
Place the Linux SDK files underdemo/cpp/sdk/:
Step 3: Build
resource/resource.fbd and demo.png (if present) to build/resource/.
Step 4: Prepare a Preview Image (optional)
Place any face photo nameddemo.png in demo/cpp/:
Step 5: Run
- Left panel – live beauty-processed preview
- Right panel – Beauty Control Panel:
- Basic Beauty: Smoothing / Whitening / Rosiness / Sharpening
- Face Reshape: Face Thin / V Face / Narrow Face / Short Face / Cheekbone / Jawbone / Chin / Nose Slim / Eye Size / Eye Distance
- Makeup: Lipstick / Blush
- Sticker: dropdown (Off / rabbit)
Troubleshooting
Q:libfacebetter.so: cannot open shared object fileA: Run with
LD_LIBRARY_PATH=../sdk/lib ./facebetter_demo, copy the library to the executable directory, or add the path to /etc/ld.so.conf and run ldconfig.
Q: CMake cannot find OpenGLA: Install
libgl1-mesa-dev (Ubuntu) or mesa-libGL-devel (Fedora), then re-run CMake.
Q: Window shows “Put demo.png …”A: Place a face photo named
demo.png in demo/cpp/ and restart the demo.
Q: GLFW: X11: Display variable not setA: Make sure you are running in a graphical session, or set the
DISPLAY environment variable.
