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

install_man() doesn not take path of generated file

I am working in a project where I need to build man page for geoclue. I am using mesons's install_man() function (more detail here) to pass a generated file from configure_file() function (more detail here). However I am getting an error that for…
0
votes
2 answers

How to install sshfs without sudo?

I'm trying to build sshfs on a cluster where I don't have root access. Following these instructions I did: 1) Built and installed ninja and meson 2) Built libfuse with meson --prefix=/cluster/home/user/fuse The problem comes when trying to install…
ilciavo
  • 3,069
  • 7
  • 26
  • 40
0
votes
2 answers

How to use generated protobuf sources correctly?

When I try to use sources generated by protobuf '-std=c++11' is added to my compile flags for target that I try to use them in, causing compilation to fail (cause I'm using post C++11 features). Following a pretty much minimal example. 3 files, all…
paler123
  • 976
  • 6
  • 18
0
votes
1 answer

Include header file of external library in another header file

Currently I have the following project structure, where the libs directory purpose is to store external C libraries that I download from github because they are not available on my OS's repos: ├── cli │   └── cli.c ├── libs │   ├── meson.build │  …
Chromz
  • 183
  • 3
  • 11
0
votes
1 answer

How to build a static glib library on mingw-w64 win32 threads

I want to build a glib static library. I have installed MSYS2 and I have installed MinGW-W64 Win32 threads on to it. I didn't download the MSYS2 package. Instead, I've downloaded MinGW-W64 from SourceForge and installed it to the MSYS2 directory.…
Sean
  • 53
  • 1
  • 6
0
votes
1 answer

How do I set up meson project with wxWidgets depends for Windows?

I'm trying out a new setup. I'm on a 64-bit Windows 10. I've meson example project and clang compiler stack over Visual Studio 2017. Both of those are in my PATH. [0/1] Regenerating build files. The Meson build system Version: 0.49.0 Source dir:…
Vitold S.
  • 402
  • 4
  • 13
0
votes
1 answer

custom_target() to extract and build external source

I have a Meson project that will have a few steps: Download and extract a tarball cd into it, ./configure - this produces a certain file in the upstream archive dir Adjust a file in the archive dir More build steps The problem I have is how to set…
Inductiveload
  • 6,094
  • 4
  • 29
  • 55
0
votes
3 answers

How to link with all libraries inside a directory?

I'm using meson-build for a c++ project. I created a directory called libs and put all the libraries I need inside it , how do I link with it?
0
votes
1 answer

Loading a libpeas module written in Vala and built with meson fails

I tried to build this example with the help of meson: Getting started with libpeas extensions in vala My meson.build looks like the following: vala_deps = [ dependency('gio-2.0', version: '>= 2.50'), dependency('gtk+-3.0', version: '>=…
0815
  • 25
  • 5
0
votes
1 answer

Meson Undefined reference to user defined function

I'm attempt to work with unit tests for meson, and am getting: ϰ ninja [4/4] Linking target test/crypto/crypto_tests. FAILED: test/crypto/crypto_tests clang++-6.0 -o test/crypto/crypto_tests…
0
votes
1 answer

In Meson, can I avoid to continuously jump from the source to the build directory and back?

To do an out-of-source build in Meson: cd /path/to/source/ mkdir ../builddir Then: cd /path/to/source/ meson ../builddir cd ../builddir ninja Is it possible to do anything like this (from builddir): meson --pathToSource ../source //…
Pietro
  • 12,086
  • 26
  • 100
  • 193
0
votes
1 answer

jhbuild build getting the wrong meson version that is not installed on my system

When I run: jhbuild build gtk+-3 I get: Meson encountered an error in file meson.build, line 1, column 0: Meson version is 0.44.1 but project requires >= 0.45.0. But when I run: ~/.local/bin/meson --version I get: 0.46.1 So my version is height…
jnbdz
  • 4,863
  • 9
  • 51
  • 93
0
votes
1 answer

Can build a trivial project with Meson but not with CMake

I want to get two executables from my C++ source code (test and release). I have two main() functions in two separate C++ files. With the Meson build system it is easy: project('PrjName', 'cpp') mainSrc = ['header1.hpp', 'source1.cpp',…
Pietro
  • 12,086
  • 26
  • 100
  • 193
0
votes
1 answer

Install Meson and Ninja (one removes the other)

I want to install jsoncpp Instructions to reproduce: Install both meson (which requires Python3) and ninja. When I run sudo apt-get install meson ninja I get the following results: $ sudo apt-get install meson ninja Reading package lists...…
0
votes
1 answer

Building with meson/ninja takes multiple executions to complete

I'm trying to switch a project over to meson/ninja but it takes multiple executions of ninja to successfully complete, and at first glance it appears that the early failures are because of incomplete build steps that are supposed to precede it. The…
geoffjay
  • 413
  • 4
  • 13
1 2 3
31
32