Open PlanetSmasher opened 3 months ago
I Installed rust from their website
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
the rlottie make install was here:
user@debian:~/git/rlottie/build$ sudo make install
[sudo] Passwort für user:
[ 89%] Built target rlottie
[ 94%] Built target rlottie-image-loader
[100%] Built target lottie2gif
Install the project...
-- Install configuration: "MinSizeRel"
-- Installing: /usr/lib/pkgconfig/rlottie.pc
-- Installing: /home/user/test/include/rlottie.h
-- Installing: /home/user/test/include/rlottie_capi.h
-- Installing: /home/user/test/include/rlottiecommon.h
-- Installing: /usr/lib/librlottie.a
-- Installing: /usr/lib/cmake/rlottie/rlottieTargets.cmake
-- Installing: /usr/lib/cmake/rlottie/rlottieTargets-minsizerel.cmake
-- Installing: /usr/lib/cmake/rlottie/rlottieConfig.cmake
-- Installing: /usr/lib/cmake/rlottie/rlottieConfigVersion.cmake
-- Installing: /usr/lib/librlottie-image-loader.so
As I am not a Rust dev, I assumed it would prepare all packages during build.
This happen with rust dependencies. But rlottie i a c libary, which makes stuff complicated.
You can disable lottie support and all optional features with cargo install mstickereditor --no-default-features
.
ffmped support can be reenable with --features ffmpeg
or --features ffmpeg-build
.
I can not help you much with the rlottie issue. You should create a issue at the rlottie create https://github.com/msrd0/rlottie-rs.
Thanks it works without default features.
But without rlottie means for me > no animated stickers?
Yes. But video sticker are still supported with the ffmpeg feature. Lottie is the reason why i do not publish a binary. C libs are real pain sometimes. How mention above you can ask at the lottie-rs crate repo about this issue.
Hey, author of lottie-rs here. I can tell you that lottie-rs needs to dynamically link libclang.so
during compile time, and expects pkg-config
to find some form of rlottie library on your system. Depending on your system (I hope it's Linux, otherwise you're completely on your own, see https://github.com/msrd0/rlottie-rs/issues/43) the way to install that can be different. The install command you showed above however looks promising, so assuming you have the corresponding llvm/clang libs installed it should™ compile.
Thanks a lot for the many quick answers.
I have build now mstickereditor without rlottie support.
My assumption that I can build the software without building all dependencies is not correct.
My take please correct me if I am wrong:
For the users that read this issue I guess that I have to build first all dependencies, partly from scratch with the appropiate build tools, before I can start building mstickereditor.
I have to build first all dependencies, partly from scratch with the appropiate build tools, before I can start building mstickereditor.
This is correct but let me add some additional info.
I suggest we split up dependencies into three categories:
libclang.so
. These need to be installed on the system by you before you compile mstickereditor and can be removed thereafter if you want.rlottie
. These need to be installed on the system by you before you compile mstickereditor, and must not be removed thereafter. Recompilation of mstickereditor might be necessary when you update the version installed on the system.
Hi I am trying to build mstickeditor for my Debian Server (I tried 11 and 12) It fails to build from scratch as it complains about rlottie.
As I am not a Rust dev, I assumed it would prepare all packages during build. For now I tried building rlottie from scratch on my dev machine (debian 11) and it startet complaining about libclang. after installing that it, comes back to rlottie and fails
I used the command:
LibC error:
rlottie error:
Could someon clarify whats the correct way of building mstickeditor?
thanks a lot