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

Changes to Steem to get MinGW cross-compilation to work #63

Merged
merged 4 commits into from May 23, 2016

Conversation

arhag
Copy link
Contributor

@arhag arhag commented May 22, 2016

Along with the changes to fc provided in this pull request (steemit/fc#1), these changes will allow Steem to be cross-compiled for 64-bit Windows target on a Linux (likely *nix) host using the x86_64-w64-mingw32 compiler.

Note that with these new changes, I have tested building steemd on an Ubuntu 15.10 host for both a Linux target and for a 64-bit Windows target, and I have tested running the each set of resulting executables on the appropriate platform: an Ubuntu machine and a 64-bit Windows 10 machine. I have not done any tests with Mac OS X, so please check to make sure everything still works fine there. Also, in theory these changes should not have changed anything regarding whatever the state is of builds on a Windows host using the Microsoft Visual C++ compiler, but I have not tested that.

In addition, this pull request includes changes that make it no longer necessary to link to Qt5 to get diff_match_patch functionality. So, I just removed the ENABLE_CONTENT_PATCHING CMake option entirely. Post/comment body content patching is automatically included when LOW_MEMORY_NODE equals OFF.

And, as a bonus, I included a Python build script that makes it much easier to build Steem (for the native target or for Windows cross-compilation). You can just get the help message from the script using the -h flag to find out how to use it. Note, that for Windows cross-compilation you need to point the script to the OpenSSL and Boost compiled for Windows using the same MinGW compiler. I have other scripts (not included in this pull request) that I will publish soon along with documentation for how to build the Steem dependencies for a MinGW cross-compilation build on a Linux (likely *nix) host.

@bytemaster bytemaster merged commit d247df8 into steemit:develop May 23, 2016
@arhag arhag deleted the mingw-build branch May 27, 2016 21:38
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.

None yet

2 participants