Comments (11)
Comment #1 originally posted by [email protected] on 2011-05-22T18:07:01.000Z:
<empty>
from leveldb.
Comment #2 originally posted by tim%[email protected] on 2011-05-23T21:23:29.000Z:
Would this patch not be better? https://github.com/davisp/leveldb/commit/50e280c9b1cfde0e255d124f38e1aa436d36ba52
from leveldb.
Comment #3 originally posted by paul.joseph.davis on 2011-05-23T21:39:18.000Z:
That's the same patch. I attached it as a diff to prevent link rot.
from leveldb.
Comment #4 originally posted by paul.joseph.davis on 2011-05-23T23:06:02.000Z:
Also, link rot rears its ugly head.
A more permanent link:
https://github.com/davisp/leveldb/compare/master...osx
from leveldb.
Comment #5 originally posted by [email protected] on 2011-05-25T20:01:07.000Z:
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)
from leveldb.
Comment #6 originally posted by paul.joseph.davis on 2011-05-25T20:25:25.000Z:
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.
from leveldb.
Comment #7 originally posted by stefeo on 2011-05-25T20:47:30.000Z:
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
from leveldb.
Comment #8 originally posted by [email protected] on 2011-05-25T20:53:04.000Z:
There is no library code yet on the Makefile. :(
Patches welcome.
from leveldb.
Comment #9 originally posted by stefeo on 2011-05-25T23:54:01.000Z:
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.
from leveldb.
Comment #10 originally posted by ashoemaker on 2011-06-06T20:55:23.000Z:
It seems this is fixed as of r29 - make runs without warnings or errors on XCode 3 and 4.
from leveldb.
Comment #11 originally posted by [email protected] on 2011-06-16T09:44:11.000Z:
<empty>
from leveldb.
Related Issues (20)
- mac 14.3.1 leveldbutil --version dyld[20240]: Library not loaded: @rpath/libleveldb.1.dylib
- mac 14.3.1 brew install leveldb 1.23 leveldbutil --version Usage: leveldbutil command... dump files... -- dump contents of specified files
- [Question] What does the parameter N of the std::fopen function mean? HOT 1
- [Question] Why Cleanup Functions in Iterator are registered in a wired way ?
- Cna not build Leveldb1.23
- Consistent corruption when no disk space left
- Memory Leak in leveldb_filterpolicy_create_bloom Function
- Null Pointer Dereference Vulnerability in leveldb_open HOT 1
- Memory Leak in Status Class and Usage in leveldb HOT 2
- Why DBImpl::Write not call signal when it release the lock ? HOT 1
- What do these four lines of code do? HOT 1
- question about class MemTableBackwardIterator
- filter block on sstable cannot generated every 2KB datablock ?The filters in the Level 0 SSTable generated by BuildTable are not created for every 2KB. HOT 1
- How to read 000003.log in Default/File System in Chrome using JavaScript? HOT 1
- Potential Manifest and Log File ID Conflict During Recovery Process in LevelDB
- How to read all snapshots in db
- When the useless sstable files are deleted?
- Why is the performance of version 1.23 much worse than version 1.3, even though it is a newer version?
- [`leveldb::PackSequenceAndType`] Assertion `seq <= kMaxSequenceNumber` failed.
- Question about the format comments in Add and Put methods of Memtable. HOT 2
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.