LÖVE-Nuklear - a lightweight immediate mode GUI

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
keharriso
Party member
Posts: 109
Joined: Fri Nov 16, 2012 9:34 pm

LÖVE-Nuklear - a lightweight immediate mode GUI

Post by keharriso »

I just finished creating a LÖVE binding for the Nuklear GUI library. The library is very low profile and customizable. It follows the "immediate mode" paradigm and comes with a good number of fully stylable widgets. Check it out if you are interested in this sort of thing:

https://github.com/keharriso/love-nuklear
LÖVE-Nuklear - a lightweight immediate mode GUI for LÖVE games
User avatar
Tjakka5
Party member
Posts: 243
Joined: Thu Dec 26, 2013 12:17 pm

Re: LÖVE-Nuklear - a lightweight immediate mode GUI

Post by Tjakka5 »

Imgui didn't provide much and good documentation, so it's very nice to have an alternative with very good docs.
Great job! I'll try it out soon.
User avatar
Jack5500
Party member
Posts: 148
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Re: LÖVE-Nuklear - a lightweight immediate mode GUI

Post by Jack5500 »

It now has binaries, so everyone can get started right off the bat! Really great work here!
User avatar
LordSeaworth
Prole
Posts: 22
Joined: Tue Jun 07, 2016 10:29 pm

Re: LÖVE-Nuklear - a lightweight immediate mode GUI

Post by LordSeaworth »

I will definetly check this out.
Great job
User avatar
bzSteve
Prole
Posts: 34
Joined: Tue May 21, 2013 2:31 am

Re: LÖVE-Nuklear - a lightweight immediate mode GUI

Post by bzSteve »

This looks very interesting to me. Has anyone compiled macOS binaries? I'm not sure how to build this on my Mac.
User avatar
master both
Party member
Posts: 262
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

Re: LÖVE-Nuklear - a lightweight immediate mode GUI

Post by master both »

User avatar
bzSteve
Prole
Posts: 34
Joined: Tue May 21, 2013 2:31 am

Re: LÖVE-Nuklear - a lightweight immediate mode GUI

Post by bzSteve »

Hi master both! Thank you for posting that. I'm having some trouble, though. When I click the link, the file nuklear.so.txt is downloaded. I removed the .txt making the extension .so and now I get this error.

Code: Select all

Error: error loading module 'nuklear' from file './nuklear.so':
	dlopen(./nuklear.so, 6): Library not loaded: /usr/local/opt/luajit/lib/libluajit-5.1.2.dylib
  Referenced from: /Users/bzSteve/Desktop/love-nuklear-master/example/nuklear.so
  Reason: image not found
stack traceback:
	[C]: at 0x010061d940
	[C]: in function 'require'
	main.lua:3: in main chunk
	[C]: in function 'require'
	[string "boot.lua"]:429: in function <[string "boot.lua"]:275>
	[C]: in function 'xpcall'
What should I do to resolve this?

Thanks.
User avatar
master both
Party member
Posts: 262
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

Re: LÖVE-Nuklear - a lightweight immediate mode GUI

Post by master both »

Thats odd, It downloads as "nuklear.so" for me.
Make sure you put the file in the path "/usr/local/lib/lua/5.1/nuklear.so" and just write require("nuklear") in main.lua
User avatar
bzSteve
Prole
Posts: 34
Joined: Tue May 21, 2013 2:31 am

Re: LÖVE-Nuklear - a lightweight immediate mode GUI

Post by bzSteve »

Something weird is going on. I'm getting a very similar error.

Code: Select all

Error: error loading module 'nuklear' from file '/usr/local/lib/lua/5.1/nuklear.so':
	dlopen(/usr/local/lib/lua/5.1/nuklear.so, 6): Library not loaded: /usr/local/opt/luajit/lib/libluajit-5.1.2.dylib
  Referenced from: /usr/local/lib/lua/5.1/nuklear.so
  Reason: image not found
stack traceback:
	[C]: at 0x0106105940
	[C]: in function 'require'
	main.lua:3: in main chunk
	[C]: in function 'require'
	[string "boot.lua"]:429: in function <[string "boot.lua"]:275>
	[C]: in function 'xpcall'
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: LÖVE-Nuklear - a lightweight immediate mode GUI

Post by Positive07 »

Master Both what was your compilation target? Did you link to liblua51.dylib or something else? It is looking for libluajit-5.1.2.dylib which LÖVE doesn't come with
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests