Open alpakeno opened 5 years ago
This library seems to compile just fine:
git clone git://git.code.sf.net/p/giflib/code giflib
cd giflib
export CC_PREFIX=arm-vita-eabi
export CC=$CC_PREFIX-gcc
export CFLAGS="-Wl,-q -Wall -O3 -Wno-unused-variable"
export ASFLAGS=$CFLAGS
make libgif.a
returns
arm-vita-eabi-gcc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o dgif_lib.o dgif_lib.c
arm-vita-eabi-gcc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o egif_lib.o egif_lib.c
arm-vita-eabi-gcc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o gifalloc.o gifalloc.c
arm-vita-eabi-gcc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o gif_err.o gif_err.c
arm-vita-eabi-gcc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o gif_font.o gif_font.c
arm-vita-eabi-gcc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o gif_hash.o gif_hash.c
arm-vita-eabi-gcc -std=gnu99 -fPIC -Wall -Wno-format-truncation -O2 -c -o openbsd-reallocarray.o openbsd-reallocarray.c
ar rcs libgif.a dgif_lib.o egif_lib.o gifalloc.o gif_err.o gif_font.o gif_hash.o openbsd-reallocarray.o
I don't think that we need anything else from this project. I can add this library to https://github.com/vitasdk/packages if you want, I won't test it however.
@devnoname120 If it's compiles fine, then you can add it to vitasdk, so that it can be added later to libvita2d when @xerpi have some/free time to work on it.
Keep in mind that supporting GIF files won't necessarily mean supporting animated images. Why not just convert your images to PNG?
Unfortunately there is no tool to do that using PSVita.
We have to add https://sourceforge.net/projects/giflib/ support to vitasdk first