[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't compile `stdlib.h` on mxe

From: Werner LEMBERG
Subject: Re: can't compile `stdlib.h` on mxe
Date: Sat, 22 May 2021 17:57:40 +0000 (UTC)

>> Note that this is a new error; it didn't happen in July 2019 (the
>> last time I've tried to build ttfautohint with mxe and Qt5).
> Yes. We have added 'restrict' in many places, to match the function
> declarations in POSIX.


> That's not enough. <config.h> needs to be included before <memory>.
> The Qt documentation [1] recommends a Makefile rule such as
>       moc $(DEFINES) $(INCPATH) -i $< -o $@
> Try to change this to
>       moc -fconfig.h $(DEFINES) $(INCPATH) -i $< -o $@

[The proper command line option for moc would be `-b config.h`,

This doesn't work; regardless of the used option, <memory> is always
inserted first.

> or
>       { echo '#include <config.h>'; moc $(DEFINES) $(INCPATH) -i $< ; } > 
> $@.tmp
>       mv $@.tmp $@

This worked, thanks a lot!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]