Re: [Meson-devel] meson build system
Brought to you by:
jussip
From: Jussi P. <jpa...@gm...> - 2014-01-18 10:34:35
|
I received this query via sf's contact user box. Replying here so other people can find this information too. Hi, > > the meson project looks like a really nice thing! I was testing the meson > project (in Mint16), > and get the error \"ImportError: No module named \'PyQt5\'\" when I run > the mesongui. So I did as > follows: > > sudo apt-get install pyqt5-dev > > But still I get the same error. > That is the package for developing PyQT5. Meson only uses it. The package you want (at least on Ubuntu) is python3-pyqt5. > I need to specify a -I flag to the compiler. The old flag used in makefile > is \"-Icontrib\", but I now > have to specify it as \"-I../contrib\" to get the path correct when ninja > is run in the build > subdirectory. Is that the best way to do it? That means I have a path that > depends on where the > build directory is. > Apparently I had not written a manual page on how to use include directories. Now there is one: https://sourceforge.net/p/meson/wiki/Include%20directories/ > dependency(\'x11\') works, but dependency(\'pthread\') doesn\'t. Is there > a special list of > dependencies that can be used? If so, can I extend this list somehow? > Dependency currently uses pkg-config, so any package that provides a pkg-config file will work transparently. In addition there is extra code to deal with Qt5 and Boost. Adding more dependencies means editing the dependencies.py source file. In this particular case, what you want is to just link against the pthread library. It is done like this: ptl = find_library('pthread') executable('pthreadtest', 'main.c', deps : ptl) There is no special casing for threads yet. The reason for this is that I don't really know what is the correct way to do threading related stuff on Windows. Thus I can't commit to any Meson-specific syntax quite yet, sorry. |