Installation
HuxerUI ships as a relocatable SDK with the huxerui command-line tool, CMake packages, host code generators, built-in resources, and packaged platform artifacts.
Requirements
Section titled “Requirements”For the CMake/SDK workflow, prepare:
- A C++20 compiler supported by the selected platform toolchain.
- CMake 3.20 or later.
- The HuxerUI SDK for the current development host.
Platform builds also require their platform SDK: Visual Studio on Windows, Xcode on Apple platforms, the Android SDK and NDK for Android, or Emscripten for Web.
Install the SDK
Section titled “Install the SDK”Get the 0.5.0 archive for your development host from Downloads, or use the installer linked from the release. Keep the archive’s directory structure, add its bin directory to PATH, and check the install with huxerui --version. The Android arm64-v8a host archive is for running the CLI in Termux. For Android development from a desktop, use that desktop’s SDK archive.
Build the documented revision
Section titled “Build the documented revision”To build the framework from source, check out the commit used for this manual and its Web examples:
git clone https://github.com/HuxerUI/HuxerUI.gitgit -C HuxerUI checkout fcd2e01d5c9261b0efc99b02d5bd2eac329d1be6For a host-only CMake package, configure from a supported developer environment. On Windows use an MSVC Developer PowerShell with Ninja available; on macOS use Xcode command-line tools; Linux requires the GTK/system dependencies in its platform guide:
cmake -S HuxerUI -B build/huxerui -G Ninja -DCMAKE_BUILD_TYPE=Release -DHUXERUI_BUILD_SHARED=OFF -DHUXERUI_BUILD_STATIC=ON -DHUXERUI_BUILD_TESTS=OFF -DHUXERUI_BUILD_EXAMPLES=OFFcmake --build build/huxerui --parallel 4cmake --install build/huxerui --prefix build/huxerui-installPoint CMAKE_PREFIX_PATH to that install for a custom desktop CMake application, or use the source checkout directly through add_subdirectory as shown in CMake integration. A host install alone does not create Android/Web SDK artifacts.
For a complete SDK, the source repository provides scripts/package_sdk.ps1 and scripts/package_sdk.sh. They build target artifacts and require a complete Android/Java/Emscripten environment; macOS packaging also builds iOS with Xcode. Keep their build/output under a build directory. They do not bootstrap missing SDKs.
For a desktop module project use C++ Modules and mcpp, which has its own manifest/build rules and current C++23 template mode.
Select an SDK
Section titled “Select an SDK”The CLI first honors an explicit HUXERUI_HOME and otherwise discovers the SDK relative to its own executable.
Use huxerui sdk list and huxerui sdk use 0.5.0 in a managed installation. Use HUXERUI_HOME to point the CLI at a manually extracted SDK, or --sdk <path> to select an SDK or source checkout for one build.
$env:HUXERUI_HOME = "D:\Environment\HuxerUI"$env:Path = "$env:HUXERUI_HOME\bin;$env:Path"export HUXERUI_HOME=/opt/huxeruiexport PATH="$HUXERUI_HOME/bin:$PATH"Diagnose the environment
Section titled “Diagnose the environment”Run the read-only doctor before creating or building an application:
huxerui doctorLimit diagnosis to the platforms you plan to use:
huxerui doctor windows,webdoctor reports the selected SDK and missing external tools without installing or changing them.
Use setup for supported platform prerequisites that the CLI can acquire:
huxerui setup android,webDirect CMake consumers
Section titled “Direct CMake consumers”Projects that do not use a generated application shell can locate the installed package directly:
find_package(HuxerUI CONFIG REQUIRED)target_link_libraries(my_target PRIVATE HuxerUI::huxerui_static)Use HuxerUI::huxerui when the host platform and package use the shared library form.
Application projects should prefer huxerui_add_app, which also enables scope code generation and resource packaging.
Create a project with the CLI, or continue to DSL fundamentals if an application shell already exists.

