Coder Social home page Coder Social logo

Windows support about diem HOT 4 CLOSED

diem avatar diem commented on May 20, 2024 4
Windows support

from diem.

Comments (4)

Kixunil avatar Kixunil commented on May 20, 2024 1

Fixed by #83

from diem.

codemaveric avatar codemaveric commented on May 20, 2024

Hi, saranshkataria

You can connect to Libra Core from Windows using WSL. Use the following article to get started with it on a Windows System.
https://medium.com/@ibraheemkolawolebello/connecting-to-libra-testnet-on-windows-with-wsl-45bdfd23150a

Cheers

from diem.

jquesnelle avatar jquesnelle commented on May 20, 2024

Couple of notes regarding getting this to build on Windows (at least my progress so far).

First, you'll need to install all of the dependencies in scripts/dev_setup.sh yourself and add them to PATH. These are Rust (obviously), CMake, Go, and protobuf. For protobuf, both the bin and the include directory will need to be in PATH.

As for getting it to build (in whatever way possible), my progress so far:

  1. libra_node depends on signal-hook which does not work on Windows at all.

Remove signal_hook dependency and comment out use of signal_hook and definiton/call to register_signals in https://github.com/libra/libra/blob/master/libra_node/src/main.rs

  1. clap has a default feature that is not supported on Windows.

Change all clap = 2.32.0 dependencies to clap = { version = "2.32.0", default-features = false }

  1. jemallocator doesn't build on x86_64-pc-windows-msvc.

Comment out dump_jemalloc_heap_profile function in node_debug_service.rs, and the associated call and import in debug_interface/src/lib.rs

Currently, I'm wrestling with rocksdb. Release 0.12.2 builds correctly on Windows, but the Rust interface has changed. Libra is pinned to a specific commit (4f8c6b3a48c7acb0c81f9bb91e7d8493b1c5a73e), which errors with Cannot open include file: 'snappy.h'. This should be solvable, though. I'll update once I have it figured out.

from diem.

bmwill avatar bmwill commented on May 20, 2024

The dependencies needed to build Libra have been simplified so this should make it easier to build on windows (I believe building rocksdb maybe be the only hurdle now), though it sounds like using WSL is also an option.

from diem.

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.