在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):emscripten-core/emsdk开源软件地址(OpenSource Url):https://github.com/emscripten-core/emsdk开源编程语言(OpenSource Language):Python 58.8%开源软件介绍(OpenSource Introduction):Emscripten SDKThe Emscripten toolchain is distributed as a standalone Emscripten SDK. The SDK provides all the required tools, such as Clang, Python and Node.js along with an update mechanism that enables migrating to newer Emscripten versions as they are released. You can also set up Emscripten from source, without the pre-built SDK, see "Installing from Source" below. Downloads / How do I get the latest Emscripten build?To get started with Emscripten development, see the Emscripten website documentation. That explains how to use the emsdk to get the latest binary builds (without compiling from source). Basically, that amounts to
SDK ConceptsThe Emscripten SDK is effectively a small package manager for tools that are used in conjunction with Emscripten. The following glossary highlights the important concepts to help understanding the internals of the SDK:
System RequirementsUsing the emsdk pre-compiled packages requires only the minimal set of dependenencies lists below. When building from source a wider set of tools include git, cmake, and a host compiler are required. See: https://emscripten.org/docs/building_from_source/toolchain_what_is_needed.html. Mac OS X
Linux
The emsdk pre-compiled binaries are built aginst Ubuntu/Xenial 16.04 LTS and
therefore depend on system libraries compatiable with versions of Windows
Uninstalling the Emscripten SDKTo remove the Emscripten SDK, simply delete the emsdk directory. SDK MaintenanceThe following tasks are common with the Emscripten SDK: How do I work the emsdk utility?Run How do I check the installation status and version of the SDK and tools?To get a list of all currently installed tools and SDK versions, and all
available tools, run
How do I install a tool/SDK version?Run the command How do I remove a tool or an SDK?Run the command How do I check for updates to the Emscripten SDK?
How do I install an old Emscripten compiler version?Emsdk contains a history of old compiler versions that you can use to maintain
your migration path. Type I want to build from source!Some Emsdk Tool and SDK targets refer to packages that are precompiled, and no compilation is needed when installing them. Other Emsdk Tools and SDK targets come "from source", meaning that they will fetch the source repositories using git, and compile the package on demand. When you run To obtain and build latest upstream wasm SDK from source, run
You can use this target for example to bootstrap developing patches to LLVM,
Binaryen or Emscripten. (After initial installation, use If you only intend to contribute to Emscripten repository, and not to LLVM or Binaryen, you can also use precompiled versions of them, and only git clone the Emscripten repository. For more details, see https://emscripten.org/docs/contributing/developers_guide.html?highlight=developer#setting-up When working on git branches compiled from source, how do I update to a newer compiler version?Unlike tags and precompiled versions, a few of the SDK packages are based on
"moving" git branches and compiled from source (e.g. sdk-upstream-main,
sdk-main, emscripten-main, binaryen-main). Because of that, the
compiled versions will eventually go out of date as new commits are introduced
to the development branches. To update an old compiled installation of one of
this branches, simply reissue the "emsdk install" command on that tool/SDK. This
will Note though that if the previously compiled branch is very old, sometimes CMake
gets confused and is unable to properly rebuild a project. This has happened in
the past e.g. when LLVM migrated to requiring a newer CMake version. In cases of
any odd compilation errors, it is advised to try deleting the intermediate build
directory to clear the build (e.g. "emsdk/clang/fastcomp/build_xxx/") before
reissuing How do I change the currently active SDK version?You can toggle between different tools and SDK versions by running How do I build multiple projects with different SDK versions in parallel?By default, Emscripten locates all configuration files in the home directory of the user. This may be a problem if you need to simultaneously build with multiple Emscripten compiler versions, since the user home directory can only be configured to point to one compiler at a time. This can be overcome by specifying the '--embedded' option as a parameter to 'emsdk activate', which will signal emsdk to generate the compiler configuration files inside the emsdk root directory instead of the user home directory. Use this option also when it is desirable to run emsdk in a fully portable mode that does not touch any files outside the emsdk directory. How do I track the latest Emscripten development with the SDK?A common and supported use case of the Emscripten SDK is to enable the workflow
where you directly interact with the github repositories. This allows you to
obtain new features and latest fixes immediately as they are pushed to the
github repository, without having to wait for release to be tagged. You do not
need a github account or a fork of Emscripten to do this. To switch to using the
latest upstream git development branch
How do I use my own Emscripten github fork with the SDK?It is also possible to use your own fork of the Emscripten repository via the
SDK. This is achieved with standard git machinery, so there if you are already
acquainted with working on multiple remotes in a git clone, these steps should
be familiar to you. This is useful in the case when you want to make your own
modifications to the Emscripten toolchain, but still keep using the SDK
environment and tools. To set up your own fork as the currently active
Emscripten toolchain, first install the
In this way you can utilize the Emscripten SDK tools while using your own git
fork. You can switch back and forth between remotes via the How do I use Emscripten SDK with a custom version of python, java, node.js or some other tool?The provided Emscripten SDK targets are metapackages that refer to a specific
set of tools that have been tested to work together. For example,
My installation fails with "fatal error: ld terminated with signal 9 [Killed]"?This may happen if the system runs out of memory. If you are attempting to build
one of the packages from source and are running in a virtual OS or may have
relatively little RAM and disk space available, then the build might fail. Try
feeding your computer more memory. Another thing to try is to force emsdk
install to build in a singlethreaded mode, which will require less RAM
simultaneously. To do this, pass the How do I run Emscripten on 32-bit systems or non-x86-64 systems?Emscripten SDK releases are no longer packaged or maintained for 32-bit systems. If you want to run Emscripten on a 32-bit system, you can try manually building the compiler. Follow the steps in the above section "Building an Emscripten tag or branch from source" to get started. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论