Questions tagged [meson-build]

Meson is a build configuration system used to build C/C++, Java, Rust, Objective-C/C++, and Fortran projects. It uses a DSL to describe project targets. This tag is for questions about the meson build system and DSL syntax or usage.

Meson is a build configuration system used to build C/C++, Java, Rust, Objective-C/C++, and Fortran.

It is conceptually similar to MPC or CMake, and draws strengths from them as well as SCons, Autoconf.

Project targets are described using a non-Turing complete DSL. Despite being implemented in Python, no direct calls into Python are permitted, nor is any Python syntax directly supported. Strictly speaking, the Meson processor could be reimplemented in any language and would be able to handle the DSL without assistance from an embedded Python interpreter.

For more information about Meson, see their home page. To contribute, see their source code repository on github.com.

469 questions
0
votes
1 answer

How to configure meson for a debug build using -Og?

The universal options for meson gives me build types for debug (the default) with no optimizations, and an optimized debug which uses -02. How do I generate a debug build that uses -Og ?
JDługosz
  • 5,592
  • 3
  • 24
  • 45
0
votes
3 answers

meson-build: wxWidgets Resource file for Windows not building

I'm developing an application using wxWidgets for the UI. The project can target Windows and Linux, I'm using meson/ninja to build. Building in General works fine for both platforms, as long as I'm not using a Resource (.rc) file on Windows. When I…
XXXBold
  • 1
  • 3
0
votes
1 answer

crt1.o not found when cross compiling on fedora 31

I'm compiling mesa3d for my raspberry pi4. but I meet some error when running meson build. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum:…
Y.L
  • 69
  • 6
0
votes
1 answer

Why does the GNOME installation guide say to use "meson _build" for GLib 2.62.2?

I am attempting to build glib 2.62 on Ubuntu 18/amd64 from source. Per the GNOME installation guide -- Compiling the GLib package -- I am to use meson _build. Is '_build' the name of a build file or is it a placeholder for the submodule I am…
0
votes
1 answer

Meson equivalent of automake's CONFIG_STATUS_DEPENDENCIES?

I have a project whose build options are complicated enough that I have to run several external scripts during the configuration process. If these scripts, or the files that they read, are changed, then configuration needs to be re-run. Currently…
zwol
  • 135,547
  • 38
  • 252
  • 361
0
votes
1 answer

why does building gnome-seahorse on Linux Mint fail

I am running Mint 19.2 Seahorse is not my friend. The default version does not understand elliptic curves. The flaptpack version can not generate ssh keys because it can't find ssh-keygen. So I decided to go get my own version of the latest…
7 Reeds
  • 2,419
  • 3
  • 32
  • 64
0
votes
1 answer

Meson no output if already configured

Is it possible to let meson be silent if configuring a directory that has already been configured before? Meson currently complains Directory already configured. Just run your build command (e.g. ninja) and Meson will regenerate as…
Aart Stuurman
  • 3,188
  • 4
  • 26
  • 44
0
votes
1 answer

Build system for not compiled languages

I did create a python projet with gnome-builder using the Gnome Application template. I realized that the template builds the entire project structure and adds build capabilities using the meson build system, so I was curious. Why use build system…
Matheus Saraiva
  • 1,144
  • 1
  • 11
  • 33
0
votes
1 answer

Meson dependencies catch22 and lazy access to target output

We ‘d like to introduce Meson to build our existing C++ application. Our structure is as follows: Wie have 8 main modules (mod_X) Every module has 20-40 subdirs, each with 5 – 100 cpp files; separated in libs and…
Juergen
  • 699
  • 7
  • 20
0
votes
0 answers

"Meson failed" while generating core-image-selinux in yocto warrior branch

While generating core-image-selinux for yocto warrior branch, I am getting below error, ERROR: glib-2.0-native-1_2.58.3-r0 do_configure: meson failed ERROR: glib-2.0-native-1_2.58.3-r0 do_configure: Function failed: do_configure (log file is located…
Raxesh Oriya
  • 383
  • 6
  • 27
0
votes
1 answer

How are fcgi scripts tested?

I am a newbie so forgive me if this sounds naive. I wrote a script in fastcgi++. And I tested the basic use cases. But like a good software engineer I want to test the script every time I make a change to make sure I don't break things. This was…
Hemil
  • 916
  • 9
  • 27
0
votes
2 answers

Handbrake meson configuring fails at "probe: numa" on the Raspberry pi 4

The configuring of Handbrake (https://github.com/HandBrake/HandBrake) on my Raspberry pi 4 with the supplied configure file fails because it doesn't find numa. [outeh@outeh-pi HandBrake]$ ./configure probe: build tuple...(pass)…
outeh
  • 53
  • 6
0
votes
1 answer

Build multiple executables from same code base

I'm trying Meson/Ninja for what I otherwise do in make. I have source-files listed in the src variable, one of which is a program prog.f90 with the statement call ROUTINE, and the preprocessor inserts names like sub1, sub2... for different…
Jonatan Öström
  • 2,428
  • 1
  • 16
  • 27
0
votes
1 answer

How to configure ARC compiler in meson build

I'm transferring our build system from Make to meson/ninja. when trying to set up a cross-file for ARC, executing the meson setup: meson setup --buildtype PATH/TO/BUILD/DIR debug --cross-file PATH/TO/FILE i receive an error: meson.build:1:0:…
0
votes
1 answer

How to correctly configure a Visual Studio project using Meson

I am currently trying to build a VS solution using Meson, my project looks like this : SolutionDir meson.build Library meson.build headers dir1 .h dir2 .h …
wskqr0010
  • 1
  • 1