| Summary: | Cross compilation with Mingw32 fails | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Gabriel Jacobo <gabomdq> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | Windows (All) | ||
|
Description
Gabriel Jacobo
2012-01-18 15:29:43 UTC
You're right, that's confusing. Fixed, thanks! http://hg.libsdl.org/SDL/rev/d169541f5049 I'm posting here as I think this is related, though the problem is for Ubuntu this time.
After running ./configure and make, I get (sorry for the spanish localization)
/bin/bash build-scripts/updaterev.sh
/bin/bash ./libtool --mode=compile gcc -g -O3 -DUSING_GENERATED_CONFIG_H -I./include -mmmx -m3dnow -msse -msse2 -fvisibility=hidden -D_REENTRANT -D_REENTRANT -DHAVE_LINUX_VERSION_H -Wall -MMD -MT build/SDL.lo -c src/SDL.c -o build/SDL.lo
libtool: compile: gcc -g -O3 -DUSING_GENERATED_CONFIG_H -I./include -mmmx -m3dnow -msse -msse2 -fvisibility=hidden -D_REENTRANT -D_REENTRANT -DHAVE_LINUX_VERSION_H -Wall -MMD -MT build/SDL.lo -c src/SDL.c -fPIC -DPIC -o build/.libs/SDL.o
In file included from ./include/SDL_config.h:44:0,
from src/SDL.c:21:
./include/SDL_config_minimal.h:37:22: error: tipos en conflicto para ‘size_t’
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stddef.h:212:23: nota: la declaración previa de ‘size_t’ estaba aquí
In file included from src/SDL.c:21:0:
./include/SDL_config.h:48:2: error: #error Wrong SDL_config.h, check your include path?
In file included from /usr/include/stdlib.h:320:0,
from /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/mm_malloc.h:27,
from /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/xmmintrin.h:39,
from ./include/SDL_cpuinfo.h:59,
from ./include/SDL.h:78,
from src/SDL.c:25:
/usr/include/x86_64-linux-gnu/sys/types.h:198:1: error: tipos en conflicto para ‘int64_t’
./include/SDL_config_minimal.h:44:26: nota: la declaración previa de ‘int64_t’ estaba aquí
src/SDL.c:46:15: aviso: se define ‘ticks_started’ pero no se usa [-Wunused-variable]
With a clean checkout of the code this works, so the problem is local. Closing. Apologies! |