Personal tools
You are here: Home Forum How to use Salome? About suit and LightApp

About suit and LightApp

Up to How to use Salome?


This forum is DEPRECATED, please create new topics in the new SALOME forum.
For existing topics please transfer them to the new forum.

About suit and LightApp

Posted by cmodelhsl at April 09. 2021

Hi all,

Did anybody have the use of LightApp? Today I just tried building SALOME with LightApp only, and want to have a try. But I saw the suitexe/suit cannot startApplication of LightApp in the debug mode.

Here is the logic:

SUITApp.cxx file :

  SUITApp_Application app( argc, argv );
  QString cfgAppName = getAppName( argList.isEmpty() ? QString() : argList.first() );
  // hard-coding for LightApp :( no other way to this for the moment
  if ( cfgAppName == "LightApp" ) {
    app.setOrganizationName( "salome" );
    app.setApplicationName( "salome" );
    app.setApplicationVersion( salomeVersion() );
  }

So I run suitexe with argument LightApp, try to start this application, loaded from LightApp.dll, it always failed.

But I checked the dependency between LightApp and suit, indeed LightApp depends on suit. So I think this hierarchy determines we cannot use such calling process, right?

Thanks and regards.

Re: About suit and LightApp

Posted by vsr at April 09. 2021

Hello Leon,

What do you want to do by running suitexe?

Everything's fine there in SUITApp.cxx. You can see that by running (on Linux) runLightSalome.sh script.

Regards,
Vadim.

Re: About suit and LightApp

Posted by cmodelhsl at April 09. 2021

Hi Vadim,

OK. I am checking that shell script.  Thinking use in win10.  :)

Previously Vadim SANDLER wrote:

Hello Leon,

What do you want to do by running suitexe?

Everything's fine there in SUITApp.cxx. You can see that by running (on Linux) runLightSalome.sh script.

Regards,
Vadim.

 

Re: About suit and LightApp

Posted by vsr at April 09. 2021
Well, there's no bat script which would do the same for Windows. But you can get an idea how to properly set-up launcher. Indeed, it is necessary to attune some environment variables before running suitexe.

Re: About suit and LightApp

Posted by cmodelhsl at April 09. 2021

Yes. I need to understand the code first.

Previously Vadim SANDLER wrote:

Well, there's no bat script which would do the same for Windows. But you can get an idea how to properly set-up launcher. Indeed, it is necessary to attune some environment variables before running suitexe.

 

Re: About suit and LightApp

Posted by cmodelhsl at April 10. 2021

Hi Vadim,

I have started LightApp by your reply. Thanks.

Currently it can do nothing in lightapp desktop. Is it possible to run LightApp with Shaper module loaded only? without CORBA.

Need I config anything for loading shaper if it can work with lightapp?

Regards,

Previously Vadim SANDLER wrote:

Hello Leon,

What do you want to do by running suitexe?

Everything's fine there in SUITApp.cxx. You can see that by running (on Linux) runLightSalome.sh script.

Regards,
Vadim.

 

Re: About suit and LightApp

Posted by cmodelhsl at April 10. 2021

I have tried successfully. Cool.


This forum is DEPRECATED, please create new topics in the new SALOME forum.
For existing topics please transfer them to the new forum.

Powered by Ploneboard
Document Actions