Page 1 of 1

Cmake/scons question

PostPosted: 30 Apr 2021, 16:34
by rogerdv
I want to take some time to go to the basics, and follow some Vulkan tutorials in Linux to make my own Hello Traingle samples. But I need some help with building systems. My plans are to use SDL to keep the project portable, and use cmake or scons to compile. Can somebody give me a little sample about how to link Vulkan and SDL 3 with some of them?

Re: Cmake/scons question

PostPosted: 30 Apr 2021, 17:48
by O01eg
rogerdv {l Wrote}:I want to take some time to go to the basics, and follow some Vulkan tutorials in Linux to make my own Hello Traingle samples.


Vulkan is a very low-level API. Maybe it better to use some graphical engine on top of Vulkan API.

Re: Cmake/scons question

PostPosted: 30 Apr 2021, 18:07
by PeterX
I can't find any info about a version 3 of SDL on the SDL homepage. Are you sure you mean SDL 3?

Re: Cmake/scons question

PostPosted: 30 Apr 2021, 18:21
by rogerdv
PeterX {l Wrote}:I can't find any info about a version 3 of SDL on the SDL homepage. Are you sure you mean SDL 3?


Wow, many years without looking at it. I mean SDL 2.

Re: Cmake/scons question

PostPosted: 30 Apr 2021, 18:23
by rogerdv
O01eg {l Wrote}:
rogerdv {l Wrote}:I want to take some time to go to the basics, and follow some Vulkan tutorials in Linux to make my own Hello Traingle samples.


Vulkan is a very low-level API. Maybe it better to use some graphical engine on top of Vulkan API.


I dont plan to create a game with Vulkan, I sue Godot for my big projects. What I want is to learn the foundations.

Re: Cmake/scons question

PostPosted: 30 Apr 2021, 18:40
by O01eg
rogerdv {l Wrote}:I dont plan to create a game with Vulkan, I sue Godot for my big projects. What I want is to learn the foundations.


I suppose something like this then: https://github.com/Twinklebear/sdl2_vulkan

Re: Cmake/scons question

PostPosted: 30 Apr 2021, 20:38
by PeterX
Question 1:
rogerdv {l Wrote}:... how to link Vulkan and SDL 3 with some of them?


rogerdv {l Wrote}:I dont plan to create a game with Vulkan...


That confuses me. Do you want to use Vulkan or not?

Question 2: Have you used cmake or scons (which both are cool) before?

Question 3: Why don't you use make? Is your project so big already?

Geetings
Peter

Re: Cmake/scons question

PostPosted: 30 Apr 2021, 20:44
by rogerdv
PeterX {l Wrote}:Question 1:
rogerdv {l Wrote}:... how to link Vulkan and SDL 3 with some of them?


rogerdv {l Wrote}:I dont plan to create a game with Vulkan...


That confuses me. Do you want to use Vulkan or not?

Question 2: Have you used cmake or scons (which both are cool) before?

Question 3: Why don't you use make? Is your project so big already?

Geetings
Peter


I want to learn the basics of Vulkan (and also Diorect). I dont plan to develop large scale projects with it. For that we have Godot.
Yes, I ahve used cmake and scons, but was 3-4 years ago and very little. Never underestood them properly.
The project will be probably a cpp and it .h file, maybe a makefile would be enough, but I wanted to do it in a more professional way.

Re: Cmake/scons question

PostPosted: 30 Apr 2021, 20:59
by PeterX
Ah, now I understand a bit better what you are planning.

There are Vulkan tutorials around. For example: https://vulkan-tutorial.com I don't know if that is helpful for you.

I would recommend using only make because you already have to learn Vulkan and SDL. (By the way: I don't know how well Vulkan and SDL work together. OpenGL and SDL work together, so Vulkan probably, too.)

Maybe a good book on that topic would be useful.

Greetings
Peter