Andre de Leiradella wrote in
news:000701c44d86$b0791c20$dd70e40d at bra.xerox.com:
You must define which image formats you want to use with SDL_Image at
compile time. For example, to compile SDL_Image with GIF, PNG and JPEG
support you must pass -DLOAD_GIF -DLOAD_JPG -DLOAD_PNG to the
compiler.
I did include those switches when compiling but still doesn’t allow me to
properly export the needed functions. An interesting observation though
is that the SDL source seems to be configured in a similar way (makes
sense since the same author worked on SDL_image too) but I have no
problems compiling that under bcc. The necessary functions for SDL was
exported properly in the dll that was produced. So far I’m having no luck
figuring out the difference between how SDL’s source is configured vs
SDL_image’s source. Unlike SDL, SDL_image doesn’t come with a makefile
for bcc so I did kind of have to make one myself. Maybe there’s a problem
with the way I configured it? Here’s how it looks like:#========================================================================
Borland Makefile – created using AutoBake 1.06
Project: SDL_image
TimeStamp: Tue Jun 01 19:45:46 2004
#========================================================================
#SDL_image Macro Definitions
Build Types:
DebugBuild – Debug Compile
ReleaseBuild – Release Compile
Project Types:
Con – Console, Win – Windows
DLL – Dynamic Link Lib, SLIB – Static Lib
Compiling Options:
RT – dynamic runtime, MT – multi-threaded
WIDE – Unicode/Wide
API & Framework presets:
SDL – SDL presets, wxWindows – wxWindows presets
DLL = 1
MT = 1
ReleaseBuild = 1
#Project Properties
Project = SDL_image
ProjectPath = E:\Borland\BCC55\SDL-1.2.6\SDL_image
BuildOutput = SDL_image
ProjCFlags = -x -w- -I".\include\libjpeg";“.\include\libpng”;“.\include
\zlib” -O2 -DNDEBUG;WIN32;
_WINDOWS;LOAD_BMP;LOAD_GIF;LOAD_LBM;LOAD_PCX;LOAD_PNM;LOAD_XPM;LOAD_JPG;L
OAD_PNG;LOAD_TGA;PNG_USE_DLL;ZLIB_DLL;WIN32;BUILD_SDL;
FREEBCC;ENABLE_WINDIB;ENABLE_DIRECTX;HAVE_ALLOCA=
1;HAVE_OPENGL;STRICT;_NO_VCL
ProjLFlags = -t -L"E:\Borland\BCC55\SDL-1.2.6\SDL_image\lib"
ProjRFlags =
ProjLib = libpng.lib zlib.lib libjpeg.lib SDL.lib
OBJ =
IMG.obj
IMG_pnm.obj
IMG_tga.obj IMG_tif.obj
IMG_xcf.obj
IMG_xpm.obj
IMG_xxx.obj
IMG_bmp.obj IMG_gif.obj IMG_jpg.obj
IMG_pcx.obj IMG_png.obj
IMG_lbm.obj
RES =
DEF = E:\Borland\BCC55\SDL-1.2.6\SDL_image\SDL_image.def
#Borland Makefile Directives
.autodepend
.nosilent
.path.obj = E:\Borland\BCC55\SDL-1.2.6\SDL_image\Bin
.path.cpp = E:\Borland\BCC55\SDL-1.2.6\SDL_image
.path.exe = $(.path.obj)
.path.dll = $(.path.obj)
.path.lib = $(.path.obj)
.path.asm = $(.path.obj)
.path.res = $(.path.obj)
!include $(MAKEDIR)..\bcc32proj.mak
It doesn’t. I didn’t test if it returns just the first frame or if it
just fails, though. If you just want to load and display little
animations in your application maybe you find my SDL_Flic library
useful: Yahoo | Mail, Weather, Search, Politics, News, Finance, Sports & Videos
Thanks. I’ll be sure to take a look at that. 