Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DirectX SDK on VS 2019 image #3089

Closed
skychef opened this issue Sep 10, 2019 · 2 comments
Closed

DirectX SDK on VS 2019 image #3089

skychef opened this issue Sep 10, 2019 · 2 comments

Comments

@skychef
Copy link

skychef commented Sep 10, 2019

The directx sdk https://www.microsoft.com/en-us/download/details.aspx?id=6812
is missing from the Visual Studio 2019 image.

When attempting to compile an application against the DXSDK using the Appveyor - Visual Studio 2019 image, I see the following message inside of the appveyor web console:

direct3d.h(23,10): error C1083:  Cannot open include file: 'd3dx9math.h': No such file or directory (compiling source file

Command exited with code 1

The DXSDK was available inside the Visual studio 2017 image.
Could the DXSDK please be added to the appveyor Visual Studio 2019 image?

IIRC the DXSDK installation location also needs to be added to the PATH but I suggest looking at how it is done in the 2017 image as it works correctly there.
Thanks.

@IlyaFinkelshteyn
Copy link
Contributor

Will do. For now you can install in on-the-fly by adding this script at init stage. It will consume couple of minute though.

Write-Host "DirectX Software Development Kit..." -ForegroundColor Cyan

Write-Host "Downloading..."
$exePath = "$env:temp\DXSDK_Jun10.exe"
(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe', $exePath)

Write-Host "Installing..."
$installPath = "C:\Program Files (x86)\Microsoft DirectX SDK"
cmd /c start /wait $exePath /P $installPath /U
Add-Path $installPath
Add-SessionPath $installPath

Remove-Item $exePath
Write-Host "Installed" -ForegroundColor Green

@skychef
Copy link
Author

skychef commented Sep 11, 2019

Cool. Thanks! @IlyaFinkelshteyn

@FeodorFitsner FeodorFitsner changed the title Image Visual Studio 2019 is missing DXSDK DirectX SDK on VS 2019 image Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants