NoSQL
leveldb - 윈도우 포팅 브랜치 버전
이성권
2013. 7. 5. 12:31
아래는 leveldb윈도우 포팅인데, C++11에서 제공하는 "variadic templates"기능을 가진 컴파일러에서만 전체 빌드가 가능하다. 물론, 단계 5까지는 이하 버전에서도 가능하다.
On Windows
Prerequisites
- Msys
- Mingw - I got mine from http://www.nuwen.net
Steps
- Get LevelDB from https://github.com/ripple/leveldb
- Open msys and navigate to where you have the directory
- Add the path to ming binaries to the end of the
PATH
variable. For exampleset PATH=$PATH:/c/Mingw/bin/
export TARGET_OS=NATIVE_WINDOWS
make
- Download leveldb_cross_compiler from https://github.com/jbandela/leveldb_cross_compiler
C:\Users\jrb\Source\Repos\leveldb_cross_compiler>g++ leveldb_cc_dll.cpp -O2 -shared -o leveldb_cc_dll.dll ..\leveldb\libleveldb.a -I ..\leveldb\include -I ..\cr oss_compiler_call -lshlwapi -std=c++11
replacing the paths tolibleveldb.a
andleveldb\include
andcross_compiler_call
as necessary