Clarionos / clarion

323 stars 31 forks source link

Build System for Windows 10 wsl2 #5

Open tseyt opened 3 years ago

tseyt commented 3 years ago

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 commented 3 years ago

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

tbfleming commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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