LÖVE-Nuklear - a lightweight immediate mode GUI
Re: LÖVE-Nuklear - a lightweight immediate mode GUI
Sorry for the OS X trouble. I don't have a Mac, so I can't compile and test Mac releases. If anyone has any suggestions to make the CMake script work better for Mac, feel free to open an issue or pull request.
LÖVE-Nuklear - a lightweight immediate mode GUI for LÖVE games
- 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
Sorry for the misunderstanding, I'm not very experienced with cmake and I just asumed that my build would work on any macOS, my bad.
I did add some paths to this file when I build it, mainly my version of LuaJIT that I got from Homebrew.
I did add some paths to this file when I build it, mainly my version of LuaJIT that I got from Homebrew.
Re: LÖVE-Nuklear - a lightweight immediate mode GUI
Just starting with lua and LÖVE and figured I'd give this library a try. I got everything built on MacOS, but getting a crash on initialization. Here's the stack trace:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 LuaJIT.LuaJIT 0x0000000105f7ab02 0x105f78000 + 11010
1 nuklear.so 0x000000000a1fa4b1 nk_love_init + 449
2 LuaJIT.LuaJIT 0x0000000105f7ab36 0x105f78000 + 11062
3 org.love2d.love 0x0000000105c89570 0x105c87000 + 9584
I'm not sure if maybe I have a version mismatch (love 0.10.1, luaJIT 2.0.3_1, latest Nuklear from git)? Or maybe something isn't being found (some initialization data file)? Any ideas would be greatly appreciated! Thank you
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 LuaJIT.LuaJIT 0x0000000105f7ab02 0x105f78000 + 11010
1 nuklear.so 0x000000000a1fa4b1 nk_love_init + 449
2 LuaJIT.LuaJIT 0x0000000105f7ab36 0x105f78000 + 11062
3 org.love2d.love 0x0000000105c89570 0x105c87000 + 9584
I'm not sure if maybe I have a version mismatch (love 0.10.1, luaJIT 2.0.3_1, latest Nuklear from git)? Or maybe something isn't being found (some initialization data file)? Any ideas would be greatly appreciated! Thank you
Re: LÖVE-Nuklear - a lightweight immediate mode GUI
I forgot to mention that I get the same results running my little test project or the example. I'm running the example like this:
Playing with this some more when I get home later...
Code: Select all
Jonathans-MBP:love-nuklear$ love example/.
- Positive07
- Party member
- Posts: 1014
- Joined: Sun Aug 12, 2012 4:34 pm
- Location: Argentina
Re: LÖVE-Nuklear - a lightweight immediate mode GUI
LÖVE's current version is 0.10.2, and it internally uses LuaJIT 2.0.4 so you are using older libraries... I don't think that is the problem though, but you can try updating both. I'm not a Mac user so I can't help sorry
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Re: LÖVE-Nuklear - a lightweight immediate mode GUI
Thanks Positive07. I downloaded Zerobrane in an attempt to debug the crash, but the example works in there! So I think you're right that the versions are probably not the problem.
Re: LÖVE-Nuklear - a lightweight immediate mode GUI
I tried running outside of Zerobrane, but still starting up mobdebug first. That works too. Here's new love.load()
I copied mobdebug.lua into the example project. Also updated to LÖVE 0.10.2, but homebrew has me stuck at LuaJIT 2.0.3_1 for now. No difference after the switch. Any other mac users out there who might be able to help? Thanks!
And thanks to everyone who has worked on LÖVE2d. It's gotten me back into programming, but more importantly, my son is getting interested too!
Code: Select all
function love.load()
if arg[#arg] == "-debug" then require("mobdebug").start() end
nk.init()
end
And thanks to everyone who has worked on LÖVE2d. It's gotten me back into programming, but more importantly, my son is getting interested too!
Re: LÖVE-Nuklear - a lightweight immediate mode GUI
Has anybody got any more detailed instructions on the steps required to get this to compile?
Re: LÖVE-Nuklear - a lightweight immediate mode GUI
For OSX, running `brew install luajit` should be enough. You should get some thing similar to this when running `cmake`.
Using `brew install luajit [--devel||--HEAD]` does not work. You'll need the same version of Luajit that Love uses. After that, just copying 'nuklear.so' into the example folder should get you up and running.
Code: Select all
-- The C compiler identification is AppleClang 8.0.0.8000042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found LuaJIT: /usr/local/lib/libluajit-5.1.dylib (found version "2.0.4")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/tanner/code/c/love-nuklear/build
Re: LÖVE-Nuklear - a lightweight immediate mode GUI
Ok, seems easy enough on Mac, but I'm trying it on a Windows machine. Are you just running cmake when everything is installed or did you configure anything additionally?
Who is online
Users browsing this forum: Ahrefs [Bot] and 2 guests