vertcoin / vertcoin-old

Vertcoin source tree
http://www.vertcoin.org
MIT License
76 stars 41 forks source link

src/key.cpp:134: {anonymous}::CECKey::CECKey(): Assertion `pkey != __null' failed #6

Closed rgasch closed 10 years ago

rgasch commented 10 years ago

I have built the qt-version of vertcoin on Fedora20 by doing the following (this is the first time I've ever compiled a QT program, so it may be that I'm doing something wrong):

qmake-qt5 make clean make ./vertcoin-qt

and I get the following:

./vertcoin-qt libpng warning: iCCP: known incorrect sRGB profile vertcoin-qt: src/key.cpp:134: {anonymous}::CECKey::CECKey(): Assertion `pkey != __null' failed.

Please advise. If I can help diagnose the problem any further, please let me know what to do.

Paul-Bradley commented 10 years ago

Hi,

The latest makefile should work with qmake-qt5, but can you also try qmake-qt4 (or just plain qmake) and see what happens? Someone else reported something similar recently, and it was fixed by building with the qt4 qmake.

On 17 February 2014 00:13, Robert Gasch notifications@github.com wrote:

I have built the qt-version of vertcoin on Fedora20 by doing the following (this is the first time I've ever compiled a QT program, so it may be that I'm doing something wrong):

qmake-qt5 make clean make ./vertcoin-qt

and I get the following:

./vertcoin-qt libpng warning: iCCP: known incorrect sRGB profile vertcoin-qt: src/key.cpp:134: {anonymous}::CECKey::CECKey(): Assertion `pkey != __null' failed.

Please advise. If I can help diagnose the problem any further, please let me know what to do.

Reply to this email directly or view it on GitHubhttps://github.com/vertcoin/vertcoin/issues/6 .

rgasch commented 10 years ago

I tried qmake-qt4 before that and got exactly the same issue. I then switched to qmake-qt5 since I figured "newer must be better" :-) ... so in terms of this issue, there is no difference between qt4 and qt5.

Paul-Bradley commented 10 years ago

Ok, looks like it's because the Fedora openssl builds don't implement one of the elliptic curve functions needed (secp256k1) - it's a licensing thing. Here's a patch for you:

In the main vertcoin folder (so, at a level where if you do ls you can see subdirectories contrib, src, doc, share etc)

wget http://pastebin.com/raw.php?i=iFYJsgus -O patch

patch -p1 <patch

rm patch

qmake

make

Incidentally, I did build against qt4 (installed qt4-dev-tools on ubuntu, not sure what that would be on fedora), so if it still doesn't build after patching (and it's not just a straight dependency issue) try building against qt4 too.

Let me know if you have any more issues.

Paul

On 17 February 2014 01:33, Robert Gasch notifications@github.com wrote:

I tried qmake-qt4 before that and got exactly the same issue. I then switched to qmake-qt5 since I figured "newer must be better" :-) ... so in terms of this issue, there is no difference between qt4 and qt5.

Reply to this email directly or view it on GitHubhttps://github.com/vertcoin/vertcoin/issues/6#issuecomment-35222889 .

rgasch commented 10 years ago

Works like a charm! Thanks for the awesome support.

Robert

FRED-E commented 10 years ago

Thanks! It works also for the feathercoin client on Fedora 20.