ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing for Linux
  • Overview
  • Creating a project for Linux with WINDEV
  • Creating a project configuration for Linux
  • Testing a Linux WINDEV project
  • Creating the Linux executable
  • Distributing the Linux executable
  • Using a Linux executable
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
WINDEV allows you to develop applications for the Linux operating system.
The method for developing applications for Linux with WINDEV is identical to the method for developing applications for Windows except for some differences. For more details, see Limits of WINDEV applications for Linux.
The WINDEV executables for Linux use the graphic QT library. This library must therefore be installed on Linux machines (version 5 minimum). This library is a standard library, available on most of Linux distributions.
Note: To benefit from SVG image management, the installed QT library must support the SVG image format. For more details, see Distributing a Linux application.
Remarks:
  • Starting with version 27, the following Linux distributions are supported:
    • Debian 9 or later
    • Fedora 25 or later
    • Ubuntu version 18.04 or higher (minimum GCC version: 5.1)
    Starting with version 27, the following Linux distributions are no longer supported:
    • OpenSUSE:Leap:15.0. (The official version is openSUSE Leap 15.2, which is supported).
  • The Linux applications developed with WINDEV operate on the devices equipped with an Intel processor or with a processor compatible with Intel (the ARM processors are not supported).
  • From version 28 onwards, only 64-bit Linux projects and executables can be created..
Creating a project for Linux with WINDEV
To create a Linux project with WINDEV:
  1. Click in the quick access buttons.
    • In the window that appears, click "Project".
    • The project creation wizard starts.
  2. In "Description - Type of project", select "Windows or Linux application". Go to the next step.
  3. Select the desired style book. This style book will be available by default when creating a window or report, and will be applied to all new controls. This option can be modified in the project description window ("Style" tab). Go to the next step.
  4. Specify the project name and location.
  5. Finish the wizard. The created project becomes the current project. This project contains a "64-bit Windows executable" project configuration..
  6. Close the element creation window.
To obtain a WINDEV project for Linux, you can:
To modify the current configuration (and obtain a Linux configuration):
  1. In the "Project Explorer" pane, select the "Windows 64-bit executable" configuration.
  2. Display the context menu and select "Description" from the context menu.
  3. In the "General" tab:
    • Change the configuration name (for example: "64-bit Linux executable").
    • Modify application type. Select "Linux application"..
  4. Validate the project configuration window.
Once you have created, you can develop your project as a regular WINDEV project:
  • Only the controls available for Linux can be created.
  • In the description windows, the options that are not available for Linux are automatically grayed.
  • Compilations errors indicate the functions and the controls not available in Linux.
  • If unavailable controls are found in the Linux executable, a fatal error is displayed at runtime.
Remark: The analysis of a WINDEV Linux project can use the following data file types:
  • HFSQL Classic.
  • HFSQL Client/Server.
  • MySQL.
  • MariaDB.
  • PostgreSQL.
  • SQLite.
Creating a project configuration for Linux
To use an existing WINDEV project in Linux, you must create a project configuration specific to the creation of Linux executables.
To create a new project configuration for Linux:
  1. Start the wizard for creating a new configuration: in the "Project Explorer" pane, display the context menu for the "Configurations" option and select "New configuration".
  2. Enter the name and description of the project configuration and select "Windows or Linux application".
  3. In the next step of the wizard, specify the operating system: "Linux platform".
  4. Finish the wizard. The project configuration is created and automatically selected..
Remark: You can include or exclude project elements in the project configuration at any time using the "Project Explorer" pane (option "Include in current configuration" or option "Exclude from current configuration").. For more details, see Project configuration.
To develop your project:
  • The controls not available for one of the configurations are displayed in blue in the editor.
  • In the description windows, the options that are not available in the current configuration are automatically grayed. The options not available in one of the configurations are displayed in blue.
  • In the Linux configuration, compilation errors indicate the controls not available in Linux.
  • If unavailable controls are found in the Linux executable, a fatal error is displayed at runtime.
  • In the Linux configuration, compilation errors indicate the functions not available in Linux.
