This should work on any linux or OSX and builds the full suite of namecoind, namecoin-cli, namecoin-tx and namecoin-qt. It downloads all the dependencies it needs as source, checks the hash of the dependency source and builds them from source locally.
I assume you have already cloned the github source for namecore
Code: Select all
git clone https://github.com/namecoin/namecore.git
Go into namecore dir
1) Create a directory for caching the deps builds outside of namecoin src that wont be wiped when cleaning between builds: I put mine one above src
2) Create another directory for caching the source tarballs
3) Clean up the local git tree to pristine (beware this is scorched earth cleanliness so make sure you save anything you want to keep somewhere outside of namecoin/namecore)
Code: Select all
git reset --hard HEAD
git clean -dfx
4)Build the dependencies from known source: (This takes a while to download and build but you only have to do this once now and whenever dependencies are bumped up a version, as per bitcoin schedule)
Code: Select all
make -j4 BASE_CACHE="PATH_TO_CACHE/cached-depends" SOURCES_PATH="PATH_TO_CACHE/cached-depends/sources/"
NB: you have to figure out the absolute path 'PATH_To_CACHE' for where you created the cached-depends dir and sub in above.
5) Build namecore:
Code: Select all
cd ..
./autogen.sh
./configure --prefix=`pwd`/depends/x86_64-unknown-linux-gnu
make -j4
The 'x86_64-unknown-linux-gnu' will be different as to what platform you are building on. Look in the PATH_TO_CACHE/cached-depends directory after step 4) and there will a new directory in there with the name of your platform that you should use. This is a ccache build so should go quick on subsequent builds after the first one. I have a build_namecore.sh bash script that does all this, except the initial dir creation, if anybody is interested.
The binaries will be in the usual locations, e.g. if you want to run namecoin-qt in situ