I'm trying to compile bitcoind on Windows but build_unix for db-4.8.30.NC is empty. What do I need to do?

1

I've been working on setting up the proper environment to compile litecoin, and have been following the instructions from this:

https://bitcointalk.org/index.php?PHPSESSID=1dl8pkva2oqpjsd3h455k7hrj7&topic=149479.0;all

2.2 Berkeley DB: http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz

We'll use version 4.8 to preserve binary wallet compatibility.

From a MinGW shell unpack the source archive, configure, edit line 113 of db.h then make:

Code:

cd /c/deps/

tar xvfz db-4.8.30.NC.tar.gz

cd db-4.8.30.NC/build_unix

../dist/configure --disable-replication --enable-mingw --enable-cxx

after configuring make sure to edit your build_unix/db.h by replacing line 113:

Code:

typedef pthread_t db_threadid_t;

with

Code:

typedef u_int32_t db_threadid_t;

I was all set to do it, but this happened: The build_unix folder is empty

I've tried getting db-4.8.30.NC from multiple sources, but no luck—the build_unix folder is always empty.

So what's the deal?

Austin Burk

Posted 2013-12-14T21:53:19.477

Reputation: 959

I just downloaded Berkeley DB from the link and had no problems. The db-4.8.30NC.tar.gz is 21.7MB. Is this the size of your file?ScripterRon 2013-12-14T22:07:20.940

I have no problem downloading the file; can you tell me what's inside your build_unix directory? I only have an .IGNORE_ME file.Austin Burk 2013-12-14T22:17:59.373

There are 793 files, one of which is .IGNORE_ME. There is also a .libs subdirectory. Sounds like your tarball wasn't unpacked correctly or it was truncated.ScripterRon 2013-12-14T22:58:50.993

Can I have your link? I tried both mingw and 7zip to open it. I tried the windows zip viewer for a zip version.Austin Burk 2013-12-14T23:56:37.747

I mislead you because I have already built Berkely DB. I went back and looked at the .tar.gz file again and it does contain just the .IGNORE_ME file. You just need to run the configure and make commands to create all of the files in the directory.ScripterRon 2013-12-15T01:07:23.823

Answers

3

The build_unix directory contains just the .IGNORE_ME file in the distribution. The directory is populated by the make command.

../dist/configure --disable-replication --enable-mingw --enable-cxx
make

You do not need to edit db.h in the latest distribution since they have already corrected the typedef.

ScripterRon

Posted 2013-12-14T21:53:19.477

Reputation: 2 023

../dist/configure --enable-cxx make this will also doKhan Shahrukh 2014-02-13T04:18:55.597

im trying to build this on windows, i dont see a configure file. can someone point outSyler 2014-03-11T15:23:37.720

I can't believe I missed this answer. I'll see if I still have that stuff on my laptop, maybe I can get it going when I have time!Austin Burk 2014-06-30T01:53:45.120