Skip to content

Conversation

ENikS
Copy link

@ENikS ENikS commented Sep 2, 2014

Building project with Microsoft tools choke on this include file:<unistd.h>
It should be excluded when compiled with Visual Studio compiler on MS OS.

@chfast
Copy link

chfast commented Jan 13, 2016

Where can I find any instructions how to build leveldb with VS and/or MinGW?

@maxd
Copy link

maxd commented Jan 13, 2016

@chfast This is not an easy task. Here you can find bash script and instruction how to build LevelDB (use env_win.cc from bitcoin project) use MinGW for LevelDB JNA adapter for Java.

@ralphtheninja
Copy link

@chfast You can also have a look at leveldown where we do build for windows. env_win.cc is here https://github.com/Level/leveldown/blob/master/deps/leveldb/port-libuv/env_win.cc

@chfast
Copy link

chfast commented Jan 13, 2016

@ralphtheninja thanks for that, might be useful for me as I'm trying to get Python package working on Windows.

Nevertheless, is leveldb interested in having basic Windows support?

@ENikS
Copy link
Author

ENikS commented Jan 19, 2016

@chfast You could try to clone ENikS/leveldb or ENikS/bitcoin-dev-msvc to see how it is done in MS VS. It is not up to date but will give you enough to start

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@ENikS
Copy link
Author

ENikS commented Jan 19, 2016

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

isaachier pushed a commit to isaachier/leveldb that referenced this pull request Dec 3, 2017
8d4eb08 Add HasAcceleratedCRC32C to port_win.h (Cory Fields)
77cfbfd crc32: move helper functions out of port_posix_sse.cc (Cory Fields)
4c1e9e0 silence compiler warnings about uninitialized variables (Cory Fields)

Pull request description:

  Addresses google#4.

  As this file is compiled with sse42 flags, it's possible that the feature discovery ends up using an unsupported instruction at runtime.

  Fix this by adding CanAccelerateCRC32C to the port api, and requiring that it be checked before using AcceleratedCRC32C.

Tree-SHA512: 166cc0f4758bc0f22adda2126acad83e0251605a3a14d695fbb34a1d40f2328c4d938fbdcd624964281e6b9fcb3b233d3a8bde010ab889d82ae4f94479c6e545
@pwnall
Copy link
Member

pwnall commented Mar 5, 2019

The current code builds on Windows, as tracked by AppVeyor. Going to close this. Sorry we weren't able to get to it earlier!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants