Page 1 of 1

Distributing SDL Projects With Visual Studio

Posted: Sat Dec 19, 2009 10:50 pm
by Master Jake
I haven't distributed anything in a very long time, but here is one of the problems I remember experiencing every time.

Keep in mind this only happens on Visual Studio. All my Dev-C++ projects worked fine, but I want to use Visual Studio because of the intellisense, and overall environment.

The problem is, when I compile everything, zip it up, and send it to someone then if they don't have Visual Studio on their computer it won't run. I can't remember the exact error it gives (I can find out again if needed).

Anyway, on some of my old Win32 projects I had the same problem and someone told me to go to Propect Properties and make it use Multi-byte character set instead of unicode. I did so and that worked.

I guess my question is this: What are all of the project settings I need to distribute C++ projects (specifically SDL).

I am using Microsoft Visual C++ 2005 Professional Edition. Also, should I compile it as Debug or Release?

Re: Distributing SDL Projects With Visual Studio

Posted: Sun Dec 20, 2009 4:21 am
by Milch
Do you sent the .exe with the SDL.dll?
And keep in mind that Visual Studio uses a framework.

Re: Distributing SDL Projects With Visual Studio

Posted: Sun Dec 20, 2009 11:08 am
by Falco Girgis
There is a folder somewhere within your Visual Studio install called "Redist." I even think it has a readme. These are going to be the dependencies that your VS projects require to run. Make sure that you have built your project in Release and not Debug. You aren't supposed to be able to share a debug build with somebody that doesn't have Visual Studio.

Other than that, if you dynamically linked to SDL, you will have to provide SDL.dll. If it was a static link, don't worry about it.

If that still doesn't work, go to project settings and make sure that your manifest is embedded (don't really know how that works in VS2005).

Re: Distributing SDL Projects With Visual Studio

Posted: Sun Dec 20, 2009 2:42 pm
by Master Jake
Thanks, I will definitely try these suggestions as soon as possible. I think one of my main problems would be me compiling in Debug. I also always include all of the SDL DLL's with the executable.

I'll reply back here with solved if everything works now.

Re: Distributing SDL Projects With Visual Studio

Posted: Wed Dec 30, 2009 11:58 pm
by eatcomics
Yeah I would love an explanation to this, as I too have had trouble distributing my VC++ stuff... Trust me, staying up all night getting a project to work for your english class, then the program not running on your teachers computer is frustrating... Luckily he's awesome and said he dabbles in c++ and has a compiler and might be able to run it :)

Re: Distributing SDL Projects With Visual Studio

Posted: Thu Dec 31, 2009 12:09 am
by eatcomics
I just compiled in release mode, I'll test when I get back to school next tuesday XD