摘要: 安装nodejs tsc apt install nodejs which node npm npm install -g typescript tsc -v 配置tsc tsc --init tsconfig.json { "include":["./src/**/*.ts"],/*源代码存放的路 阅读全文
posted @ 2022-10-12 15:34 simp00 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 下载ffmpeg版本 注意 这里环境是承接docker Ubuntu wasm 环境配置 浏览器debug c/c++ 中的docker ubuntu 环境 git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg cd ffmpeg git branch 阅读全文
posted @ 2022-10-12 14:11 simp00 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 内容简要 请使用者自行优化 #ifndef EM_PORT_API # if defined(__EMSCRIPTEN__) # include <emscripten.h> # if defined(__cplusplus) # define EM_PORT_API(rettype) extern 阅读全文
posted @ 2022-10-12 11:00 simp00 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 编译选项 emcc mem.cc -o mem.js mem.cc #include "util.h" int g_int=42; double g_double = 3.1415926; EM_PORT_API(int*)get_int_ptr(){ return &g_int; } EM_POR 阅读全文
posted @ 2022-10-12 11:00 simp00 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 编译选项 emcc test.c --js-library pkg.js -o test.js pkg.js mergeInto(LibraryManager.library,{ js_add:function(a,b) { console.log("js_add"); return a+b; }, 阅读全文
posted @ 2022-10-12 09:23 simp00 阅读(101) 评论(0) 推荐(0) 编辑