Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Building with Bitcoin 0.12.1 fails #4

Open
smouldering opened this issue May 11, 2016 · 6 comments
Open

Building with Bitcoin 0.12.1 fails #4

smouldering opened this issue May 11, 2016 · 6 comments

Comments

@smouldering
Copy link

smouldering commented May 11, 2016

In the shadow-plugin-bitcoin directory after using the command make -j1 I get an error stating:-

make[2]: *** No rule to make target ../bitcoin/src/verison.cpp', needed by src/version.cpp.bc'. Stop.

Maybe this verison.cpp doesn't exist in Bitcoin 0.9.2 netmine edition and needs to be added to some cmake config file?

@smouldering
Copy link
Author

Seems version.cpp doesn't exist in later versions. Any pointers to what would need to be modified in the builder I'd be grateful.

@robgjansen
Copy link
Member

If you just want to remove that file from the build, you could comment out this line:
https://github.com/shadow/shadow-plugin-bitcoin/blob/master/src/CMakeLists.txt#L143

I have no idea if that will cause other problems though.

@smouldering
Copy link
Author

Ah I see. Looking at the code I might have to add a lot of sources too, ill comment back on my findings.

@robgjansen
Copy link
Member

It may be easier to grab all sources in the source directories, and then remove the ones you don't want. We do that for the Tor plugin:
https://github.com/shadow/shadow-plugin-tor/blob/master/src/tor/CMakeLists.txt#L136

@smouldering
Copy link
Author

smouldering commented May 11, 2016

Yeah that does sound easier, my assumption is to write aux_source_directory(${BITCOIN_ROOT_DIR}/src bitcoin_sources). I'll give that a try.

EDIT: Just seen it's already in there just commented out: https://github.com/shadow/shadow-plugin-bitcoin/blob/master/src/CMakeLists.txt#L93

@smouldering
Copy link
Author

smouldering commented May 11, 2016

It does pick up the sources and starts to build them but, it cannot build key.cpp as 'secp256k1.h' doesn't exist. So, like the Bitcoin make file, the dependencies need building first and somehow linked to building the rest of the Bitcoin source.

EDIT: My guess is each new source folder will be added tt the CMakeLists.txt file in the same way leveldb was originally.

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

No branches or pull requests

2 participants