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 - SDL failed to build due to error C1083: Cannot open include file: '../../cpuinfo/SDL_simd.h': No such file or directory
Summary: SDL failed to build due to error C1083: Cannot open include file: '../../cpu...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.1
Hardware: x86 Windows 10
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-01 07:31 UTC by LinGao
Modified: 2019-05-18 18:02 UTC (History)
1 user (show)

See Also:


Attachments
log_x86_build (31.05 KB, text/plain)
2019-02-01 07:31 UTC, LinGao
Details

Note You need to log in before you can comment on or make changes to this bug.
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.