Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build rlottie with static linking using MinGW #519

Open
leonstyhre opened this issue Jan 7, 2022 · 0 comments
Open

Can't build rlottie with static linking using MinGW #519

leonstyhre opened this issue Jan 7, 2022 · 0 comments

Comments

@leonstyhre
Copy link

Hi!

It's not possible to build rlottie with static linking on Windows when compiled using MinGW.

There is a minor issue in the CMakeLists.txt file where the following lines makes the configuration fail:
if (WIN32 AND NOT BUILD_SHARED_LIBS)
target_compile_definitions(rlottie PUBLIC -DRLOTTIE_BUILD=0)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
endif()

These are MSVC flags and MinGW of course can't interpret them as it needs GCC-style compiler flags.

This is a minor thing though, more serious is that there are multiple linker issues when linking against librlottie.a
The issue is present on the master branch (latest commit 8756269).

I'm attaching an output of the errors:
MinGW_linking_errors.txt

Many thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant