IDE Window: Configure Build Lazarus/fr

From Lazarus wiki
Revision as of 14:06, 22 July 2007 by Paulatreides (talk | contribs)
Jump to navigationJump to search

Deutsch (de) English (en) français (fr) português (pt)

L'IDE peut reconstruire Lazarus et cette boite de dialogue défini ce qui est reconstruit et comment. Il fait cela, en appelant make et quelques paramètres supplémentaires. Seul les paquets personnalisables, que vous installez vous-même sont compilés en appelant le compilateur directement .

Important: Conservez toujours un backup de l'executable de l'IDE (Pour Windows: lazarus.exe, autre: lazarus).

Démarrage rapide: Recompilez l'IDE

Cliquez sur le bouton 'paramétrer "Construire tout"' en haut de la fiche. Cela va paramétrer les options pour tout reconstruire. Ensuite cliquez sur le bouton en bas 'Construire'. La boite de dialogue va se fermer et reconstruire toutes les parties de Lazarus - la bibliothèque LCL, son interface courante (winapi sous windows, gtk sous linux, etc.), les paquets nécessaires et l'IDE.

Les parties

Lazarus se compose de plusieurs parties:

  • LCL - c'est la bibliothèque de composants de Lazarus et l'interface actuelle. L'interface peut être sélectionnée avec le groupe de boutons vers la droite (gtk, gtk2, win32/win64, wince, carbon, qt, fpgui). La bibliothèque LCL contient les composants visuels, comme TButton et TForm. Les composants non visuels ne font pas partie de Lazarus, mais des paquets de FreePascal (par exemple des bibliothèques FCL et RTL).
  • SynEdit - c'est le composant de l'éditeur de source utilisé par l'IDE. Il contient le composant visuel TSynEdit et les barres de mise en valeur.
  • Outils de code - C'est la collection des outils pour analyser et éditer le code source.
  • Enregistrement d'un paquet - Ceci contient l'unité de plus bas niveau utilisée par tout les paquets de Lazarus.
  • Interface IDE - C'est le paquet IDEIntf. Chaque paquet de conception, qui prolonge l'IDE emploie ce paquet .
  • Fiche JIT - Ceci contient une unité spéciale, utilisée pour créer des classes durant l'exécution. En raison de son haut niveau d'implémentation, il n'est pas compatible à toutes les options de déboguage et de profilage et est donc une partie de lui-même. A la longue, celui-ci sera déplacé vers l'IDE.
  • IDE - le reste de l'IDE
  • Lanceur - C'est l'application startlazarus, qui est utilisée pour redémarrer l'IDE et/ou démarrer l'IDE construit par lui-même.
  • Exemples - Ce sont les démos simples. Il y a des démos et des exemples plus complexes dans les sous-répertoires des exemples.

Les parties sont ordonnées. Cela signifie que si vous recompilez la bibliothèques LCL, toutes les parties en-dessous doivent aussi être recompilées.

LCL interface

Here you can select the LCL interface, which will be built. The LCL (Lazarus Component Library) contains two layers: The platform independent part and the platform dependent part (e.g. interface to gtk or win32). Some interfaces work on several platforms, some not. See below for details. In most cases, you don't need to worry about this. A normal application only use the platform independent LCL, which automatically use the right interface. Fiddle with this option only, if you want to use one of the unstable and incomplete interfaces or if you want to cross compile to another platform. See the list below.

  • gtk - stable and complete. It uses gtk 1.2 libraries. It is available under Linux, MacOSx and FreeBSD. gtk itself runs on more platforms, but the LCL gtk interface does not yet. This is the default for Linux, MacOSX and FreeBSD. Of course a gtk application runs under KDE and Gnome as well. For MacOSX you need X.
  • gtk2 - almost complete, but still a lot of bugs and open issues. It is available under the same platforms as the gtk interface.
  • gnome - stable and complete. It uses the gtk interface and adds some gnome specific additions. Of course a gnome application runs under KDE and other window managers as well. removed in version 0.9.23
  • win32 - stable and complete. It is available for all flavours of PC windows (Win98, Win2k, WinNT, WinXP, ...).
  • wince - unstable and incomplete. It is available for WinCE.
  • carbon - unstable and incomplete. It runs natively under MacOSX.
  • qt - unstable and incomplete. It uses the qt libraries, the base of most KDE applications. Of course a qt application runs under other window managers as well.


Note: The LCL interface on this dialog only applies to the building of Lazarus (including the LCL). All other IDE features use the compiler options (Project > Compiler options).

Options

Provide here options, that will be appended with OPT parameter.

Target OS

To cross compile parts of Lazarus, provide here the target operating system. For example win32 to cross compile from linux to windows. Keep in mind, that to cross compile you need cross compiled binutils and all libraries for the target platform as well.

Target directory

To compile the IDE to another directory. This option does only work fot the IDE, no other part supports this.

Target CPU

To cross compile parts of Lazarus, provide here the target cpu. For example x86_64 to cross compile from an i386 system to an amd64 system. Keep in mind, that to cross compile you need cross compiled binutils and all libraries for the target platform as well.

Restart after successfull build

If build of the IDE succeded, restart the IDE.

Confirm before Rebuild Lazarus

To avoid rebuilding the IDE by accident, you can here enable a confirmation message. If you are a crack that never failes then disable it.

Buttons

  • Build - Save options and build.
  • Save settings - Save options and close dialog
  • Cancel - Abandon changes and close dialog.

If something went wrong

After rebuilding the IDE, it crashes or is unusable and you don't have a backup

Dont' panic! You can easily compile a basic IDE on the command line.

cd /path/to/lazarus
make clean all

This will compile an IDE without special packages. Your old installed packages are not installed, but are marked for installations. That means when you build the IDE with the IDE, it will create an IDE with all your packages. If you installed a buggy package, then you can simply open the package and uninstall it.