无法构建所有DirectX示例 [英] Fail to Build All DirectX Sample

查看:101
本文介绍了无法构建所有DirectX示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows 8和Visual Studio Ultimate 2012以及更新2.

I'm using Windows 8 and Visual Studio Ultimate 2012 with update 2.

我正在尝试运行我从

http://code.msdn.microsoft.com/Windows-8-Modern-Style-App-Samples

http://code.msdn.microsoft.com/Windows-8-Modern-Style-App-Samples

但每当我尝试构建directX项目时,我总是失败。其他样本(C#,C ++非directX和Javascript)可以成功构建,只有包含directX的项目。

but everytime I tried to build the directX project, I always fail. Other sample (C#, C++ non directX and Javascript) can be built successfully, only project which include directX.

这是我尝试构建大理石迷宫直接3D项目时的输出:

This is the output when I tried to build marble maze direct 3d project:

Strangely, I’m able to build the Direct3D app template which is given in the Visual Studio 2012 C++ Windows Store Apps template (the cube renderer).

Strangely, I'm able to build the Direct3D app template which is given in the Visual Studio 2012 C++ Windows Store Apps template (the cube renderer).

I’ve tried to move the project to D:\\ and also to my visual studio 2012/projects folder but no luck.

I've tried to move the project to D:\\ and also to my visual studio 2012/projects folder but no luck.

Somehow, I figured it out that the reason I fail to build the project is because I pick up the DirectX June 2010 SDK for my windows store apps (same with the thread from 

Somehow, I figured it out that the reason I fail to build the project is because I pick up the DirectX June 2010 SDK for my windows store apps (same with the thread from 

http://social.msdn.microsoft.com/Forums/en-US/winappswithnativecode/thread/7731b2ef-7cf2-4230-a2f4-0a49bb63d09f/ )

http://social.msdn.microsoft.com/Forums/en-US/winappswithnativecode/thread/7731b2ef-7cf2-4230-a2f4-0a49bb63d09f/ )

I’ve tried re-installing and repairing my visual studio but I can’t find the correct directories for the include and the library. The last previous thread I’ve provided suggest to remove the older SDK but I don’t know how to do it.

I've tried re-installing and repairing my visual studio but I can't find the correct directories for the include and the library. The last previous thread I've provided suggest to remove the older SDK but I don't know how to do it.

Could somebody tell me what should be the default include and librabry directories?

Could somebody tell me what should be the default include and librabry directories?

Any help and suggestion will be a great help for me.

Any help and suggestion will be a great help for me.

Thanks before.

Thanks before.

推荐答案

You are trying to use the Windows 8.0 SDK and the legacy DirectX SDK (June 2010) at the same time.

You are trying to use the Windows 8.0 SDK and the legacy DirectX SDK (June 2010) at the same time.

Ideally you’d only use the Windows 8.0 SDK and not use the legacy DirectX SDK at all. In fact, you
cannot use the DirectX SDK at all for Windows Store apps. You need to find out why the DirectX SDK is getting included in your projects here and fix that.

Ideally you'd only use the Windows 8.0 SDK and not use the legacy DirectX SDK at all. In fact, you cannot use the DirectX SDK at all for Windows Store apps. You need to find out why the DirectX SDK is getting included in your projects here and fix that.

However, for Win32 desktop applications if you need to use some legacy components (D3DX or down-level XAUDIO 2.7) then you can ’mix’ them but you have to use the
opposite include orders than you’ve used historically with the Windows 8.0 SDK first, then the legacy DirectX SDK.

However, for Win32 desktop applications if you need to use some legacy components (D3DX or down-level XAUDIO 2.7) then you can 'mix' them but you have to use the opposite include orders than you've used historically with the Windows 8.0 SDK first, then the legacy DirectX SDK.

This is covered in detail on
MSDN
and in these blog posts:

This is covered in detail on MSDN and in these blog posts:

http://blogs.msdn.com/b/chuckw/archive/2012/03/22/where-is-the-directx-sdk.aspx

http://blogs.msdn.com/b/chuckw/archive/2012/08/22/directx-sdk-s-of-a-certain-age.aspx


这篇关于无法构建所有DirectX示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