Replies: 3 comments
-
@DiegoJArg You can try lua-batteries (created by me) which includes latest version of lua and luarocks. I have compiled fltk4lua with msvc you can check that out from here or else follow these steps.
cmake -Bbuild -GNinja
cmake --build build
cmake --install build --prefix d:/fltk
luarocks install fltk4lua FLTK_DIR=d:/fltk
|
Beta Was this translation helpful? Give feedback.
-
Hi @clitic, Your bundle works !! Thank you !! |
Beta Was this translation helpful? Give feedback.
-
Thanks to you confirming compiling is posible, I got inspired and achieved compilation with MinGW. I realised that working with Lua will require quite a lot of C compiling. My steps were: First install MSYS2 and open MSYS2-MINGW32
Add to the PATH at the first:
NOTE:
|
Beta Was this translation helpful? Give feedback.
-
luarocks --version
= 3.9.1 'Lua -v' = 5.1I am noob with Lua/Luarocks, and having difficulties to accomplish a test with FLTK.
I picked FLTK just to learn Lua and compare with pyFLTK.
And to match a lightweight interpreter with a lightweight UI.
This was my battle:
luarocks install fltk4lua
, just like one doespip install pyfltk
.Now the struggle continues about FLTK for Lua.
luarocks391 --lua-version=5.1 install fltk4lua FLTK_DIR=C:\Users\Note13\Downloads\fltk-1.3.x-r8627-win-bin
No existing manifest. Attempting to rebuild...
At this moment, I am realising after 2 days of struggling, that Lua requires to be closer to a compiler like MinGW, C/C++ headers, static/dinamic linking, etc. I wasn't expecting this. pyFLTK probably already contains FLTK binaries bundled.
Beta Was this translation helpful? Give feedback.
All reactions