SDL_mixer & mingw32

Hi.

I need help in cross-compilation a project using SDL, SDL_image & SDL_mixer.

I used to make it with ming32, when there was only SDL and SDL_image included.
But I cannot cope with it since SDL_mixer has been added,
however it seems to be very similar in use with SDL_image.

Now I’m always getting the error messages, that SDL_mixer header isn’t visible
to the compilator.

I have SDL_mixer.dll, libSDL_mixer.a and libSDL_mixer.la.
The access rights are fine.
I set the libSDL_mixer.la.
The paths are fine.
‘sdl-config --cflags’ points the right directory same as ‘sdl-config --libs’.

… and the compilation fails each time.

Maybe someone has any experience with cross-compilation in such a configuration:
Linux + ming32 + SDL_mixer

Greetings

nell–
Escape of the Unicorn
[free, 2D, flying shooter game]
http://eounicorn.sourceforge.net

Hi.

I need help in cross-compilation a project using SDL, SDL_image & SDL_mixer.

Now I’m always getting the error messages, that SDL_mixer header isn’t visible
to the compilator.

‘sdl-config --cflags’ points the right directory same as ‘sdl-config --libs’.
… and the compilation fails each time.

What about the SDL_mixer.h file? Is it present in your include
path? SDL_mixer.h should be in the same directory as SDL.h for
compilation using sdl-config to work.

Also, (Highly Unlikely, but I’ll ask anyway) it is possible that
you downloaded only the runtime libraries for SDL-mixer. In that
case you can get the SDL_Mixer-devel version and install it.On Thu, 13 Feb 2003, Justyna [iso-8859-2] Bia?a wrote:


hth,
Pallav.


Mohandas K. Gandhi often changed his mind publicly. An aide once asked him
how he could so freely contradict this week what he had said just last week.
The great man replied that it was because this week he knew better.


| |
|Pallav Nawani |
|Sasken Communication Technologies Ltd. |
|Domlur, Bangalore. |
|_______________________________________________________________|

Hello.

What about the SDL_mixer.h file? Is it present in your include
path? SDL_mixer.h should be in the same directory as SDL.h for
compilation using sdl-config to work.

Yes, it is exacly there, where SDL.h for mingw32 is present.

Also, (Highly Unlikely, but I’ll ask anyway) it is possible that
you downloaded only the runtime libraries for SDL-mixer. In that
case you can get the SDL_Mixer-devel version and install it.

I made my own SDL_mixer.tgz package from sources. I installed it into
my Slackware distro and than I copied libSDL_mixer.a and libSDL_mixer.la
into cross-tools directory tree.
Maybe that’s the mistake?
But where else can I get those files?
I didn’t find any mingw32 oriented SDL_mixer package.

Greets

nellOn Fri, Feb 14, 2003 at 09:57:29AM +0530, Pallav Nawani wrote:


Escape of the Unicorn
[free, 2D, flying shooter game]
http://eounicorn.sourceforge.net

Hi,

Maybe Posting the compilation error would help?
Or (Just Guessing Now ) Maybe the linker is unable to find the
library (sdl-config --libs would take care of that but… what is
your compile line ?)?On Fri, 14 Feb 2003, Justyna [iso-8859-2] Bia?a wrote:

Hello.

On Fri, Feb 14, 2003 at 09:57:29AM +0530, Pallav Nawani wrote:

What about the SDL_mixer.h file? Is it present in your include
path? SDL_mixer.h should be in the same directory as SDL.h for
compilation using sdl-config to work.

Yes, it is exacly there, where SDL.h for mingw32 is present.

Also, (Highly Unlikely, but I’ll ask anyway) it is possible that
you downloaded only the runtime libraries for SDL-mixer. In that
case you can get the SDL_Mixer-devel version and install it.

I made my own SDL_mixer.tgz package from sources. I installed it into
my Slackware distro and than I copied libSDL_mixer.a and libSDL_mixer.la
into cross-tools directory tree.
Maybe that’s the mistake?
But where else can I get those files?
I didn’t find any mingw32 oriented SDL_mixer package.

Greets

nell


Escape of the Unicorn
[free, 2D, flying shooter game]
http://eounicorn.sourceforge.net


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

regards,
Pallav.


The City of Palo Alto, in its official description of parking lot standards,
specifies the grade of wheelchair access ramps in terms of centimeters of
rise per foot of run. A compromise, I imagine…


| |
|Pallav Nawani |
|Sasken Communication Technologies Ltd. |
|Domlur, Bangalore. |
|_______________________________________________________________|

Maybe Posting the compilation error would help?

Sure, I should start from that.

what is your compile line ?

g++ -v -o …/eounicorn.exe -Wall -pedantic -g sdl-config --cflags -I/usr/local
/cross-tools/i386-mingw32mscv/include/SDL -I…/include/ eounicorn.o animationin
fo.o animation.o tileinfo.o tile.o objectinfo.o object.o obj_behavior.o obj_face
.o obj_gun.o gamemanager.o vector2d.o level.o mask.o objcell.o alignment.o rotat
e.o display.o datafile.o input.o menu.o path.o sound.o SFont.o -lmingw32 -lSDLma
in -lSDL_image -lSDL_mixer -mwindows -lstdc++ -lSDL sdl-config --libs
Reading specs from /usr/local/cross-tools/lib/gcc-lib/i386-mingw32msvc/2.95.2/sp
ecs
gcc version 2.95.2 19991024 (release)
/usr/local/cross-tools/lib/gcc-lib/i386-mingw32msvc/2.95.2/…/…/…/…/i386-min
gw32msvc/bin/ld --subsystem windows -o …/eounicorn.exe /usr/local/cross-tools/l
ib/gcc-lib/i386-mingw32msvc/2.95.2/…/…/…/…/i386-mingw32msvc/lib/crt2.o -L/us
r/local/cross-tools/i386-mingw32msvc/lib -L/usr/local/cross-tools/lib/gcc-lib/i3
86-mingw32msvc/2.95.2 -L/usr/local/cross-tools/lib/gcc-lib/i386-mingw32msvc/2.95
.2/…/…/…/…/i386-mingw32msvc/lib eounicorn.o animationinfo.o animation.o tile
info.o tile.o objectinfo.o object.o obj_behavior.o obj_face.o obj_gun.o gamemana
ger.o vector2d.o level.o mask.o objcell.o alignment.o rotate.o display.o datafil
e.o input.o menu.o path.o sound.o SFont.o -lmingw32 -lSDLmain -lSDL_image -lSDL_
mixer -lstdc++ -lSDL -lmingw32 -lSDLmain -lSDL -lmingw32 -lgcc -lmoldname -lmsvc
rt -lgdi32 -lcomdlg32 -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -
lmoldname -lmsvcrt
sound.o: In function _5Sound': /home/nell/eounicorn/eounicorn-0.1.15.12-win32/src/sound.cpp:27: undefined refer ence toMix_OpenAudio’
/home/nell/eounicorn/eounicorn-0.1.15.12-win32/src/sound.cpp:34: undefined refer
ence to `Mix_QuerySpec’

And many similar lines of errors.

Greets

nell

ps. in few hour there should be CVS tree updated and eventualy new devel
vestrion with adjusted Makefiles. Currently only devel packages are valid (CVS
and stable branche of the game don’t even use SDL_mixer).On Fri, Feb 14, 2003 at 05:57:23PM +0530, Pallav Nawani wrote:


Escape of the Unicorn
[free, 2D, flying shooter game]
http://eounicorn.sourceforge.net