user2915: 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:

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?

user9301: 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.

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

<p><a href="https://bitcointalk.org/index.php?PHPSESSID=1dl8pkva2oqpjsd3h455k7hrj7&amp;topic=149479.0;all" rel="nofollow noreferrer">https://bitcointalk.org/index.php?PHPSESSID=1dl8pkva2oqpjsd3h455k7hrj7&amp;topic=149479.0;all</a></p>

<blockquote>
  <p>2.2 Berkeley DB: <a href="http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz" rel="nofollow noreferrer">http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz</a></p>
  
  <p>We'll use version 4.8 to preserve binary wallet compatibility.</p>
  
  <p>From a MinGW shell unpack the source archive, configure, edit line 113 of db.h then make:</p>
  
  <p>Code:</p>
</blockquote>

<pre><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
</code></pre>

<blockquote>
  <p>after configuring make sure to edit your build_unix/db.h by replacing line 113:</p>
  
  <p>Code:</p>
</blockquote>

<pre><code>typedef pthread_t db_threadid_t;
</code></pre>

<blockquote>
  <p>with</p>
  
  <p>Code:</p>
</blockquote>

<pre><code>typedef u_int32_t db_threadid_t;
</code></pre>

<p>I was all set to do it, but this happened:
<img src="https://i.stack.imgur.com/LJC4o.jpg" alt="The build_unix folder is empty"></p>

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

<p>So what's the deal?</p>
 9301: <p>The build_unix directory contains just the .IGNORE_ME file in the distribution.  The directory is populated by the make command.</p>

<pre><code>../dist/configure --disable-replication --enable-mingw --enable-cxx
make
</code></pre>

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