| Re: [hatari-devel] My cross-compiling experience | 
[ Thread Index | 
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
] 
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] My cross-compiling experience
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sun, 3 May 2020 15:13:13 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017;	t=1588511594; bh=WdWalmuA6ZQjBf9pOBKbfCpuhlVOao0pBffYFfIVgTQ=;	h=Date:From:To:Subject:From;	b=Ea1692/y+u5sCLvgcR2orqdXGkzA5AdahRfQ+iaTtQB7EcUK1ODUaauN6jX28RUyQ	 2kSV5CVP9rltjedCSwxAySCrcta3HyU4E7+5yBoJz2EvBNY68atnAinkS8i0QxdtMk	 9VAfXxOsTuO3M4/zEr2hPd5cjHPaBSoMCRTwQxS3G7hpMAF0Z8/RuExdmazviOJ5Iu	 Pq3KEi4avdPpyR22bg1sz8qDgb+uAQaSSg1Ii1MKF/vz30QXwF2z8AJRA9ZzbcOpMO	 xiri6GgcKm/E4GjCrlQX2AI6C6M+TbuDa70YaAvufTgCfg4qvkJ+KosUQS/QdRe0pL	 BCo6sKAxDi9Ow==
Am Sun, 3 May 2020 14:00:10 +0200
schrieb Christian Zietz <czietz@xxxxxxx>:
> Christian Zietz schrieb:
> 
> > The warnings are attached.  
> 
> BTW: With the latest code from the Git repo, I get new warnings.
> #include <math.h> is now missing in several files. See attached log.
D'oh, looks like it was a bad idea to remove that include... I didn't
expect that math.h is used in so many files - especially since these
warnings do not trigger under Linux.
Anyway, I'm now able to reproduce these in the CI, too:
 https://gitlab.com/huth/hatari/-/jobs/536012439#L663
.... I just need to clean up my patch a little bit and try to make it
compile with -Werror, too, so that the warnings don't go unnoticed.
By the way, it was not really difficult to set up that
cross-compilation job, basically I just had to do:
 dnf install -y  mingw32-gcc mingw32-SDL2 mingw32-zlib
 cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-mingw32-win64_32.cmake
(using Fedora since SDL2 is pre-packaged there ... so I assume Fedora
is better suited for using MinGW than Debian?)
 Thomas