Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: penguin on September 07, 2003, 12:46:06 pm
-
Since I haven't touched the source in six months, I guess I'm a born-again n00b, so bear w/ me...
I am having trouble building the latest from CVS. I'm getting a fair number of undefined symbols at compile-time that all look like DirectX symbols. grepping through my DX include files for the undef symbols returns no matches.
Is DirectX 9 required now? I have DX8 installed, and it compiled OK back in March. I can install DX9 if it's required, but I'd rather not unless I have to.
thx
-
We are still DX8.1
I'm just about to try compiling, I'll tell you how it goes.
-
Works OK for me.
Best to have your DX8.1 SDK at 'C:\DXSDK'
Also dont forget to try a 'clean'
-
Thanks, RT, but no joy...
I'm pretty sure the include path is OK because all other DX symbols are being resolved; I'd get a heap-o-errors rather than just 3. And I did grep for the unreolved symbols, and they're not there.
Maybe I'll try and get a newer DX SDK. I might be running 8.0 (not 8.1), I'm not sure, and I don't know how to find out. And the oh-so-helpful online MSDN doesn't tell you when a symbol was introduced, just that it's present in version 9.
FWIW, here are the undefs I'm getting:
graphics/grd3d.cpp:2191: `D3DFMT_A2B10G10R10' undeclared (first use this function)
make: *** [grd3d.o] Error 1
graphics/grd3drender.cpp:2921: `D3DXIFF_BMP' undeclared (first use this function)
graphics/grd3drender.cpp:2921: `D3DXSaveSurfaceToFile' undeclared (first use this function)
make: *** [grd3drender.o] Error 1
make: Target `all' not remade because of errors.
-
Check DXReadme.txt; the first line should say
Microsoft(R) DirectX (R) 8.1 SDK - Final Release
-
hmm, no such file. I think I got an unofficial release or something, just the header and .lib files.
Guess I'll try to find the "official" DX8.1 at MS, else I'll get DX 9.0.
Thanks all for the info.
-
Got the official DX8.1 SDK and I can compile, after making a tweak to two header files -- I use MinGW/gcc (MS uses nonstandard stuff that only works with their compiler...)
Running into linker issues now, I guess it's just a matter of finding the magic combination of lib files to link with...