MinGW-w64-headers-11.0.1

Introduction to MinGW-w64-headers

MinGW-w64-headers provides header files for Windows.

[Note]

Note

Development versions of GLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

MinGW-w64-headers Dependencies

Optional

Binary MinGW-w64

Installation of MinGW-w64-headers

x86_64 MinGW-w64-headers

Install x86_64 MinGW-w64-headers by running the following commands:

mkdir build-x86_64-headers &&
cd build-x86_64-headers

../mingw-w64-headers/configure --prefix=/usr/x86_64-w64-mingw32 \
                               --enable-sdk=all                 \
                               --host=x86_64-w64-mingw32

Now, as the root user:

make install
rm -v /usr/x86_64-w64-mingw32/include/pthread_{signal,time,unistd}.h

i686 MinGW-w64-headers

Install i686 MinGW-w64-headers by running the following commands:

mkdir build-i686-headers &&
cd build-i686-headers

../mingw-w64-headers/configure --prefix=/usr/i686-w64-mingw32 \
                               --enable-sdk=all               \
                               --host=i686-w64-mingw32

Now, as the root user:

make install
rm -v /usr/i686-w64-mingw32/include/pthread_{signal,time,unistd}.h

Command Explanations

--prefix=/usr/*: This option installs the files to their respective architecture for better separation of architectures.

--enable-sdk=all: This option enables the full SDK.

--host=*: This option builds files for the architecture passed to it.

rm -v /usr/*/include/pthread_*: This command removes header files provided by MinGW-w64-winpthreads-11.0.1.

Contents

Installed Programs: None
Installed Libraries: None
Installed Directories: /usr/{i686,x86_64}-w64-mingw32/include