lbrycrd/WINDOWS.md
Vinnie Falco c25e98186d Squashed 'src/leveldb/' content from commit aca1ffc
git-subtree-dir: src/leveldb
git-subtree-split: aca1ffc4b65be5e099b2088c6e6a308d69e1ad73
2013-05-03 19:06:59 -07:00

1.1 KiB

Building LevelDB On Windows

Prereqs

Install the Windows Software Development Kit version 7.1.

Download and extract the Snappy source distribution

  1. Open the "Windows SDK 7.1 Command Prompt" : Start Menu -> "Microsoft Windows SDK v7.1" > "Windows SDK 7.1 Command Prompt"
  2. Change the directory to the leveldb project

Building the Static lib

  • 32 bit Version

      setenv /x86
      msbuild.exe /p:Configuration=Release /p:Platform=Win32 /p:Snappy=..\snappy-1.0.5
    
  • 64 bit Version

      setenv /x64
      msbuild.exe /p:Configuration=Release /p:Platform=x64 /p:Snappy=..\snappy-1.0.5
    

Building and Running the Benchmark app

  • 32 bit Version

      setenv /x86
      msbuild.exe /p:Configuration=Benchmark /p:Platform=Win32 /p:Snappy=..\snappy-1.0.5
      Benchmark\leveldb.exe
    
  • 64 bit Version

      setenv /x64
      msbuild.exe /p:Configuration=Benchmark /p:Platform=x64 /p:Snappy=..\snappy-1.0.5
      x64\Benchmark\leveldb.exe