First-time build errors [noob question]

Post Reply
imperi
Posts: 19
Joined: Wed Jun 29, 2011 10:33 am

First-time build errors [noob question]

Post by imperi »

imperi@pearl:~/namecoin$ make
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -DUSE_UPNP=0 -o obj/nogui/util.o util.cpp
In file included from util.cpp:5:0:
headers.h:37:28: fatal error: openssl/buffer.h: No such file or directory
compilation terminated.
make: *** [obj/nogui/util.o] Error 1
imperi@pearl:~/namecoin$ sudo apt-get install openssl
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 168 not upgraded.
imperi@pearl:~/namecoin$
I pulled it from Github, and when I try to build I get this error. As you can see I have openssl installed, but it says it can't find buffer.h. Is there some step I missed? Thanks.

khal
Site Admin
Posts: 708
Joined: Mon May 09, 2011 5:09 pm
os: linux

Re: First-time build errors [noob question]

Post by khal »

Have you read this ?
https://github.com/vinced/namecoin/blob ... d-unix.txt

Ignore all the GUI part (wxWidgets)

If you use redhat and other unix which have special openssl, you lack some encryption function and must use the upstream release.

command line :
make -f makefile.unix
NamecoinID: id/khal
GPG : 9CC5B92E965D69A9
NMC: N1KHAL5C1CRzy58NdJwp1tbLze3XrkFxx9
BTC: 1KHAL8bUjnkMRMg9yd2dNrYnJgZGH8Nj6T

Register Namecoin domains with BTC
My bitcoin Identity - Send messages to bitcoin users
Charity Ad - Make a good deed without paying a cent

JohnDoe
Posts: 94
Joined: Sat May 28, 2011 8:46 pm
os: linux

Re: First-time build errors [noob question]

Post by JohnDoe »

First time building namecoind too. I noticed that when using make -f makefile.unix I get a binary of 20.4 mb but the 32-bit binary on this site is 3.77 mb. Why could that be?

nodemaster
Posts: 172
Joined: Wed Jun 15, 2011 12:46 pm
os: linux

Re: First-time build errors [noob question]

Post by nodemaster »

You may "strip" the binary on UNIX like systems, removing all unnessecary stuff:

Code: Select all

strip namecoind
Access .bit domains with Firefox in 4 easy steps: https://masterpool.eu/proxy
MasterPool Namecoin Mining Pool

JohnDoe
Posts: 94
Joined: Sat May 28, 2011 8:46 pm
os: linux

Re: First-time build errors [noob question]

Post by JohnDoe »

Pretty cool, thanks.

Post Reply