Giter Club home page Giter Club logo

Comments (11)

cmumford avatar cmumford commented on August 17, 2024

Comment #1 originally posted by [email protected] on 2011-05-22T18:07:01.000Z:

<empty>

from leveldb.

cmumford avatar cmumford commented on August 17, 2024

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.

cmumford avatar cmumford commented on August 17, 2024

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.

cmumford avatar cmumford commented on August 17, 2024

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.

cmumford avatar cmumford commented on August 17, 2024

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.

cmumford avatar cmumford commented on August 17, 2024

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.

cmumford avatar cmumford commented on August 17, 2024

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.

cmumford avatar cmumford commented on August 17, 2024

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.

cmumford avatar cmumford commented on August 17, 2024

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.

cmumford avatar cmumford commented on August 17, 2024

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.

cmumford avatar cmumford commented on August 17, 2024

Comment #11 originally posted by [email protected] on 2011-06-16T09:44:11.000Z:

<empty>

from leveldb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.