Setting up an OpenGL Project in Ubuntu [VSCode, GLFW, GLAD, CMake]

แชร์
ฝัง

ความคิดเห็น • 41

  • @tweetyguy7347
    @tweetyguy7347 10 หลายเดือนก่อน +11

    Thanks I got this working on a chromebook 💀

  • @commandprompt7171
    @commandprompt7171 5 หลายเดือนก่อน +3

    Thank you so much, I was having trouble at using glfw, and I was relying on glut, I also learned how to use Cmake, I didn't know how useful was

  • @matthewexline6589
    @matthewexline6589 5 หลายเดือนก่อน

    Very awesome and helpful video, thank you! Also I love the sense of humor that's constantly being injected into the video 👍🏻

  • @bandaloo7776
    @bandaloo7776 ปีที่แล้ว +3

    this is the friendliest and most concise video on the subject! thank you so much

  • @mohsenalbo5533
    @mohsenalbo5533 ปีที่แล้ว +4

    The amount of appreciation that i have for your content is unimaginable, thank you so much for the videos I can't recall anybody else doing the same as you at the same level of quality, also do you mind creating a roadmap for game development? I want to see it from your view

    • @GetIntoGameDev
      @GetIntoGameDev  ปีที่แล้ว +2

      Thankyou, I really appreciate it! A roadmap sounds fun, I'll think about it and see what I can put together. Thanks again!

  • @ianjones1968
    @ianjones1968 21 วันที่ผ่านมา

    Excellent tutorial. Got me up and running on Mint. Had to "apt install cmake" separately and a VS Code restart to get the cmake tools working

  • @cristianlanga7941
    @cristianlanga7941 ปีที่แล้ว +2

    I dont understand anything of what u did but it worked for me so thank alot

  • @user-ni9tf5yr6m
    @user-ni9tf5yr6m 11 หลายเดือนก่อน +1

    I like what you`re doing so much. You fulfill my perfectionist`s needs of creating programs launched by one command. Thank you
    It`d ideal to make cross-platform config for OpenGL 🤯

  • @nxt6341
    @nxt6341 2 หลายเดือนก่อน

    Thank you, was almost gave up on trying to learn opengl alltogether

  • @daerlnaxe
    @daerlnaxe 8 หลายเดือนก่อน

    Thanks a lot !

  • @shardulnsiddhesh
    @shardulnsiddhesh 3 หลายเดือนก่อน

    Excellent video! Thanks a lot!

  • @ssj5omar
    @ssj5omar 11 หลายเดือนก่อน

    Excellent video!

  • @pcsatish
    @pcsatish ปีที่แล้ว

    Thanks for covering the path less trodden! 👍

    • @GetIntoGameDev
      @GetIntoGameDev  ปีที่แล้ว +1

      Thanks! When I get working on my C++ OpenGL series I'll be supporting it in all operating systems, so this will definitely be making another appearance.

    • @pcsatish
      @pcsatish ปีที่แล้ว

      @@GetIntoGameDev Looking forward to it!

  • @inkiralet-yt
    @inkiralet-yt 2 หลายเดือนก่อน

    I spent the last few hours making mistakes until I found this video.

  • @SkyFly19853
    @SkyFly19853 ปีที่แล้ว +2

    You mean getting along with the Penguin?... 😏

  • @philtoa334
    @philtoa334 ปีที่แล้ว +1

    Nice .

  • @sammaazani2553
    @sammaazani2553 ปีที่แล้ว +1

    Thank you very much, I have been trying to set up a project on my linux laptop for months and had never succeeded. The only solution I had found was to install a virtual machine with windows 7... Anyway small point, on fedora I had an error due to glad, I solved it by changing in the glad.c file "#include

    • @GetIntoGameDev
      @GetIntoGameDev  ปีที่แล้ว +2

      Thanks! It definitely is frustrating sometimes, I can’t count the number of times I gave up on projects 🤣

  • @stevemcwinboi914
    @stevemcwinboi914 6 หลายเดือนก่อน

    If you are having the #include issue: if you've put the glad.h file and the glad.c file in the same directory, rewrite the #include to #include "glad.h" and that should fix it.

    • @GetIntoGameDev
      @GetIntoGameDev  6 หลายเดือนก่อน

      That’ll work! Just be aware that it’s mixing third party code with your own code, undermining the point of having a dependencies folder, but I’ve done it in a few of my projects too.

  • @and_then_I_whispered
    @and_then_I_whispered ปีที่แล้ว

    I'm subscribing.

  • @dsl6653
    @dsl6653 ปีที่แล้ว

    Thank you!

  • @dman10001
    @dman10001 3 หลายเดือนก่อน

    How to create a camera circuit for video pass through on the Oculus quest 2

  • @soolydooly1234
    @soolydooly1234 9 หลายเดือนก่อน

    hi, where did you get the glad files?

    • @GetIntoGameDev
      @GetIntoGameDev  9 หลายเดือนก่อน

      They can be downloaded online via glad's generator site, or they should also be in my repo: github.com/amengede/OpenGL-for-Beginners

    • @soolydooly1234
      @soolydooly1234 9 หลายเดือนก่อน

      @@GetIntoGameDev Thanks!

  • @divyanshjain7999
    @divyanshjain7999 9 หลายเดือนก่อน

    I cant find the glad.h file?
    Ubuntu 20.04

    • @GetIntoGameDev
      @GetIntoGameDev  9 หลายเดือนก่อน

      Glad files should be freely available online, I also have them in various repos: github.com/amengede/OpenGL-for-Beginners/tree/main/week%201%20hello%20window/finished/dependencies

  • @Ab_Irato
    @Ab_Irato 4 หลายเดือนก่อน

    Well, there is something I am a bit confused about, do you still need to link OpenGL::GL once you use glad?

    • @GetIntoGameDev
      @GetIntoGameDev  4 หลายเดือนก่อน

      I believe OpenGL::GL is still required, as all glad does is fetch procedures. Having said that I may be wrong, try it out!

    • @Ab_Irato
      @Ab_Irato 4 หลายเดือนก่อน

      @@GetIntoGameDev Thanks for the response and the excellent video. Will try it out!

  • @asifurrahman7512
    @asifurrahman7512 5 หลายเดือนก่อน

    you have one mistake thats waste my 2 days time which is you make CMakeLists.txt file in my_project not in src 😑😑😑

    • @GetIntoGameDev
      @GetIntoGameDev  5 หลายเดือนก่อน

      It's not meant to be in the src folder though, the point of cmake is to keep the source code, third party dependencies and build folder all separate from one another. CMakeLists.txt is meant to sit in the project folder and manage them all.

  • @Areshk
    @Areshk ปีที่แล้ว

    Windows Tutorial PLS :c

    • @GetIntoGameDev
      @GetIntoGameDev  10 หลายเดือนก่อน

      My OpenGL with C++ series has an explanation of how to do it in its first video now!

  • @diamond32tutoriales49
    @diamond32tutoriales49 5 หลายเดือนก่อน

    I got the error #include I put this in my cmake target_include_directories(OLG2D PUBLIC src/Dependencys/includes/)
    but when running the program it says Segmentation fault (core dumped)
    edit: I already solved it, it was an error in my code
    #include
    int main(void)
    {
    GLFWwindow* window;
    if (!glfwInit())
    return -1;
    window = glfwCreateWindow(640, 480, "Hello World", NULL, NULL);
    if (!window)
    {
    glfwTerminate();
    return -1;
    }
    glfwMakeContextCurrent(window);
    while (!glfwWindowShouldClose(window))
    {
    glClearColor(0.8f, 0.25f, 0.25f, 0.25f);
    glClear(GL_COLOR_BUFFER_BIT);
    glfwSwapBuffers(window);
    glfwPollEvents();
    }
    glfwTerminate();
    return 0;
    }