A proper multi-platform tutorial for CMake #1316
Replies: 4 comments 10 replies
-
It turns out I wrote the original page you linked to (which I don't remember doing...) so I have added some more info on CMake for you. Hope it helps! To be honest I absolutely hate CMake, I find it unhelpful and irritatingly inconsistent which means I am probably not the best person to advise |
Beta Was this translation helpful? Give feedback.
-
I have an example CMake that should be cross-platform, and it also is an example of how to build with emscripten. Hopefully it helps. |
Beta Was this translation helpful? Give feedback.
-
hmmm... i'm the opposite. i'm on linux and i just want to know how to use cmake to install allegro5 and all the addons on linux. (preferably without all the other stuff for other systems). it's really confusing. i had allegro5 and most the addons installed and working before but i was going crazy trying to get the addons i was missing to work. i uninstalled everything and have been taking a break, just studying general cmake and shell stuff for a couple days now. i'm almost scared to try and install again. lol |
Beta Was this translation helpful? Give feedback.
-
k, any particular graphical property editor? i'm on a old laptop with no
gpu.
…On Sat, Dec 21, 2024 at 11:34 AM Zorro ***@***.***> wrote:
cmake on linux is the easiest because the real steps are done by
installing the addons with your package manager. Once that is done then you
use cmake to build the make files for allegro. Use ccmake on linux to get a
graphical property editor for allegro's cmake file.
—
Reply to this email directly, view it on GitHub
<#1316 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BNW4G32KGXDGK62UDAK45SL2GWYELAVCNFSM6AAAAABTV324TOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRTHA4TQMY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I've been trying to do Cmake stuff for a long while now. Cmake is the way to easily compile for multiple platforms, right? A well done Cmakelists should be like plug and play on many platforms.
Allegro already has some Cmake stuff going on, but there's too little tutorials about how to do stuff (it is on TO DO here actually, "actually easier", but how exactly?). I got it compiling the basic stuff after 5+ tries and I'm still confused how to add the addons and so on. I've found an old tutorial here and that kinda works, but it was not easy finding it. I don't know if it's up to date enough, what I should do, and so on. Some tests seems to just "FAIL" on build, and again, I'm kinda lost here.
One great thing is that there's some pre-built stuff, like the nuget package for Visual Studio. That's awesome, but platform specific. Visual Studio has project-based "projects" while on Linux we do more folder-based or Cmake projects, something like that. At least I do. I can't just copy and paste on Linux and run, that's why it's good for learning about Allegro, but not long term (if you want multi-platform, of course).
Is there some kind of step by step or something to get Allegro working with Cmake? I'm thinking about a way to just "git clone" and run, or minimal steps, because it would be nice for anyone just adding as submodule and making stuff right away.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions