- This topic has 2 replies, 2 voices, and was last updated 6 years, 1 month ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › Sensable Compilation Error
Tagged: 64_bits, SOFA_1806, vs2015, Windows_10
Hi,
I observed the following error when i am compiling Sensable plugin from Sofa-1806. Although this plugin may not be maintained for a while, I really hope i can still use the Sensable plugin since i have been working based on that plugin and made quite a few features.
The followings are the compilation errors I have:
Error C2385 ambiguous access of ‘create’ Sensable C:\Users\Ruiliang\Documents\TIPS\sofa1806tips\sofa\v18.06\src\SofaKernel\framework\sofa\core\ObjectFactory.h 208
Error C2594 ‘argument’: ambiguous conversions from ‘sofa::component::controller::EnslavementForceFeedback::MyType *’ to ‘sofa::core::objectmodel::BaseObject *’ Sensable C:\opt\boost_1_64_0\boost\smart_ptr\detail\sp_convertible.hpp 49
Dear @rgao16sofa
Indeed the Sensable plugin is not maintained for a while, but I guess we can still make it work.
Here some debugging is necessary.
Have you look into the create() function of your Sensable plugin?
Is this function following the BaseObject API?
Is this the entire error log?
Are you joining us at the SOFA Week? it would make debug easier.
Best
Hugo
Thanks Hugo,
Yes it is the entire error log.
the create() function of the Sensable plugin refers to ObjectFactory.h with the following lines:
objectmodel::BaseObject::SPtr createInstance(objectmodel::BaseContext* context, objectmodel::BaseObjectDescription* arg)
{
RealObject* instance = NULL;
return RealObject::create(instance, context, arg);
}
These are the original source code from sofa1806 that i didn’t make any changes to it.
It’s a pity that i can’t join you at SOFA week. Hoping someone can help fix the Sensable plugin remotely.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.