Setup Vulkan With GLFW On Linux Using Make - Vulkan Graphics/Games Programming

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 21

  • @pennyblack6346
    @pennyblack6346 2 года назад +3

    Normally I don't like to post online, but I'll have to say something here:
    The tutorial was spot on, save for one snag in the Makefile section. For some reason, after typing "make" in the terminal, I receive a few errors. This is the output:
    g++ -std=c++17 -O2 -o VulkanTest main.cpp -lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi
    /usr/bin/ld: cannot find -lXxf86vm
    /usr/bin/ld: cannot find -lXi
    collect2: error: ld returned 1 exit status
    make: *** [Makefile:4: VulkanTest] Error 1
    However, after removing "-lXxf86vm" and "-lXi", then trying "make" again actually works. I have also managed to make the Vulkan window pop up, after using "make test".
    Question is, do I continue without "-lXxf86vm" and "-lXi"? What are they needed for?

    • @fsrtsv5681
      @fsrtsv5681 2 года назад +2

      sudo apt-get install libxi-dev

    • @DidIJustDoThat
      @DidIJustDoThat Год назад

      I have same problem

    • @cprn.
      @cprn. Год назад

      For anyone still following this I strongly advice to set as few `LDFLAGS` as possible and add them only when needed (e.g. you use a Vulkan functionality that needs a library). Also installing some of those libraries system-wide is silly, you should have them in `vendor` directory in your project.

  • @charlesk5138
    @charlesk5138 2 года назад +1

    Dude, thank you for these videos! You have a subscriber.
    I think that due to a combination of the following...
    - Microsoft flubbing the release of windows 11 (seriously, I was like f this with the TPM news wayyyy before release)
    - Ubuntu distros like Pop_OS are freaking cool
    - Vulkan is new and sexy and I can't find a mainstream game engine made with it yet (although there are a few titles)
    ... these tutorials are going to get hugely significant. I love that someone is making them. I hope this video gets 100k views by next year!
    Much appreciation! Can you make a patreon like other youtubers do? I don't like supporting paypal.
    Thanks!
    #vulkan #opengl #sonarsystems #snrsys

    • @SonarSystemsCoUk
      @SonarSystemsCoUk  2 года назад

      I have thought about making a patron, not sure if I would get much but I'll reconsider it.
      Any questions feel free to post on Discord discord.gg/Qn4tSPD

  • @fijj9481
    @fijj9481 3 года назад +2

    how do i get the thing in the text editor

  • @randospawn7495
    @randospawn7495 4 месяца назад

    Hey dude I think ya got the clean bit wrong and it caused me a bit of pain trying to figure this stuff out. I did learn make on the bright side though...

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 3 года назад +1

    thanks mate

    • @SonarSystemsCoUk
      @SonarSystemsCoUk  3 года назад

      No worries
      Any questions feel free to post on Discord discord.gg/Qn4tSPD

  • @StudioExit13
    @StudioExit13 2 года назад

    Thank you for this tutorial. I have a question... any idea why my vulkan test window is not filled with black color, but instead with the desktop background? 😆

    • @StudioExit13
      @StudioExit13 2 года назад +1

      @FyreWolf99 Ah... Thanks for your reply :) I understand :) Was getting nervous because beforehand i hat to install new gfx drivers, and wondered, if there was a problem or bug. uh, i'm glad to read your post. thank you

  • @randospawn7495
    @randospawn7495 4 месяца назад

    The 4 gig download was worry filled dude

  • @EdWard-cv5gc
    @EdWard-cv5gc 3 года назад +1

    Can I follow this for OpenGL as well?

    • @SonarSystemsCoUk
      @SonarSystemsCoUk  3 года назад +1

      Yes the process is similar
      Any questions feel free to post on Discord discord.gg/Qn4tSPD

  • @scam_boy1
    @scam_boy1 11 месяцев назад

    it saying ./VulkanTest permission denied pls help

    • @anasdhfraw
      @anasdhfraw 2 месяца назад

      use sudo, and don't scam people little scam boy.

  • @verdell2x246
    @verdell2x246 2 года назад

    Hey everyone I recieved the folllowing error after typing in make... Im assuming I just have to add those files to /usr/bin.Id but I don't know because i didnt do it to the other files
    g++ -std=c++17 -O2 -o VulkanTest main.cpp -lglfw -lvulkan -ldl -lpthread -lx11 -lXxf86vm -lXrandr -lXi
    /usr/bin/ld: cannot find -lglfw
    /usr/bin/ld: cannot find -lx11
    collect2: error: ld returned 1 exit status
    make: *** [Makefile:4: VulkanTest] Error 1