heapwolf / ldb

A C++ REPL / CLI for LevelDB
MIT License
201 stars 23 forks source link

build fails due to incorrect location of libleveldb.a #44

Closed bjmgeek closed 8 years ago

bjmgeek commented 8 years ago

This is on Debian Jessie/Sid, with Linux kernel 4.0.0 on amd64.

g++ -o ldb ldb.cc ./lib/*.cc -I./deps/leveldb/include -std=gnu++11 -lpthread ./deps/leveldb/libleveldb.a -lsnappy ./linenoise.o
g++: error: ./deps/leveldb/libleveldb.a: No such file or directory
Makefile:28: recipe for target 'ldb' failed
make: *** [ldb] Error 1

I can see that the libleveldb.a file is not in the deps/leveldb directory, but one level down, in the out-static directory:

~/src/ldb$ ls deps/leveldb/
AUTHORS          build_detect_platform*  db/   helpers/  issues/  Makefile  out-shared/  port/      table/  util/
build_config.mk  CONTRIBUTING.md         doc/  include/  LICENSE  NEWS      out-static/  README.md  TODO
~/src/ldb$ ls deps/leveldb/out-static/libleveldb.a
deps/leveldb/out-static/libleveldb.a
heapwolf commented 8 years ago

yea maybe the path is just off. im too busy at the moment to dig in but would be happy to accept a PR and then add you as a contributor! :beers: