From: Anthony Geay Date: Wed, 13 Jan 2021 13:54:35 +0000 (+0100) Subject: Solve _SMeshHelper.so import error X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=16d4535b347502e1467045dc1a27a5eaad9eebc7;p=modules%2Fsmesh.git Solve _SMeshHelper.so import error --- diff --git a/src/SMESH_I/CMakeLists.txt b/src/SMESH_I/CMakeLists.txt index 4f1695d84..1807b7dac 100644 --- a/src/SMESH_I/CMakeLists.txt +++ b/src/SMESH_I/CMakeLists.txt @@ -70,6 +70,7 @@ SET(_link_LIBRARIES ${KERNEL_SalomeIDLKERNEL} ${KERNEL_SALOMELocalTrace} ${KERNEL_SalomeKernelHelpers} + ${KERNEL_SalomeDS} ${OpenCASCADE_ApplicationFramework_LIBRARIES} ${OpenCASCADE_ModelingAlgorithms_LIBRARIES} ${GEOM_GEOMClient} diff --git a/src/SMESH_SWIG/SMeshHelper.cxx b/src/SMESH_SWIG/SMeshHelper.cxx index a9c10eadf..c370fbb37 100644 --- a/src/SMESH_SWIG/SMeshHelper.cxx +++ b/src/SMESH_SWIG/SMeshHelper.cxx @@ -36,7 +36,7 @@ std::string BuildSMESHInstanceInternal(bool checkNS) // { char *argv[4] = {"Container","FactoryServer","toto",nullptr}; - Engines_Container_i *cont = new Engines_Container_i(orb,poa,"FactoryServer",2,argv,false,false); + Engines_Container_i *cont = new Engines_Container_i(orb,poa,"FactoryServer",2,argv,false,checkNS); conId = poa->activate_object(cont); } // diff --git a/src/SMESH_SWIG/SMeshHelper.i b/src/SMESH_SWIG/SMeshHelper.i index a3f599dc3..8745d96e0 100644 --- a/src/SMESH_SWIG/SMeshHelper.i +++ b/src/SMESH_SWIG/SMeshHelper.i @@ -27,8 +27,8 @@ %inline { - std::string BuildSMESHInstance() + std::string BuildSMESHInstance(bool checkNS) { - return BuildSMESHInstanceInternal(false); + return BuildSMESHInstanceInternal(checkNS); } }