Page 1 of 1

Rebilding with VS2017

Posted: Thu Apr 16, 2020 12:00 am
by mitul92
While trying to remake plugin, I tried to modify Cmake file to add SimTK and simbody include and library files.
**************************************************
SET(OPENSIM_INSTALL_DIR "C:/OpenSim 4.1/" CACHE PATH
"Top-level directory of OpenSim install")

SET(CUSTOM_LIGAMENT_PLUGIN_NAME "CustomLigament" CACHE STRING "Name of shared library to create")

### HEADERS
SET(OPENSIM_HEADERS_DIR ${OPENSIM_INSTALL_DIR}/sdk/include)
SET(SIMTK_HEADERS_DIR ${OPENSIM_INSTALL_DIR}/sdk/Simbody/include)

INCLUDE_DIRECTORIES(${OPENSIM_HEADERS_DIR}
${SIMTK_HEADERS_DIR})

### LIBRARIES
SET(OPENSIM_LIBS_DIR
${OPENSIM_INSTALL_DIR}/sdk/Simbody/lib
${OPENSIM_INSTALL_DIR}/sdk/lib)
LINK_DIRECTORIES(${OPENSIM_LIBS_DIR})
**********************************************
But now Visula Studio is throwing errors related to Namespace(like cant find virtual, bool) meaning Headers and namespaces of simbody has hierarchy difference. Can someone help in rebuilding the plugin for Opensim4.1?