Getting the framework code working in Visual Studio Brendan Meeder, September 28, 2008 Instructions: Step 1: Get the library files that are not GLUT related: Go to the following AFS location /afs/cs.cmu.edu/user/bmeeder/Public/Graphics and copy the contents of the /lib and /inc directories onto your hard disk. I would suggest that you put them somewhere on your hard disk like C:\dev\inc and C:\dev\lib. Step 2: Install GLUT for windows: Go to the following URL: http://www.xmission.com/~nate/glut.html Get the GLUT binaries zip file (http://www.xmission.com/~nate/glut/glut-3.7.6-bin.zip). Extract the contents and follow the installation instructions. You will probably get confused at the part where it talks about copying the files into $(MSDevDir). If you are using MSVS 2005, you want to put the glut.h file in the directory C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include\gl and the glut32.lib library file in the directory C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Lib If you are using MSVS 2008, you want to put glut.h in C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\gl and glut32.lib library file in C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib Step 3: Getting Visual Studio to look in those locations for includes and library files. Start up Visual Studio and go to Tools->Options. In the Options pane, find the "Projects and Solutions" branch. Click on VC++ Directories. In the top right corner of the window there should be a drop down saying "Executable Files" . Select "Include Files". Click the folder icon and type in the location where you put the inc directory from the AFS space (if you followed my suggestion, this should be C:\dev\inc). Select the line you just added and click the down arrow until it is at the bottom of the list. Select "Library Files" next and add C:\dev\lib to the bottom of the list. Step 4: Get the appropriate solution file You want to get the appropriate zip file for the solution from /afs/cs.cmu.edu/user/bmeeder/Public/Graphics. You should just be able to download it and unzip the directory and run the solution file as is. The project already has added the libpng and zlib libraries at the link stage so you should not get any linker errors. The linker says that the MSVCRT library conflicts with other libraries- you should be able to ignore this without any problem. === NEW UPDATE 9/30/08 === Try grabbing the files from /afs/andrew.cmu.edu/usr11/bmeeder/Public/Graphics. I copied them over so that people on andrew can do this without any CS kerberos crap. Yes, you need to change the project to include the two lib files. Under the Linker pane project pane, go to Input. In "Additional Dependancies", you should put down the libraries that you want to add.