百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

love-nuklear

> 编程语言
开源

用于 LÖVE 游戏的轻量级即时模式 GUI

389 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

用于 LÖVE 游戏的轻量级即时模式 GUI

LÖVE-Nuklear

Nuklear module for the LÖVE game engine.

Provides a lightweight immediate mode GUI for LÖVE games.

Example

…

Building

Windows binaries are available for each release.

To build the library yourself, grab the code with:

bash
$ git clone --recursive https://github.com/keharriso/love-nuklear.git

Next, you need to compile the code to a native Lua module.

Compiling with CMake on Linux

  1. First, ensure you have a C compiler and the cmake and luajit or lua51-luajit (for openSUSE) packages installed, as well as libluajit-5.1-dev (for Ubuntu/Debian), luajit-devel (for Fedora), or lua51-luajit-devel (for openSUSE) if your distro has one of these packages.
  2. Create a new folder next to love-nuklear called love-nuklear-build.
  3. Open a terminal inside love-nuklear-build.
  4. Compile the library with
bash
$ cmake -DCMAKE_BUILD_TYPE=Release ../love-nuklear
$ make
  1. Locate nuklear.so in the build folder.

Via GNU Guix

LÖVE-Nuklear is also available as a Guix package, and can thus be directly downloaded and built via:

$ guix package --install love-nuklear

Compiling with CMake and MinGW on Windows

  1. Install CMake and MinGW or MinGW-w64.
  2. Download the source code for LuaJIT.
  3. Open a command window inside the LuaJIT folder (the one that contains "README").
  4. Compile LuaJIT with
bash
$ mingw32-make
  1. Remember the path to lua51.dll inside the LuaJIT src folder.
  2. Run the CMake GUI.
  3. Click "Browse Source" at the top right, then select the love-nuklear folder.
  4. Enter a path for the build folder. It should be separate from the source folder.
  5. Press "Configure" at the bottom.
  6. Select "MinGW Makefiles" from the generator drop list, then click "Finish".
  7. You should receive an error. This is normal.
  8. Open the LUA tree by clicking the triangle on the left.
  9. Replace "LUA_INCLUDE_DIR-NOTFOUND" with the path to the LuaJIT src folder.
  10. Replace "LUA_LIBRARY-NOTFOUND" with the path to lua51.dll inside the LuaJIT src folder.
  11. Click "Generate" at the bottom.
  12. Open a command window inside the build folder.
  13. Compile with
bash
$ mingw32-make
  1. Locate nuklear.dll inside the build folder.

Compiling with CMake and MSVC on Windows

  1. Install CMake and Visual Studio. Community or Express edition is sufficient.
  2. Download the source code for LuaJIT.
  3. Open a Visual Studio Command Prompt (x86 or x64 depending on what architecture you need) and set the current directory to the LuaJIT folder (the one that contains "README"). Also remember this path.
  4. At the VS Command Prompt, set your current directory to src then execute msvcbuild.bat. This will create lua51.dll, lua51.lib, and luajit.exe
  5. Now open new command prompt window inside the love-nuklear folder.
  6. Type set "LUA_DIR="
  7. Then type cmake -Bbuild -H. -A Win32 -DLUA_INCLUDE_DIR=%LUA_DIR%\src -DLUA_LIBRARY=%LUA_DIR%\src\lua51.lib -DCMAKE_INSTALL_PREFIX=%CD%\install. If you previously compile LuaJIT using x64 VS command prompt, replace Win32 with x64 at above command.
  8. Then type cmake --build build --config Release --target install and you'll found nuklear.dll inside "install" folder.

Documentation

A complete description of all functions and style properties, alongside additional examples, is available at the LÖVE-Nuklear wiki.

License

Copyright (c) 2016 Kevin Harrison, released under the MIT License (see LICENSE for details).

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Cguiimguiimmediate-guilove2d

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言