How to add and compile a new Muscle
Posted: Wed Oct 10, 2018 8:02 am
Dear all,
We are interested in creating a new muscle model and using it in some of upper-arm musculoskeletal models available on simtk.
In particular, we have downloaded the Muscle class available on https://simtk.org/projects/afferents, which extends the default Millard model, and we want to use this model instead of the classical one.
It is not clear for us if we have to put the new cpp classes in the directory "opensim-core" and then to compile as usual for generation the directory "opensim-install" or if we have to follow another procedure.
We tried to compile the new cpp classes together with opensim but we experienced some issues in the process: some libs are required and not found.
Any suggestion?
Thanks and Best regards
We are interested in creating a new muscle model and using it in some of upper-arm musculoskeletal models available on simtk.
In particular, we have downloaded the Muscle class available on https://simtk.org/projects/afferents, which extends the default Millard model, and we want to use this model instead of the classical one.
It is not clear for us if we have to put the new cpp classes in the directory "opensim-core" and then to compile as usual for generation the directory "opensim-install" or if we have to follow another procedure.
We tried to compile the new cpp classes together with opensim but we experienced some issues in the process: some libs are required and not found.
Any suggestion?
Thanks and Best regards
Lin02GolgiTendonOrgan.obj : error LNK2019: unresolved external symbol __imp_RegisterTypes_osimAnalyses non r
isolto nella funzione "void __cdecl `dynamic initializer for 'instantiator''(void)" (??__Einstantiator@@YAXXZ) [
C:\opensim-build\OpenSim\Actuators\osimActuators.vcxproj]
Mileusnic06Spindle.obj : error LNK2001: simbolo esterno __imp_RegisterTypes_osimAnalyses non risolto [C:\opensim
-build\OpenSim\Actuators\osimActuators.vcxproj]
Millard12EqMuscleWithAfferents.obj : error LNK2001: simbolo esterno __imp_RegisterTypes_osimAnalyses non risolto
[C:\opensim-build\OpenSim\Actuators\osimActuators.vcxproj]
Lin02GolgiTendonOrgan.obj : error LNK2019: riferimento al simbolo esterno __imp_RegisterTypes_osimTools non riso
lto nella funzione "void __cdecl `dynamic initializer for 'instantiator''(void)" (??__Einstantiator@@YAXXZ) [C:\
opensim-build\OpenSim\Actuators\osimActuators.vcxproj]
Mileusnic06Spindle.obj : error LNK2001: simbolo esterno __imp_RegisterTypes_osimTools non risolto [C:\opensim-bu
ild\OpenSim\Actuators\osimActuators.vcxproj]
Millard12EqMuscleWithAfferents.obj : error LNK2001: simbolo esterno __imp_RegisterTypes_osimTools non risolto [C
:\opensim-build\OpenSim\Actuators\osimActuators.vcxproj]
C:\opensim-build\RelWithDebInfo\osimActuators.dll : fatal error LNK1120: 2 esterni non risolti [C:\opensim-build
\OpenSim\Actuators\osimActuators.vcxproj]
"C:\opensim-build\ALL_BUILD.vcxproj" (destinazione predefinita) (1) ->
"C:\opensim-build\Bindings\Java\JavaBindings.vcxproj" (destinazione predefinita) (3) ->
"C:\opensim-build\Bindings\Java\OpenSimJNI\osimJavaJNI.vcxproj" (destinazione predefinita) (12) ->
"C:\opensim-build\OpenSim\Actuators\osimActuators.vcxproj" (destinazione predefinita) (22) ->
(destinazione: Link) ->
Lin02GolgiTendonOrgan.obj : error LNK2019: riferimento al simbolo esterno __imp_RegisterTypes_osimAnalyses non
risolto nella funzione "void __cdecl `dynamic initializer for 'instantiator''(void)" (??__Einstantiator@@YAXXZ)
[C:\opensim-build\OpenSim\Actuators\osimActuators.vcxproj]
Mileusnic06Spindle.obj : error LNK2001: simbolo esterno __imp_RegisterTypes_osimAnalyses non risolto [C:\opens
im-build\OpenSim\Actuators\osimActuators.vcxproj]
Millard12EqMuscleWithAfferents.obj : error LNK2001: simbolo esterno __imp_RegisterTypes_osimAnalyses non risol
to [C:\opensim-build\OpenSim\Actuators\osimActuators.vcxproj]
Lin02GolgiTendonOrgan.obj : error LNK2019: riferimento al simbolo esterno __imp_RegisterTypes_osimTools non ri
solto nella funzione "void __cdecl `dynamic initializer for 'instantiator''(void)" (??__Einstantiator@@YAXXZ) [C
:\opensim-build\OpenSim\Actuators\osimActuators.vcxproj]
Mileusnic06Spindle.obj : error LNK2001: simbolo esterno __imp_RegisterTypes_osimTools non risolto [C:\opensim-
build\OpenSim\Actuators\osimActuators.vcxproj]
Millard12EqMuscleWithAfferents.obj : error LNK2001: simbolo esterno __imp_RegisterTypes_osimTools non risolto
[C:\opensim-build\OpenSim\Actuators\osimActuators.vcxproj]
C:\opensim-build\RelWithDebInfo\osimActuators.dll : fatal error LNK1120: 2 esterni non risolti [C:\opensim-bui
ld\OpenSim\Actuators\osimActuators.vcxproj]