Page MenuHomePhabricator

Add support to compile the util library with cmake
ClosedPublic

Authored by deadalnix on Dec 13 2017, 14:44.

Details

Summary

As per title. Depends on D798

Test Plan
cmake -GNinja ..
ninja

Redo cross compiling for windows.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Look sane, but I can't test it. Does not apply cleanly.

Fails with the following issues:

FAILED: src/CMakeFiles/util.dir/support/cleanse.cpp.o
ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DHAVE_CONFIG_H -I../src/. -Isrc -Isrc/config -isystem /usr/local/include -std=gnu++11 -MD -MT src/CMakeFiles/util.dir/support/cleanse.cpp.o -MF src/CMakeFiles/util.dir/support/cleanse.cpp.o.d -o src/CMakeFiles/util.dir/support/cleanse.cpp.o -c ../src/support/cleanse.cpp
../src/support/cleanse.cpp:8:10: fatal error: 'openssl/crypto.h' file not found
#include <openssl/crypto.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
[9/137] Building CXX object src/CMakeFiles/util.dir/rpc/protocol.cpp.o
FAILED: src/CMakeFiles/util.dir/rpc/protocol.cpp.o
ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DHAVE_CONFIG_H -I../src/. -Isrc -Isrc/config -isystem /usr/local/include -std=gnu++11 -MD -MT src/CMakeFiles/util.dir/rpc/protocol.cpp.o -MF src/CMakeFiles/util.dir/rpc/protocol.cpp.o.d -o src/CMakeFiles/util.dir/rpc/protocol.cpp.o -c ../src/rpc/protocol.cpp
In file included from ../src/rpc/protocol.cpp:6:
../src/./rpc/protocol.h:15:10: fatal error: 'univalue.h' file not found
#include <univalue.h>
         ^~~~~~~~~~~~
1 error generated.
[10/137] Building CXX object src/CMakeFiles/util.dir/random.cpp.o
FAILED: src/CMakeFiles/util.dir/random.cpp.o
ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DHAVE_CONFIG_H -I../src/. -Isrc -Isrc/config -isystem /usr/local/include -std=gnu++11 -MD -MT src/CMakeFiles/util.dir/random.cpp.o -MF src/CMakeFiles/util.dir/random.cpp.o.d -o src/CMakeFiles/util.dir/random.cpp.o -c ../src/random.cpp
../src/random.cpp:35:10: fatal error: 'openssl/err.h' file not found
#include <openssl/err.h>
         ^~~~~~~~~~~~~~~
1 error generated.
[12/137] Building CXX object src/CMakeFiles/util.dir/sync.cpp.o
ninja: build stopped: subcommand failed.
This revision is now accepted and ready to land.Dec 15 2017, 00:47
This revision was automatically updated to reflect the committed changes.