Code Monkey home page Code Monkey logo

Comments (11)

sevagh avatar sevagh commented on August 25, 2024 2

Take a look at this: https://github.com/sevagh/demucs.cpp/tree/wasm/src_wasm

It gives some hints (not all) of how to make a functioning website similar to freemusicdemixer.com

from demucs.cpp.

sevagh avatar sevagh commented on August 25, 2024 1

I'll work on adding more obvious WebAssembly pieces to this repo.

from demucs.cpp.

illbexyz avatar illbexyz commented on August 25, 2024 1

The instructions are very clear. I was able to compile demucs.js and demucs.wasm correctly on MacOS. If it can be helpful to anyone else, I deviated from the instructions and installed emscripten on MacOS via brew install emscripten.

I'll try running the compiled files in the browser later, but I understand the required steps.

Thanks for the help and for your efforts in this amazing project 🙌🏻

from demucs.cpp.

asasas234 avatar asasas234 commented on August 25, 2024 1

Thank you very much

from demucs.cpp.

illbexyz avatar illbexyz commented on August 25, 2024

From https://github.com/sevagh/freemusicdemixer.com 's docs it seems the library is supposed to be compiled using emscripten. I gave it a shot but I wasn't able to compile it, but I'm not really familiar with this ecosystem.

Adding instructions to the README would be very appreciated 🙂

from demucs.cpp.

asasas234 avatar asasas234 commented on August 25, 2024

@illbexyz @sevagh Sorry to bother you, I always get the following error when trying wasm files. Can you all compile normally? Do I need to do anything extra?

/root/emsdk/upstream/lib/clang/19/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
   14 | #error "This header is only meant to be used on x86 and x64 architecture"

from demucs.cpp.

illbexyz avatar illbexyz commented on August 25, 2024

This command worked for me:

rm -rf build-wasm && mkdir -p build-wasm && cd build-wasm \
  && emcmake cmake -DCMAKE_BUILD_TYPE=Release \
  ../src_wasm && make -j16'

from demucs.cpp.

asasas234 avatar asasas234 commented on August 25, 2024

@illbexyz Okay, I used the same command as you, but it didn't work... My system is M1 Max. I'm not sure if this has anything to do with the operating system.

from demucs.cpp.

sevagh avatar sevagh commented on August 25, 2024

Are you sure you are using emcmake cmake and not plain cmake?

from demucs.cpp.

asasas234 avatar asasas234 commented on August 25, 2024

Are you sure you are using emcmake cmake and not plain cmake?

Yes, I am sure that I executed it with the following command.

rm -rf build-wasm && mkdir -p build-wasm && cd build-wasm \
  && emcmake cmake -DCMAKE_BUILD_TYPE=Release \
  ../src_wasm && make -j16

from demucs.cpp.

sevagh avatar sevagh commented on August 25, 2024

I think it's OK to keep this issue closed. I think Mac/OSX problems with the Emscripten/WASM toolchain is out of the scope of demucs.cpp

from demucs.cpp.

Related Issues (12)

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.