]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Merge multi-study removal branch.
authorrnv <rnv@opencascade.com>
Wed, 7 Jun 2017 11:24:09 +0000 (14:24 +0300)
committerrnv <rnv@opencascade.com>
Wed, 7 Jun 2017 11:24:09 +0000 (14:24 +0300)
13 files changed:
1  2 
bin/runConsole.py
bin/runSalome.py
src/Container/Component_i.cxx
src/Container/Container_i.cxx
src/Container/SALOME_ComponentPy.py
src/KERNEL_PY/salome_test.py
src/Launcher/Test/test_launcher.py
src/MPIContainer/MPIContainer_i.cxx
src/ModuleCatalog/SALOME_ModuleCatalog_Handler.cxx
src/ParallelContainer/SALOME_ParallelComponent_i.cxx
src/ParallelContainer/SALOME_ParallelContainerProxy_i.cxx
src/ParallelContainer/SALOME_ParallelContainer_i.cxx
src/SALOMEDSClient/SALOMEDSClient_ClientFactory.cxx

Simple merge
Simple merge
Simple merge
index b681a0124fcf7595b4e1eadab09e5016772a86c7,06cd2c382b5aefa320d67f5afbd25f9348aec204..05ca6945496d7435a406ecd46024c10d722cad6c
@@@ -518,40 -514,36 +518,40 @@@ Engines_Container_i::load_component_Cpp
  
  #ifndef WIN32
    void* handle;
 -  handle = dlopen( impl_name.c_str() , RTLD_NOW ) ;
 +  handle = dlopen( impl_name.c_str() , RTLD_NOW | RTLD_GLOBAL ) ;
    if ( !handle )
-     {
-       //not loadable. Try to find the lib file in LD_LIBRARY_PATH
-       std::string path;
+   {
+     //not loadable. Try to find the lib file in LD_LIBRARY_PATH
+     std::string path;
 -    char* p=getenv("LD_LIBRARY_PATH");
 -    if(p)path=p;
 -    path=path+SEP+"/usr/lib"+SEP+"/lib";
 -
 -    std::string pth;
 -    if(findpathof(path, pth, impl_name))
 -    {
 -      //found but not loadable
 -      reason="Component ";
 -      reason+=aCompName;
 -      reason+=": C++ implementation found ";
 -      reason+=pth;
 -      reason+=" but it is not loadable. Error:\n";
 -      reason+=dlerror();
 -      std::cerr << reason << std::endl;
 -      return false;
 -    }
 -    else
 -    {
 -      //not found
 -      //continue with other implementation
 -      reason="ImplementationNotFound";
 -      return false;
 +#ifdef __APPLE__
 +      char* p=getenv("DYLD_LIBRARY_PATH");
 +#else
 +      char* p=getenv("LD_LIBRARY_PATH");
 +#endif
 +      if(p)path=p;
 +      path=path+SEP+"/usr/lib"+SEP+"/lib";
 +
 +      std::string pth;
 +      if(findpathof(path, pth, impl_name))
 +        {
 +          //found but not loadable
 +          reason="Component ";
 +          reason+=aCompName;
 +          reason+=": C++ implementation found ";
 +          reason+=pth;
 +          reason+=" but it is not loadable. Error:\n";
 +          reason+=dlerror();
 +          std::cerr << reason << std::endl;
 +          return false;
 +        }
 +      else
 +        {
 +          //not found
 +          //continue with other implementation
 +          reason="ImplementationNotFound";
 +          return false;
-         }
      }
+   }
  #else
    HINSTANCE handle;
    handle = LoadLibrary( impl_name.c_str() );
Simple merge
Simple merge
Simple merge
Simple merge
index 14a6129349da0061d327af399049a825514c9e4f,c6f041c810d4fc1436e747fba4ed3c3dc8c7e9b1..9ec140d574c29ab11e02e89fb86737456b2dd97d
@@@ -419,19 -409,9 +413,13 @@@ Engines_Parallel_Container_i::create_co
    MESSAGE("Begin of create_component_instance in node : " << getMyRank());
    reason=CORBA::string_dup("");
  
-   if (studyId < 0)
-   {
-     INFOS("studyId must be > 0 for mono study instance, =0 for multiStudy");
-     return Engines::EngineComponent::_nil() ;
-   }
    std::string aCompName = genericRegisterName;
  #ifndef WIN32
 +#ifdef __APPLE__
 +  std::string impl_name = string ("lib") + aCompName + string("Engine.dylib");
 +#else
    std::string impl_name = string ("lib") + aCompName +string("Engine.so");
 +#endif
  #else
    std::string impl_name = aCompName +string("Engine.dll");
  #endif