After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 789565 - Meson: configuring meson fails when cross compiling for windows
Meson: configuring meson fails when cross compiling for windows
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
1.12.x
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-10-27 16:10 UTC by Xavier Claessens
Modified: 2018-05-30 11:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Xavier Claessens 2017-10-27 16:10:06 UTC
With cerbero patches from bug #789316 I can try to cross build GStreamer core with meson.

However, the command "meson build" fails with that error:
Meson encountered an error in file docs/libs/meson.build, line 5, column 6:
Unknown variable "gst_check_dep".

This is because libs/gst/check is not included when host_machine.system() == 'windows' but docs is only excluded when build_machine.system() == 'windows'.

In my case build_machine is linux and host_machine is windows, in that case by default libs/gst/check is not included, so gst_check_dep is not defined, but it wants to build doc which needs gst_check_dep.
Comment 1 Xavier Claessens 2017-10-27 16:13:05 UTC
A workaround is to setup meson and configure it in one step with:

meson build -Ddisable_gtkdoc=true

In that case it won't try to build doc when cross compiling to Windows. But you cannot split that command into:

meson build
meson configure -Ddisable_gtkdoc=true build
Comment 2 Nirbheek Chauhan 2017-10-28 03:12:07 UTC
(In reply to Xavier Claessens from comment #1)
> A workaround is to setup meson and configure it in one step with:
> 
> meson build -Ddisable_gtkdoc=true
> 
> In that case it won't try to build doc when cross compiling to Windows. But
> you cannot split that command into:
> 
> meson build
> meson configure -Ddisable_gtkdoc=true build

Note that you should always try to use the first one because changing the configuration after running meson will cause meson to re-run when you try to build the project.
Comment 3 Tim-Philipp Müller 2018-05-30 11:14:06 UTC
> However, the command "meson build" fails with that error:
> Meson encountered an error in file docs/libs/meson.build, line 5, column 6:
> Unknown variable "gst_check_dep".
> 
> This is because libs/gst/check is not included when host_machine.system() ==
> 'windows' but docs is only excluded when build_machine.system() == 'windows'.

check is also built on window now, so i think this is obsolete.