I'm posting this just in case someone is having issues with compiling the NeoHookeanPI plugin.
Here are the steps that I needed to take to be able to compile the x64 Release version of the NeoHookeanPI example plugin from just the source files with VS2017 and FEBio v2.6.4.
To test for successful compilation:
Here are the steps that I needed to take to be able to compile the x64 Release version of the NeoHookeanPI example plugin from just the source files with VS2017 and FEBio v2.6.4.
- Download and Install FEBio SDK, NeoHookeanPI plugin, VS2013 Community and VS2017 Community
- In VS2017 do File > New > Project ; Visual C++ > Win32 > Win32 Project > (set name and location) > OK ; Next > DLL > Empty project > Finish
- Add source files from NeoHookeanPI\source
- Right-click the project > Properties; Change the following:
- General:- Platform Toolset: Visual Studio 2013 (v120)
- VC++ Directories:- Include Directories: C:\Program Files\febio-2.6.4\sdk\include;...- Library Directories: C:\Program Files\febio-2.6.4\sdk\lib\VS2013;...
- C/C++ > Preprecessor:- Preprecessor Definitions: WIN32;...
- Linker > Input:- Additional Dependencies: fecore.lib;febiomech.lib;...
- General:
To test for successful compilation:
- Open "C:\Program Files\febio-2.6.4\bin\febio.xml"
- Below the linear_solver line add:<import>Path\To\New\Plugin\x64\Release\PluginName. dll</import>
- In NeoHookeanPI\Example run FEBio on co01.feb
Comment