Wintermute Engine Forum

Wintermute Engine => WME Lite => Topic started by: Airwaffle on March 22, 2012, 04:17:26 AM

Title: Building WME Lite
Post by: Airwaffle on March 22, 2012, 04:17:26 AM
Em, I don't know if this belongs here, but I'm having some problem building the code for wmelite with Visual Studio 2008 Express for Windows. I followed these instructions http://res.dead-code.org/doku.php/wmelite:building.

First off I get the error: "fatal error RC1015: cannot open include file 'afxres.h'." in wme.rc.
I looked around on the internet a bit, and I tried to solve it by changing it to 'windows.h', since that seemed to work for some people (on different projects though).

Now I get "error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." instead. So yeah, I look at the post-build events,

@copy dep\bass\lib\*.dll $(TargetDir) > nul
@copy dep\sdl\lib\*.dll $(TargetDir) > nul
@copy dep\FreeImage\lib\*.dll $(TargetDir) > nul

Guess I'll just copy them manually and disable the post event. Seems to work.

Then I just get an error message "Some of the essential files are missing. Please reinstall".
Which I track comes from the file PlatformSDL.cpp row 114.

#ifdef __WIN32__
      ::MessageBox(NULL, "Some of the essential files are missing. Please reinstall.", NULL, MB_OK|MB_ICONERROR);
#endif

 I just don't really see where to go from here.
Title: Re: Building WME Lite
Post by: Mnemonic on March 22, 2012, 08:48:28 AM
Now you need to point WME to some game data, which is done using command-line arguments, as described here: http://res.dead-code.org/doku.php/wmelite:running
So in Visual Studio you'd use the "Debugging->Command line arguments" setting.