Skip to content

Meson as build system#9

Open
cantordust wants to merge 8 commits intohierarchical-project-structurefrom
meson-as-build-system
Open

Meson as build system#9
cantordust wants to merge 8 commits intohierarchical-project-structurefrom
meson-as-build-system

Conversation

@cantordust
Copy link
Member

@cantordust cantordust commented Mar 17, 2026

Moved to Meson as the build system. This assumes that the new project structure is in place (see hierarchical-project-structure)

Closes #4

TODO
====

- Update `README.md` with instructions on how to compile the source with meson.
@JaroCamphuijsen JaroCamphuijsen changed the base branch from main to hierarchical-project-structure March 18, 2026 15:41
Copy link
Member

@JaroCamphuijsen JaroCamphuijsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cantordust this looks simple enough! I'm already a big fan of meson just through this single commit. A couple of thoughts:

  • I changed the base branch of this PR to the project structure branch, because it was actually branched off that one and had the same commit in there. I think it is better if we merge this into a single branch before merging to main.
  • Could you update the README with the new build instructions? The old ones (with code::blocks) can go, then I will also know how to test this new build system.
  • Since we are changing build system, we should also get rid of the old build system config files (which are these .cbp files that you put in the config directory). I would just remove them.

…le and run `corticalsim3D`:

	- Updated the instructions for installing dependencies on Windows (to be verified).
	- Added instructions on setting up and compiling `corticalsim3D`.
	- Added a Run section (to be updated).
Copy link
Member

@JaroCamphuijsen JaroCamphuijsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you change the following lines:

inputDir ./inputData
outputDir ./inputData

to

inputDir 	../corticalsim3D/data
outputDir 	../corticalsim3D/data

with the current setup instructions, the thing will actually run!

Copy link
Member

@JaroCamphuijsen JaroCamphuijsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Let's merge it and I'll continue reviewing the other PR.

@cantordust
Copy link
Member Author

cantordust commented Mar 19, 2026 via email

@eedeinum
Copy link

To compile, I needed to type (already using bash)
cd build
ninja corticalsim3d

so "ninja corticalsim3d" instead of "meson build" did the trick for me. (This depends on meson using ninja, which may differ per user)

Also, cmake is one of the dependencies for using meson on ubuntu, and the libboost-all-dev package is way larger than necessary. I used to run (2D) with less, but can't quickly reconstruct. Maybe the more basic libboost-dev is already sufficient?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to Meson

3 participants