CC='/opt/gcw0-toolchain/usr/bin/mipsel-gcw0-linux-uclibc-gcc' \
CGO_CFLAGS='-I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/libpng16 -D_REENTRANT' \
CGO_ENABLED=1 \
CGO_LDFLAGS='-L/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -lSDL2 -lpng16' \
GOARCH=mipsle \
GOMIPS=softfloat \
GOOS=linux \
PKG_CONFIG='/opt/gcw0-toolchain/usr/bin/pkg-config' \
go build -tags netgo,sdl -o bin/${PROGRAM_NAME}.gcw pg2v2_test/src
# github.com/gen2brain/raylib-go/raylib
external/rltexgpu.h:133:142: error: expected ‘;’, ‘,’ or ‘)’ before numeric constant
RLGPUTEXAPI void *rl_load_dds_from_memory(const unsigned char *file_data, unsigned int file_size, int *width, int *height, int *format, int *mips);
^
external/rltexgpu.h:134:142: error: expected ‘;’, ‘,’ or ‘)’ before numeric constant
RLGPUTEXAPI void *rl_load_pkm_from_memory(const unsigned char *file_data, unsigned int file_size, int *width, int *height, int *format, int *mips);
^
external/rltexgpu.h:135:142: error: expected ‘;’, ‘,’ or ‘)’ before numeric constant
RLGPUTEXAPI void *rl_load_ktx_from_memory(const unsigned char *file_data, unsigned int file_size, int *width, int *height, int *format, int *mips);
^
external/rltexgpu.h:136:142: error: expected ‘;’, ‘,’ or ‘)’ before numeric constant
RLGPUTEXAPI void *rl_load_pvr_from_memory(const unsigned char *file_data, unsigned int file_size, int *width, int *height, int *format, int *mips);
^
external/rltexgpu.h:137:143: error: expected ‘;’, ‘,’ or ‘)’ before numeric constant
RLGPUTEXAPI void *rl_load_astc_from_memory(const unsigned char *file_data, unsigned int file_size, int *width, int *height, int *format, int *mips);
^
external/rltexgpu.h:212:130: error: expected ‘;’, ‘,’ or ‘)’ before numeric constant
void *rl_load_dds_from_memory(const unsigned char *file_data, unsigned int file_size, int *width, int *height, int *format, int *mips)
^
rtextures.c: In function ‘LoadImageFromMemory’:
rtextures.c:516:20: warning: assignment makes pointer from integer without a cast
image.data = rl_load_dds_from_memory(fileData, dataSize, &image.width, &image.height, &image.format, &image.mipmaps);
^
rtextures.c: At top level:
cc1: warning: unrecognized command line option "-Wno-stringop-overflow"
make: *** [Makefile:12: mips] Error 1
Hi,
I'm trying to cross-compile my "hello raylib" test to a MIPS architecture.
My command line looks like this:
It works for a "hello sdl" test that I have (https://github.com/geniot/pg2_test_go)
But with raylib-go it fails strangely like this:
Do you know why this happens and whether anything can be done to fix this?