Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build System for Windows 10 wsl2 #5

Open
tseyt opened this issue Mar 2, 2021 · 4 comments
Open

Build System for Windows 10 wsl2 #5

tseyt opened this issue Mar 2, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@tseyt
Copy link

tseyt commented Mar 2, 2021

After installing Boost on Windows 10 in C:/Program Files,
and installing secp256k1 dependency headers with

sudo apt install libsecp256k1-dev

I run into this issue when trying to build:
image

CMakeError.log
CMakeOutput.log

There seems to be undefined references to pthread.

I probably forgot to install some dependency or something, is there an easy way to install all dependencies required for this project

@bytemaster
Copy link
Collaborator

This project is in the design and prototyping phase. I appreciate your interest and welcome your contribution to the effort.

@bytemaster bytemaster added the enhancement New feature or request label Mar 2, 2021
@bytemaster bytemaster changed the title Could not build on Windows 10 wsl2 Build System for Windows 10 wsl2 Mar 2, 2021
@tbfleming
Copy link
Member

Please try again with the changes I just made to the readme and build system. I'm personally using Ubuntu 20.04 on WSL2 and on Docker.

@vladtr
Copy link

vladtr commented Mar 3, 2021

Builds fine on Ubuntu now OOB. For the web experiment, I tested that with:
npm install --global http-server
http-server

and changing in index.js these to ignore mime type:
const x = await WebAssembly.instantiateStreaming(fetch('a.wasm'), imports);
to
const response = await fetch("a.wasm");
const buffer = await response.arrayBuffer();
const x = await WebAssembly.instantiate(buffer, imports);

it works then. Not sure if it's a best way to test it...

@tbfleming
Copy link
Member

The live-server npm package doesn't need those changes.

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

No branches or pull requests

4 participants