Dependencies to dx9 and 10?

162 views
Skip to first unread message

Ariel Manzur

unread,
Aug 19, 2014, 3:51:44 PM8/19/14
to anglep...@googlegroups.com
Hi.

I'm trying to build angle to start a directx/windows 8 backend for my engine, I installed the latest Visual Studio Express on Windows 8 today, and when I try to "build the solution" I get errors about missing dependencies to d3d9.h and files included by d3d10.h like
d3d10sdklayers.h. Is there a way to remove all the dependencies and only use dx11? (which seems to be the only one that got installed with visual studio).

Also are there any binary packages available to avoid having to compile?

Thanks,

Ariel.

Jamie Madill

unread,
Aug 19, 2014, 4:49:01 PM8/19/14
to pun...@gmail.com, anglep...@googlegroups.com
Hey Aziel,

If all you really want is a binary you can always grab libEGL.dll and libGLESv2.dll (along with the D3DCompiler46.dll) from the chrome folder. :) You'll need a bit of smarts, though, to use D3D11. See this extension for D3D11:


However, thanks for reporting the lack of support for "out-of-the-box" Windows 8. Did you pull ANGLE directly from git or use some source distribution?

You should be able to install the Windows 8 SDK and compile ANGLE normally, with both D3D9 and D3D11 as in the Dev Setup instructions:


You can also disable D3D9 entirely by removing the define for ANGLE_ENABLE_D3D9. So you have some options!

Have fun,
Jamie

--
You received this message because you are subscribed to the Google Groups "angleproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angleproject...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Austin Kinross

unread,
Aug 19, 2014, 4:55:13 PM8/19/14
to anglep...@googlegroups.com
Hi Ariel,

Are you trying to use ANGLE in a Windows Store application on Windows 8, or in a desktop application on Windows 8?

If you are trying to use ANGLE in the Windows Store, then you'll need to use a version of ANGLE from Microsoft Open Tech. There are two versions:
1) For Windows 8.0 Store and Windows Phone 8.0 - https://github.com/MSOpenTech/angle/tree/winrt
2) For Windows 8.1 Store and Windows Phone 8.1 - https://github.com/MSOpenTech/angle/tree/future-dev

I'd recommend using the Windows 8.1 and Windows Phone 8.1 version if you can, since it is actively being worked on and should be easier to use.

If you're writing a desktop application, then I think you might have the wrong version of Visual Studio Express installed. You'll want to use "Visual Studio Express for Windows Desktop", but I think you're using "Visual Studio Express for Windows" (which is for Windows Store App development, and doesn't support D3D9). The version of ANGLE available from this website should work for you in "Visual Studio Express for Windows Desktop".

Let me know if I can help any further.
Austin

Ariel Manzur

unread,
Aug 19, 2014, 5:25:52 PM8/19/14
to auki...@microsoft.com, anglep...@googlegroups.com
I thought Microsoft was doing a "unified api" thing and the windows 8
api was going to be the same for desktop and mobile, etc (I already
have normal desktop support). Is this what the Windows 8.1 from
microsoft open tech is for? In that case I'll try that one out.

I did follow the steps from the DevSetup page, the version of Visual
studio is "express 2013 for windows" 12.0.30723.00 update 3, so I
guess it's the one you mention. If that's enough to use with the angle
for 8.1, I'll give it a try, I'll worry later about the 500 different
versions of Windows that apparently exist :-)

Thanks,

Ariel.

Austin Kinross

unread,
Aug 19, 2014, 5:40:11 PM8/19/14
to Ariel Manzur, anglep...@googlegroups.com
The Windows 8.1 version I linked to includes "Universal" templates for ANGLE. These allow you to write your app's code once (including any code that makes use of ANGLE), and compile it into Windows Store apps for both Windows 8.1 and Windows Phone 8.1.

"Visual Studio Express 2013 for Windows" should be enough for the Windows 8.1 version of ANGLE that I linked to. If you have any problems with that then let me know and we'll fix them. :-)

Austin

Ariel Manzur

unread,
Aug 20, 2014, 5:53:01 AM8/20/14
to Austin Kinross, anglep...@googlegroups.com
So I downloaded the future-dev branch, and I opened it in Visual
Studio Express 2013 for Windows, and it said it had to update the
project (it was made with an older version, etc). Then when I tried to
build I got similar errors as I was having before, first it was trying
to include d3d9.h, then (after I removed ANGLE_ENABLED_D3D9 and
ANGLE_ENABLE_PERF from the preprocessor flags) it's trying to include
d3d10sdklayers.h. When I go into the configuration manager, I only see
"Win32" in the available platforms tho.. Shouldn't that be something
different? Do I need to do something to switch to the "universal"
version?

Thanks.

Ariel Manzur

unread,
Aug 20, 2014, 1:17:28 PM8/20/14
to anglep...@googlegroups.com
(sorry, replied to the wrong person :)

btw I opened projects/src/angle.sln, and also
projects/winrt/windows/src/angle.sln and
projects/winrt/windowsphone/src/angle.sln, on the last 2 I did see
other platforms in the configuration (ARM and x64) but still the same
errors with dx9, etc.

Ariel Manzur

unread,
Aug 20, 2014, 2:01:52 PM8/20/14
to Ariel Manzur, anglep...@googlegroups.com
Ok, nevermind, changing the architecture to x64 on the winrt/windows
project gave me a build. I will try to drop this into my engine to see
what happens.

Thanks!
Reply all
Reply to author
Forward
0 new messages