Which dlls to package?

Hey,

hate to bug you again with such basic stuff (but I am still a beginner): I
got my testapp to work with SDL thanks to Brian and others, but now I
tried to execute it on a non-development computer and it does not work. I
get an error message telling me to reinstall the program to get it fixed.
I learned that this is due to missing dlls. I have the testapp.exe and the
SDL.dll in one folder but this doesn’t seem to be enough. Static linking
seems to be no option with SDL. I just copied the win sdk and vs 2005 dlls
and libs to the same folder with no effect so far. So, anyone knows which
dlls to package or what to change?

Thanks again for your help

Sebastian–
Using Opera’s revolutionary e-mail client: http://www.opera.com/mail/

Hi.

You probably need to package the Visual Studio redistributable
runtime. I found the link by googling “visual studio 200X
redistributable runtime”, with “X” replaced by 5 or 8.

That, or build your app (and all its dependencies) with static
linking to the runtime. This is a big task if you are inexperienced,
so I wouldn’t recommend it.

Whatever you do, don’t package random DLLs (such as win sdk and VS
2005) with your program.

– BrianOn Mon, Sep 14, 2009 at 10:09 AM, Sebastian Elsner wrote:

Hey,

hate to bug you again with such basic stuff (but I am still a beginner): I
got my testapp to work with SDL thanks to Brian and others, but now I
tried to execute it on a non-development computer and it does not work. I
get an error message telling me to reinstall the program to get it fixed.
I learned that this is due to missing dlls. I have the testapp.exe and the
SDL.dll in one folder but this doesn’t seem to be enough. Static linking
seems to be no option with SDL. I just copied the win sdk and vs 2005 dlls
and libs to the same folder with no effect so far. So, anyone knows which
dlls to package or what to change?

Thanks again for your help

Sebastian

Thanks for your advice, but installing the redistributable did not do the
trick…

But hey, this must be a common issue. I do not use any special magic here,
just including iostream and sdl.h. Theoretically every project using sdl
should have this issue (unless they are using their own static builds)…

I downloaded the sdl-static libs from googlecode, but I can’t get them to
work either.

SebastianOn Mon, 14 Sep 2009 11:14:57 +0200, Brian <brian.ripoff at gmail.com> wrote:

Hi.

You probably need to package the Visual Studio redistributable
runtime. I found the link by googling “visual studio 200X
redistributable runtime”, with “X” replaced by 5 or 8.

That, or build your app (and all its dependencies) with static
linking to the runtime. This is a big task if you are inexperienced,
so I wouldn’t recommend it.

Whatever you do, don’t package random DLLs (such as win sdk and VS
2005) with your program.

– Brian

On Mon, Sep 14, 2009 at 10:09 AM, Sebastian Elsner <@Sebastian_Elsner> wrote:

Hey,

hate to bug you again with such basic stuff (but I am still a
beginner): I
got my testapp to work with SDL thanks to Brian and others, but now I
tried to execute it on a non-development computer and it does not work.
I
get an error message telling me to reinstall the program to get it
fixed.
I learned that this is due to missing dlls. I have the testapp.exe and
the
SDL.dll in one folder but this doesn’t seem to be enough. Static linking
seems to be no option with SDL. I just copied the win sdk and vs 2005
dlls
and libs to the same folder with no effect so far. So, anyone knows
which
dlls to package or what to change?

Thanks again for your help

Sebastian


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Using Opera’s revolutionary e-mail client: http://www.opera.com/mail/

What DLLs does dependency walker (http://www.dependencywalker.com/)
say are missing?

Which “top level” DLLs are those dependencies attached to?

For example, SDL.dll built with Visual Studio 2008 might depend on the
2008 runtime, so that would need to be installed too - or you could
upgrade your build environment to Visual Studio 2008.

Remember again: don’t include arbitrary DLLs from your system just to
satisfy dependency walker. There is a set of DLLs you are supposed to
redistribute - it is likely illegal for you to package other ones with
your program.On Mon, Sep 14, 2009 at 11:32 AM, Sebastian Elsner wrote:

Thanks for your advice, but installing the redistributable did not do the
trick…

But hey, this must be a common issue. I do not use any special magic here,
just including iostream and sdl.h. Theoretically every project using sdl
should have this issue (unless they are using their own static builds)…

I downloaded the sdl-static libs from googlecode, but I can’t get them to
work either.

Sebastian

Hey,

I got it to work not using the debug settings but rather the release
settings. Don’t ask me why… perhaps you know a reason. Coming from 3
years of python this all seems like a lot voodoo to me. Thanks anyway.On Mon, 14 Sep 2009 12:38:00 +0200, Brian <brian.ripoff at gmail.com> wrote:

What DLLs does dependency walker (http://www.dependencywalker.com/)
say are missing?

Which “top level” DLLs are those dependencies attached to?

For example, SDL.dll built with Visual Studio 2008 might depend on the
2008 runtime, so that would need to be installed too - or you could
upgrade your build environment to Visual Studio 2008.

Remember again: don’t include arbitrary DLLs from your system just to
satisfy dependency walker. There is a set of DLLs you are supposed to
redistribute - it is likely illegal for you to package other ones with
your program.

On Mon, Sep 14, 2009 at 11:32 AM, Sebastian Elsner <@Sebastian_Elsner> wrote:

Thanks for your advice, but installing the redistributable did not do
the
trick…

But hey, this must be a common issue. I do not use any special magic
here,
just including iostream and sdl.h. Theoretically every project using sdl
should have this issue (unless they are using their own static
builds)…

I downloaded the sdl-static libs from googlecode, but I can’t get them
to
work either.

Sebastian


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Using Opera’s revolutionary e-mail client: http://www.opera.com/mail/