Gambas 3 RC5
Quoi de neuf ?
Cette édition est la cinquième édition de la version candidate de Gambas 3.
Plus de trente bogues ont été réglés, et quelques petites améliorations et optimisations ont été introduites :
-
Mise à jour des traductions française, tchèque et russes.
-
collection interpréteur corrigée.
-
Comparaison de chaîne binaire, comparaison de chaîne avec prise en compte de la localisation, gestionnaire d’Evènement recherche et recherche dans un tableau de chaînes ont étés optimisés.
-
Le stock d’icônes a été mis à jour et un nouveau thème d’application nommé "Gambas" s'y réfère.
-
Key.Code renvoie désormais toujours zéro pour indiquer qu’une touche de modification a été frappée.
Comme d'habitude, merci de transmettre tout problème de compilation et de packaging sur la mailing-list!
Merci d'avance.
Journal des modifications
[CONFIGURATION]
* BUG: Fix mime type registration.
[DEVELOPMENT ENVIRONMENT]
* BUG: Fix database manager field creation.
* BUG: Run projects inside a virtual terminal.
* BUG: Project treeview is drawn in the project open dialog the same way as
in the main window.
* BUG: Fix new Report creation.
* BUG: Saving a project inside its own directory is now forbidden.
* NEW: Update czech translation
* NEW: Support for "Gambas" icon theme.
* NEW: Javascript compression now compress local variable names.
* NEW: Use Key.Escape instead of Key.Esc. Key.Esc will be removed sooner
or later.
* NEW: In the form editor, a control being created now has its handles.
* NEW: The form editor selection frame is transparent now.
* NEW: Move an option in the option dialog.
* NEW: Save executable path as a relative path when it is located inside
the project directory.
* NEW: Update russian translation.
[WEB SITE MAKER]
* NEW: Update czech translation.
[EXAMPLES]
* BUG: Fix create CD-ROM class a to netbook without CD-ROM.
* BUG: Fix the Evaluator example so that the initial values are localized,
and the computed expression always use Float values.
* BUG: Fix Puzzle1To8 example key handling.
* NEW: Update czech translation for GNUBoxWorld.
* NEW: Update czech translation for CDPlayer.
[INTERPRETER]
* BUG: Initialize the locale before loading any class.
* BUG: Collection keys are now hashed with their eight last characters.
* BUG: Internal Collection automatic resizing was disabled. Re-enable it!
* BUG: Fix internal collection hash table resizing.
* BUG: Fix internal UTF-8 to Unicode conversion routine.
* BUG: Correctly check how a system file descriptor is opened when
watching it.
* BUG: Fix GB.System.Charset() API.
* BUG: Try to not lose the value of 'errno' if the select() system call
fails inside the event loop.
* NEW: Disable echo by defaut when running a child process inside a virtual
terminal.
* OPT: Optimization of locale-aware string comparison routine.
* OPT: Do not use sprintf() for searching event handlers in symbol tables.
* OPT: String[].Find() and String[].Exist() are now twice faster for ASCII
binary and case insensitive comparisons.
* OPT: Do not use sprintf() when searching a file inside Gambas archives.
* OPT: Unroll a loop to speed up binary string identity comparison a little
bit.
[COMPILER]
* BUG: Purge .info and .list file from classes with no bytecode object each
time a source file is compiled.
* BUG: Really support reserved words in form control names.
[GB.CAIRO]
* BUG: Remove debugging messages.
[GB.DB.FORM]
* NEW: Update czech translation.
[GB.DESKTOP]
* NEW: Use Gnome keyring for storing passwords on LXDE desktops.
[GB.FORM]
* NEW: Update czech translation.
* NEW: Some little clean-up in stock icons management.
* NEW: Use Key.Escape instead of Key.Esc.
[GB.FORM.DIALOG]
* NEW: Update czech translation.
[GB.FORM.MDI]
* NEW: Update czech translation.
[GB.FORM.STOCK]
* BUG: Fix the stock icons.
* NEW: Add an "hardware" stock icon.
* NEW: Add an "heart" stock icon.
* NEW: Remove the "modem" icon.
* NEW: Use elementary icons instead of ubuntu ones.
[GB.GTK]
* BUG: Fix an infinite resizing loop in GridView scrollbar layouting.
* BUG: Form key event handlers catch key events before the control now.
* BUG: Always add an alpha channel to loaded images, because gdk-pixbuf
RGB images rowstride is rounded up to a four bytes multiple. The gb.image
component does not support that yet!
* BUG: Fix arrangement when there is no place for expanded controls.
* NEW: Key.Code now returns zero when a modifier key is pressed. That way,
you can detect if we are pressing (or releasing) a modifier key.
* NEW: Color.TooltipBackground and Color.TooltipForeground are two new
properties that return the color used by tooltips.
[GB.IMAGE.IO]
* BUG: Always add an alpha channel to loaded images, because gdk-pixbuf
RGB images rowstride is rounded up to a four bytes multiple. The gb.image
component does not support that yet!
[GB.NET.SMTP]
* BUG: Fix a typo mistake in configure.ac file.
[GB.QT4]
* BUG: Fix GridView Row and Column property.
* BUG: Fix GridView Change event in single selection mode.
* BUG: Remove an apparently now useless trick in GridView Change event
management.
* BUG: Form key event handlers catch key events before the control now.
* BUG: Fix arrangement when there is no place for expanded controls.
* NEW: Key.Code now returns zero when a modifier key is pressed. That way,
you can detect if we are pressing (or releasing) a modifier key.
* NEW: Color.TooltipBackground and Color.TooltipForeground are two new
properties that return the color used by tooltips.
[GB.REPORT]
* NEW: Update czech translation.
[GB.WEB]
* BUG: Be robust against malformed cookies.
Nécéssités
Pour compiler Gambas, vous devez installer sur votre système les bibliothèques suivantes :
Composant
|
Nécessite
|
Compilation
|
gcc g++ automake autoconf libtool > 2.0
|
Interpreteur
|
libffi
|
gb.compress.bzlib2
|
libbz2.so
|
gb.compress.zlib
|
libz.so
|
gb.cairo
|
cairo
|
gb.crypt
|
libcrypt.so
|
gb.db.mysql
|
libmysqlclient.so , libz.so
|
gb.db.odbc
|
libodbc.so
|
gb.db.postgresql
|
libpq.so
|
gb.db.sqlite2
|
libsqlite.so
|
gb.db.sqlite3
|
libsqlite3.so
|
gb.desktop
|
libXtst.so
|
gb.gtk
|
Toutes les bibliothèques GTK+ >= 2.10 librsvg2.so cairo
|
gb.image.io
|
gdk-pixbuf
|
gb.image.imlib
|
imlib
|
gb.net.curl
|
libcurl.so
|
gb.opengl gb.opengl.glsl
|
libGL.so , libGLEW.so
|
gb.opengl.glu
|
libGLU.so
|
gb.pcre
|
libpcre.so
|
gb.pdf
|
libpoppler.so
|
gb.qt4 gb.qt4.ext gb.qt4.opengl gb.qt4.webkit
|
Toutes les bibliothèques qt 4 >= Qt 4.5
|
gb.sdl
|
libSDL.so , libSDL_ttf.so , libGL.so , libGLEW.so
|
gb.sdl.sound
|
libSDL.so , libSDL_mixer.so
|
gb.v4l
|
libjpeg.so , libpng.so ,Video4Linux >= 2.0
|
gb.xml
|
libxml-2.0
|
gb.xml.xslt
|
libxslt
|
Et n’oubliez pas d’installer tous les paquets de développement relatifs!
Essayez de toujours utiliser une version récente de ces bibliothèques.
Pour compiler l’environnement de développement, vous devez compiler les composants suivants :
Vous devez posséder les droits en écriture sur
/tmp
, sinon Gambas ne fonctionnera pas.
Ce paquet a été réalisé avec les versions suivantes des outils GNU sur Ubuntu 10.10:
-
automake
1.11.1
-
autoconf
2.67
-
libtool
2.2.6b
Compilation & Installation
Vérifier l’installation
Tout d’abord, assurez vous que vous avez installé toutes les bibliothèques nécessaires, et tout spécialement, tous les paquets de développement.
N’oubliez pas de consulter la page
Compilation et installation. Vous y trouverez peut être des informations spécifiques à votre distribution.
Configuration du paquet Source
Quand vous serez certains que tout est installé, entrez dans une console les phrases magiques suivantes.
'$'
represente votre invite de shell, et '...'
les
messages affichés pendant la configuration et la compilation.
Tapez d’abord ceci pour créer les scripts de configuration.
Puis cela pour analyser le système en cours et configurer le paquetage :
Si une bibliothèque ou un paquet fait défaut, vous serez alors avertis que quelques composants sont désactivés.
Il y a des explications complémentaires spécifiques à 'configure' dans le fichier INSTALL
situé au sommet de l’arborescence du code source.
Je vous invite à les lire.
Compilation
Si tout est configuré sans erreur, lancez alors cette commande pour compiler le programme :
Installation
Si tout se compile sans erreur, lancez enfin cette commande pour tout installer :
Vous devez être root
(administrateur) pour installer Gambas sur votre système.
$ su -c "make install"
Password: <Entrez ici le mot de passe root>
...
ou
$ sudo make install
Password: <Entrez ici votre mot de passe>
...
Dépannage
Si vous faites plusieurs compilations successives, après avoir mis à jour les sources à partir du dépôt Subversion par exemple, et si quelque chose échoue pendant tout ce processus, vous pouvez tenter de "reconfigurer" les scripts de configuration en entrant la commande suivante :
Puis vous pouvez exécuter à nouveau
./configure -C
Si ça ne fonctionne pas, il me faut savoir exactement ce qui est arrivé.
Pour cela, tapez la commande suivante :
$ ( ./configure -C; make; make install ) > output.txt 2>&1
Et transmettez moi le fichier "output.txt" par mail, ainsi que tout autre détail qui vous paraît utile concernant votre machine et votre distribution.
Exécuter Gambas
Si tout s’est bien passé, tapez "gambas3" pour lancer l’ environnement de développement.
Profitez en!
Voir aussi