Advertisement
axyd

Setting up Glut in DevC++

Mar 3rd, 2019
623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. NOTE: The default installation path is "C:\Program Files (x86)\"
  2. NOTE: For portable Devc++ adjust the instructions to your root install path
  3.  
  4.  
  5. 1: Download and install DevC++ (Dev-Cpp 5.11 TDM-GCC 4.9.2),
  6. https://sourceforge.net/projects/orwelldevcpp/
  7.  
  8. 1.1: Install DevC++
  9.  
  10. 2: Download Glut from
  11. https://users.cs.jmu.edu/bernstdh/web/common/help/glut-3.7.6-bin.zip
  12.  
  13. 2.1: Open archive, open 'glut-3.7.6-bin' folder inside it
  14. 2.1.1: copy 'glut32.lib' to "C:\Program Files (x86)\Dev-Cpp\MinGW64\lib"
  15. 2.1.2: copy 'glut32.dll' to "C:\Program Files (x86)\Dev-Cpp\MinGW64\bin"
  16.  
  17. 3: Download glut devpak from
  18. http://www.nigels.com/glt/devpak/glut-7.6-3.DevPak
  19.  
  20. 3.1: Extract the devpak with a tool like '7zip'
  21. 3.1.1: Open the folder 'glut-7.6-3', open 'glut' folder. You should see 3 folders inside it and a devpak.
  22. 3.1.2: copy 'include' folder to "C:\Program Files (x86)\Dev-Cpp\MinGW64"
  23. 3.1.3: copy 'lib' folder to "C:\Program Files (x86)\Dev-Cpp\MinGW64"
  24. 3.1.4: copy 'Templates' folder to "C:\Program Files (x86)\Dev-Cpp"
  25. 3.1.5: install the devpak:
  26. 3.1.5.1: open Devc++, click 'Tools', click 'Package Manager', click 'Install', select and install "glut.DevPackage" that was inside the devpak
  27. 3.1.5.2: close the package manager
  28.  
  29. 4: Setting up complier in devc++:
  30. 4.1: click 'Tools', click 'Compiler Options'
  31. 4.2: Change Compiler set to 'TDM-GCC 4.9.2 32-bit Release'
  32. 4.3: Adding glut library to compiler:
  33. 4.3.1: check 'Add the following commands when following the linker'
  34. 4.3.2: paste this in there, with quotations include
  35. -static-libgcc "C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\glut32.lib"
  36.  
  37. 4.4: click 'Directories', click 'Libraries'
  38. 4.4.1: paste this in bottom textbar and click 'Add', dont include "": "C:\Program Files (x86)\Dev-Cpp\MinGW64\lib"
  39.  
  40. 5: Creating GLut project:
  41. 5.1 In Devc++ click 'File', click 'New', click 'Project', click 'Multimedia', click 'glut' and click 'Ok'
  42.  
  43. YOURE DONE!
  44.  
  45. ps: if you get errors either the glut32.lib path is not setup properly or the glut32.dll was not copied
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement