Page 1 of 1

How to build BEPUphysicsDemos?

Posted: Thu Nov 09, 2017 8:44 am
by vutruong
Hello all,
I'm a beginner in BEPU. I downloaded newest version of BEPU from github. I want to build demos for testing purposes but when I built BEPUphysicsDemos, I met some errors:

The command ""C:\Users\HORUS_PC_1\Documents\GitHub\bepuphysics1\Dependencies\MonoGame\Tools\MGCB.exe" /@:"C:\Users\HORUS_PC_1\Documents\GitHub\bepuphysics1\BEPUphysicsDrawer\Content\BEPUphysicsDrawerContent.mgcb" /platform:Windows /outputDir:"C:\Users\HORUS_PC_1\Documents\GitHub\bepuphysics1\BEPUphysicsDrawer\Content\bin\Windows" /intermediateDir:"C:\Users\HORUS_PC_1\Documents\GitHub\bepuphysics1\BEPUphysicsDrawer\Content\obj\Windows" /quiet" exited with code 1.
BEPUphysicsDrawer

Processor 'EffectProcessor' had unexpected failure! BEPUphysicsDrawer C:/Users/HORUS_PC_1/Documents/GitHub/bepuphysics1/BEPUphysicsDrawer/Content/InstancedEffect.fx

I can't fix these errors. Could anyone help me?

Re: How to build BEPUphysicsDemos?

Posted: Thu Nov 09, 2017 8:12 pm
by Norbo
Oof, these are always fun. What version of visual studio are you using?

It may be related to some missing machine-wide dependency. Given that it's failing on a shader compilation, possibly DX related.

I'm not sure what specific dependency you're missing. Presumably you could get the expected version by using the monogame installer: http://www.monogame.net/2017/03/01/monogame-3-6/

In the worst case, it could be that something about my redistribution of monogame dependencies is breaking stuff. If that's the case, then you'd want to revert the changes made to the BEPUphysicsDemos.csproj and BEPUphysicsDrawer.csproj in this commit: https://github.com/bepu/bepuphysics1/co ... 3e14ad054b

The build would then reach out to the machine-wide monogame installation and... maybe... work?

Re: How to build BEPUphysicsDemos?

Posted: Fri Nov 10, 2017 6:08 am
by vutruong
I have built successfully demos. The error is due to I'm using newest DirectX SDK but BEPUphysicsDrawer needs old DirectX SDK (June 2010).