lua-ffmpeg-ffi icon indicating copy to clipboard operation
lua-ffmpeg-ffi copied to clipboard

Multiple cdef error: attempt to redefine 'timespec' at line 925

Open Hiyorimi opened this issue 9 years ago • 0 comments

importing ffmpeg.torch as local ffmpeg = require ('ffmpeg.torch') after importing other modules with ffi binding, I get an error:

/home/ubuntu/torch/install/bin/luajit: /home/ubuntu/torch/install/share/lua/5.1/trepl/init.lua:384: /home/ubuntu/torch/install/share/lua/5.1/trepl/init.lua:384: /home/ubuntu/torch/install/share/lua/5.1/ffmpeg.lua:36: attempt to redefine 'timespec' at line 925
stack traceback:
        [C]: in function 'error'
        /home/ubuntu/torch/install/share/lua/5.1/trepl/init.lua:384: in function 'require'
        process_video:22: in main chunk
        [C]: in function 'docile'
        ...untu/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: at 0x00405d50

Is there any other way to bypass it besides extra lua_state or patching luajit ?

Hiyorimi avatar Aug 03 '16 14:08 Hiyorimi