Open msrd0 opened 1 year ago
I am a proud Linux user: ), but I have a windows machine so I will try hacking this together
The vendor feature has the advantage that the user does not have to care, how to install rlottie. As example rlottie is also not package for mac os brew.
I could run rlottie-rs
on my windows.
Here is the process what I did:
mingw
, ninja
, llvm
, and pkgconfiglite
using chocolatey.$ choco install mingw -y
$ choco install ninja -y
$ choco install llvm -y
$ choco install pkgconfiglite -y
rlottie
. ( ninja install
may need administrator privillege ) $ git clone --depth=1 https://github.com/Samsung/rlottie
$ cd rlottie
$ meson build
$ ninja -C build
$ ninja install -C build
set PKG_CONFIG_PATH
, C_INCLUDE_PATH
, LIBRARY_PATH
, PATH
to each folder ( ninja install
shows )
PKG_CONFIG_PATH
to C:\lib\pkgconfig
, C_INCLUDE_PATH
to C:\include
, LIBRARY_PATH
to C:\lib
, PATH
to C:\bin
copy rlottie\example\win32Player\rlottie.lib
to LIBRARY_PATH
folder, and copy rlottie\example\win32Player\rlottie.dll
to PATH
folder (in my case, C:\lib
and C:\bin
)
then finally try cargo
install rlottie-rs (like $ cargo install lottieconv --features="clap gif"
)
Currently, this project relies on the rlottie C library to be precompiled and
pkg-config
to be able to find it. This seems to be incompatible with windows.I see two options going forward:
vendor
feature similar to other-sys
crates in the ecosystem that downloads and compiles a version of rlottie and statically links it.These options are not incompatible with each other, so both could be implemented if desired. As I don't have windows, I cannot implement this myself, but PRs are welcome. Any implementing PR needs to have a CI setup that tests everything on windows as I won't be able to test locally.