WetDesertRock / GifCat

A simple module for saving gifs from LOVE 0.11.x.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows support

Alloyed opened this issue · comments

This is what happens when I try to install gifcat on windows
this is probably a thing with where MSVC is default to a different standard of C than C_gif expects but I haven't really looked into it
this is with MSVC 14 (2015) on windows 10

L: love-imgui scm-1 is now installed in D:\code\sports/rocks (license: MIT)
L:
L: bloodsport (love) depends on gifcat-alloyed ~> scm (not installed)
L: Installing http://alloyed.me/shared/rocks/gifcat-alloyed-scm-1.src.rock
cl /nologo /MD /O2 -c -Fosrc/lua_bindings.obj -IC:/Program Files (x86)/LuaRocks/include src/lua_bindings.c
lua_bindings.c
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(88): error C2059: syntax error: '}'
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(92): error C2065: 'freq': undeclared identifier
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(92): error C2109: subscript requires array or pointer type
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(145): error C2065: 'freq': undeclared identifier
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(145): error C2109: subscript requires array or pointer type
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(146): error C2065: 'freq': undeclared identifier
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(146): error C2109: subscript requires array or pointer type
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(149): error C2065: 'freq': undeclared identifier
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(149): error C2109: subscript requires array or pointer type
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(232): error C2057: expected constant expression
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(232): error C2466: cannot allocate an array of constant size 0
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(232): error C2133: 'codetab': unknown size
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(233): error C2057: expected constant expression
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(233): error C2466: cannot allocate an array of constant size 0
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(233): error C2133: 'hashTbl': unknown size
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(234): warning C4034: sizeof returns 0
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(267): warning C4034: sizeof returns 0
c:\users\barack\appdata\local\temp\luarocks_gifcat-alloyed-scm-1-7222\gifcat\src\jo_gif.c(287): error C2059: syntax error: '}'
Error: Failed installing dependency: http://alloyed.me/shared/rocks/gifcat-alloyed-scm-1.src.rock - Build error: Failed compiling object src/lua_bindings.obj

Have you looked at the flags in the supplied build script? My feeling is that you are right, and that you are building it with the wrong settings. I'm not familiar with development on windows so I'm not sure how much more help I could be.