Comments (11)
Original comment by [email protected]
on 22 May 2011 at 6:07
- Added labels: OpSys-OSX
- Removed labels: ****
from leveldb.
Would this patch not be better?
https://github.com/davisp/leveldb/commit/50e280c9b1cfde0e255d124f38e1aa436d36ba5
2
Original comment by tim%[email protected]
on 23 May 2011 at 9:23
- Added labels: ****
- Removed labels: ****
from leveldb.
That's the same patch. I attached it as a diff to prevent link rot.
Original comment by [email protected]
on 23 May 2011 at 9:39
- Added labels: ****
- Removed labels: ****
from leveldb.
Also, link rot rears its ugly head.
A more permanent link:
https://github.com/davisp/leveldb/compare/master...osx
Original comment by [email protected]
on 23 May 2011 at 11:06
- Added labels: ****
- Removed labels: ****
from leveldb.
Thanks for sharing this. It seems like I successfully applied the patch using
from the leveldb root:
patch -p1 -i leveldb_osx.patch
But I'm getting this error when I call 'make'.
g++ -c -DLEVELDB_PLATFORM_POSIX -I. -I./include -std=c++0x -g2 db/db_bench.cc -o db/db_bench.o
cc1plus: error: unrecognized command line option "-std=c++0x"
make: *** [db/db_bench.o] Error 1
This is with gcc version 4.2.1 (Apple Inc. build 5664)
Original comment by [email protected]
on 25 May 2011 at 8:01
- Added labels: ****
- Removed labels: ****
from leveldb.
There are a couple lines in the Makefile that you need to change for OS X. The
CFLAGS variable needs to change as well as a change to the list of sources.
There's comments in the Makefile that are specific to what needs to happen.
Original comment by [email protected]
on 25 May 2011 at 8:25
- Added labels: ****
- Removed labels: ****
from leveldb.
Thank you, that worked (I also had to apply your log_test patch [1]).
What is the step following 'make' to actually build the library?
[1] http://code.google.com/p/leveldb/issues/detail?id=6
Original comment by [email protected]
on 25 May 2011 at 8:47
- Added labels: ****
- Removed labels: ****
from leveldb.
There is no library code yet on the Makefile. :(
Patches welcome.
Original comment by [email protected]
on 25 May 2011 at 8:53
- Added labels: ****
- Removed labels: ****
from leveldb.
Adding this to the Makefile:
library: $(LIBOBJECTS)
ar rcs lib-leveldb.a $(LIBOBJECTS)
and calling 'make library' seemed to do the trick.
As a side note, adding -fvisibility=hidden to the CFLAGS seemed to get rid of
33 visibility warnings I was getting.
Original comment by [email protected]
on 25 May 2011 at 11:54
- Added labels: ****
- Removed labels: ****
from leveldb.
It seems this is fixed as of r29 - make runs without warnings or errors on
XCode 3 and 4.
Original comment by [email protected]
on 6 Jun 2011 at 8:55
- Added labels: ****
- Removed labels: ****
from leveldb.
Original comment by [email protected]
on 16 Jun 2011 at 9:44
- Changed state: Fixed
- Added labels: ****
- Removed labels: ****
from leveldb.
Related Issues (20)
- BloomFilterPolicy not interoperable between ARM and x86
- Benchmark additions and enhancements HOT 1
- LevelDB gets stuck (no progress on iterators/writes that are waiting for lock/conditional variable) HOT 1
- downloads section hasn't been updated since 1.15.0 HOT 6
- PosixMmapReadableFile fails on FreeBSD with large dataset HOT 3
- Compilation fixes for Windows
- define PLATFORM_IS_LITTLE_ENDIAN on BSD's correctly
- fsync() to fdatasync() in SyncDirIfManifest() HOT 2
- Possible bug: After a power-loss, LevelDB does not discard partially-flushed transactions HOT 2
- leveldb core dump due to disk error
- [patch] fix a spelling mistake HOT 1
- Adapting sequence numbers to timestamps
- Not worwing with make install and autoreconf HOT 4
- LevelDB 1.16 and 1.17 not available on downloads page HOT 2
- corruption_test segfaults on ARM HOT 1
- Patch for /util/coding.cc HOT 1
- Fixing build on MSVC
- iterator return less keys than exist in db
- Patch for /Makefile
- leveldb: LOCK: Resource temporarily unavailable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leveldb.