Hello,
I am trying to run OpenSim MuscleExample code, given in OpenSim core at GitHub.
I have built the code using the CMake 3.18.2 and there was no error during build and compilation. But, when I try to run the code, I am getting this error message.
I am using Visual Studio 2019.
I run other examples. For ExampleMain, it is running fine, but for other examples like OptimizationExample_Arm26 and SimpleOptimizationExample, I am getting same error.
Could anybody tell me the possible reasons/ solutions about this?
Thanks.
Muscle example error
- Rahid Zaman
- Posts: 31
- Joined: Fri Apr 21, 2017 3:43 am
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: Muscle example error
Hi Rahid,
Please make sure that OpenSim's bin directory containing the dynamic libraries (.dll) is included in the Windows' PATH variable. You can use Rapid Environmental Editor in Windows to easily change the PATH variable.
Please make sure that OpenSim's bin directory containing the dynamic libraries (.dll) is included in the Windows' PATH variable. You can use Rapid Environmental Editor in Windows to easily change the PATH variable.
- Ayman Habib
- Posts: 2238
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Muscle example error
Thanks Dimitar,
Rahid, the fact that the error message points to missing entry point (API change) rather than a missing library/dll suggests that you have multiple installations of OpenSim on your machine/path and that the wrong libraries/dlls are found first. Please make sure if you modify the path as suggested by Dimitar that the OpenSim installation that appears first on the path is the one you are actually linking against.
Hope this helps,
-Ayman
Rahid, the fact that the error message points to missing entry point (API change) rather than a missing library/dll suggests that you have multiple installations of OpenSim on your machine/path and that the wrong libraries/dlls are found first. Please make sure if you modify the path as suggested by Dimitar that the OpenSim installation that appears first on the path is the one you are actually linking against.
Hope this helps,
-Ayman
- Rahid Zaman
- Posts: 31
- Joined: Fri Apr 21, 2017 3:43 am
Re: Muscle example error
Thank you Dr. Habib and Dr. Stanev.
I appreciate your guidance.
Yes, there was another OpenSim path in Environment variables. I removed that. Now it is working for all examples. For OptimizationExample_Arm26 example, although it is showing "OpenSim example completed successfully", there some .vtp geometry file missing . Is it normal for this example or am I missing something?
Another thing is, I set the the environment variables like this: But when I check the link in Rapid Environment Editor, there are a star(*) sign on both sides like this: I tried to remove the star sign from Rapid Environment Editor, but they come back.
Again, is this normal or am I missing anything?
Thank you both of you for your time.
Best regards,
Rahid
I appreciate your guidance.
Yes, there was another OpenSim path in Environment variables. I removed that. Now it is working for all examples. For OptimizationExample_Arm26 example, although it is showing "OpenSim example completed successfully", there some .vtp geometry file missing . Is it normal for this example or am I missing something?
Another thing is, I set the the environment variables like this: But when I check the link in Rapid Environment Editor, there are a star(*) sign on both sides like this: I tried to remove the star sign from Rapid Environment Editor, but they come back.
Again, is this normal or am I missing anything?
Thank you both of you for your time.
Best regards,
Rahid