Post
Topic
Board Announcements (Altcoins)
Re: [ANN] CRAVE 1st POS Masternodes | Dark Assets | Markets Soon =Embrace The Dark=
by
rocoro
on 16/04/2015, 21:45:44 UTC
Getting this when trying to compile daemon with latest secp256k1 installed:  

Code:
key.cpp:729:106: error: cannot convert ‘unsigned char*’ to ‘const secp256k1_context_t* {aka const secp256k1_context_struct*}’ for argument ‘1’ to ‘int secp256k1_ec_pubkey_tweak_add(const secp256k1_context_t*, unsigned char*, int, const unsigned char*)’
     bool ret = secp256k1_ec_pubkey_tweak_add((unsigned char*)pubkeyChild.begin(), pubkeyChild.size(), out);
                                                                                                          ^
make: *** [obj/key.o] Error 1

I'm assuming because as was mentioned,  crave daemon does not currently support latest secp256k1 ?

Had to do this to get it to actually reset/rollback and successfully compile:
Code:
git clone https://github.com/bitcoin/secp256k1
cd secp256k1
git reset a0d3b8
git add .
git reset --hard
./autogen.sh
./configure
make
sudo make install
cd ..
sudo ldconfig

cd crave/src
make -f makefile.unix USE_UPNP=
strip craved


Thanks rocoro.  I used the following to build the QT version.  It worked like a charm.

Code:
git clone https://github.com/bitcoin/secp256k1
cd secp256k1
git reset a0d3b8
git add .
git reset --hard
./autogen.sh
./configure
make
sudo make install
cd ..
sudo ldconfig

cd crave
qmake && make USE_UPNP=

If you want to use more cpu cores change the last line to:

qmake && make -jX USE_UPNP=

where X is the # of cores to use, so -j4 would use 4 cores.



One thing I had to do for QT version was change your last line...  
Should be:
Code:
qmake "USE_UPNP=-" && make

Otherwise during make it was still looking for miniupnp...  had to tell it to not use UPNP during qmake step,  not during make
I don't use UPNP but for others if you installed miniupnp it should be fine.

Just telling what worked for me..  thanks