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
2
votes
1 answer

Providing header dependency in meson

I am using meson build system 0.49.0 on ubuntu 18.04. My project has some idl files and i want to include header files from another folder. How do I add provide include_directories in meson. idl_compiler = find_program('widl') idl_generator =…
debonair
  • 2,505
  • 4
  • 33
  • 73
2
votes
2 answers

How do include cython files in python meson-managed project?

How do I properly include cython source files in a python meson project managed by the meson build system?
Scrooge McDuck
  • 372
  • 2
  • 14
2
votes
0 answers

Use the Meson buildsystem on Windows with external libraries

I am using the Meson buildsystem for a C++ project on Windows. I installed Meson, Ninja and MinGW (using a Windows package manager called Chocolatey). But I don't know where I should place external dependencies so Meson can find them…
octowaddle
  • 80
  • 5
2
votes
1 answer

meson: How to execute a run_command prior to building a target?

I have a meson custom_target that builds a docker. Before it runs, I would like to remove some files. However, I cannot use a run_command in the depends: section. e.g. I'd like to add a 'clean_target' along with 'devbase' below. Is there a way to do…
Professor
  • 101
  • 1
  • 6
2
votes
2 answers

Installing Meson from pip results in missing meson.py

I am having a similar issue to this problem. I want to download Meson for Windows and used the following command: pip3 install meson This installs in my site-packages folder, specifically…
user14382107
  • 21
  • 1
  • 2
2
votes
0 answers

Building GTK3 with meson and MSYS2 on Windows fails

Trying to build stable release 3.24.21 of GTK3 from the git sources using MSYS2 on Windows following these instructions. I've successfully built this version earlier from the tar.xz sources and MSYS2 configure/make so I know I have all the required…
2
votes
1 answer

Meson : Dependency not found - Tried both pkg-config and cmake

I'm trying to compile the Pulse Effects project and I faced this issue after running meson build: Dependency gstreamer-1.0 found: NO (tried pkgconfig and cmake) src/meson.build:97:0: ERROR: Dependency "gstreamer-1.0" not found, tried pkgconfig and…
Parsa Mousavi
  • 1,052
  • 1
  • 13
  • 31
2
votes
1 answer

How to use meson to build glib

I need to upgrade glib for a specific project. It currently uses glib 2.28.8. I have three problems. I've never used meson and ninja before, so I checked glib's INSTALL.in and it just said to run meson _build followed by ninja -C _build. So I ran…
John Frickson
  • 179
  • 1
  • 3
  • 16
2
votes
1 answer

Build CUDA kernel with Meson

I am trying to build an application that makes use of a Cuda kernel. For that, I am using the meson build system but without success. Basically what I am trying to do is the following: //main.cpp extern void kernel_function(); int main(int argc,…
lumurillo
  • 31
  • 3
2
votes
1 answer

ERROR: dav1d >= 0.2.1 not found using pkg-config

I am trying to build ffmpeg with dav1d. I've successfully built davit using the following commands: git clone --depth=1 https://code.videolan.org/videolan/dav1d.git && \ cd dav1d && \ mkdir build && cd build && \ meson .. && \ ninja After that, I…
Dmitry Maksakov
  • 1,591
  • 1
  • 16
  • 22
2
votes
1 answer

Vala GtkTemplate: UI Resource not found

I'm trying to use GtkTemplate, but it is really annoyingly not working. I have defined .ui file resources, properly calling it & etc. Here is my files: meson.build: # project name and programming language project('myproject', 'vala', 'c', version:…
eminfedar
  • 558
  • 3
  • 16
2
votes
1 answer

C project build with meson: Correct way to handle 3rd party local libraries

I wanted to build a project that's making use of the Criterion testing library and I'm using meson to build it all. I'm able to build my own code, a static library which relies on just standard c libraries. The unit tests rely on #include…
francium
  • 2,384
  • 3
  • 20
  • 29
2
votes
0 answers

glib build for iOS

I am trying to compile and build glib for iOS platform (require glib static library). I referred below link for that: How to build GLib for iOS But the latest version of glib does not have ./configure, due to which script is failing. I tried through…
DRK
  • 191
  • 9
2
votes
2 answers

Generate Makefile using meson build file

In one of our projects we have used Gstreamer good plugins. I see that each element has a Makefile for building. Now I wanted to upgrade rtpmanager code (https://github.com/GStreamer/gst-plugins-good/tree/master/gst/rtpmanager) inside Gstreamer.…
2
votes
2 answers

How to run post build commands in meson?

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 command (eg. chmod -x target.elf) on it. I tried…
LGabci
  • 85
  • 9