PIGE Home .plan FAQ .log Compiling Linux/UNIX Mac OS 8 & 9 Mac OS X Windows Downloads Source Code Executable Demos Thesis Screenshots Crate Room Tutorials Collision Detection Creating Icons OpenAL A* Resources OpenGL OpenAL Game Dev Books |
Compiling : Windows with
CodeWarrior
Adding OpenGL and Glut filesNote: These instructions were copied somewhere off the internet, however, I do not remember where, so I do not take any responsibility for the correctness of this solution. This has been made available since the previous link to compiling with Windows has disappeared.Using OpenGL in Metroworks Codewarrior can be somewhat difficult at first, but once you have it setup right, it will work just fine. What you must do is be sure that all the required files are where they are supposed to be. Make sure you have downloaded all the required files, DLLs, and header files first. Several of the files are already built in and you will not have to change them, but to get Codewarrior to work you have to have the files in the following places:
Once the files are in these locations, it is now a matter of integrating them into the compiler. Codewarrior will complain unless you put these files into the following locations: The DLLs are fine were they are, you need not bother with them The .lib files must be included in the project. To do this create a new project as a C++ console app. Then goto Add Files in the Project menu. This should give you a window and allow you to add files into your project. Now you must simply add the OpenGL32.dll, the Glu32.dll, and the glut32.dll. Once they appear in the project window, move them into the MSL ANSI Libraries folder. The project should now be ready to compile an OpenGL program. Note: for any new project that you create you will have to add these libraries into it. The header files need simply be included in your .cpp file as a normal header file. Only include glut.h, it will do the rest. Compile the code and it should work. Creating a new OpenGL/OpenAL application with CodeWarriorNote: These instructions refer to CodeWarrior Pro 5 on Windows XP. Different versions of CodeWarrior, operating system, or downloaded support files may result in some differences.
Other ReferencesHow to configure Visual C++ to work with GLUTOther instructions for CodeWarrior 5 and 6 can be found here. Simple and full instructions on compiling with OpenGL and CodeWarrior can be found at www.cs.csustan.edu/~rsc/NSF/. Download the simpleinstructions.pdf or fullinstructions.pdf. If you feel the odd need to use Windows' APIs in your source code, you can check out this tutorial at Nehe. However, since PIGE is trying to stay away from such code, this is a discouraged practice. Page created: 17. March 2003 Last modified: 9. December 2003 |