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 4483

Summary: SDL failed to build due to error C1083: Cannot open include file: '../../cpuinfo/SDL_simd.h': No such file or directory
Product: SDL Reporter: LinGao <gaolin01>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: HG 2.1   
Hardware: x86   
OS: Windows 10   
Attachments: log_x86_build

Description LinGao 2019-02-01 07:31:01 UTC
Created attachment 3589 [details]
log_x86_build

Hi,

I build SDL with Visual studio 2017 compiler on Windows Server 2016, but it failed with the error C1083:  Cannot open include file: '../../cpuinfo/SDL_simd.h': No such file or directory. I fount that it can be reproduced form b2d4dcb4ba33 changeset. #include "../../cpuinfo/SDL_simd.h" in SDL_surface.c cause this error. I tried to replace #include "../../cpuinfo/SDL_simd.h" with #include "../cpuinfo/SDL_simd.h". It can be compiled pass.Could you help have a look about this issue? Thanks in advance!

Steps to Reproduce:
1.hg clone https://hg.libsdl.org/SDL D:\SDL\src
2.Open a VS 2017 x86 command prompt as admin and browse to D:\SDL
3.msbuild /p:Configuration=Release /p:Platform=Win32 /p:WindowsTargetPlatformVersion=10.0.17134.0 VisualC\SDL.sln /t:Rebuild

Actual result:
D:\SDL\src\src\video\SDL_surface.c(29,10): error C1083:  Cannot open include file: '../../cpuinfo/SDL_simd.h': No such file or directory (d:\agent\_work\2\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1709) [D:\SDL\src\VisualC\SDL\SDL.vcxproj]
D:\SDL\src\src\video\SDL_surface.c(29,10): error C1083: #include "../../cpuinfo/SDL_simd.h" [D:\SDL\src\VisualC\SDL\SDL.vcxproj]
D:\SDL\src\src\video\SDL_surface.c(29,10): error C1083:          ^ [D:\SDL\src\VisualC\SDL\SDL.vcxproj]
Done Building Project "D:\SDL\src\VisualC\SDL\SDL.vcxproj" (Rebuild target(s)) -- FAILED.
Project "D:\SDL\src\VisualC\SDL.sln" (1) is building "D:\SDL\src\VisualC\SDLmain\SDLmain.vcxproj" (3) on node 1
Comment 1 Ryan C. Gordon 2019-05-18 18:02:27 UTC
Whoops, didn't realize there was a bug open for this; this was fixed a long time ago. Sorry!

--ryan.