Forum archive
Compiling JFBuild Under Windows (MinGW / Msys)
- I'm trying to compile the latest version of JFBuild (20051009) in Windows using MinGW and Msys. I keep getting the following error(s):
/bin/sh.exe: -c: line 1: syntax error near unexpected token `(A'
/bin/sh.exe: -c: line 1: `echo "const char _engine_cflags[] = \"-march=pentium -fomit-frame-pointer -O2 -W -Wall -Wimplicit -Wno-char-subscripts -Wno-unused -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -DKSFORBUILD -Iinclude -DRENDERTYPEWIN=1 -DSUPERBUILD -DPOLYMOST -DUSE_OPENGL -DDYNAMIC_OPENGL -DUNDERSCORES -I"D:/Microsoft DirectX 9.0 SDK (April 2005)/"/include -ID:/fmodapi375win/api//inc\";" > src/tmp/engineinfo.c'
make: *** [obj.gnu/engineinfo.o] Error 2Edited at - The problem is caused by the fact that you have the DX9 SDK in a directory called "Microsoft DirectX 9.0 SDK (April 2005)". Rename it to something like DX9SDK and it should be fine.
- Thanks, that fixed it. But now I get another error:
In file included from src/winlayer.c:19:
d:/directx9_sdk/include/dinput.h:1298: error: redefinition of typedef 'DIDEVICEINSTANCE'
d:/directx9_sdk/include/dinput.h:1288: error: previous declaration of 'DIDEVICEINSTANCE' was here
d:/directx9_sdk/include/dinput.h:1301: error: redefinition of typedef 'LPCDIDEVICEINSTANCE'
d:/directx9_sdk/include/dinput.h:1299: error: previous declaration of 'LPCDIDEVICEINSTANCE' was here
make: *** [obj.gnu/winlayer.o] Error 1 - I don't know what the answer to that issue is. I personally build against good ol' DX6.
- Dang, I just tried the version of DirectX 6 cited in the readme that comes with the build source, and I got the same error.
In file included from src/winlayer.c:19:
d:/directx6_sdk/include/dinput.h:1298: error: redefinition of typedef 'DIDEVICEINSTANCE'
d:/directx6_sdk/include/dinput.h:1288: error: previous declaration of 'DIDEVICEINSTANCE' was here
d:/directx6_sdk/include/dinput.h:1301: error: redefinition of typedef 'LPCDIDEVICEINSTANCE'
d:/directx6_sdk/include/dinput.h:1299: error: previous declaration of 'LPCDIDEVICEINSTANCE' was here
make: *** [obj.gnu/winlayer.o] Error 1