• luveti

    I've been trying to get this working for a while now. But am unable to. I downloaded everything using this https://github.com/luapower/all/archive/master.zip, unzipped it, cd'd into it, made a file called app.lua, put this code into it:

    local player = require 'cplayer'
    
    function player:on_render(cr)
        -- draw a red square
        cr:rgb(1, 0, 0)
        cr:rectangle(100, 100, 100, 100)
        cr:fill()
    end
    
    player:play()
    

    Then ran it with luajit app.lua, and I get this error:

    luajit: ./winapi/util.lua:14: platform not Windows
    stack traceback:
        [C]: in function 'assert'
        ./winapi/util.lua:14: in main chunk
        [C]: in function 'require'
        ./winapi/init.lua:7: in main chunk
        [C]: at 0x010389a370
        [C]: in function 'require'
        ./winapi/cairopanel.lua:11: in main chunk
        [C]: in function 'require'
        ./cplayer.lua:5: in main chunk
        [C]: in function 'require'
        app.lua:1: in main chunk
        [C]: at 0x010382c320
    

    BTW: I'm running this on OSX 10.12

    posted in General Discussion read more
Internal error.

Oops! Looks like something went wrong!