Thanks from Russia. The teacher at our university decided that he would conduct classes only under Linux and would explain what and how to do also only for Linux users. For several hours I was looking for a tutorial for Windows and a visual studio. I started thinking about installing Linux as a second system ... Fortunately, I found your video and figured everything out. You explained everything very well. Also, your speech is very clear, which makes automatic translators very good at translating you.
man i watched the cherno tutorial and i ever thought that i needed the opengl32.lib file... i hate it when people just say "do this do that" and doesnt explain, your video actually helped me thank you.
Followed everything step by step but when I start writing the code both and cannot be found. I did everything the exact way you did I am so confused why this is happening...
I don't know how many of these blasted OpenGL setup tutorials I've sat through, but yours is the first one that has actually granted payoff. Thank you! One question though: is there an easy way to turn this into a project template?
Great to hear these tutorials helped you. For a project template its really simple. Setup the project as I did in this video, then keep that project folder as a base template, simply copy and paste that root folder for new projects. Let me know if you have anymore questions, you can post them on my education website sonarlearning.co.uk
@@SonarSystemsCoUk i tried that approach for project templates but the problem is that the sln is still connected to the original project so if you have consoleapp and you copy it the consoleappcopy the interior sln still both point the consoleapp's sln solution so if you edit the copy you are are also editing the base consoleapp's main.cpp
This helped so much! I've seen so many other videos on this topic but none of them helped me link these libraries to visual studios and get it to work properly.
Excellent video. Clear. Informative. The perfect example of a Step-by-Step tutorial. OpenGL setup is important and often complicated, this video helped set up and configure OpenGL.
for anyone in the future that can't find the code. Here #include //Glew #define GLEW_STATIC #include //GLFW #include //window dims const GLint WIDTH = 800, HEIGHT = 600; int main() { //Init GLFW glfwInit(); //SEt required options for GLFW glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); glfwWindowHint(GLFW_RESIZABLE, GL_FALSE); //Create a GLFWwindow object that we can use for glfw's functions GLFWwindow* window = glfwCreateWindow(WIDTH, HEIGHT, "OpenGlLearn", nullptr, nullptr); int screenWidth, screenHeight; glfwGetFramebufferSize(window, &screenWidth, &screenHeight); if (nullptr == window) { std::cout
Hi, video is so useful and window is opening, but when i run code from video i cant pass the second if (GLEW_OK != glewInit) its normal or i need to repair this?
Hi, I followed your tutorial but I keep seeing this error "LNK2019: unresolved external symbol __imp_glewInit referenced in function main" I double checked all but it seems right. Can you give me some advice?
@@SonarSystemsCoUk sorry I didn't update my comment. I managed to make it work. On "Linker -> input" I needed "glew32.lib" instead of "glew32s.lib". I did not try your code because I had to solve my teacher's code for my homework. Thank you for your video. Now I know how to make the setup alone and it is really easy in comparison to other methods. Have a good day!
Thank you for the great tutorial!I did everything exactly like you explained.Nevertheless, I get the linker error LNK1104.The debugger tells me that the file "C:\OpenGL\OpenGLRoot\OpenGLTutorial\Debug\OpenGLTutorial.exe" could not be opened. I checked the specified path and, indeed, there is no exe-file. What may be my problem?Best regards,Johannes
Today I built everything again and now it works!! :)I have no idea what my problem was …Nevertheless, thanks for the support!Your tutorials are the best ones!
Thanks for the this tutorial. As I followed the same way for x64 bit, my include libraries are included in external dependencies. How to resolve this problem? Error as "cannot include file: GL/glew.h": No such file directory.
I an getting "Source Not Available Source information is missing from the debug information for this module" error message. This happens after linking. What am I doing wrong?
I've been having this issue with SFML and even by following this tutorial every step of the way. 72-99 errors mostly it says that "identifier undefined xvariable" there is clearly some compatibility issue or linker issue going on etc no idea what is wrong. Any idea whats going on?
Possible problem: check the lib-vc20XX folder path. If you can't find lib directories you should download "Windows pre-compiled binaries" from www.glfw.org/download.html
@@SonarSystemsCoUk I mean the code that you have used in the end to create the window. I wasn't able to download the code from git hub. I'm new at programming so please excuse me for the ignorance
Here's solution: instead of int main() use: int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow) and set SubSystem to Windows(/SUBSYSTEM:WINDOWS) in Project properties/Linker/System
I have no idea why im getting this error and wonder if anyone has gotten this LINK : fatal error LNK1104: cannot open file 'freeglutd.lib' for a project i need free glut do you have a tutorial about using freeglut EDIT NVM i realized the problem is that i wasnt telling the linker where these libs are via additional library directories in Linker --> General
THANK YOU SO MUCH MAN! YOU ARE COMPARABLE TO GOD TO ME! I DON'T KNOW WHAT THING IN THIS VIDEO AFFECTED MY CODE BUT I'M NOT GETTING ACCESS VIOLATION ERRORS FROM GLGENBUFFERS() ANYMORE! :)
Well, that's not the subject of the video but, I have got a GPU NVidia Geforce GTX 970 and, it supports 4.4 OpenGL, unfortunately, I want to use OpenGL 4.5 and don't know if it is possible to update this and if it is how to do it. Thanks
I followed the video step by step however when i try to run any code, an error window pops up saying: "The system cannot find the file specified", any help/tips? im on visual studio 2019, and yes I did choose the 2019 lib
I keep getting this error? Error LNK1104 cannot open file 'glew32s.lib' OpenGlFirst C:\Users\simso\source epos\OpenGlFirst\OpenGlFirst\LINK 1 If I remove glew32s completely then it keeps reporting that I cant LINK2019. Can you help me with this?
I kinda get it to run, but it can only run if I linked directly to my folder. If I use $(SolutionDir) it would not work for linking library. $(Solutiondir) would work for my include however, so right now what I have is directly linking library and relatively linking include.
I got it to work now with some online searching. Do you do personal teaching for a reasonable price? I am trying to do something very specific for my classes (on Zoom or something like that?)
Hello, i have gone over this videos 4 times and every time i get the same error that #include doesn't work and can't be opened. the same with GLFW can you please help?
I haven't written a single line of code and already want to cry
LOL
Any questions feel free to post on Discord discord.gg/Qn4tSPD
I FEEL YOUR PAIN
Thanks from Russia. The teacher at our university decided that he would conduct classes only under Linux and would explain what and how to do also only for Linux users. For several hours I was looking for a tutorial for Windows and a visual studio. I started thinking about installing Linux as a second system ...
Fortunately, I found your video and figured everything out. You explained everything very well. Also, your speech is very clear, which makes automatic translators very good at translating you.
Good to hear it helped. Enjoy the rest of the series.
three hours trying to set openGL, and nothing helped except for your video, very much appreciated
Glad it helped
Any questions feel free to post on Discord discord.gg/Qn4tSPD
man i watched the cherno tutorial and i ever thought that i needed the opengl32.lib file... i hate it when people just say "do this do that" and doesnt explain, your video actually helped me thank you.
The only video I’ve found that actually gave a vivid explanation and tutorial
😃
Any questions feel free to post on Discord discord.gg/Qn4tSPD
Thanks a lot. You just saved me.I stupidly spent the entire day but could not figure out where the fuck i was going wrong. Lot of respect for you man.
Awesome to hear it helped
Thank you! for hours trying to set OpenGl on VS. You save me
You're welcome!
Any questions feel free to post on Discord discord.gg/Qn4tSPD
THANK YOU YOU SAVED ME MAN I TRIED TO DO THIS FOR LIKE 2 HOURS AND YOU FINALY NAILED IT !!
Glad I could help
Any questions feel free to post on Discord discord.gg/Qn4tSPD
Mate, i never comment on youtube, but this time i must say, you are a real MVP. Thank you so much !!
YAY :D
Followed everything step by step but when I start writing the code both
and cannot be found. I did everything the exact way you did I am so confused why this is happening...
Make sure the correct folders are linked
Any questions feel free to post on Discord discord.gg/Qn4tSPD
I don't know how many of these blasted OpenGL setup tutorials I've sat through, but yours is the first one that has actually granted payoff.
Thank you!
One question though: is there an easy way to turn this into a project template?
Great to hear these tutorials helped you.
For a project template its really simple. Setup the project as I did in this video, then keep that project folder as a base template, simply copy and paste that root folder for new projects.
Let me know if you have anymore questions, you can post them on my education website sonarlearning.co.uk
jfturle's experience is my experience too! You don't know how great it is when you finally see that window open!! Thanks for this great tutorial!
@@SonarSystemsCoUk i tried that approach for project templates but the problem is that the sln is still connected to the original project so if you have consoleapp and you copy it the consoleappcopy the interior sln still both point the consoleapp's sln solution so if you edit the copy you are are also editing the base consoleapp's main.cpp
@@tx6723 Did you follow all the steps
This helped so much! I've seen so many other videos on this topic but none of them helped me link these libraries to visual studios and get it to work properly.
Awesome to hear this helped
Excellent video. Clear. Informative. The perfect example of a Step-by-Step tutorial. OpenGL setup is important and often complicated, this video helped set up and configure OpenGL.
Glad it was helpful!
Any questions feel free to post on Discord (discord.gg/Qn4tSPD) or sonarlearning.co.uk/
I've been trying for 3 days now and you saved me. Thank you so much for the content!!!
hhhhh same man.it's so frustrating.
:D
@@sahbikardi7801 :D
yo mate thanks for this video , i was stuck with glfw installation for 3 days and ye saved me,Gracias👏👏
Great to hear it helped
Any questions feel free to post on Discord discord.gg/Qn4tSPD
Man you saved my life, thank you so much for making this video!!
Glad it helped!
Any questions feel free to post on Discord discord.gg/Qn4tSPD
I've donne this a million times but I alway forget it
Happens to us all
incredibly informative, thanks
Good to hear
I spent 4 hours trying to do that, you saved me thank you :DD
😁
Any questions feel free to post on Discord discord.gg/Qn4tSPD
me i spent 3 weeks for just that
Thank u so much bro i'm hope u're happy now
:)
Any questions feel free to post on Discord discord.gg/Qn4tSPD
for anyone in the future that can't find the code. Here #include
//Glew
#define GLEW_STATIC
#include
//GLFW
#include
//window dims
const GLint WIDTH = 800, HEIGHT = 600;
int main() {
//Init GLFW
glfwInit();
//SEt required options for GLFW
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
glfwWindowHint(GLFW_RESIZABLE, GL_FALSE);
//Create a GLFWwindow object that we can use for glfw's functions
GLFWwindow* window = glfwCreateWindow(WIDTH, HEIGHT, "OpenGlLearn", nullptr, nullptr);
int screenWidth, screenHeight;
glfwGetFramebufferSize(window, &screenWidth, &screenHeight);
if (nullptr == window) {
std::cout
It worked! Thank you! I finally learn how to get my 1st OpenGL started!
:D
thank you so much, GLFW program worked like a gem.......i'm using VS2012 in win7.......:)
:D
Hi, my VS 2019 can't load and . I have followed everything in the tutorial. I'm using the x64 version
same here...
What happens, any errors?
Any questions feel free to post on Discord discord.gg/Qn4tSPD
Sir, you saved my life. God bless you !
Happy to help
Any questions feel free to post on Discord (discord.gg/Qn4tSPD) or sonarlearning.co.uk/
Thank you so much i spent 2 hour trying to setup OpenGL
You are welcome.
Please post all your future questions on my website sonarlearning.co.uk
GOD BLESS YOU AND MAY YOU LIVE A HAPPY LIFE. - coder from india.
Thank you
love u bro,it worked
Great Work. I look forward to the next opengl tutorial.
So do I :D
If you have any queries in the future feel free to post them on our education platform sonarlearning.co.uk
Hello, Can you please make an updated version bc i am getting confused with the Visual Code Studio 2017
if so thanks. :)
nice video, thanks for the tutorial
Great to hear you found it useful
the code you are using are deffer from the link you provided
i got some error.. it says can't open file glew32s.lib can u help me sir..?
When does this occur?
@@SonarSystemsCoUk i have the same error. It occurs when i compile source code
@@mistersmith6752 Did you try the code from the GitHub page?
Very good and helpful video, thanks!
Your welcome.
If you have any questions feel free to post them on our education platform sonarlearning.co.uk
why i cant find glew32.dll file after applying?
What happens?
Any questions feel free to post on Discord (discord.gg/Qn4tSPD) or sonarlearning.co.uk/
Are there any IDEs that already that this built in?
OpenGL?
Any questions feel free to post on Discord discord.gg/Qn4tSPD
How would I get the source code for the main.cpp file. Looked through your GitHub briefly and could not see it there. Thank you for the tutorial btw
github.com/SonarSystems/Modern-OpenGL-Tutorials/blob/master/%5BSETUP%5D/GLFW/Windows/Relative%20Linking/GLApp/GLApp/main.cpp
thanks a ton!
Glad it helped!
Any questions feel free to post on Discord discord.gg/Qn4tSPD
Great video, useful resources
Thank you.
Sign up to my website sonarlearning.co.uk for more exclusive content.
Hi, video is so useful and window is opening, but when i run code from video i cant pass the second if (GLEW_OK != glewInit) its normal or i need to repair this?
Have you tried the code from the GitHub page?
Hi,
I followed your tutorial but I keep seeing this error "LNK2019: unresolved external symbol __imp_glewInit referenced in function main"
I double checked all but it seems right. Can you give me some advice?
Have you tried the code from the GitHub page?
Any questions feel free to post on Discord (discord.gg/Qn4tSPD) or sonarlearning.co.uk/
@@SonarSystemsCoUk sorry I didn't update my comment. I managed to make it work. On "Linker -> input" I needed "glew32.lib" instead of "glew32s.lib". I did not try your code because I had to solve my teacher's code for my homework. Thank you for your video. Now I know how to make the setup alone and it is really easy in comparison to other methods. Have a good day!
Thank you for the great tutorial!I did everything exactly like you explained.Nevertheless, I get the linker error LNK1104.The debugger tells me that the file "C:\OpenGL\OpenGLRoot\OpenGLTutorial\Debug\OpenGLTutorial.exe" could not be opened. I checked the specified path and, indeed, there is no exe-file.
What may be my problem?Best regards,Johannes
At which stage does this error occur.
Already in line 1 when debugging
??
Today I built everything again and now it works!! :)I have no idea what my problem was …Nevertheless, thanks for the support!Your tutorials are the best ones!
Great to hear it is working.
If you have anymore questions feel free to post them on sonarlearning.co.uk
Thanks for the this tutorial. As I followed the same way for x64 bit, my include libraries are included in external dependencies. How to resolve this problem?
Error as "cannot include file: GL/glew.h": No such file directory.
Which version are you building?
@@SonarSystemsCoUk hi ...visual studio 2017...
@@rajurambha4611 I mean debug/release and is it 32bit/64bit
@@SonarSystemsCoUk Debug / 32 bit. I am also getting the same error
@@sourabhindian1 What version of the frameworks
Thanks a lot, very useful
:D
Why there is an error in my "EXIT_FAILURE" and "EXIT_SUCCESS"?
What is the error?
I an getting "Source Not Available Source information is missing from the debug information for this module" error message. This happens after linking. What am I doing wrong?
What version of everything are you using?
VS2017. Windows 7, glew version as of Jul 10,2018, glfw version as of Jul 10,2018.intel(R)HD Graphics(Corei3). Is this due to graphics card?
It could be, what laptop/computer are you using?
I've been having this issue with SFML and even by following this tutorial every step of the way. 72-99 errors mostly it says that "identifier undefined xvariable" there is clearly some compatibility issue or linker issue going on etc no idea what is wrong. Any idea whats going on?
Ok, My path was a bit different, $(SolutionDir)/../GLEW/lib/Release/Win32 this worked for me. Thanks for the tutorial!
Great to hear you resolved it.
If you have anymore questions feel free to post them on my education website sonarlearning.co.uk
Cannot open source file "GL/glew.h"
any help
What version of everything are you using?
thanks a lot man, you save me
No problemo :D
Thank you for this great content I like your sound it is easy to hear and clearly understand
Good to hear this video helped.
If you have any questions feel free to post them on our education platform sonarlearning.co.uk
You actually did not show how to run OpenGL 3.0. Just 3.3
Instead of coping glew32.dll file manually to output directories, you could also use post build event.
Ah thanks for sharing
sir ,GLFW site is not opening,do u have any alternatines
What happens?
i get 2 cannot open fonte file "GL/glu.h" and cannot open fonte file "GL/gl.h what i do?
We aren't using glu, are you using the same frameworks?
this is completely not working for me I don't know why?
What happens?
Any questions feel free to post on Discord discord.gg/Qn4tSPD
Possible problem: check the lib-vc20XX folder path. If you can't find lib directories you should download "Windows pre-compiled binaries" from www.glfw.org/download.html
Thanks for sharing
Any questions feel free to post on Discord discord.gg/Qn4tSPD
Thank you so much sir! You're the best! ^_^
Your welcome.
If you have any questions feel free to post them on my website sonarlearning.co.uk
Where did he get the code at the end he pasted into his cpp main file?
There is a link in the description to the GitHub page?
Any idea where is the source code for the script being used is?
Which script?
@@SonarSystemsCoUk I mean the code that you have used in the end to create the window. I wasn't able to download the code from git hub. I'm new at programming so please excuse me for the ignorance
@@anantj18 What happened when you tried to download the code?
In Vosual Studio when i click new project i don't have voisual c++
Can you show me an image of what it looks like, you can post it on our education platform sonarlearning.co.uk
sa-ti traiasca familia
But what about non-console application?
Here's solution: instead of int main() use:
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
and set SubSystem to Windows(/SUBSYSTEM:WINDOWS) in Project properties/Linker/System
Really thanks!
Your welcome.
If you have any questions feel free to post them on our website sonarlearning.co.uk
THANK YOU SO MUCH
THANK YOU SO MUCH
THANK YOU SO MUCH
Your welcome.
hello. I have errors like
unresolved external symbol _glfwInit
unresolved external symbol glfwTerminate
.
.
.
Maybe someone can help? :)
When do these occur?
If you are using 64 bit binary GLFW try 32 bit binary (www.glfw.org/download.html). It might help.
I have no idea why im getting this error and wonder if anyone has gotten this LINK : fatal error LNK1104: cannot open file 'freeglutd.lib' for a project i need free glut do you have a tutorial about using freeglut
EDIT NVM i realized the problem is that i wasnt telling the linker where these libs are via additional library directories in Linker --> General
Great to hear you solved it.
Feel free to post anymore questions on my website sonarlearning.co.uk
thank you ♥
:D
thank you so much!
Your welcome.
If you have any questions feel free to post them on my website sonarlearning.co.uk
very hard to follow this tutorial;
What problems are you having?
Any questions feel free to post on Discord discord.gg/Qn4tSPD
how to get the source code im lost in Github
What folder/location did you get to?
Will this OpenGL work for games?
It will allow you to develop games
THANK YOU SO MUCH MAN! YOU ARE COMPARABLE TO GOD TO ME! I DON'T KNOW WHAT THING IN THIS VIDEO AFFECTED MY CODE BUT I'M NOT GETTING ACCESS VIOLATION ERRORS FROM GLGENBUFFERS() ANYMORE! :)
:D
Well, that's not the subject of the video but, I have got a GPU NVidia Geforce GTX 970 and, it supports 4.4 OpenGL, unfortunately, I want to use OpenGL 4.5 and don't know if it is possible to update this and if it is how to do it. Thanks
With the latest NVIDIA drivers it will be fine.
Okay thanks
Your welcome.
If you have any questions feel free to post them on our free education platform sonarlearning.co.uk
very clear
Thank you :D
If you have any questions feel free to post them on sonarlearning.co.uk
I followed this tutorial exactly, and it doesn't work for me.
What happens?
after 12 minutes.. we can start coding xd
LOL
Good things come to those that wait LMFAO
bro its for 64 bit
Does it not work for you?
Any questions feel free to post on Discord (discord.gg/Qn4tSPD) or sonarlearning.co.uk/
Ein fertiges Project zum Downloaden wäre besser als das in 15 min es zu erklären. Aber mansche Leute haben lange weile!!
?
where's the code???????
github.com/SonarSystems/Modern-OpenGL-Tutorials
@@SonarSystemsCoUk I Downloaded the file but no code
@@saeedi53545 What file?
@@SonarSystemsCoUk the file in the link
@@saeedi53545 Which one?
why cant I get code
Where are you looking for the code?
Idk
There is a link in the description?
Where is the code
github.com/SonarSystems/Modern-OpenGL-Tutorials
If you have anymore questions feel free to post them on my website sonarlearning.co.uk
@@SonarSystemsCoUk Copy all the code and paste to Visual Studio?Or download all the files?
@@wong3341 Yes
Either
Glew es norteño
?
i hate how lazy this video is.
:(
Thank you very very much!!!
Thank you!
;)
I followed the video step by step however when i try to run any code, an error window pops up saying: "The system cannot find the file specified", any help/tips? im on visual studio 2019, and yes I did choose the 2019 lib
Have you tried the code from the GitHub page?
Any questions feel free to post on Discord discord.gg/Qn4tSPD
I keep getting this error?
Error LNK1104 cannot open file 'glew32s.lib' OpenGlFirst C:\Users\simso\source
epos\OpenGlFirst\OpenGlFirst\LINK 1
If I remove glew32s completely then it keeps reporting that I cant LINK2019.
Can you help me with this?
What version are you using?
@@SonarSystemsCoUk vs2019
also I want to know if you have any video on representing multiple dimensional data into 2D data? Much appreciated
I kinda get it to run, but it can only run if I linked directly to my folder. If I use $(SolutionDir) it would not work for linking library. $(Solutiondir) would work for my include however, so right now what I have is directly linking library and relatively linking include.
I got it to work now with some online searching. Do you do personal teaching for a reasonable price? I am trying to do something very specific for my classes (on Zoom or something like that?)
will this work on other platforms?
Which other platforms did you have in mind?
@@SonarSystemsCoUk Linux and Mac
@@SonarSystemsCoUk I'm pretty sure this won't, as an empty Visual Studio project template will only be a windows specific project.
Hello, i have gone over this videos 4 times and every time i get the same error that #include doesn't work and can't be opened. the same with GLFW can you please help?
What version are you using?
I managed to fix it a little while ago, i put the project in a project folder so i needed to step the file path back twice instead of just once
@@cypher3817 Awesome
@@cypher3817 Awesome