Giter Site home page Giter Site logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024

Original comment by [email protected] on 22 May 2011 at 6:07

  • Added labels: OpSys-OSX
  • Removed labels: ****

from leveldb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024

Original comment by [email protected] on 16 Jun 2011 at 9:44

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

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.