From 16d4535b347502e1467045dc1a27a5eaad9eebc7 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 13 Jan 2021 14:54:35 +0100 Subject: [PATCH] Solve _SMeshHelper.so import error --- src/SMESH_I/CMakeLists.txt | 1 + src/SMESH_SWIG/SMeshHelper.cxx | 2 +- src/SMESH_SWIG/SMeshHelper.i | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) 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); } } -- 2.39.2