Tutorial 1 - Setting up an OpenGL Project in Visual Studio 2010

  Рет қаралды 120,281

Jeffrey Chastine

Jeffrey Chastine

Күн бұрын

Пікірлер: 173
@AdarshGupta035
@AdarshGupta035 8 жыл бұрын
Code at 1:19 with comments - #include #include #include using namespace std; //Anytime the window is resized, this function gets called. It's setup to the // "glutReshapeFunc" in main void changeViewport(int w, int h) { glViewport(0, 0, w, h); } //This function gets called each the window needs to be redrawn //It is the "paint" method for our program, and is setup from the glutDisplayFunc in main void render() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glutSwapBuffers(); } int main(int argc, char** argv) { //Initialize GLUT glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH); //setup some memory buffers for our display glutInitWindowSize(800, 600); //set the window size glutCreateWindow("Hello, GL"); //create the window with title "Hello, GL" //Bind the two functions (above) to respond when necessary glutReshapeFunc(changeViewport); glutDisplayFunc(render); //Very Important! - This initializes the entry points in the openGL driver so we can //call all the functions in the API GLenum err = glewInit(); if (GLEW_OK != err) { fprintf(stderr, "GLEW Error"); return 1; } glutMainLoop(); return 0; }
@unity_with_timoteo
@unity_with_timoteo 7 жыл бұрын
For who want the code used by him. Take below. #include #include #include using namespace std; //Any time the window is resized, this function gets called void changeViewport(int w, int h) { glViewport(0, 0, w, h); } //Here is the function that gets called each time the window needs. //It is the paint method for our program void render() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glutSwapBuffers(); } int main() {//initializate GLUT glutInit(&argc, argv); //set up some memory bfefers for our display glutInitDisplayMode(GLUT DOUBLE | GLUT RGBA | GLUT DEPTH); //Set the window size glutInitWindowSize(800, 600); //create the window with the title "hello, gl" glutCreateWindow("Hello, GL"); //Bind the two functions ,above, to respond when necessary glutReshapeFunc(changeViewport); glutDisplayFnc(render); //very important! TRhis initialize the entry point in the OpenGl DRIVER SO WE CAN //call all the function in the API. GLenum err = glewInit(); if (GLEW_OK != err) { fprint(stderr, "GLEW error"); return 1; } //Start up a loop that runs in the background (you never see it) glutMainLoop(); return 0; }
@detectiveking1463
@detectiveking1463 11 жыл бұрын
i can't help myself to say that this is a really great tutorial.I had been looking for a long time for the opengl 3.0 tutorials,but no one explained it efficiently and sufficiently.thanks for sharing.
@ajsamart2445
@ajsamart2445 11 жыл бұрын
definitely one of the best series on opengl out there on the internet now! thanks a lot jeffrey :)
@AllanJeremy
@AllanJeremy 11 жыл бұрын
Finallyy..... Awesome stuff man. Well I have been searching all over the internet for recent opengl tutorials. Just by sheer luck I found ur channel. So thank you for the awesome videos. Please keep posting. U just earned a sub my friend :)
@jeffchastine
@jeffchastine 10 жыл бұрын
Thanks, Allan!
@teymurg.r8860
@teymurg.r8860 10 жыл бұрын
Jeffrey Chastine THANKS A LOT!!! You are the best!!!
@Dejawolfs
@Dejawolfs 11 жыл бұрын
thanks for this tutorial! you can usually find tons of tutorials on openGL, but 90% just brush over briefly how to set up the IDE, which for me has caused hours of bashing head against the wall.
@EddieVanHalen1977
@EddieVanHalen1977 11 жыл бұрын
This tutuorial is just sooooo good. Bravo!!! And many thanks. You give us so much more confidence, and just getting so many people started on this like you have done here gets them past the most critical part, and that is the setup of all of it, so they can start programming.
@BryanStetson
@BryanStetson 11 жыл бұрын
Glut is an OpenGL utility that controls things like windowing for each OS (that way OpenGL can be OS independent). Since this was made in 2013 though, you can probably assume v 3.0 will be used
@markusa3803
@markusa3803 10 жыл бұрын
Great Video! It works the same for VS 2013, too! The only difference is that it tells you directly that the .dll files are missing, what is pretty confusing. But, I just continued watching and found out everything, so really, thank you for this little masterpiece! :D
@jeffchastine
@jeffchastine 11 жыл бұрын
Hi - for the files, used the transmission zero site described in the comments below. The version of GLEW doesn't really matter, by the way. The last version I used was 1.9.0 I think. Also, it looks like some folks have been able to get it working in VS 2012 (see below). In general, keep the concepts of paths and linking in mind and then search around the interface until you find similar things.
@yorchais
@yorchais 11 жыл бұрын
Sadly i struggled with this .dll linkage for hours until this video. Thanks !!
@jeffchastine
@jeffchastine 11 жыл бұрын
Glad it helped!
@frahaan
@frahaan 11 жыл бұрын
What version of opengl are you using in your tutorial series?
@hashamnaveed8554
@hashamnaveed8554 8 жыл бұрын
Thank You soo Much Jeffrey. Been looking for a solution since 4 days and finally found one. Thank you.
@jeffchastine
@jeffchastine 8 жыл бұрын
Glad it helped!
@assassin132132
@assassin132132 10 жыл бұрын
its really smart to make tutorial about setting up without linking the code you use and the libary link so people would be sure to download the right thing and using the right code in order to program run and everything be ok
@MinThantSin
@MinThantSin 11 жыл бұрын
Thanks for the tutorial. Where can I download the source code?
@jeffchastine
@jeffchastine 11 жыл бұрын
The error means that, during the linking phase (which comes after the compiling phase), it couldn't find glew32.lib. In other words, it's likely a path issue. Make sure you the directory you specify has glew32.lib. Unless you're doing 64-bit compiling, I would avoid using the other versions - though others may want to chime in on that. Also (just a note), most of the time I'm compiling in Debug mode.
@UdyawarRaghav
@UdyawarRaghav 10 жыл бұрын
I could get the free glut from the repository but it does not have library files that is needed to be linked. Can you help me on this
@juniorsantosjerry4188
@juniorsantosjerry4188 5 жыл бұрын
Hi there I just test your code i have a visual studio 2010 ultimate and when i compiled your code the window start blink fast and disapear that is normal? thanks for tutorial
@xilconic
@xilconic 11 жыл бұрын
Thanks for the video, much appreciated. If there is one thing that always confuses the heck out of me when I've been out of C++ for quite a while, than it's configuring the external dependencies.
@JitendraKumar21
@JitendraKumar21 9 жыл бұрын
Not able to find glew32.dll Could you provide the link to download glew which includes .dll files.
@NeilRoy
@NeilRoy 9 жыл бұрын
I prefer to use Code::Blocks for this. It can be set up very easily, all the libraries are available for it as well and easily set up. What bothers me about this video, and it is good, is that Visual Studio didn't give you an error in your code. You are using fprintf() and the #include was not added to the file. This actually bugs me that VS let you get away with this. Code::Blocks gave an error, so I changed the fprintf() to cerr (or you can use cout) instead.
@manetsaman9006
@manetsaman9006 9 жыл бұрын
How to change name of a project in the correct way? Do i just go the folder directory and change it there or in the Visual Studio itself?
@froff922
@froff922 11 жыл бұрын
I get a compiler error when trying to run it. It says: LINK : fatal error LNK1104: cannot open file 'glew32.lib' I did go into the lib folder in glew though, and it had 2 folders in it; 'Release' and 'Release MX', which both had 2 folders named 'win32' and 'x64' in them. Those folders had the .lib files in them. The ones under 'Release had 'glew32.lib' and 'glew32s.lib' in them, while the ones under 'Release MX' had 'glew32mx.lib' and 'glew32mxs.lib' Which of the four should I choose? Thank you!
@zuberiabdul7941
@zuberiabdul7941 11 жыл бұрын
where can i find those minimum code for Gl....i dont know where did u paste from
@shanninsalmon1697
@shanninsalmon1697 10 жыл бұрын
Can you please post some tutorials on how to create a library system using visual foxpro 6.0? pretty please. I do really need it.. please
@jeffchastine
@jeffchastine 10 жыл бұрын
Sorry, I don't have any experience with Visual Foxpro :(
@tjking86
@tjking86 11 жыл бұрын
I'm trying to run this project in code blocks. Is there anything that you can think of that might have to be modified
@msoulforged
@msoulforged 9 жыл бұрын
Thanks! One question; if I use Nuget package manager for glew and freeglut, do I still need to do additional wiring for linker and other stuff?
@jeffchastine
@jeffchastine 9 жыл бұрын
Sorry - I don't have any experience with that. Maybe the community can answer.
@msoulforged
@msoulforged 9 жыл бұрын
Jeffrey Chastine NP, I checked myself and yes, in VS2012 you can just use Nuget Package Manager to install freeglut and glew in a few clicks.
@PanZheng
@PanZheng 11 жыл бұрын
it would be great that you specify which version of OpenGL it covers.
@BryanStetson
@BryanStetson 11 жыл бұрын
This is a great tutorial very concisely explains this convoluted process
@minhly650
@minhly650 10 жыл бұрын
I am using VS 2012.When I accessed folder Debug in folder Project as you did.I didn't see anything inside.Even if there weren't ".exe","ilk","pdb" in folder Project.Could you help me with this problem ? Please respond me as soon as you can.I need this deperately.Thanks in advance.
@jeffchastine
@jeffchastine 10 жыл бұрын
If the program runs, you should have an .exe somewhere. Don't worry about the pdb or ilk file (because VS 2010 automatically generates several files).
@jeffchastine
@jeffchastine 11 жыл бұрын
I haven't played around with VS 2012 + OpenGL yet, but I'm glad to hear that the video is still (somewhat) valid :)
@CortezVantrila
@CortezVantrila 11 жыл бұрын
Where did you get the code for the main file?
@jeffchastine
@jeffchastine 11 жыл бұрын
I think I've posted the link to the code in later tutorials, so maybe try the next tutorial.
@brandx96
@brandx96 10 жыл бұрын
I do not have an executable in my project directory at all. Why is it not there? I appreciate the help.
@jeffchastine
@jeffchastine 10 жыл бұрын
That's strange! Well, if it runs, you have to have an .exe somewhere! One thing to realize is that you have a Debug and/or Release folder, so maybe it's in one of those?
@brandx96
@brandx96 10 жыл бұрын
I got it working, no worries.
@brandx96
@brandx96 10 жыл бұрын
It was a while ago, and before I moved into college and on a different computer so I unfortunately forgot. Sorry! :(
@jeffchastine
@jeffchastine 11 жыл бұрын
Sorry about my fast talking! I know some Spanish, but I have to practice :) As far as that link, I don't know who posted it, but you can probably remove the spaces and dashes and get it to work.
@dhidhi1000
@dhidhi1000 11 жыл бұрын
I will follow this tutorial, but using GLFW 2.7.9. Every one says glut is old and bad, and freeGlut doesn't have many recomendations, although every tutorial on openGL seems to use it, even the official openGL Book.
@lolololololololol11
@lolololololololol11 10 жыл бұрын
Please put the links to freeglut and glew in the description.
@AhmedSaeed-pp2ii
@AhmedSaeed-pp2ii 10 жыл бұрын
there is no div folder in my C Driver... How can i will complete ? note : using visual studio 2013 professional
@jeffchastine
@jeffchastine 10 жыл бұрын
You need to manually make the C:\dev folder. Realize that it can be called whatever you like, so it's just a personal preference. Either way, make sure the path names (i.e. C:\dev\freeglut) match where you put your libraries.
@UdyawarRaghav
@UdyawarRaghav 10 жыл бұрын
Where can I find the freeglut and glew source code and library files to link it in the application
@MrLemple
@MrLemple 10 жыл бұрын
Everything works accept for the end section. When i run my program the black box only appears for a second and then disappears. Any help with this please? :)
@jeffchastine
@jeffchastine 10 жыл бұрын
Did you try running it in Debug mode or Release mode? (F5 vs. CTRL-F5). It almost sounds as if you're getting an error, so not sure what's causing that.
@RemixEdits0
@RemixEdits0 11 жыл бұрын
I don't know where your going with these tutorials but, but the compiler setup a pain in the ass, and those who want low boilerplate your video explains how to get these things running. Could you do a crystal space tutorial, would be awesome. the website uses horrible visual studio compiling images
@sendpieplz4867
@sendpieplz4867 11 жыл бұрын
where? I download the new freeglut and can't the lib folder... from what website did you download your version... I did go to the official website and there is no lib folder...
@Efka159
@Efka159 11 жыл бұрын
Well I downloaded your code(tutorial 4 shaders) included glut and glew added dll files in binary, but at first I got warning about fopen function, then after I added #define _CRT_SECURE_NO_DEPRECATE I got debug assertion failed error. It says somewthing about (stream!=NULL) . Any idea?
@jeffchastine
@jeffchastine 11 жыл бұрын
You must be using VS 2013 (I would guess?), but I haven't seen this error. Maybe the community knows?
@joseponce3006
@joseponce3006 10 жыл бұрын
Im new to opengl but seeing as you are trying to open a file and getting a stream!=null error it could be that the file is never actually opened for some reason, did you try checking for the file pointer not to be null after you fopen it and before you use it
@gordonfreemanq
@gordonfreemanq 11 жыл бұрын
This is exactly what I needed. Cheers!
@Livestock17
@Livestock17 9 жыл бұрын
Excellent. Very helpful. Thanks.
@omarhussein803
@omarhussein803 10 жыл бұрын
Man , I haveproblem with debuge projects when I run any project ( massege :- project out of date . would you like to build it (yes , no ) when I click yes the project doesn't start . Can you help meee ?! :(
@jeffchastine
@jeffchastine 10 жыл бұрын
Maybe try cleaning the project (?) It's one of the option in the menu system. If it's not that, maybe the community can help?
@omarhussein803
@omarhussein803 10 жыл бұрын
all project make that and I delete it and make it again ( nothing happend )
@omarhussein803
@omarhussein803 10 жыл бұрын
Jeffrey Chastine all project make that and I delete it and make it again ( nothing happend )
@calebkierum6871
@calebkierum6871 10 жыл бұрын
Hey their! For the longest time i have been trying to find a tutorial that taught this and was re creditable! I finally got openGL working. I just have two questions for you. 1. When using glut and glue is the project freely distributable? Are their any royalties or licensing involved? 2. Is their a function that simply sets a pixel at a certain point with a certain color? Thankyou so much for doing more then just shoving the code in our faces! Im excited to dig into what makes 3d gaming work!
@jeffchastine
@jeffchastine 10 жыл бұрын
I'm not quite sure about the licensing of freeglut or GLEW, but I would guess they are distributable. You'll have to check their docs. As far as setting a pixel, I'm not aware of a function that does that. You might try working in Normalized Device Coordinates (NDCs) which range from -1 to +1 and then convert to screen space. For more info on NDCs check out my later tutorials (it might be in "coordinate spaces", but I don't remember).
@TheProgrammerSociety
@TheProgrammerSociety 9 жыл бұрын
Hey,where I can get codes from this tutorial.I downloaded Code.zip but I cannot find Tut1 folder ,there are only Tut(4,6,8,13,14,15,17) :( ???
@jeffchastine
@jeffchastine 9 жыл бұрын
Alem Sehic From what I remember, I used code from one of the later projects. The point of this tutorial wasn't the code, but just to get something to compile.
@shjmyself9051
@shjmyself9051 10 жыл бұрын
Thanks for your source code of this OpenGL tutorials. But I can't find the "r" file. Without the "r" file I can't practice the code. Can I have it ?
@jeffchastine
@jeffchastine 10 жыл бұрын
I'm not sure I understand. I don't think there's a "r" file in the project.
@shjmyself9051
@shjmyself9051 10 жыл бұрын
Jeffrey Chastine I am sorry . the "r" is a reference parameter that present the reading file. And the actual parameter are shader files. I get it now. Sorry for my English. I am from a secret country. Thanks again.
@zachchang263
@zachchang263 9 жыл бұрын
I did it step by step and then compiled. But finally it gor wrong and appered: "LINK : fatal error LNK1104: cannot open file 'freeglutd.lib'" How could I solve this problem?
@GoblinBlaster3000
@GoblinBlaster3000 9 жыл бұрын
張誌安 If you're still having this issue, I wrote a post about it on the OpenGL forum being's I ran into this same issue today. www.opengl.org/discussion_boards/showthread.php/186328-error-link-1104?highlight=freeglutd
@talesseed
@talesseed 9 жыл бұрын
Michael DeLomba Thanks a lot !
@GoblinBlaster3000
@GoblinBlaster3000 9 жыл бұрын
Talesseed Hey, I'm glad I can help. It seemed to be an issue that wasn't covered anywhere so I made sure to post my solution.
@ethanzhu4096
@ethanzhu4096 9 жыл бұрын
+Michael DeLomba Thanks a lot. I save my problem.
@GoblinBlaster3000
@GoblinBlaster3000 9 жыл бұрын
+Ethan Zhu No problem! Glad to help
@RajOnTheStreet
@RajOnTheStreet 11 жыл бұрын
Can you post the links please while your doing the tutorials would help alot
@jeffchastine
@jeffchastine 11 жыл бұрын
cse.spsu.edu/jchastin/courses/cs4363/resources/Code.zip
@tikityler1386
@tikityler1386 10 жыл бұрын
Jeffrey Chastine Can you add this to the video description? That would be helpful. I was about to ask the same thing till I saw this comment. If you could add the download links to those files you used as well. FreeGlut and Glew. There are many versions and some of them though labeled the same don't have the same files as your video shows.
@kylebrechin6012
@kylebrechin6012 10 жыл бұрын
After compiling successfully, the program can't run because glew32.dll is not on my computer. However, I manually placed it into Windows\System32
@jeffchastine
@jeffchastine 10 жыл бұрын
Be careful about versioning when you do this; libs/dlls must match, and if you update your version, it can be easily forgotten where you put your dlls. For those who are new to this process, I'd recommend manually putting the dlls into the executable folder (probably /Debug) first until you get comfortable with it. I only say this because it's a good idea to "practice" setting up Visual Studio :)
@henkhenkeinstein4737
@henkhenkeinstein4737 11 жыл бұрын
Thanks for uploading Can you plz put the download links in the discription?
@mathunt1130
@mathunt1130 10 жыл бұрын
Sadly this method doesn't work in visual studio 2013. I keep getting freeglut.lib cannot be opened all the time. Secondly, I think that you have to have the relevant files inside the project and not outside. I have looked EVERYWHERE for this particular error which is: LNK1104 cannot open file freeglut.lib
@jeffchastine
@jeffchastine 10 жыл бұрын
That means it can't find freeglut.lib. Do a manual search for it (to make sure you have it) and then make sure your (linker) path is set correctly. Though under certain circumstances it makes sense, you shouldn't copy libs/headers into your project.
@mathunt1130
@mathunt1130 10 жыл бұрын
In the end that is exactly what I had to do along with the .dll files as well.
@samahmalibari5949
@samahmalibari5949 10 жыл бұрын
From where can I get the code on 1:19 mins ? :)
@javatutorials3198
@javatutorials3198 10 жыл бұрын
cse.spsu.edu/jchastin/courses/cs4363/resources/Code.zip
@jeffchastine
@jeffchastine 11 жыл бұрын
Well, so long as you can get a triangle on the screen, I'd say use whatever you like!
@jeffchastine
@jeffchastine 11 жыл бұрын
This appears to be the way you set up your project. It's saying that it can't find freeglut.lib, so make sure you right-click on the project, go to the configuration, find "Linking" and set the path to the libs. I hope that helps!
@MrOriginalMix
@MrOriginalMix 9 жыл бұрын
What is all the code copied in the beginning? where did it come from??
@jeffchastine
@jeffchastine 9 жыл бұрын
***** See the link to the code below
@MrOriginalMix
@MrOriginalMix 9 жыл бұрын
Jeffrey Chastine Thank you so much for the reply, I appreciate your time. Sorry for sounding like a moron, but i dont see any code in the description or links... I must be blind?
@jeffchastine
@jeffchastine 9 жыл бұрын
***** cse.spsu.edu/jchastin/courses/cs4363/resources/Code.zip
@MrOriginalMix
@MrOriginalMix 9 жыл бұрын
Jeffrey Chastine Thank you Jeffrey, you are a legend.
@buildstone6778
@buildstone6778 9 жыл бұрын
thanks man, you helped me a lot!!
@arturpiasta8361
@arturpiasta8361 11 жыл бұрын
Hi, I downloaded freeglut from official website, and i don't have the "lib" directory in "freeglut" directory. Where can I find it? thx
@zuberiabdul7941
@zuberiabdul7941 11 жыл бұрын
another problem is that after debug it it shows this massage >------ Build started: Project: hellowword, Configuration: Debug Win32 ------ 1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5): error : Required file "" is missing. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
@jeffchastine
@jeffchastine 11 жыл бұрын
Hmm - I'm not sure about this one. I would guess that the project wasn't an "empty" project when it was set up, but honestly, I'm not sure! Maybe the community could chime in on this one.
@weswickwire1843
@weswickwire1843 9 жыл бұрын
I keep getting the error file cannot open input file freeglutd.lib. In my download of freeglut there isnt even a file of that name. Ive looked everywhere and cannot find a solution.
@javatutorials3198
@javatutorials3198 9 жыл бұрын
Wes Wickwire I would suppose that you have downloaded a different version. I recommend downloading it from the Transmission Zero website.
@weswickwire1843
@weswickwire1843 9 жыл бұрын
Java Tutorials I downloaded it form that website. I followed the readme that came with it and did everything they say to. Not sure if its cause im on windows 8. Bit I kind of overrode it by going into the freeglut_std.h file and explicitly changing it from freeglutd.lib to freeglut.lib. Obviously not the optimal way to fix it but its the only way i could get it to work. Thanks for the quick response though!
@GoblinBlaster3000
@GoblinBlaster3000 9 жыл бұрын
Wes Wickwire Hey Wes, I don't know if you finally figured this out but I ran into the same issue today. I made a post on the OpenGL site if you're still running into this issue. www.opengl.org/discussion_boards/showthread.php/186328-error-link-1104?highlight=freeglutd
@Belthaa
@Belthaa 9 жыл бұрын
Thank you very much for this video! :)
@jeffchastine
@jeffchastine 9 жыл бұрын
+Belthaa My pleasure!
@z2155
@z2155 10 жыл бұрын
so, we have to do this everytime we create a new project? :(
@jeffchastine
@jeffchastine 10 жыл бұрын
Yep - which is why you need to understand it :) However, there *are* ways that you can configure your environment to do this automatically, but I don't recommend that.
@joshuaheathcote2116
@joshuaheathcote2116 10 жыл бұрын
My FLIPPING .exe isn't there, I ran a simple program at the start to make sure it was there, created the project, ran at the end and puff, its gone, error, can't find .exe What the hell is going on
@jeffchastine
@jeffchastine 10 жыл бұрын
I haven't heard of this before. If something ran, then an executable has to be *somewhere*, unless there's a script that's cleaning up resources. Sorry, I wish I had something better to contribute.
@princeoflight612
@princeoflight612 10 жыл бұрын
The cause of that is probably: 1.Your antivirus could have false-identified your .exe file as a virus and deleted it. Most modern antiviruses(ESPECIALLY Kaspersky) can cure/delete/quarantine suspicious files silently without waiting for the user's confirmation. To fix that, just add your development directory to the "exception" list of your antivirus. 2.There is a worm that modifies .exe files to viral ones(so it can recover even after getting nuked by the antivirus). Do a full scan and cure .exe files manually if needed. 3.It might as well be a Visual Studio thing with it properly saving the .exe only after you save the project manually. Haven't checked it myself though, as I mostly use CodeBlocks.
@hippyy86
@hippyy86 10 жыл бұрын
and where do i download the opengl files??
@jeffchastine
@jeffchastine 10 жыл бұрын
Look at the comments below (specifically "vinay p")
@HugoIetsGaming
@HugoIetsGaming 9 жыл бұрын
Is this the old or modern version of gl?
@jeffchastine
@jeffchastine 9 жыл бұрын
It's the modern version
@henkhenkeinstein4737
@henkhenkeinstein4737 11 жыл бұрын
Btw I get this error: 1>------ Build started: Project: GameMakingOpenGlTest2, Configuration: Debug Win32 ------ 1>LINK : fatal error LNK1104: cannot open file 'fleeglut.lib' ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Can you plz help me?
@AavegS
@AavegS 9 жыл бұрын
I am not getting a lib file in freeglut? What should I do?
@jeffchastine
@jeffchastine 9 жыл бұрын
I would download it from here: www.transmissionzero.co.uk/software/freeglut-devel/
@AavegS
@AavegS 9 жыл бұрын
I tried to download it from OPENGL but it didnt work
@AavegS
@AavegS 9 жыл бұрын
Thank you
@TheNickMead
@TheNickMead 9 жыл бұрын
Aaveg Sheth Download the Prepackaged Release instead of Stable Release from freeglut.sourceforge.net/index.php#download
@JSn1pes
@JSn1pes 11 жыл бұрын
weird my glut doesn't have a lib folder
@jeffchastine
@jeffchastine 11 жыл бұрын
Make sure you're downloading from the correct place. Check out the "transmission zero" link in the comments (way) below.
@JSn1pes
@JSn1pes 11 жыл бұрын
Jeffrey Chastine Thanks for the reply, greatly appreciated, got it working :) btw I subbed!
@jeffchastine
@jeffchastine 11 жыл бұрын
Basically, 3.0+
@someguy3032
@someguy3032 10 жыл бұрын
Tutorial 2 ?
@fransiscusaprilyantol.7421
@fransiscusaprilyantol.7421 6 жыл бұрын
Got this error : 1>------ Rebuild All started: Project: HelloWorld, Configuration: Debug Win32 ------ 1> main.cpp 1>main.obj : error LNK2019: unresolved external symbol __imp__glewInit@0 referenced in function _main 1>C:\Users\Fransiscus\Documents\Visual Studio 2010\Projects\HelloWorld\Debug\HelloWorld.exe : fatal error LNK1120: 1 unresolved externals ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
@vinayp6040
@vinayp6040 10 жыл бұрын
Can anyone give link to download OpenGL Software shown in vedio
@jeffchastine
@jeffchastine 10 жыл бұрын
I'd recommend getting freeglut from www.transmissionzero.co.uk/software/freeglut-devel/ or freeglut.sourceforge.net/ and getting GLEW from glew.sourceforge.net/
@lierox90lierox90
@lierox90lierox90 10 жыл бұрын
Jeffrey Chastine could you explain Glut version ? newest stable version i found is 2.8.1, and testing is 3.0
@jeffchastine
@jeffchastine 10 жыл бұрын
Paweł Mieleń I do not know the difference, but I would probably use 2.8.1.
@pranavgore2401
@pranavgore2401 9 жыл бұрын
Thank you very much!!
@jeffchastine
@jeffchastine 9 жыл бұрын
+Pranav Gore Glad you liked it!
@mahzadart
@mahzadart 7 жыл бұрын
Thanks for the great tutorial! OpenGL is so dumb! Setting it up is just so painful!
@jeffchastine
@jeffchastine 11 жыл бұрын
It should be available on sourceforge. net
@hjyssg
@hjyssg 11 жыл бұрын
great video. Finally make VS run!
@mierdiweb
@mierdiweb 11 жыл бұрын
Hello Jeffrey, good video, was very useful for me, but please, next video you should speak more slowly because it's very hard to understand for people like who don't speak native English. Anyway, good video.
@juggernautuci8253
@juggernautuci8253 9 жыл бұрын
help me a lot. thanks
@Arietis27
@Arietis27 11 жыл бұрын
Important note: Be sure to run the project first before you do anything, otherwise you won't get the Debug folder with the .exe he's talking about at the end of the video. At least I didn't in VS2012, and it was giving me errors.
@jeffchastine
@jeffchastine 9 жыл бұрын
New code location: ksuweb.kennesaw.edu/~jchasti1/courses/cs4363/resources/Code.zip
@a0939946923
@a0939946923 9 жыл бұрын
+Jeffrey Chastine Thank you so so much!
@Woodskil
@Woodskil 9 жыл бұрын
+Jeffrey Chastine , From where can I get the code on 1:19 mins ? Tyt4 and folowing tyt only i can find in Code.zip .
@Woodskil
@Woodskil 9 жыл бұрын
+Jeffrey Chastine I am sorry. I find in coments down. Thank you.
@Ruma9
@Ruma9 9 жыл бұрын
thank you so much *-*
@froff922
@froff922 11 жыл бұрын
Ok, thank you very much!
@mierdiweb
@mierdiweb 11 жыл бұрын
Also I didn't find it, go to this page, here explain what version you must download ht tp: // lazyfoo. net/tutorials/OpenGL/01_hello_opengl/windows/msvsnet2010u/index.php (Martin Payne's Windows binaries)
@UdyawarRaghav
@UdyawarRaghav 10 жыл бұрын
Oh found it in transmission zero link
@tnguyenviet108
@tnguyenviet108 10 жыл бұрын
you can find the freeglut inlcude lib in www.cs.uregina.ca/Links/class-info/315/WWW/Lab1/GLUT/windows.html
@foadsf
@foadsf 9 жыл бұрын
Tinh Nguyen I think this was thw only helpful comment I found here. I just followed the steps and the problem was gone. except I also added #define NDEBUG to top of my code as was said somewhere in the internet! apparently somewhere inside the freeglut_std.h it says if the NDEBUG is not defined use freeglutd.lib instead!
@RaajNishanthS
@RaajNishanthS 11 жыл бұрын
Thanks for the files
@jeffchastine
@jeffchastine 11 жыл бұрын
Try this (with an extra 't'): htp://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MSVC.zip
@xdobaj
@xdobaj 11 жыл бұрын
Thank you for these tutorials! :) To give something back, here are the files used in this tutorial and all the code in case anyone needs them: ht tps: // w ww. dropbox. com/sh /wttz8ae7ta8v0yo/6a3eXEPhmi I am using Windows 8 and Visual Studio 2010, but I think these binaries should also work in Windows 7, Vista and XP.
@Banism24
@Banism24 11 жыл бұрын
this for what?
@froff922
@froff922 11 жыл бұрын
man youtube is stupid with the webpage link system
@Knopfabmeganot
@Knopfabmeganot 6 жыл бұрын
C++ mit Freeglut
@Gh0StSecurity
@Gh0StSecurity 11 жыл бұрын
god this is so confusing I rmember now that is about microsoft :D
@marekgrencstein7215
@marekgrencstein7215 10 жыл бұрын
In the part where you copy .dll files to debug folder, I do not have any .exe nor .ilk files in it. Only .pdb file. How do I fix it?
@marekgrencstein7215
@marekgrencstein7215 10 жыл бұрын
I managed to fix that and now everything works as yours when I remove following code: GLenum err = glewInit(); if (GLEW_OK != err) { fprintf(stderr, "GLEW error"); return 1; } I got that from your next video.
@StefanoTrebeschi
@StefanoTrebeschi 10 жыл бұрын
I'm freaking out trying to figure out why I keep getting the error message "Error 1 error LNK1104: cannot open file 'glew32.lib'" Any idea?
@jeffchastine
@jeffchastine 10 жыл бұрын
It's likely because it can't find glew32.lib during linking. Double-check the path in VS.
@StefanoTrebeschi
@StefanoTrebeschi 10 жыл бұрын
Now it's working! Yes, it was my fault, I didn't notice I wrote down the wrong path. :( thank you
@teymurg.r8860
@teymurg.r8860 10 жыл бұрын
Stefano Trebeschi How did you do it?
@StefanoTrebeschi
@StefanoTrebeschi 10 жыл бұрын
right now I dont have visual studio on this machine. I remember that my problem was the path: I had to select the one containing the library, but I selected the parent folder. (dumb dumb dumb dumb dumb) :(
Tutorial 5 - Vertex Buffers in OpenGL
13:13
Jeffrey Chastine
Рет қаралды 39 М.
Tutorial 9 - Coordinate Systems in OpenGL
7:37
Jeffrey Chastine
Рет қаралды 30 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Tutorial 2 - Hello, OpenGL!
3:44
Jeffrey Chastine
Рет қаралды 29 М.
Tutorial 10 - Introduction to Matrix Math in OpenGL
9:27
Jeffrey Chastine
Рет қаралды 22 М.
Visual Studio Express 2010 OpenGL.avi
4:03
Lance Strzok
Рет қаралды 13 М.
Setting Up Visual Studio 2012, Qt, and OpenGL
15:01
Jamie King
Рет қаралды 97 М.
How to Set up OpenGL and GLUT in Visual Studio (C++)
10:31
ProgrammingKnowledge
Рет қаралды 433 М.
Tutorial 3 - Introduction to OpenGL Shaders
6:02
Jeffrey Chastine
Рет қаралды 86 М.
Overview of GLSL, the OpenGL Shading Language
13:56
Shadron
Рет қаралды 106 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН