Hacker News new | ask | show | jobs
by DarkCrusader2 867 days ago
For those wanting to try this out locally, you will need to fetch the git submodules after cloning. Other dependencies required to build are listed in the github workflow yaml definition.

Hope this saves someone some time as this is not mentioned in the readme. Cool project though.

2 comments

sounds like it needs CMake+vcpkg like in this example starter of mine: https://github.com/lionkor/cpp-project-template
Yup. But from my expirance cmake only becomes useful when you want to compile something on multiple os-es. I have not compiled brplot on windows or on mac. Makefile is written with linux as host os in mind.

It'd be cool to have cmake build option. So that you could create vs proj on windows, xcode proj on mac.

I don't know what to think about vcpkg.

Requirments are a pain. On different distributions they are located in different packages. I should install top 20 most used distributions and try to build on that distributin. That would be quite a fun process.
That's why I stick with Ubuntu (well Linux Mint actually). I have yet to run into a project or problem which didn't had instructions specifically for Ubuntu.

You can also explore building with Nix to be platform/distribution agnostic.

Isn't nix just for nixos?
Nope! I use Nix on macOS every day. I also use it on Ubuntu.

On Linux-based operating systems, you can even use `nix bundle` to create Docker images or fat binaries that end users can run without having Nix installed. (This relies on Linux user namespaces, which is why it's a Linux-only feature.)