PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • 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 the Linux executable and distributing it
  • Features available in Linux
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Warning
From version 16, WINDEV allows you to create native Linux applications with GUI. See Creating a WINDEV application for Linux for more details.
Overview
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

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 the 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:
  1. Select "Workshop .. Executable .. Generate the Linux executable (console)".
  2. The wizard for creating a Linux executable starts.
  3. Enter the name of the executable. The same name is automatically given to the library associated with the executable.
  4. Specify the framework libraries required for the execution.
  5. Select (if necessary) the components used by the executable.
  6. Specify the error message that will be displayed on the console when a runtime error occurs.
  7. Specify whether the executable must be saved in the Reusability Center.
  8. Specify whether a project backup must be performed.
  9. Validate the creation of the executable.
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 enables you to create a project configuration specific to Linux. In this case, all the 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:
  1. Display the configuration manager ("Project .. Project configurations .. Manage the configurations").
  2. Click the "New configuration" button.
  3. In the wizard, specify the type of generation: "Linux executable".
  4. Select the elements that must be included in this configuration.
    Caution: The Linux executables operate in console mode and therefore they display no window.
  5. Select (if necessary) the components used by the project configuration.
  6. 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.
Note: 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:
  1. Select "Workshop .. Executable .. Generate the Linux executable (console)".
  2. The wizard for creating a Linux executable starts.
  3. Enter the name of the executable. The same name is automatically given to the library associated with the executable.
  4. Specify the error message that will be displayed on the console when a runtime error occurs.
  5. Specify whether the executable will take the patch libraries into account.
  6. Specify the languages supported by the executable.
  7. Specify the elements that will be included in the library.
  8. Select (if necessary) the components used by the executable.
  9. Specify the information about the executable version.
  10. Select the Linux distribution to use.
  11. Specify whether the executable must be saved in the Reusability Center.
  12. Validate the creation of the executable.
Running the test of the Linux executable and distributing it
To run the test of the Linux executable created with WINDEV and to distribute it:
  1. Connect to the Linux computer via the "WinScp" application.
  2. Copy the *.exe, *.WDL and *.SO files found in the EXE directory of the project to the Linux computer.
  3. Change the attributes of the program to give it the execution rights (for example: chmod + x myapp).
  4. Run the program (for instance, to run the executable from the current directory: ./myapp).
Features available in Linux
The following features are available in Linux:
Binary*Managing the stringsEncryption
Managing the datesManaging the EuroInMode*Managing the hours
Managing the numeric valuesException*Managing the external filesFile*
End*Managing the HyperFileSQL filesIni*Java*
Mat*Mem*NetIPAddressNetMachineName
Socket*SQL*Stat*SysEnvironment
SysWindowsVersionURL*XML*Zip*
This list evolves very quickly. We recommend that you check the documentation for each function. The logo indicates whether the function is available in Linux as well as its limitations.
Minimum required version
  • Version 10
Comments
Click [Add] to post a comment