Difficulty in building and installing dll files
Posted: Mon Oct 25, 2021 11:20 pm
I have been trying to install a user plugin ReflexContoller.dll which is mentioned in https://github.com/msdemers/opensim-reflex-controllers. I have almost completed the whole steps but when I start to build the file in Visual Studio, the following messages appear. I am not able to understand why is the installation failing.
Code: Select all
Build started...
1>------ Build started: Project: Libraries - ReflexControllersPlugin, Configuration: Release x64 ------
1>DelayedPathReflexController.cpp
1>C:\OpenSim_Install_Dir\sdk\include\OpenSim\Common\ComponentList.h(31,10): fatal error C1083: Cannot open include file: 'SimTKcommon/basics.h': No such file or directory
1>MuscleFiberStretchController.cpp
1>C:\OpenSim_Install_Dir\sdk\include\OpenSim\Common\Exception.h(33,10): fatal error C1083: Cannot open include file: 'spdlog/common.h': No such file or directory
1>MusclePathStretchController.cpp
1>C:\OpenSim_Install_Dir\sdk\include\OpenSim\Common\Exception.h(33,10): fatal error C1083: Cannot open include file: 'spdlog/common.h': No such file or directory
1>ReflexController.cpp
1>C:\OpenSim_Install_Dir\sdk\include\OpenSim\Common\Exception.h(33,10): fatal error C1083: Cannot open include file: 'spdlog/common.h': No such file or directory
1>RegisterTypes_osimPlugin.cpp
1>C:\OpenSim_Install_Dir\sdk\include\OpenSim\Common\Exception.h(33,10): fatal error C1083: Cannot open include file: 'spdlog/common.h': No such file or directory
1>Generating Code...
1>Done building project "ReflexControllersPlugin.vcxproj" -- FAILED.
2>------ Build started: Project: INSTALL, Configuration: Release x64 ------
2>-- Install configuration: "Release"
2>CMake Error at cmake_install.cmake:99 (file):
2> file INSTALL cannot find
2> "C:/OpenSim_Install_Dir/reflexes/build/Release/ReflexControllersPlugin.dll":
2> No error.
2>
2>
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: The command "setlocal
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmEnd
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmErrorLevel
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: exit /b %1
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmDone
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :VCEnd" exited with code 1.
2>Done building project "INSTALL.vcxproj" -- FAILED.
========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========