Sign in to follow this  
vurentjie

awesome site for gl beginners and other

Recommended Posts

vurentjie    134
stumbled on this site today, it probably covers everything i wanted to learn at first with opengl, just check it out to see, http://www.robthebloke.org/opengl_programming.html

Share this post


Link to post
Share on other sites
rpstaekwondo    100
1>------ Build started: Project: simple_glut, Configuration: Debug Win32 ------
1>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
1>main.cpp
1>c:\user\me\desktop\simpleglut\simpleglut\main.cpp(9) : fatal error C1083: Cannot open include file: 'GL/glut.h': No such file or directory
1>Build log was saved at "file://c:\user\me\Desktop\simpleGlut\simpleGlut\Debug\BuildLog.htm"
1>simple_glut - 1 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

its sais it cant include this:
GL/glut.h

Share this post


Link to post
Share on other sites
vurentjie    134
you need to download "glut-3.7.6-bin.zip" files, just google to find a download point,
i dont use VC compiler so not so sure how links would work,

i use CODE::BLOCKS and did the following,

extract glut files,

copy glut.h into "COMPILERFOLDER"/Mingw/includes/GL

copy glut32.lib into "COMPILERFOLDER"/Mingw/lib

copy the glut32.dll into your WINDOWS/system/

but as i said not sure how VC links up,

but just googled and found this, give it a try

# Start Visual Studio .NET * File -> New -> Project * Select Visual C++ Projects -> Win32 -> Win32 Console Project
# Give your project a name and choose where to store it
# Click Finish
# Disable support for precompiled headers (you need to do this to run the example code)
# Remove the '#include "stdafx.h"' line from your project1.cpp
# Open Project -> projectname Properties (last option)
# Go to C++ -> Precompiled Headers
# Change "Create/Use Precompiled Header" field to "Not using precompiled headers"
# Add glut32.lib to your linking settings
# You should still be in the project settings window
# Choose Linker -> Input
# Add 'glut32.lib' to your Additional Dependencies
# Click OK to return to your main project window
# Now we need to load the glut files
# Put the glut32.dll in the same directory as your executable
# Download glut-3.7.6-bin.zip (117 KB)
# When the zip folder opens, copy glut32.lib glut32.dll, and glut.h to the directory you stored your project in
# Now, any time you see '#include <gl/glut.h>' replace it with '#include "glut.h"'
# You should now be able to build your project
# Also, if you paste in code from any of the examples it should work

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this