DanielSWolf / rhubarb-lip-sync

Rhubarb Lip Sync is a command-line tool that automatically creates 2D mouth animation from voice recordings. You can use it for characters in computer games, in animated cartoons, or in any other project that requires animating mouths based on existing recordings.
Other
1.81k stars 216 forks source link

Build Rhubarb as shared library #137

Open JuliusNmn opened 8 months ago

JuliusNmn commented 8 months ago

Is anyone else interested in using rhubarb as a shared library? i'm no cmake expert, but i hacked around in rhubarb/CMakeLists.txt and got it to build a shared library.

# ... rhubarb-lib
add_library(rhubarb-lib
    src/lib/rhubarbLib.cpp
    src/lib/rhubarbLib.h
)

to

# ... rhubarb-lib
add_library(rhubarb-lib SHARED
    src/lib/rhubarbLib.cpp
    src/lib/rhubarbLib.h
)

i had to modify my header search paths and actually got it to run, but it's hacky. i would prefer it to build a shared library and provide an include dir.