Compile the glib library under windows

The glib library is a cross-platform C language function library, which is the basis of the Gtk+ library and Gnome. glib can be used on multiple platforms, such as Linux, Unix, Windows, etc. glib provides corresponding substitutes for many standard and commonly used C language structures.

First download the   https://download.gnome.org/sources/glib/2.64/    compressed package from the official website , then unzip it to any directory, and then execute the following command. Please install meson and ninja on Baidu.

PS D:\glib-2.64.2># meson build --prefix=C:\\binary

PS D:\glib-2.64.2># ninja -C build

PS D:\glib-2.64.2># ninja -C build install

After executing install, there will be under the C:\binary\ directory

bin

include

lib

share

Four subdirectories. Just specify this directory when you want to reference other libraries.

 

Guess you like

Origin blog.csdn.net/langeldep/article/details/114951249