We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5090 - commits sometime after 293eb6ce40ed fail to cross-compile
Summary: commits sometime after 293eb6ce40ed fail to cross-compile
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: don't know
Hardware: x86_64 Windows 10
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-14 05:30 UTC by hydra3333
Modified: 2020-12-27 03:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hydra3333 2020-04-14 05:30:29 UTC
Hello.
Cross-compiling under under ubunti 18.04.3 mingw64 for win10x64,
In some commit after 293eb6ce40ed, cross-compiling yields the following error:

[132/159] Building C object CMakeFiles/SDL2-static.dir/src/thread/generic/SDL_syscond.c.obj
[133/159] Building C object CMakeFiles/SDL2-static.dir/src/thread/windows/SDL_systls.c.obj
[134/159] Building C object CMakeFiles/SDL2-static.dir/src/sensor/windows/SDL_windowssensor.c.obj
FAILED: CMakeFiles/SDL2-static.dir/src/sensor/windows/SDL_windowssensor.c.obj 
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc --sysroot=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32 -DUSING_GENERATED_CONFIG_H -Iinclude -I../include -O3  -fstack-protector-all  -D_FORTIFY_SOURCE=2   -DDECLSPEC= -idirafter /home/u/Desktop/_working/workdir/x86_64/sdl2_hg/src/video/khronos  "-I/home/u/Desktop/_working/workdir/x86_64/sdl2_hg/src/hidapi/hidapi" -msse3 -msse2 -msse -m3dnow -mmmx -Wshadow -fvisibility=hidden -Wdeclaration-after-statement -Werror=declaration-after-statement -fno-strict-aliasing -Wall   -O3  -fstack-protector-all  -D_FORTIFY_SOURCE=2   -DDECLSPEC= -MD -MT CMakeFiles/SDL2-static.dir/src/sensor/windows/SDL_windowssensor.c.obj -MF CMakeFiles/SDL2-static.dir/src/sensor/windows/SDL_windowssensor.c.obj.d -o CMakeFiles/SDL2-static.dir/src/sensor/windows/SDL_windowssensor.c.obj   -c ../src/sensor/windows/SDL_windowssensor.c
../src/sensor/windows/SDL_windowssensor.c:35:10: fatal error: InitGuid.h: No such file or directory
   35 | #include <InitGuid.h>
      |          ^~~~~~~~~~~~
compilation terminated.
[135/159] Building C object CMakeFiles/SDL2-static.dir/src/power/windows/SDL_syspower.c.obj
[136/159] Building C object CMakeFiles/SDL2-static.dir/src/timer/windows/SDL_systimer.c.obj
[137/159] Building C object CMakeFiles/SDL2-static.dir/src/filesystem/windows/SDL_sysfilesystem.c.obj
ninja: build stopped: subcommand failed.
Comment 1 Ozkan Sezer 2020-12-27 03:13:40 UTC
This is fixed in SDL2-2.0.14