Error executing SDL program

I’ve compiled and linked successfully SDL aplication and it works … but only
on my machine. On the other one I got a message “Error executing program”

My SDL application was compiled with Visual Studio Express and it uses only
gl (openGL), glu and SDL. The other machine where I tried to run it is able to
handle OpenGL and glu because I tested it with a glut program which needed just
glut32.dll to run properly (and of course OpenGL32.dll and glu32.dll but they
are provided with the system itself).

Per analogy I expected that with SDL application it will be the same: SDL.dll
and it runs … but no it doesn’t - “Error executing program” with and without
SDL.dll

Can anybody tell me what it needs or how I should create exe to have it running
on the other machines ?

The Express Editions use MSVC 8 run time dll’s which cannot be simply copied
to the target machine. You must install them(the dll’s) - yes it’s dumb. I
think there might be a way to copy the program over w/o installing them, but
it’s weird and I haven’t tested it. Bottom line : It’s a known issue that
you can’t just copy an executable to another computer and have it run…
(Well, you can if you aren’t using the DLL style of code generation, but
since SDL does… you’d have to do a static compile of SDL into your app or
something weird like that. Probably would be less work just to install the
MSVCR8 run times onto the target machine.)
I don’t know if that actually helped or not. Hope it did.
-DaveFrom: wjozefow@th.if.uj.edu.pl (MrX)
To:
Sent: Monday, September 04, 2006 11:11 AM
Subject: [SDL] Error executing SDL program

I’ve compiled and linked successfully SDL aplication and it works … but
only
on my machine. On the other one I got a message “Error executing program”

My SDL application was compiled with Visual Studio Express and it uses
only
gl (openGL), glu and SDL. The other machine where I tried to run it is
able to
handle OpenGL and glu because I tested it with a glut program which needed
just
glut32.dll to run properly (and of course OpenGL32.dll and glu32.dll but
they
are provided with the system itself).

Per analogy I expected that with SDL application it will be the same:
SDL.dll
and it runs … but no it doesn’t - “Error executing program” with and
without
SDL.dll

Can anybody tell me what it needs or how I should create exe to have it
running
on the other machines ?


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

Great thx for info. Where can I read more about stuff you are writing about ?
I want to prepare demo program to put it on a public site.
Its obvious that it must be possible to download it and install on a virgin
machine (naked system with graphics card driver installed) and then run without
any surprises. The question is how to achieve it best … I guess I will
try static linking because I have no idea how to equip my app with appropriate
minimal installer of necessary files …

As I said glut runs without problems but the navigation interface created with
SDL is much better …