- Overview
- Creating a Linux project
- Creating a Linux project
- Creating a Linux executable directly
- Creating a project configuration specific to the Linux executable
- Running the test of Linux executable and distributing it
- Features available in Linux
WINDEV allows you to create batch programs in Linux (applications in console mode, without GUI). These programs may be useful to automate file copy on a Linux server for instance, ... Creating a Linux project A WINDEV project run in Linux is a project without interface: in most cases, it contains sets of procedures, classes, ... that are started from the initialization code of project. Some information can be displayed in console mode on the runtime computer: to do so, use dbgStandardOutput and specify the text to display. To create a Linux executable, you can: - create a Linux executable directly.
- create a project configuration specific for Linux.
Creating a Linux executable directly Once your project contains all the elements required for your Linux executable to operate, the Linux executable can be directly created: - Select "Workshop .. Executable .. Generate the Linux executable (console)".
- The wizard for creating a Linux executable starts.
- Type the executable name. The same name is automatically given to the library associated with the executable.
- Specify the framework libraries required for the execution.
- Select (if necessary) the components used by the executable.
- Specify the error message that will be displayed on the console when a runtime error occurs.
- Specify whether the executable must be saved in the Reusability Center.
- Specify whether a project backup must be performed.
- Validate the executable creation.
When creating the executable: - The EXE directory of the project contains all the files required to run the Linux program: executable (*.exe), library (*.wdl), Linux framework (*.so files).
- The configuration of the current project is automatically configured to generate a Linux executable.
Creating a project configuration specific to the Linux executable To create a Linux executable, WINDEV also allows you to create a project configuration specific to Linux. In this case, all elements required to create a Linux executable can be grouped in this project configuration. To generate the Linux executable, all you have to do is select the corresponding configuration in the editor, then create the executable. To create a new project configuration for a Linux executable: - Display the configuration manager ("Project .. Project configurations .. Manage the configurations").
- Click the "New configuration" button.
- In the wizard, specify the type of generation: "Linux executable".
- Select the elements that must be included in this configuration.
Caution: The Linux executables operate in console mode and therefore they display no window. - Select (if necessary) the components used by the project configuration.
- Validate.
To select the project configuration for the Linux executable: - Display the configuration manager ("Project .. Project configurations .. Configuration management") and select the requested configuration.
- Display the "project explorer" pane ("Display .. Toolbars .. Panes .. Project explorer") and select the requested configuration in this pane.
Remark: When the project configuration specific to Linux is displayed in the editor, the "Compilation errors" tab displays the compilation errors specific to the compilation of the Linux executable. To start creating the Linux executable: - Select "Workshop .. Executable .. Generate the Linux executable (console)".
- The wizard for creating a Linux executable starts.
- Type the executable name. The same name is automatically given to the library associated with the executable.
- Specify the error message that will be displayed on the console when a runtime error occurs.
- Specify whether the executable will take the patch libraries into account.
- Specify the languages supported by the executable.
- Specify the elements that will be included in the library.
- Select (if necessary) the components used by the executable.
- Specify the information about the executable version.
- Select the Linux distribution to use.
- Specify whether the executable must be saved in the Reusability Center.
- Validate the executable creation.
Running the test of Linux executable and distributing it To run the test of Linux executable created with WINDEV and to distribute it: - Connect to the Linux computer via the "WinScp" application.
- Copy the *.exe, *.WDL and *.SO files found in the project EXE directory to the Linux computer.
- Change the program attributes to give it the execution rights (for example: chmod + x myapp).
- Run the program (for example, to run the executable from the current directory: ./myapp).
Features available in Linux The following features are available in Linux: | | | | Binary* | Management of strings | Encryption | | Management of dates | Management of Euro | InMode* | Management of times | Management of numeric values | Exception* | Management of external files | File* | End* | Management of HyperFileSQL files | Ini* | Java* | Mat* | Mem* | NetIPAddress | NetMachineName | Socket* | SQL* | Stat* | SysEnvironment | SysWindowsVersion | URL* | XML* | Zip* |
This list evolves very quickly. It is recommended to check the documentation for each function. The  logo indicates whether the function is available in Linux as well as its limitations.
|
|
|
|