Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 22 Aug 2012
Offline Last Active Jan 30 2015 11:42 AM

Posts I've Made

In Topic: Need Help with compilers and make commands.

27 January 2013 - 05:53 AM

firstly, download MinGW from this site:


Install it to C:\MinGW

Then after installing, do these if you are using Windows 7 or Vista or 8 ( i guess same thing can be done for XP too ) :


1. Press Start and R buttons. It will open up the Run window box.


2. Then copy paste this - systempropertiesadvanced.exe and press Enter.


3. Click on Environment Variables which is in the bottom right corner.


4. Over here, you'll find 2 boxes. Go to the box which says System variables and under the Variables column, search for Path or PATH (for me it was Path. Both are the

    same thing).

5. Double click on PATH. It will open up another box. Over here, in the variable value box if there is already written something on it, then copy paste - ;C:\MinGW\bin.
    NOTE: It is mandatory to put the semicolon as it separates itself from other stuff written in the box...

6. Press OK, OK and then i guess it must work.

Let us know whether it worked or not... smile.png

In Topic: Setting up GLFW for MinGW CodeBlocks

27 December 2012 - 07:48 AM

Alright I figured it out...

To "anyone who had no idea how to sort out this stuff and reached here", you gotta do this for setting up GLFW:

1. Download the MinGW version of CodeBlocks and install it.
2. Download MinGW from is official site amd install in this directory:
3. Download GLFW from its official site [http://www.glfw.org/].
4. After downloading it extract it, lets say in Desktop...
5. Right click My Computer and select Properties.
6. Go to "Advanced System Settings".
7. In the box that appears, click "Environment Variables...".
8. In the box named "System Variables", search for "Path" or "PATH" under "Variable" column.
9. Double click it and then a box will appear.
10. In the "Variable" box, you will see directories of some installed stuff... Over here, you have to give your MinGW directory...
Type this: ";C:\MinGW\bin" (excluding quotes).
NOTE: Adding semicolon is mandatory as it separates from other directories given in that box.
Click OK, OK, and OK.
11. Open command prompt... Then type the following command:
C:\Users\yourcomputername> cd <the directory where you extracted GLFW>
For example, mine was like this:
C:\Users\PB9X> cd desktop\glfw-2.7.7
12. After you have typed that command, type the following command:
mingw32-make win32-mingw
Mine was like this:
C:\Users\PB9X\Desktop\glfw-2.7.7> mingw32-make win32-mingw
13. After typing that command, the compilation will take place.
14. After the compiling is over, go to the place where you have extracted glfw, and in that folder, you'll find a sub folder named "lib". In "lib" folder, open the folder named
15. Over here copy these files: libglfw.a, glfw.dll and libglfwdll.a to C:\Program Files (x86)\CodeBlocks\MinGW\lib
16. Copy glfw.dll to the system folder where opengl32.dll is located. It should be in C:\Windows\System32 (for 32 bit Windows) or C:\Windows\SysWOW64 (for 64 bit Windows). If opengl32.dll is located in both the directories, then do it for both of them. For me it was in both directories. So I copied to both of them. It won't create any problem.
17. Copy glfw.h from the "include" subfolder in the glfw folder you have extracted and paste it to C:\Program Files (x86)\CodeBlocks\MinGW\include\GL

Now the CodeBlocks part:

1. Open a new GLFW project and name the prject whatever you want and give the directory where you want to save your project. Then click Next.
2. Then it will ask you to select GLFW's location. Give this directory : C:\Program Files (x86)\Codeblocks\MinGW. Click Next and then click Finish.
3. In the "Management" area (it should be in the left side), collapse the folder named "Sources" and open main.cpp and run it.
4. Enjoy.... And start writing your GLFW programs... smile.png