meson-build Questions
3
I've encountered some projects which uses meson to organize their building system. But when I want to debug their building system, I found it's difficult.
The most important task is observing the b...
Mutilate asked 10/3, 2021 at 6:55
3
Solved
Here is my project structure:
.
├── include
├── src
│ ├── abc
│ │ ├── include
│ │ └── src
│ ├── def
│ │ ├── include
│ │ └── src
│ └── ghi
│ ├── include
│ └── src
└── ven...
Byerly asked 11/3, 2019 at 17:33
2
Solved
My application uses a Glade file and also cached data in a JSON file. When I do the following, everything works okay as long as the user installs the application with ninja install
#Install cache...
Contrayerva asked 8/4, 2020 at 14:23
2
Solved
I want to pass "-DDEBUG" to the C++ compiler when the build type starts with "debug", something like this:
if meson.build_type().starts_with('debug')
add_global_arguments('-DDEBUG', language : 'c...
Jerriejerrilee asked 12/5, 2017 at 23:20
3
Solved
I'm trying to build a c++ project with Meson.
The thing is, I have some libraries under /opt/conda
but can't figure out how to link the project when running meson build.
It seems to be only search...
Diamante asked 6/4, 2020 at 11:27
1
When I try to run Meson, It complains that it can't find Ninja v1.8.2 or newer. I ran this:
meson build-debug
This resulted in the error explained above. I have the latest tools:
Ninja v1.10.2
Mes...
Nance asked 3/3, 2022 at 1:16
2
Solved
I am new to Meson so please forgive me if this is a stupid question.
Simple Version of the Question:
I want to be able to assign a dynamic version number to the meson project version at build time....
Informed asked 5/12, 2019 at 18:24
1
I use meson 0.53.2 on ubuntu 20.04.
I would like to have a maximally optimized executable (-Ofast) but contain all debug symbols (-g3)
If I use --buildtype=release it optimizes -O2 and the executa...
Aerogram asked 11/11, 2020 at 21:2
4
Is it possible to glob source code files in a meson build?
Age asked 23/12, 2015 at 18:30
0
I checked out a gtk project inside a docker and during meson build found many dependencies are missing eg. libwayland-dev, libxrandr-dev...
Because meson fails at the first missing dependency, I ha...
Likeness asked 10/7, 2021 at 8:10
3
Solved
Is it possible for Meson to read the contents of a file into an array or a string? From here a string can be split into an array, and an array can be looped over with foreach, but I haven't been ab...
Rale asked 8/11, 2017 at 8:27
1
In meson build system, I want to get the include directories from a dependency:
Simple example meson.build, using wxWidgets dependecy as example:
project('project1', ['cpp'])
wxdep = dependency(...
Vick asked 26/3, 2020 at 9:41
1
Solved
I'm trying to configure a project with meson. Specifically, I'm trying to set some of the options.
meson config tells me, among other things:
Core options:
Option Current Value Possible Values Des...
Breeches asked 23/8, 2020 at 16:21
1
Solved
I have a project that needs to be built like this:
./meson.py build
./ninja -C build install
This works well. The only thing is: the binaries are stored in (on Linux): /usr/local/bin. This woul...
Humanist asked 19/6, 2020 at 17:1
3
Solved
For my Meson project I have a dependency that is in an "unusual" place:
/opt/MyDependence/lib/libmyLib.so
/opt/MyDependence/include/myLib.hpp
My meson file is:
project('Test', ['cpp'])
cpp = m...
Pinkiepinkish asked 16/1, 2020 at 12:42
2
How can I do in meson to run a command after building a target?
Eg. I have an executable:
executable('target.elf', 'source1.c', 'source2.c')
And after target.elf built I want to execute a comman...
Animated asked 6/1, 2020 at 23:40
2
Solved
My project (in C) has a third party dependency at build time. But the third party library is, by default, installed to /opt/ instead of /lib, and I cannot find it in pkg-config. From mesonbuild's d...
Rett asked 30/10, 2017 at 7:56
1
I am attempting to build an application using meson, Gnome PasswordSafe. I have successfully built it on Arch, but have since moved to PureOS (Debian).
When running:
$ meson . _build --prefix=/...
Oira asked 1/8, 2019 at 19:59
1
I have recently started learning meson and I am testing switching to it (from CMake) in one of my projects. The problem is that I usually use cpack to build the project's packages/installers, and a...
Eisegesis asked 2/2, 2020 at 15:11
2
Solved
I have a git repository with some test code in C++ and I want to use Googletest to write some tests. I used git submodule to get it as part of the above repository. I want to use meson as the build...
Firstborn asked 13/8, 2019 at 7:52
1
Solved
I am trying to configure my project to build with LLVM/clang++, however GCC is always picked:
$ /opt/llvm/clang+llvm-7.0.1-x86_64-linux-gnu-ubuntu-18.04/bin/clang++ --version
clang version 7.0.1 (...
Phosphorylase asked 13/2, 2019 at 18:50
1
Solved
Having read the Meson site pages (which are generally high quality), I'm still unsure about the intended best practice to handle different options for different buildtypes.
So to specify a debug b...
Jerusalem asked 22/11, 2018 at 5:36
0
I have a C++ application where I am using zero-arguments-variadic macros. However, I don't really like the standard conforming solution posted here on SO in various answers, but rather keep the GCC...
Renin asked 20/6, 2018 at 19:26
2
Solved
From Linux, I'm using Meson (0.44.0) within Gnome Builder (3.26.4) for a console program that will use Gee and GXml. My intent is to write this in Genie.
When I use Meson within Gnome Builder it f...
Dandify asked 20/2, 2018 at 8:38
2
I normally use Qt creator with cmake to program C++ projects. Lately I read quite a bit about meson and it's simplicity and I like to test it. This example explains how to setup meson.
When using ...
Burnsides asked 4/5, 2017 at 20:24
1 Next >
© 2022 - 2024 — McMap. All rights reserved.