LNX build issue
Dear @andrew.wilson, I'm trying to run the iMSTK wrapper and the samples for Unity in LNX. Thanks to the fantastic work made in the release 3.0 (@sreekanth-arikatla, @aaron.bray et al.) I could finally compile iMSTK (w/ PhysX =) ) and the examples to continue working in our projects. I'd like to report some issues I found during the compilation process:
-
/src/FemObject.cpp #include <imstkDeformableObject.h> -> #include <imstkFeDeformableObject.h>
-
/iMSTKUnityWrapper/src/PbdObject.cpp pbdConfig->femParams -> pbdConfig->m_femParams
They are related to the modifications in iMSTK. Note: I compiled the UnityIntegration branch from the iMSTK repo but I had to fix several errors. After fixing them, I discarted that version because it's tagged as 2.0 and imstk-unity requires 3.0, as mentioned in the documentation. -
CMAKE
I've got:
/usr/bin/ld: ${iMSTK_DIR}/build/install/lib/libSolvers.a(imstkDirectLinearSolver.cpp.o): relocation R_X86_64_PC32 against symbol `_ZN5Eigen8internal19throw_std_bad_allocEv' can not be used when making a shared object; recompile con -fPIC
That I coud solve removing SHARED in add_library(). This makes the library static (.a instead of .so). I don't know if this change affects the DemoProject example somehow.
- After successfully build and installing the iMSTKUnityWrapper files into the DemoProject, I get the following when I open the project in Unity:
NullReferenceException: Object reference not set to an instance of an object Imstk.DynamicalModel.Update () (at Assets/Scripts/DynamicalModel.cs:158)
That seems to be related with a lack of instantation in the visualGeometry object in DynamicalModel.cs file, but I didn't found public slots in the Unity GUI to fill.
I'm stuck in point 4) I'd appreciate any suggestion to overcome this issue.
The unity wrapper seem to be very promising (@andrew.wilson et al. ) I'll keep tuned to the advances.
Thanks in advance,
System specs:
Debian GNU/Linux 9.5 (stretch)
cmake-3.17.0-rc3
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
Unity (2019.3.10f1)
iMSTK (53903e4762117e5ec761f07f1a437e825296038a)