chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] install sdl.egg with mingw32?


From: Jong-Hyouk Yun
Subject: [Chicken-users] install sdl.egg with mingw32?
Date: Sun, 24 Jun 2007 18:58:10 +0900

Hi.

Today I working on make chicken-scheme development environment in Windows with Mingw32.

1. install Code::Blocks (for devpaks and quick and dirty mingw setups)
2. install SDL devpaks (sdl, sdl_image, sdl_ttf, sdl_net, sdl_gfx ...etc etc....)
3. manually unpack sdl.egg
4. edit sdl.egg-dir/Makefile for my environment settings...
<code>
...
sdlCFLAGS=-C -Ic:/codeblocks/include/SDL
sdlLDADD=-L -lmingw32 -L -lSDLmain -L -lSDL \
    -L -lSDL_ttf \
    -L -lSDL_image \
    -L -lSDL_gfx \
    -L -lSDL_net
...
</code>
5. compile extension
 $ chicken-setup sdl.setup

<code>
C:\tmp\sdl.egg-dir>chicken-setup sdl.setup
  make extension
csc -C -Ic:/codeblocks/include/SDL -L -lmingw32 -L -lSDLmain -L -lSDL -L -lSDL_t
tf -L -lSDL_image -L -lSDL_gfx -L -lSDL_net -s -o sdl.so sdl.scm
sdl.c:1: warning: -fPIC ignored for target (all code is position independent)
sdl.c:20:24: netinet/in.h: No such file or directory
sdl.c: In function `stub2064':
sdl.c:242: warning: implicit declaration of function `htons'
sdl.c: In function `stub2057':
sdl.c:254: warning: implicit declaration of function `ntohs'
sdl.c: In function `stub497':
sdl.c:2216: warning: implicit declaration of function `gettimeofday'
*** Shell command terminated with exit status 1: gcc sdl.c -o sdl.o -c -DC_ENABL
E_PTABLES -DHAVE_CHICKEN_CONFIG_H -DC_NO_PIC_NO_DLL -Os -fno-strict-aliasing -Wa
ll -Wno-unused -Wno-uninitialized -fPIC -DPIC -DC_SHARED -I "C:\\Program Files\\
Chicken\\include" -Ic:/codeblocks/include/SDL
make: *** [sdl.so] Error 1
Error: shell invocation failed with non-zero return status
"make extension"
</code>

even manually running compiling output no result .o file...
<code>
...> csc -C -Ic:/codeblocks/include/SDL -L -lmingw32 -L -lSDLmain -L -lSDL -L -lSDL_ttf -L -lSDL_image -L -lSDL_gfx -L -lSDL_net -s -o sdl.so sdl.scm
sdl.c:1: warning: -fPIC ignored for target (all code is position independent)
sdl.c:20:24: netinet/in.h: No such file or directory
sdl.c: In function `stub2064':
sdl.c:242: warning: implicit declaration of function `htons'
sdl.c: In function `stub2057':
sdl.c:254: warning: implicit declaration of function `ntohs'
sdl.c: In function `stub497':
sdl.c:2216: warning: implicit declaration of function `gettimeofday'

...> # no sdl.o file-_-;;;
</code>

what's wrong, or more simple method there? anybody has succeed sdl.egg + mingw32?

Thanks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]