Skip to content

Installation ​

Prerequisites ​

  • C++20 compiler: GCC 10+, Clang 12+, or MSVC 2022+
  • CMake: 3.20 or later
  • Git: for fetching dependencies
  • Python: 3.8+ (for some third-party builds)

Platform-specific ​

Windows: MinGW-w64 or MSVC. The framework is tested with MinGW-w64 (GCC 15).

Linux: build-essential, cmake, libgl1-mesa-dev, libx11-dev, libxrandr-dev, libxinerama-dev, libxcursor-dev, libxi-dev.

macOS: Xcode command line tools, CMake.

Clone ​

bash
git clone https://github.com/weiwei201906/NeoFlux.git
cd NeoFlux

Build ​

bash
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . -j

Build Options ​

OptionDefaultDescription
CMAKE_BUILD_TYPEReleaseBuild configuration
NEOFLUX_BUILD_TESTSOFFBuild unit tests
NEOFLUX_BUILD_EXAMPLESONBuild example applications

Building with Tests ​

bash
cmake .. -DNEOFLUX_BUILD_TESTS=ON
cmake --build . -j
ctest --output-on-failure

Third-Party Dependencies ​

All dependencies are vendored as git submodules under thirdparty/ and built from source (pinned revisions, fully offline once cloned with --recurse-submodules):

  • tgfx — 2D graphics rendering (the required GPU/rendering backend)
  • Taitank — flexbox layout engine
  • GLFW — desktop window/input
  • FreeType — font rasterization (tgfx text stack)
  • glog — logging
  • gflags — command-line flags
  • googletest — unit testing (tests only)

Verify ​

bash
./bin/hello_neoflux

You should see a window with "Hello NeoFlux" and interactive buttons.

Comments

Released under the GPL-3.0 License.