sharpdx / SharpDX

SharpDX GitHub Repository

Home Page:http://sharpdx.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Help] Can't build following instructions in README

nefarius opened this issue · comments

Greetings,

I tripple-checked that I've got all the required dependencies installed but I unfortunately can't build any of the projects. I guess I'm still missing vital dependencies which are not resolved:

NETSDK1004	Assets file '...\SharpDX\Source\SharpDX\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.	SharpDX	C:\Program Files\dotnet\sdk\2.1.401\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets	198	

build.cmd, msbuild /restore and dotnet restore all fail (see screenshots).

image

image

image

Help pls 🙂 🐱

Similar issues to Nefarius, seems to be some kind of problem with .Net Dependencies:

commented

I can confirm SharpDX is impossible to build. I ported a code from C++ but for some reason when I create the device passing a SDL2 window handle SharpDX fails and I'd like to step through the source in order to debug that.

@jkoritzinsky I think I had the same problem with the current codebase where I had to run the build manually to get the assemblies in order to compile more incrementally when opening the VS solutions. Could you improve the situation so that we can compile everything from VS as it was done before?

I'll see what I can do.

Ah, glad to hear it's not just my incompetence 😅

commented

Hey guys, are the generated pinvokes (e.g. D3D11 stuff) available somewhere?
I see the generated pinvokes for D3D10 are in the repo but the others aren't.
Thank you.

They're generated as part of the build.

commented

Yes, but since I can't build I was wondering if they're available somewhere else so I can try and add them manually since I don't really need the whole DirectX, just Direct3D11 (and deps). I thought that maybe they'd be available in appveyor but I couldn't find a way to get that.

Out of curiosity I tried to compile latest SharpDX from master and I succeeded eventually but had following problems:

  • it fails at ParseCPlusPlus task if there are spaces in project path - probably a bug in SharpGenTools not quoting something
  • Debug build of SharpDX project fails if Release is not build before

The issue in the ParseCPlusPlus task is a bug in SharpGenTools. Can you file an issue there?

Do you have the Windows 10 SDK for the initial Windows 10 release? You need the managed SDK for UAP 10.0.14393.0 to build in VS.

Hi Jeremy, you are correct that I don't have 10.0.14393 SDK installed.
What worried me was that it was able to build Debug from scratch without that SDK but failed on Release so maybe there is something simple that needs to be fixed for that configuration.
Anyway I can confirm that can build both Debug and Release configurations from scratch so it seems your latest contributions have fixed it. And also I can confirm that it can be build without 10.0.14393 SDK so maybe it is no longer needed. I do have installed 10.0.16299 though (both desktop and UWP).
B.

OK. My mistake. It turned out that I have 10.0.14393 SDK installed on my system kept by VS2015. When I uninistalled it SharpDX no longer builds. So it is still a requirement.