From 473b3e0d26f0249e6e63833b9926f0fde00671b1 Mon Sep 17 00:00:00 2001 From: Steffen Pohle Date: Wed, 24 Nov 2021 23:04:31 +0100 Subject: [PATCH] lib-glib is compiling Some compiling issues on lib-glib. --- HowTo-Cross-Compile.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/HowTo-Cross-Compile.md b/HowTo-Cross-Compile.md index 8382dec..bbf4daa 100644 --- a/HowTo-Cross-Compile.md +++ b/HowTo-Cross-Compile.md @@ -7,6 +7,15 @@ The following packages are needed: - wine64 - mingw-w64 - mingw-w64-tools +- binutils-mingw-w64 + +The following sources are needed: +- [glib](https://gitlab.gnome.org/GNOME/glib) +- [atk](https://gitlab.gnome.org/GNOME/atk) +- [pango](https://gitlab.gnome.org/GNOME/pango) +- [gdk-pixbuf](https://gitlab.gnome.org/GNOME/gdk-pixbuf) +- [libepoxy](https://github.com/anholt/libepoxy) +- [GTK+](https://www.gtk.org/) # Prepare the `cross-file.ini` @@ -41,6 +50,9 @@ Compile the library using the following steps. cd build meson --buildtype=release --prefix=/opt/W64-cross-compile/ --cross-file ../../cross-file.ini mseon compile + +if an error like `glib/glibconfig.h:65:51: error: missing binary operator before token "("` occures edit the line and delete the **G_GNUC_EXTENSION** expression. + meson install Because not all compiled `*.dll` files are installed into the destination we need to copy them manualy.