How to compile GLUT source files in windows

This is a discussion on How to compile GLUT source files in windows within the Windows Programming forums, part of the Platform Specific Boards category; I'm a beginner when it comes to programming. I know my way around c enough to do this and that ...

  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    17

    How to compile GLUT source files in windows

    I'm a beginner when it comes to programming. I know my way around c enough to do this and that and I use MinGW and make to use makefiles for compiling.

    Now I'm working with OpenGL but I discovered that glutTimerFunc in windows doesn't work properly with time values less than 1000 mseconds because the functions is defined with floats instead of doubles. The solution is to adjust a few lines in the source code of GLUT (which I've found) and recompile but that is where i get stuck!

    I'm used to working with a simple makefile and no more than 10 source files. The source for glut found at GLUT - The OpenGL Utility Toolkit contains loads of files and about 10 makefiles. I can't find my way around them. I've tried using them with make and nmake without success.

    Can someone explain to me how I'm supposed to do this? I have visual studio 2008 installed (though I don't use it) along with MinGW and GNU make.

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,620
    Isn't it more possible that you are using the function in a wrong way or that you think it is problematic when it isn't?
    Is it more possible that a whole team of programmers made that function wrong, after testing it hundreds of times?

    Don't mess with such big projects unless you really know what you're doing. You may end up with a much less efficient library, if it is working...
    Devoted my life to programming...

  3. #3
    Registered User
    Join Date
    Feb 2010
    Posts
    17
    Sipher, I'm certain something is wrong with the file bacause it works perfectly on unix machines.
    I've found a more recent version in which the bug has been corrected at Nate Robins - OpenGL - GLUT for Win32

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    5
    Do the instructions on how to compile the GLUT for Win32 using MinGW located here work for you:

    HOWTO Compile the OpenGL Utility Toolkit (GLUT) for Win32 with MinGW | MinGW

    ?

    If not, what part needs clarification or correction?

    Hope This Helps,
    Joshus Burkholder

  5. #5
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Sipher View Post
    Isn't it more possible that you are using the function in a wrong way or that you think it is problematic when it isn't?
    Is it more possible that a whole team of programmers made that function wrong, after testing it hundreds of times?

    Don't mess with such big projects unless you really know what you're doing. You may end up with a much less efficient library, if it is working...
    Actually... that's not the first time I've heard of the timer bug in GLUT... there are patches for it and it does need to be recompiled.

    But, I was of the understanding the makefile was on their homepage... but I'm not 100% sure.

  6. #6
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,620
    Dammit, bugs are everywhere!! Its an invasion from the very beginning of computers' era!!!
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 10:46 AM
  3. Makefiles, Object files, Source files, OH MY!
    By Inquirer in forum Linux Programming
    Replies: 2
    Last Post: 04-29-2003, 10:36 PM
  4. using a class in multiple source files???
    By Crossbow in forum C++ Programming
    Replies: 9
    Last Post: 06-18-2002, 07:42 PM
  5. linking source files
    By estranged in forum C Programming
    Replies: 9
    Last Post: 04-03-2002, 05:38 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21