Giter Site home page Giter Site logo

Port to Windows (non-WSL) about exo HOT 3 CLOSED

endojs avatar endojs commented on July 20, 2024
Port to Windows (non-WSL)

from exo.

Comments (3)

michaelfig avatar michaelfig commented on July 20, 2024

At least the dependency on swing-store-lmdb currently prevents running on Windows natively, as importing the lmdb module results in unresolved symbols. Venemo/node-lmdb#151 (comment) may have a fix.

SwingSet needs synchronous reads of the database in order to function. Perhaps we should use swing-store-simple under Windows natively.

from exo.

michaelfig avatar michaelfig commented on July 20, 2024

Solved with a patch to node-lmdb:

diff --git a/node_modules/node-lmdb/binding.gyp b/node_modules/node-lmdb/binding.gyp
index 325a9aa..fe775fc 100644
--- a/node_modules/node-lmdb/binding.gyp
+++ b/node_modules/node-lmdb/binding.gyp
@@ -7,7 +7,7 @@
   "targets": [
     {
       "target_name": "node-lmdb",
-      "win_delay_load_hook": "false",
+      "win_delay_load_hook": "true",
       "sources": [
         "dependencies/lmdb/libraries/liblmdb/mdb.c",
         "dependencies/lmdb/libraries/liblmdb/midl.c",
@@ -58,7 +58,21 @@
           }
         }],
         ["OS=='win'", {
-            "libraries": ["ntdll.lib"]
+            "libraries": ["ntdll.lib"],
+            "configurations": {
+              "Release": {
+                "msvs_settings": {
+                  "VCLinkerTool": {
+                    "AdditionalOptions": [
+                      "/LTCG:OFF"
+                    ]
+                  },
+                  "VCCLCompilerTool": {
+                    "WholeProgramOptimization": "false"
+                  }
+                }
+              }
+            }
         }],
         ["use_fixed_size=='true'", {
           "defines": ["MDB_FIXEDSIZE"],

from exo.

michaelfig avatar michaelfig commented on July 20, 2024

Agoric/agoric-sdk#2494 plus current Pledger is enough to get working under Windows.

from exo.

Related Issues (8)

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.