Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
255 views
in Technique[技术] by (71.8m points)

c# - Compiling SharpDX : xaudio2.h(65,68): Process error CX0001: cannot call operator __uuidof on a type with no GUID

i try to compile the old SharpDX library using windows 10 64 but, visual studio 2019 but when I'm loading SharpDX.sln and hit compile in x64 debug mode I'm getting :
any idea why?

i try to compile the old SharpDX library using windows 10 64 but, visual studio 2019 but when I'm loading SharpDX.sln and hit compile in x64 debug mode I'm getting :
any idea why?

Build started...
1>------ Build started: Project: SharpDX, Configuration: Debug Any CPU ------
Error occurred while restoring NuGet packages: The operation failed as details for project SharpDX could not be loaded.
1>C:Usersfoo.nugetpackagesmicrosoft.build.tasks.git1.0.0-beta2-18618-05uildMicrosoft.Build.Tasks.Git.targets(36,5): warning : Submodule 'Samples' doesn't have any commit, the source code won't be available via source link.
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:DevmycsharpSharpDXSourceSharpDX/objDebug
et40SharpGen/SharpGen-MSBuild.h:47:
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:DevmycsharpSharpDXSourceSharpDX/objDebug
et40SharpGen/sharpdx-xaudio2.h:2:
1>C:Program Files (x86)Windows Kits10include10.0.19041.0umxaudio2.h(65,68): Process error CX0001:  cannot call operator __uuidof on a type with no GUID
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002:     EXTERN_C const GUID DECLSPEC_SELECTANY IID_IXAudio2Extension = __uuidof(IXAudio2Extension);
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002:                                                                    ^
1>C:Program Files (x86)Windows Kits10include10.0.19041.0umxaudio2.h(71,59): Process error CX0001:  cannot call operator __uuidof on a type with no GUID
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002:     EXTERN_C const GUID DECLSPEC_SELECTANY IID_IXAudio2 = __uuidof(IXAudio2);
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002:                                                           ^
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:DevmycsharpSharpDXSourceSharpDX/objDebug
et40SharpGen/SharpGen-MSBuild.h:47:
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:DevmycsharpSharpDXSourceSharpDX/objDebug
et40SharpGen/sharpdx-xaudio2.h:3:
1>C:Program Files (x86)Windows Kits10include10.0.19041.0umxaudio2fx.h(31,65): Process error CX0001:  cannot call operator __uuidof on a type with no GUID
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: EXTERN_C const GUID DECLSPEC_SELECTANY CLSID_AudioVolumeMeter = __uuidof(AudioVolumeMeter);
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002:                                                                 ^
1>C:Program Files (x86)Windows Kits10include10.0.19041.0umxaudio2fx.h(34,60): Process error CX0001:  cannot call operator __uuidof on a type with no GUID
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: EXTERN_C const GUID DECLSPEC_SELECTANY CLSID_AudioReverb = __uuidof(AudioReverb);
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002:                                                            ^
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:DevmycsharpSharpDXSourceSharpDX/objDebug
et40SharpGen/SharpGen-MSBuild.h:48:
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:DevmycsharpSharpDXSourceSharpDX/objDebug
et40SharpGen/sharpdx-x3daudio.h:2:
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:Program Files (x86)Windows Kits10include10.0.19041.0umx3daudio.h:62:
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:Program Files (x86)Windows Kits10include10.0.19041.0umDirectXMath.h:111:
1>C:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.28.29333includeintrin.h(56,1): Process error CX0001:  expected function body after function declarator
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: __MACHINE(void * _AddressOfReturnAddress(void))
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: ^
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:DevmycsharpSharpDXSourceSharpDX/objDebug
et40SharpGen/SharpGen-MSBuild.h:49:
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:DevmycsharpSharpDXSourceSharpDX/objDebug
et40SharpGen/sharpdx-xapo.h:3:
1>C:Program Files (x86)Windows Kits10include10.0.19041.0umxapo.h(105,52): Process error CX0001:  cannot call operator __uuidof on a type with no GUID
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: EXTERN_C const GUID DECLSPEC_SELECTANY IID_IXAPO = __uuidof(IXAPO);
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002:                                                    ^
1>C:Program Files (x86)Windows Kits10include10.0.19041.0umxapo.h(108,62): Process error CX0001:  cannot call operator __uuidof on a type with no GUID
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: EXTERN_C const GUID DECLSPEC_SELECTANY IID_IXAPOParameters = __uuidof(IXAPOParameters);
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002:                                                              ^
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:DevmycsharpSharpDXSourceSharpDX/objDebug
et40SharpGen/SharpGen-MSBuild.h:49:
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: In file included from C:DevmycsharpSharpDXSourceSharpDX/objDebug
et40SharpGen/sharpdx-xapo.h:7:
1>C:Program Files (x86)Windows Kits10include10.0.19041.0umxapofx.h(34,53): Process error CX0001:  cannot call operator __uuidof on a type with no GUID
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: EXTERN_C const GUID DECLSPEC_SELECTANY CLSID_FXEQ = __uuidof(FXEQ);
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002:                                                     ^
1>C:Program Files (x86)Windows Kits10include10.0.19041.0umxapofx.h(37,67): Process error CX0001:  cannot call operator __uuidof on a type with no GUID
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: EXTERN_C const GUID DECLSPEC_SELECTANY CLSID_FXMasteringLimiter = __uuidof(FXMasteringLimiter);
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002:                                                                   ^
1>C:Program Files (x86)Windows Kits10include10.0.19041.0umxapofx.h(40,57): Process error CX0001:  cannot call operator __uuidof on a type with no GUID
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: EXTERN_C const GUID DECLSPEC_SELECTANY CLSID_FXReverb = __uuidof(FXReverb);
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002:                                                         ^
1>C:Program Files (x86)Windows Kits10include10.0.19041.0umxapofx.h(43,55): Process error CX0001:  cannot call operator __uuidof on a type with no GUID
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: EXTERN_C const GUID DECLSPEC_SELECTANY CLSID_FXEcho = __uuidof(FXEcho);
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002:                                                       ^
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process warning CX0002: 11 errors generated.
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process error CX0003: Failed to run CastXML. Check previous errors.
1>C:Usersfoo.nugetpackagessharpgentools.sdk1.1.3-ci489uildSharpGenTools.Sdk.targets(174,5): Process error CX0003: Unable to generate XML file with castxml [C:DevmycsharpSharpDXSourceSharpDX/objDebug
et40SharpGen/SharpGen-MSBuild.xml]. Check previous errors.
1>Done building project "SharpDX.csproj" -- FAILED.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...