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

Problem: cannot cross-compile with Mingw-w64 #2599

Merged
merged 2 commits into from
Jun 14, 2017
Merged

Conversation

ibancg
Copy link
Contributor

@ibancg ibancg commented Jun 14, 2017

problem: the library cannot be cross-compiled with Mingw-w64. There is a CMake 'if' clause that fails to evaluate with an empty variable, and a missing library due to case-sensitivity.

solution: the 'if' clause can be generalized in a way that it accepts an empty variable, and the name of the missing library has been rewritten in lower case.

ibancg added 2 commits June 14, 2017 15:54
Solution: use lower case ws2_32.lib to enable cross compilation
from platforms with case-sensitive filesystems.

When cross compiling the tests with Mingw-w64, CMake cannot
locate Ws2_32.lib
Solution: we can use 'CMAKE_SYSTEM_VERSION' instead of
'${CMAKE_SYSTEM_VERSION}' for the 'if' clauses.

CMake fails to evaluate condition when CMAKE_SYSTEM_VERSION is
empty, which can happen with a default installation of Mingw-w64
in Linux.
@bluca bluca merged commit 35fce88 into zeromq:master Jun 14, 2017
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

Successfully merging this pull request may close these issues.

2 participants