For a working basic triangle example, use this one https://github.com/Playermet/luajit-glfw/issues/4#issuecomment-246297956
and then replace the 2 first require lines by:
local glfw = require 'glfw' ('glfw')
local gl = require 'gl' ('GL')
Or if you want to give the full path of libs:
local glfw = require 'glfw' ('/usr/lib/libglfw.so')
local gl = require 'gl' ('/usr/lib/libGL.so')
Pinned Comments
Popolon commented on 2025-11-15 15:24 (UTC) (edited on 2025-11-15 15:42 (UTC) by Popolon)
For a working basic triangle example, use this one https://github.com/Playermet/luajit-glfw/issues/4#issuecomment-246297956
and then replace the 2 first
requirelines by:local glfw = require 'glfw' ('glfw') local gl = require 'gl' ('GL')Or if you want to give the full path of libs:
local glfw = require 'glfw' ('/usr/lib/libglfw.so') local gl = require 'gl' ('/usr/lib/libGL.so')