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
1
vote
0 answers

Poetry/Meson: How to use meson as a build backend with Cython files to install a Python/Cython package

I have a Python package that contains Cython code, similar to scikit-learn. I am trying to use poetry to do package management, but meson to handle the build process for Cython and possible c++ code. Before, when I was using the deprecated…
ajl123
  • 1,172
  • 5
  • 17
  • 40
1
vote
0 answers

Build Gstreamer gst-plugins-bad 1.18.6 with support for Nvidia cuda, encoding/decoding, etc

Similar questions have been asked elsewhere on Stack Overflow. However, I do not believe any posts here give an answer relevant to the more recent releases of gst-plugins-bad. I'd like to encode and decode H264 video streams with gstreamer using…
reed
  • 61
  • 1
  • 6
1
vote
1 answer

How to build a c program project using meson

I would like to build a c project using meson. Please provide the contents in meson.build file and where to place it? These are the folders of the project Project_dir/ src/ command.c include/ command.h …
1
vote
1 answer

google test and wrap file meson

Hi in my project I need to use google test and I use the gtest.wrap file in order to download the gtest with the patch for meson [wrap-file] directory = googletest source_url =…
Mariano
  • 240
  • 3
  • 15
1
vote
1 answer

compile simple github fails at ext submodule

i am trying to compile this git https://github.com/yapb/yapb locally i am using ubuntu 64bit, and it says i must compile 32bit i am using now CC=clang CXX=clang meson build-clang but get this error FAILED: yapb.so.p/src_chatlib.cpp.o clang…
aaaa
  • 11
  • 2
1
vote
2 answers

Build custom Yocto recipe with meson and ninja

I'm trying to write a custom recipe for a library from github (Aravis). The build/install steps are done using meson and ninja. $ meson build $ cd build $ ninja $ ninja install Before writing/adding the recipe, I've added meson, ninja and…
il_mix
  • 553
  • 8
  • 20
1
vote
1 answer

How to build GStreamer 1.20.1 from source on Ubuntu 20.04

For a video streaming project, I need to install GStreamer version 1.20.1 on Ubuntu 20.04. If I install the latest stable release from here then it will install the version 1.16.2. So, I need to build it from source to get the required version. The…
1
vote
3 answers

How to force meson to use only wrap subproject

I have a few subprojects defined in wrap files in the subprojects directory and declared in the meson.build file. Unfortunately I am forced to have some of the subprojects installed on my host system. Meson by default checks if a subproject is…
Piotr Zych
  • 483
  • 4
  • 19
1
vote
0 answers

Meson build system with gRPC

I am trying to use the meson build system and gRPC as a dependency. Here's my example project: helloworld ├── helloworld.cpp ├── meson.build └── subprojects └── grpc.wrap Here's the meson.build file: project('helloworld', 'cpp', version :…
Aykhan Hagverdili
  • 28,141
  • 6
  • 41
  • 93
1
vote
1 answer

How do configure Meson for a project with multiple subdirectories?

everyone. I have a C++ project that uses MongoDB and wxWidgets as its dependencies, and the project is structured into multiple subdirectories. I have recently started using the Meson build system but have no idea how to configure the meson.build…
Byte
  • 11
  • 2
1
vote
1 answer

Meson, add build options to CMake subproject

Basically I have a cmake subproject as part of my meson.build, I would like to be able to add -DSOMEDEF=4 to the build of that subproject.
flansel
  • 35
  • 4
1
vote
0 answers

Tagging project with dependent subproject repos in Meson?

I'm using Meson build system for my project. The main project repository has several Meson subprojects, which are separate repositories (defined in the .wrap files). Example of wrap-git file: [wrap-git] url =…
Danijel
  • 8,198
  • 18
  • 69
  • 133
1
vote
0 answers

Meson Build System -- Cross Compiling

This is my first time using the Meson build system and I'm doing a cross compilation of a simple project; it should be straight forward but I'm getting the following error and I hope you can provide some help with it. meson.build:1:0: ERROR: Unable…
Neo
  • 11
  • 1
1
vote
1 answer

Releasing a meson package, how to specify libraries the depending code should link with?

I have a project A that uses meson as the build system and another project B that depends on A. A runs, compiles and passes all tests. I installed A by doing meson install, which put all the headers and shared library objects where I needed them to…
Makogan
  • 8,208
  • 7
  • 44
  • 112
1
vote
0 answers

How to run a Rust GTK app in IntellIJ IDEA

I have been using the following GTK Rust template - https://gitlab.gnome.org/World/Rust/gtk-rust-template Has anyone got any experience running this using IntelliJ IDEA with the Rest plugin? Because of the various .gresource etc. files doing a pure…
Adhocrat
  • 11
  • 1