Skip to content

Commit

Permalink
Merge pull request #140 from fel1x-developer/smdlexp
Browse files Browse the repository at this point in the history
Update readme.txt for latest methods installing MFC, smdlexp and SDL2
  • Loading branch information
SamVanheer committed Mar 17, 2022
2 parents e9186af + 255cb13 commit 301979d
Showing 1 changed file with 21 additions and 59 deletions.
80 changes: 21 additions & 59 deletions projects/vs2019/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ projects.sln
utils.sln
Solution file containing projects for the utilities.
Special user interaction is required in order to compile a share of the
projects, see "Installing GLUT and GLAUX" bellow.
projects, see "Installing SDL2" bellow.
Special user interaction is also required for the smdlexp project, see
"smdlexp project" bellow.
The serverctrl project is problematic, see "serverctrl project" bellow.
Expand All @@ -17,48 +17,13 @@ utils.sln
[other required files]



Installing GLUT and GLAUX
=========================

Some projects in utils.sln use the GLUT (mdlviwer) and the GLAUX (qbsp2, qcsg)
libraries, which are not shipped with Visual C++ 2019 / Windows SDK
v7.0A.

Thus you need to install the GLUT and GLAUX libraries manually:


Installing GLUT library
-----------------------

Required by: mdlviewer

There are several ways to do this, an example can be found here:
http://stackoverflow.com/a/10467488

For alternate implementations check the web (i.e. freeglut).


Installing GLAUX library:
Installing SDL2 library:
-------------------------

Required by: qbsp2, qcsg

Obtaining the library:
http://stackoverflow.com/a/6211119

Copy glaux.h into 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\GL\'
(You might need to create the GL directory.).
Copy glaux.lib into 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\'.


TODO
----

In the future the projects using GLUT and GLAUX could be ported to use the SDL2
library shipped with the SDK, this should be fairly easy, however this might
be beyond the scope of the main repository.
Required by: mdlviewer, qbsp2, qcsg

SDL2(specifically SDL 2.0.0) is required for these projects.
SDL2.lib contained in this repository is used to link with it, while the executables need the SDL2.dll file from the game installation in order to run.


Other
Expand Down Expand Up @@ -105,24 +70,7 @@ Installing MFC

Required by: serverctrl

If you are not using an Express edition, you can most likely skip this step.

The MFC is also shipped as part of the Windows Driver Kit for Windows XP.

Download Windows Driver Kit Version 7.1.0:
http://www.microsoft.com/en-us/download/details.aspx?id=11800

Burn it to a CD and start KitSetup.exe.
It's enough to select "Build Environment" in the options you want to install.

Now we need to point Visual C++ 2019 to the folders for the MFC/ATL
includes and libraries:

To do this open utils.sln and right click the serverctrl project and select
Properties. Select Configuration: All Configurations, then select
Configuration -> VC++ Directories in the tree. Adjust the Include and
Library Directories settings to match your WDK installation (click on the lines
and then click on the drop-down selector that appears and select edit).
Using Visual Studio Installer, install C++ MFC from "Individual Components".



Expand All @@ -137,7 +85,21 @@ The MAX 4.2 SDK needs adjustment:
Comment out the following line in max.h
#include <ctl3d.h>
So that it reads
//#include <ctl3d.h
//#include <ctl3d.h>
.

For C:\3dsmax42\maxsdk\Include\polyobj.h, line 109 should be changed from:
for (i=0; i<mm.numv; i++) if (!mm.v[i].GetFlag (MN_DEAD)) numVerts++;
to:
for (int i=0; i<mm.numv; i++) if (!mm.v[i].GetFlag (MN_DEAD)) numVerts++;
.

For C:\3dsmax42\maxsdk\Include\imtl.h, line 1390 should be added:
int i;
and line 1392 (originally line 1391) should be change from:
for( int i = 0; i < nUserIllumOut; ++i ){
to:
for( i = 0; i < nUserIllumOut; ++i ){
.

You also need the phyexp.h from Character Studio, which you should place in
Expand Down

0 comments on commit 301979d

Please sign in to comment.