-
Notifications
You must be signed in to change notification settings - Fork 14
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
How to use it in emscripten? #8
Comments
In theory, LLVM/Clang's C compiler can compile those examples fine, so there is no problem to compile them in Emscripten. You should use C++ instead. |
But in the obj.h it can not support the platform, |
Did you get compilation errors in this header? |
no compilation errors , just show not support |
#endif #if defined(x86_64) || defined(__x86_64) || defined(_M_X64) || defined(_M_AMD64) |
PAGE_SHIFT undefine |
If you got errors of the header checks, you can disable these Lines 66 to 76 in c9f00cf
In CPU arch checking, you should define one. #define __OBJ_X64 Remember this library still does not support ARM64 (includes Apple M1/M2 Sillicon). |
This is a win32 API, in Emscripten you should use mprotect() instead.
This value usually is 12, you can find it in compiler's include files. |
./obj.h:101:71: error: use of undeclared identifier '__OBJ_CLOFNNUM'
./obj.h:142:30: error: use of undeclared identifier 'asmc'; did you mean 'asin'
D:\cenv\emsdk\upstream\emscripten\cache\sysroot/include\math.h:143:13: note:
D:\cenv\emsdk\upstream\emscripten\cache\sysroot/include\math.h:143:13: note:
|
index.js:2333 could't find closure declaration at prototype function (0x25)!could't find closure declaration at prototype function (0x26)!could't find closure declaration at prototype function (0x27)!could't find closure declaration at prototype function (0x28)!could't find closure declaration at prototype function (0x29)![obj.h] error: could't implement the method 'show'! when i run it |
These errors related to CPU arch and function ABI, also wasm code when Emscripten compiles. Leave your system information here, about CPU, OS, web browser name and Emscripten version. |
windows7 x64 |
Anything new? @nomi-san |
I want to use it in emscripten
The text was updated successfully, but these errors were encountered: