Creating a Module under Windows
Creating a Module under WindowsPosted by Martin Hennig at November 20. 2012
Is it even possible to build a module and include it in Salome under Windows? I just found tutorials for Linux in the documentation (like the HELLO module).
Would be great if someone could point me to a tutorial or explain shortly what you need to do differently to that tutorial in the documentation!
Thanks in advance,
Unfortunately, there is no any "how-to" document that would provide a description of the module implementation specifically for Windows platform. Existing tutorials relate to the Linux platform only.
The main problem is that from its origin SALOME was mainly aimed to the Linux platform and, thus, used build system based on GNU auto-tools (autoconf / automake / libtool / GNUmake). For building SALOME on Windows, CMake was later used that allowed generation of MS Visual Studio solutions. CMake input files are generated from the Makefiles by hand-made Python script. Unfortunately, this script contains some hardcoded staff and, thus, cannot be considered as universal solution that would be appropriate for any custom 3rd-party module. However, it might work in simple cases.
On the other hand, you can refer to PARAVIS as an example of the module, completely based on CMake, that makes cross-platform solution for both Linux and Windows.
So, you have two choices:
1) Take PARAVIS as example of the module based on CMake. Note that PARAVIS is very specific case of SALOME module, so you only need to refer to it for the build procedure.2) Create GNU auto-tools -based module following the description provided in SALOME Tutorial and try am2cmake procedure for converting Makefiles to CMake. If needed, you can also attune am2cmake script for your own purposes, though this might be not an easy task.
May I ask where are these tutorials to create a Salome modules on Linux?
I have not been able to find them.
Is it in the Kernel User's Guide?
Thank you for your help,
SALOME Tutorial is provided within TUTORIAL package which is a part of SALOME distribution. However, it is distributed only with SALOME Install Wizard archives for Linux. Neither universal Linux binaries nor Windows binaries packages contain SALOME Tutorial. In such a case you can download archive with SALOME Tutorial from download page (see Sources and Documentation section).
Thank you very much!
Re: Creating a Module under WindowsPosted by Martin Hennig at November 21. 2012
Thank you very much, Adam! If I should choose to give this way a try, I'll report back with my results and maybe a small how-to.
Re: Creating a Module under WindowsPosted by Thomas PEDOT at November 21. 2012
I will be interested by this subject.
Do you plan to developpe a module in c++ or in python ?
Re: Creating a Module under WindowsPosted by Martin Hennig at November 23. 2012
It would be definitely in c++.
I reactivate this thread since I am exploring the possibilities to create a Salomé module under Windows. Maybe things have evolved since the thread was started almost 2 years ago...
My questions are:
1. Is there documentation and/or a tutorial for beginners? I have had a brief look at the PYHELLO and HELLO modules documentation and at the YACSGEN documentation and find them difficult to understand.
2. What is the status for mudule creation under Windows?
3. I want to add some dialogs, maybe a menu, and call external programs. Can this be done with Python scripts, maybe without explicitly creating a module?
4. Is there a reference for Python under Salomé where I can get an overview on what is possible with a Python script?
5. What would it take to create a module from an existing C++ program under Windows? Is there any documentation on the ParaVis module that could teach me how this has been done?
Thank you for any helpful hints,
Re: Creating a Module under WindowsPosted by Matthias Zenker at Tuesday 10:51
some informations or hints, anyone?
Or am I asking at the wrong place?
If so, where do I have to look for assistance?