Cmake/scons question

Cmake/scons question

Postby rogerdv » 30 Apr 2021, 16:34

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?
User avatar
rogerdv
 
Posts: 289
Joined: 10 Dec 2009, 18:26

Re: Cmake/scons question

Postby O01eg » 30 Apr 2021, 17:48

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.
Public FreeOrion multiplayer server: https://freeorion-test.dedyn.io/
Slow paced multiplayer server (registration required!): https://freeorion.org/forum/viewtopic.p ... 705#p95705
Donates for FreeOrion multiplayer improvements: BTC:bc1q04qnmql47zkha6p4edl86hm0wgk90dmsfnl3vl
O01eg
 
Posts: 68
Joined: 17 Sep 2012, 11:15
Location: Russia

Re: Cmake/scons question

Postby PeterX » 30 Apr 2021, 18:07

I can't find any info about a version 3 of SDL on the SDL homepage. Are you sure you mean SDL 3?
User avatar
PeterX
 
Posts: 270
Joined: 01 Oct 2020, 21:44

Re: Cmake/scons question

Postby rogerdv » 30 Apr 2021, 18:21

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.
User avatar
rogerdv
 
Posts: 289
Joined: 10 Dec 2009, 18:26

Re: Cmake/scons question

Postby rogerdv » 30 Apr 2021, 18:23

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.
User avatar
rogerdv
 
Posts: 289
Joined: 10 Dec 2009, 18:26

Re: Cmake/scons question

Postby O01eg » 30 Apr 2021, 18:40

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
Public FreeOrion multiplayer server: https://freeorion-test.dedyn.io/
Slow paced multiplayer server (registration required!): https://freeorion.org/forum/viewtopic.p ... 705#p95705
Donates for FreeOrion multiplayer improvements: BTC:bc1q04qnmql47zkha6p4edl86hm0wgk90dmsfnl3vl
O01eg
 
Posts: 68
Joined: 17 Sep 2012, 11:15
Location: Russia

Re: Cmake/scons question

Postby PeterX » 30 Apr 2021, 20:38

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
User avatar
PeterX
 
Posts: 270
Joined: 01 Oct 2020, 21:44

Re: Cmake/scons question

Postby rogerdv » 30 Apr 2021, 20:44

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.
User avatar
rogerdv
 
Posts: 289
Joined: 10 Dec 2009, 18:26

Re: Cmake/scons question

Postby PeterX » 30 Apr 2021, 20:59

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
User avatar
PeterX
 
Posts: 270
Joined: 01 Oct 2020, 21:44

Who is online

Users browsing this forum: No registered users and 1 guest

cron