Testing a Linux WINDEV project
In Linux mode, the test of a window or the test of the project can be run via the corresponding GO. The test of the application is run in Windows.
Attention: When testing the WINDEV Linux application in GO mode, Linux specificities are not taken into account: all fields work (even those not managed under Linux)..
Creating the Linux executable
To create the Linux executable:
  1. Click in the quick access buttons (this icon appears if the current configuration is a Linux configuration).
  2. The Linux executable creation wizard starts.
  3. Type the executable name. The same name is automatically given to the library associated with the executable.
  4. Select how the library is to be used: built-in library, external library, ... By default, the library is integrated into the executable.
  5. Specify the error message that will be displayed on the console when a runtime error occurs.
  6. Specify whether the executable will take the patch libraries into account.
  7. Specify the languages supported by the executable.
  8. Specify the elements that will be included in the library.
  9. Select (if necessary) the components used by the executable.
  10. Specify the information about the executable. This information can be retrieved through programming with ExeInfo. This information is as follows:
    • the name of the company. For example, the name of the publisher.
    • a short description of the application purpose. For example: "Inventory management".
    • the copyright of the application
    • Website URL: You can enter the URL of your website, for example.
    • Email address: Email address where application users can reach you.
  11. Specify the version number of the executable. The version of an executable is used to find out the features available (or not) in the application used by the end user. This version number can be retrieved through programming with ExeInfo.
    The format of the version number corresponds to a set of 4 numbers separated by dots.
    • The first group of 4 digits corresponds to the number of major changes performed in the application.
    • The second group of 4 digits corresponds to the number of minor changes performed in the application.
    • The third group of 4 digits corresponds to the number of changes without GUI modification performed in the application.
    • The last group of 4 digits corresponds to the number of reviews.
      We advise you to automatically increment this number at each generation. This increment operation is automatically performed if the option "Automatically increment the version at each generation" is checked.
  12. Go to the next step. Accept (if necessary) the project backup suggested by the wizard.
  13. The Linux executable is automatically generated. You have the ability to open the generation directory. This directory contains:
    • a file without extension that is the Linux executable.
    • possibly a WDL file with the same name. It is the library of the executable.
    • the .so files required at runtime.
    • the .FIC, .MMO and .NDX files if your application uses HFSQL Classic data files. The names of the data files must be written in lowercase characters. If data files were present before the project configuration was created, they have been copied in lowercase characters.
    • the files specific to this configuration (.ini configuration file for example).
      Remark: If these files use a specific case, this case must be respected in the application code (Linux being a "case sensitive" system)..
Note: To open a file explorer on the application's generation directory, under the "Home" pane, in the "General" group, pull down the option and select "Open generation directory"..
Distributing the Linux executable
The Linux applications have no setup like in Windows.
To distribute a WINDEV Linux application, the entire content of the generation directory must be supplied to the users.
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 for example.
  2. Copy the contents of the generation directory to the Linux workstation: executable, *.WDL (if you've chosen an external library) and *.so.
  3. Change the program attributes to grant execution rights to the program:
    • check "Allow the execution of the file like a program" in the context menu of the file
    • use the following command line in the console:
      chmod + x myapp
  4. Run the program. For example, to launch the executable in the current directory, use the notation: ./myappli (the application name must be preceded by /.).
Note: To update a Linux application, simply:
  • regenerate the executable.
  • copy the executable file only in the directory of the Linux application (if the library is included in the executable).
  • copy the generated WDL file only in the directory of the Linux application (if the library is not included in the executable).

Using a Linux executable

To use a Linux executable, the QT library (Core and GUI) version 5 (or later) must be installed.
In Ubuntu, this library can be installed with the following command::
sudo apt-get install libqtcore5 libqtgui5
Note: To benefit from SVG image management, the installed QT library must support the SVG image format.
Related Examples:
WD Managing Contacts Complete examples (WINDEV): WD Managing Contacts
[ + ] This example presents the management of contacts in WINDEV.
The following topics are presented in this example:
1/ the loopers
2/ the label reports
3/ the queries
4/ sending emails
5/ using Outlook
6/ handling the data found on a mobile device.
Summary of the example supplied with WINDEV:
This example is used to manage the contacts and to send emails.
It also enables you to synchronize these contacts with the ones found on the mobile device connected to the PC and with the ones found in Outlook.
Minimum version required
  • Version 16
Comments
Click [Add] to post a comment

Last update: 01/16/2025

Send a report | Local help