简体   繁体   English

如何在 KaiOS 中开发调用我自己的 c/c++ 库 API 的应用程序

[英]How can I develop applications that call my self c/c++ library API in KaiOS

I know KaiOS application usually developed by html/js/css, but I develop some special functions that is not exist in the current Web API, so I develop the API of the special functions using C/C++, and now, I want to define JS API to call the C/C++ API, how should I do it?我知道 KaiOS 应用程序通常是用 html/js/css 开发的,但是我开发了一些现在 Web API 中没有的特殊功能,所以我开发了 API,所以我开发了 API 的特殊功能, JS API 调用C/C++ API 怎么办? is there some document about it?有没有关于它的文件?

You need to compile your C/C++ files to JS using Emscripten, then call your functions using this Emscripten API:您需要使用 Emscripten 将 C/C++ 文件编译为 JS,然后使用此 Emscripten API 调用您的函数:

https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM