InteractiveComputerGraphics / PositionBasedDynamics

PositionBasedDynamics is a library for the physically-based simulation of rigid bodies, deformable solids and fluids.
MIT License
1.89k stars 358 forks source link

MSB6003 Error when trying to build on WIndows 11 MS Visual Studio 2019 #184

Closed gyenyame400 closed 4 months ago

gyenyame400 commented 4 months ago

Hi I get the following error when trying to build the generated solution from cmake-gui using MS Visual Studio 2019:

error MSB6003: The specified task executable "CL.exe" could not be run. System.IO.DirectoryNotFoundException: Could not find a part of the path '\PositionBasedDynamics\build\GenericParameters\src\Ext_GenericParameters-build\CMakeFiles\CMakeScratch\TryCompile-c7klt7\cmTC_a814a.dir\Debug\cmTC_a814a.tlog'

gyenyame400 commented 4 months ago

Another error down the log output:

Error C1083 Cannot open include file: 'ParameterObject.h': No such file or directory (compiling source file \PositionBasedDynamics\Utils\SceneLoader.cpp) Utils \PositionBasedDynamics\Utils\SceneLoader.h

janbender commented 4 months ago

Did you install git?

Am 30. April 2024 14:03:33 MESZ schrieb gyenyame400 @.***>:

Another error down the log output:

Error C1083 Cannot open include file: 'ParameterObject.h': No such file or directory (compiling source file \PositionBasedDynamics\Utils\SceneLoader.cpp) Utils \PositionBasedDynamics\Utils\SceneLoader.h

-- Reply to this email directly or view it on GitHub: https://github.com/InteractiveComputerGraphics/PositionBasedDynamics/issues/184#issuecomment-2085149215 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

gyenyame400 commented 4 months ago

Yes, I installed git.exe. In fact, executing git --version in the command prompt yields: git version 2.40.0.windows.1

gyenyame400 commented 4 months ago

Solved. I needed to configure the environment variable VCTargetsPath. In my case MS VS2019 it was:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\

(With the trailing slash) After that all went smoothly.

Thanks