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

skychef opened this issue Sep 10, 2019 · 2 comments


Copy link

commented Sep 10, 2019

The directx sdk
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.


This comment has been minimized.

Copy link

commented Sep 10, 2019

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('', $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

This comment has been minimized.

Copy link

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
None yet
3 participants
You can’t perform that action at this time.