On Fri, Apr 27, 2012 at 05:40:41AM +1200, Ralph Versteegen wrote:
> On 27 April 2012 04:13, James Paige <[email protected]> wrote:
> > On Thu, Apr 26, 2012 at 08:35:53AM -0700, Jay Tennant wrote:
> >> > From: Ralph Versteegen <[email protected]>
> >> > Sent: Thursday, April 26, 2012 9:46 AM
> >> >
> >> > On 27 April 2012 02:41, Ralph Versteegen <[email protected]> wrote:
> >> > > On 27 April 2012 02:31, James Paige <[email protected]> wrote:
> >> > >> On Fri, Apr 27, 2012 at 02:19:35AM +1200, Ralph Versteegen wrote:
> >> > >>> On 27 April 2012 02:10, James Paige <[email protected]> wrote:
> >> > >>> > On Thu, Apr 26, 2012 at 4:05 AM, Ralph Versteegen 
> >> > >>> > <[email protected]> wrote:
> >> > >>> >> On 26 April 2012 23:03,  <[email protected]> wrote:
> >> > >>> >>> teeemcee
> >> > >>> >>> 2012-04-26 04:03:46 -0700 (Thu, 26 Apr 2012)
> >> > >>> >>> 72
> >> > >>> >>> Add Jay's suggested workaround for bug 956 "Mangled graphics on 
> >> > >>> >>> startup"
> >> > >>> >>> ---
> >> > >>> >>> U   wip/gfx_directx/gfx_directx.cpp
> >> > >>> >>
> >> > >>> >> Hmm, gfx_directx.dll isn't built nightly, is it? I'll rebuild it 
> >> > >>> >> next
> >> > >>> >> time I boot into Windows (really should fix virtualbox...)
> >> > >>> >
> >> > >>> > I just tried to build it on the nightly build box, and it failed 
> >> > >>> > saying:
> >> > >>> >
> >> > >>> > C:\Users\James\src\ohr\wip>scons gfx_directx.dll
> >> > >>> > scons: Reading SConscript files ...
> >> > >>> > scons: done reading SConscript files.
> >> > >>> > scons: Building targets ...
> >> > >>> > cl /Fogfx_directx\d3d.obj /c gfx_directx\d3d.cpp /TP /nologo /EHsc 
> >> > >>> > /W3 /MT /O2 /
> >> > >>> > GL /DUNICODE /D_UNICODE
> >> > >>> > 'cl' is not recognized as an internal or external command,
> >> > >>> > operable program or batch file.
> >> > >>> > scons: *** [gfx_directx\d3d.obj] Error 1
> >> > >>> > scons: building terminated because of errors.
> >> > >>> >
> >> > >>> > What package do I need to install to get cl.exe?
> >> > >>> >
> >> > >>> > ---
> >> > >>> > James
> >> > >>>
> >> > >>> Visual Studio.
> >> > >>>
> >> > >>> rpg.hamsterrepublic.com/ohrrpgce/Compiling#gfx_directx
> >> > >>
> >> > >> I have Visual Studio 2008 installed, and I have downloaded the missing
> >> > >> stdint.h but my DXSDK_DIR environment variable is not set, and when I
> >> > >> google for the correct value I find that it is supposed to be set by 
> >> > >> the
> >> > >> installer. Searching around in my Program Files is fruitless too. The
> >> > >> best guess I could come up with is "C:\Program Files\Microsoft Visual
> >> > >> Studio 9.0\SDK" ... but then I realized that is completely empty 
> >> > >> except
> >> > >> for two empty subdirectories: v3.5\bin
> >> > >>
> >> > >> ---
> >> > >> James
> >> > >
> >> > > Are you sure that you have the DirectX SDK installed? On my system, I 
> >> > > have
> >> > >
> >> > > Program Files/Microsoft DirectX 9.0 SDK (December 2004)/
> >> > > Program Files/Microsoft DirectX SDK (August 2009)/
> >> > >
> >> > > I can't remember whether DXSDK_DIR points at those directories or not
> >> > > (I'm looking at my XP partition mounted under Linux)
> >> >
> >> > By the way, I used the 2004 SDK, though the 2009 SDK produced a dll of
> >> > the same length. Looking back at the archives (revision 5007
> >> > discussion), I think Jay suggested that the 2004 SDK should be used,
> >> > since it would have fewer dependencies?
> >>
> >> That's true, currently we're linking dynamically to the two functions:
> >> Direct3DCreate9()  -- in d3d9.lib and d3d9.dll
> >> D3DXSaveSurfaceToFile()  -- in d3dx9.lib and d3dx9_24.dll (I think?)
> >>
> >> The December 2004 SDK would remove the dependency on the d3dx9_24.dll since
> >> we could statically link to its d3dx9.lib. If the interest is to
> >> support windows 95, then we should probably still dynamically load
> >> Direct3DCreate9 from the d3d9.dll, continuing to not bind its linkage
> >> at compile time.
> >>
> >> In other words, so everyone running directx9 could get screenshots in
> >> different formats, install the December 2004 SDK, and I'll submit a
> >> small update to d3d.h and d3d.cpp.
> >>
> >
> > I installed both the 2004 and 2009 SDKs. My DXSDK_DIR seems to be
> > correctly set. I was still getting the same error message.
> >
> > I searched my whole hard drive for cl.exe and found it in "C:\Program
> > Files (x86)\Microsoft Visual Studio 9.0\VC\bin\"
> >
> > I explicitly added that folder to my path, and I still got the same
> > error message.
> >
> > I manually copied cl.exe into the ohrrpgce folder.
> >
> > Running scons gfx_directx.dll causes a pop-up error with the Red X
> > Icon that says: "The Program can't start because mspdb80.dll is missing
> > from your computer. Try reinstalling the program to fix this problem"
> >
> > I searched the hard drive and found mspdb80.dll in "C:\Program Files
> > (x86)\Microsoft Visual Studio 9.0\Common7\IDE\"
> >
> > but when I tried to copy it to the ohrrpgce directory, I got an
> > access denied error message :(
> >
> > ---
> > James
> 
> The access denied error is really odd, but anyway...
> 
> I guess cl.exe needs to be in the PATH. I probably forgot to add that
> step to the wiki -- it isn't by default, and I guess scons doesn't
> magically find it.

If I edit my PATH and add both of:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\

Then I can type cl at the command line and see the usage, or cl -help 
and see the help screen.

However, scons still says it can't find cl.exe

---
James

_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to