aymanh wrote:Hi Kevin,
Thanks for the update.
Let's focus on one issue (Debug) since that's what you actually need.
According to the build log first error, VS couldn't locate SimTKcommon_d (and later on all other SimTK debug libraries). The important questions are:
1. Were these files created in the install directory of Simbody ?
2. If yes, then you need to find out why OpenSim build couldn't locate them. Possible reasons: not rerunning CMake after Simbody install, different names of libs, or CMake finding wrong installation of Simbody.
3. If no, then you should go back to the Simbody build/install and find out why these .lib files were not generated.
Hope this helps,
-Ayman
Hello,
I appear to be having the same issue. I'm running Windows 10 on a 64 bit machine, using a non source installation of OpenSim 3.3. I've worked through the Creating a Customized Muscle Model tutorial with the MuscleExample folder using CMake 3.6.3 and Visual Studio Community in Release configuration and x64. However, trying to build the MuscleExample folder with Debug (I got Debug through changing the MuscleExample folder's 'CMakeLists.txt') gives me the following output:
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1> Checking Build System
1> CMake does not need to re-run because C:/OpenSim 3.3/sdk/APIExamples/MuscleExample/build_6/CMakeFiles/generate.stamp is up-to-date.
2>------ Build started: Project: MuscleExampleTargettt, Configuration: Debug x64 ------
2> Building Custom Rule C:/OpenSim 3.3/sdk/APIExamples/MuscleExample/CMakeLists.txt
2> CMake does not need to re-run because C:\OpenSim 3.3\sdk\APIExamples\MuscleExample\build_6\CMakeFiles\generate.stamp is up-to-date.
2> FatigableMuscle.cpp
2> mainFatigue.cpp
2> Generating Code...
2>LINK : fatal error LNK1104: cannot open file 'osimCommon_d.lib'
3>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------
3> Building Custom Rule C:/OpenSim 3.3/sdk/APIExamples/MuscleExample/CMakeLists.txt
3> CMake does not need to re-run because C:\OpenSim 3.3\sdk\APIExamples\MuscleExample\build_6\CMakeFiles\generate.stamp is up-to-date.
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
osimCommon_d.lib doesn't exist in neither my installation (not built from source) of OpenSim 3.3, nor in any of the versions (tags) as searchable on GitHub for OpenSim. (Which leads me to wonder: were _d.lib files removed in some version of OpenSim? I couldn't find mention of that happening in any of the documentation at [
http://simtk-confluence.stanford.edu/] but I thought it might be worth mentioning/asking.) This LINK error for osimCommon_d.lib has also popped up when building other programs from Simtk meant for OpenSim 3.3, which are built smoothly in Release configuration but have such errors in Debug configuration. I have also reproduced this error (builds for Release, not for Debug) on another 64 bit computer running Windows 10, using CMake 3.6.3, Visual Studio Community 2015, and OpenSim 3.3 as the first computer did.
As suggested in the above quote, I could try Visual Studio 2013, but since this forum was a few years ago, I currently have Visual Studio Community 2015 running and am not sure if the older and newer softwares will conflict.
Another possible fix I've encountered online was in OpenSim's GitHub issues [
https://github.com/opensim-org/opensim-core/issues/462], however the first solution suggested (the CMake 'hack' for the time being) required the OpenSim installation to have a top-level CMakeLists.txt, which OpenSim 3.3 doesn't appear to have. Moreover, the actual solution may have been found, but I'm not sure how it works or how to apply the solution to my situation, and I believe the fix is to be part of OpenSim 4.0, whereas the programs from Simtk I'm trying to use were programmed for OpenSim 3.3.
Any help would be greatly appreciated!
It is a bit urgent.
Stephanie