-
Notifications
You must be signed in to change notification settings - Fork 44
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
Building a static library on Windows #55
Comments
Do you already have |
The build log shows:
I'm building on Travis-CI, so you can see the build history there. |
With |
Also, I should have mentioned this, in case it matters: Travis-CI is using Visual Studio 15 2017. |
I think I am having the same or a similar issue, but I am building with MSYS2/MinGW. See my report here: msys2/MINGW-packages#5619 Edit: I am trying to build version 1.3.13. |
I was able to resolve my issue by patching the CMake configurations. See here: msys2/MINGW-packages#5619 (comment) The patch may not work for everyone as there are other patches applied in the MSYS2/MinGW-w64 package before mine. But I was able to come up with it looking over this patch for version 1.3.10. |
@AntumDeluge Thanks for adding your voice to this issue. It seems like the changes to |
I'm trying to build a static library on Windows (using MSVC). Given that I'm not that familiar with
cmake
and building on Windows, I'm a bit lost in the dark. But perhaps you can help me shed some light on the problem.First, here's what I run:
With this, I get a number of errors:
Now, if I make the following change (inspired by microsoft/vcpkg#3102 and the
fix-static-build.patch
):the build is successful.
Is that the right change to make? If so, can
CMakeLists.txt
be updated with flags to support this? If not, what should I be doing differently or what can be done to support a static build on Windows?The text was updated successfully, but these errors were encountered: