Re: [Gambas-user] htonl equal
I guess *gb.BigEndian* and *gb.LittleEndian* are what you are looking for. *System.ByteOrder* will return the endianness of the operating system. Regards Les Hardy Mohammad Razeghi wrote: Hi I am looking for c++ htonl function equal in gambas can any one help please ? Thanks ... -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas on Synolgy DS-209+II
Hi, I'm trying to install gambas on my Synology DS-209+II NAS. So far bad luck. I'm not very experienced in Linux, so it might me my shortcoming ... This is what I did: 1. installed IPKG 2. installed Synology development software (ipkg install optware-devel). See logging: Installing optware-devel (6.8-10) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/optware-devel_6.8-10_powerpc.ipk package apr-util suggests installing sqlite package apr-util suggests installing openldap-libs package tar suggests installing bzip2 package tar suggests installing gzip package tar suggests installing xz-utils Installing autoconf (2.63-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/autoconf_2.63-1_powerpc.ipk Installing make (3.81-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/make_3.81-2_powerpc.ipk Installing m4 (1.4.14-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/m4_1.4.14-1_powerpc.ipk Installing automake (1.10-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/automake_1.10-2_powerpc.ipk Installing bash (3.2.49-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/bash_3.2.49-1_powerpc.ipk Installing readline (6.1-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/readline_6.1-2_powerpc.ipk Installing ncurses (5.7-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/ncurses_5.7-1_powerpc.ipk Installing bison (2.4.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/bison_2.4.1-1_powerpc.ipk Installing bzip2 (1.0.5-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/bzip2_1.0.5-2_powerpc.ipk Installing coreutils (8.4-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/coreutils_8.4-1_powerpc.ipk Installing diffutils (2.9-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/diffutils_2.9-1_powerpc.ipk Installing file (5.04-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/file_5.04-1_powerpc.ipk Installing zlib (1.2.4-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/zlib_1.2.4-1_powerpc.ipk Installing findutils (4.2.32-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/findutils_4.2.32-1_powerpc.ipk Installing flex (2.5.35-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/flex_2.5.35-1_powerpc.ipk Installing gawk (3.1.7-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/gawk_3.1.7-1_powerpc.ipk Installing groff (1.19.2-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/groff_1.19.2-2_powerpc.ipk Installing libstdc++ (6.0.3-6) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/libstdc++_6.0.3-6_powerpc.ipk Installing gzip (1.2.4a-4) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/gzip_1.2.4a-4_powerpc.ipk Installing libtool (1.5.26-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/libtool_1.5.26-1_powerpc.ipk Installing openssl (0.9.8n-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/openssl_0.9.8n-1_powerpc.ipk Installing patch (2.6.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/patch_2.6.1-1_powerpc.ipk Installing perl (5.8.8-23) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/perl_5.8.8-23_powerpc.ipk Installing libdb (4.2.52-3) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/libdb_4.2.52-3_powerpc.ipk Installing gdbm (1.8.3-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/gdbm_1.8.3-2_powerpc.ipk Installing pkgconfig (0.15.0-2) to root...
Re: [Gambas-user] Gambas on Synolgy DS-209+II
Hi, I'm trying to install gambas on my Synology DS-209+II NAS. So far bad luck. I'm not very experienced in Linux, so it might me my shortcoming ... This is what I did: [...] You need libtool 2. Gambas does not compile anymore with libtool 1.5. Regards, -- Benoît Minisini -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Where do put translation package for a gambas application (specifically IDE)?
Ow, now I see the program: the LANGUAGE environment var. By default, in Ubuntu (pt_BR), its value is pt_BR:pt:en, but i needed to change this to pt_BR.UTF-8. Is this LANGUAGE variable in POSIX spec? Thx 2010/4/11 Benoît Minisini gam...@users.sourceforge.net Ok. Now I'm doing it. I'm using translation dialog. I opened IDE project into gambas IDE. I translated my lang file and created the .gambas executable. I saw the /tmp/gambas structure and the lang file is there, but the program is yet in English. Until here everything is OK. But even in other languages as default (properties dialog) (like French, fully translated), the program is yet in English. What am I doing wrong? I'm using gambas 3 rev. 2870 in Ubuntu 9.10. If you run it from the IDE after having translated it, it is yet in English? If so, do you have a warning message in the console about a missing locale? If you don't, can you tell what are the values of the following environment variables: LANG, LANGUAGE, LC_ALL and LC_MESSAGES? -- Benoît Minisini -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Debugging program to find error
Can you make an archive of your package and put it somewhere I can download it? I will test it on my Mandriva and see what happens exactly. Regards, -- Benoît Minisini Of course, and thanks again Here is the link: http://www.tecleandocodigo.webcindario.com/ Regards -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Debugging program to find error
-Mensaje original- De: Ron_1st ron...@tiscali.nl Reply-to: mailing list for gambas users gambas-user@lists.sourceforge.net Para: gambas-user@lists.sourceforge.net Asunto: Re: [Gambas-user] Debugging program to find error Fecha: Mon, 12 Apr 2010 05:50:53 +0100 On Monday 12 April 2010, craf wrote: file: No such file or directory ), is that the routes included in the file .sh are not taken into account. To fix this I added the following paths to the file .profile (The tests carried out from a project created in gambas2.20 in Ubuntu 9.10 to Ubuntu 8.04 distribution located on the same computer and runs through Virtualbox. #!/bin/sh export PATH=/path/my/proyect/gambas2/bin export LD_LIBRARY_PATH=/path/my/proyect/gambas2/lib_shared/lib:/path/my/proyect/gambas2/lib_shared/usr/lib From some early mail export LD_LIBRARY_PATH=/my/ld/dir:$LD_LIBRARY_PATH This will add your path in front of the current one, pointing to i.e. gtk libs In thecode you present here the current to other libraries is killed. So add on the line at the end ':$LD_LIBRARY_PATH' (whitout quotes :) Yes, thanks, also I tried that, but unfortunately did not work You see I have to load the variable LD_LIBRARY_PATH when the user start a session, as this is ignored if the file is called from . sh Doriano kindly indicated that this was due to the following: Best regards, Ron_1st Regards. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Debugging program to find error
Can you make an archive of your package and put it somewhere I can download it? I will test it on my Mandriva and see what happens exactly. Regards, Of course, and thanks again Here is the link: http://www.tecleandocodigo.webcindario.com/ Regards I got it. I suggest you install googleearth (for example) in your home directory, and look in the googlearth shell script to see how they locate the executable path, and how they define the shared library path. Regards, -- Benoît Minisini -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Debugging program to find error
-Mensaje original- De: Benoît Minisini gam...@users.sourceforge.net Reply-to: mailing list for gambas users gambas-user@lists.sourceforge.net Para: mailing list for gambas users gambas-user@lists.sourceforge.net Asunto: Re: [Gambas-user] Debugging program to find error Fecha: Mon, 12 Apr 2010 17:57:21 +0200 Can you make an archive of your package and put it somewhere I can download it? I will test it on my Mandriva and see what happens exactly. Regards, Of course, and thanks again Here is the link: http://www.tecleandocodigo.webcindario.com/ Regards I got it. I suggest you install googleearth (for example) in your home directory, and look in the googlearth shell script to see how they locate the executable path, and how they define the shared library path. Regards, ok,I'll try googleearth Regards. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Debugging program to find error
Can you make an archive of your package and put it somewhere I can download it? I will test it on my Mandriva and see what happens exactly. Regards, Of course, and thanks again Here is the link: http://www.tecleandocodigo.webcindario.com/ Regards I got it. I suggest you install googleearth (for example) in your home directory, and look in the googlearth shell script to see how they locate the executable path, and how they define the shared library path. Regards, I think you didn't put all the needed libraries in the archive. To know which libraries are loaded by your program, run it with 'strace', and look at all the *.so files that are opened successfully by the open() system call. I noticed that some *.so files were taken in the system path, and not in the archive. Regards, -- Benoît Minisini -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Debugging program to find error
-Mensaje original- De: Benoît Minisini gam...@users.sourceforge.net Reply-to: mailing list for gambas users gambas-user@lists.sourceforge.net Para: mailing list for gambas users gambas-user@lists.sourceforge.net Asunto: Re: [Gambas-user] Debugging program to find error Fecha: Mon, 12 Apr 2010 18:24:09 +0200 Can you make an archive of your package and put it somewhere I can download it? I will test it on my Mandriva and see what happens exactly. Regards, Of course, and thanks again Here is the link: http://www.tecleandocodigo.webcindario.com/ Regards I got it. I suggest you install googleearth (for example) in your home directory, and look in the googlearth shell script to see how they locate the executable path, and how they define the shared library path. Regards, I think you didn't put all the needed libraries in the archive. To know which libraries are loaded by your program, run it with 'strace', and look at all the *.so files that are opened successfully by the open() system call. I noticed that some *.so files were taken in the system path, and not in the archive. Regards, Ok. I will check Regards -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] htonl equal
You can use htonl/ntohl from external libs. A very quick example below. Please correct me if I got it wrong. ' Gambas module file PUBLIC EXTERN htonl(ln AS Long) AS Long IN libc:6 PUBLIC EXTERN ntohl(ln AS Long) AS Long IN libc:6 PUBLIC SUB Main() DIM ln, lh AS Integer ln = 1193046 PRINT Input: ln PRINT Input (hex): Hex(ln, 8) lh = htonl(ln) ' to BigEndian PRINT BigEndian: lh PRINT BigEndian (hex): Hex$(lh, 8) ln = ntohl(lh) ' back to LittleEndian PRINT LittleEndian: ln PRINT LittleEndian (hex): Hex$(ln, 8) END Regards Les Hardy Mohammad Razeghi wrote: Hi I am looking for c++ htonl function equal in gambas can any one help please ? Thanks ... -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] htonl equal
You can use htonl/ntohl from external libs. A very quick example below. Please correct me if I got it wrong. ' Gambas module file PUBLIC EXTERN htonl(ln AS Long) AS Long IN libc:6 PUBLIC EXTERN ntohl(ln AS Long) AS Long IN libc:6 PUBLIC SUB Main() DIM ln, lh AS Integer ln = 1193046 PRINT Input: ln PRINT Input (hex): Hex(ln, 8) lh = htonl(ln) ' to BigEndian PRINT BigEndian: lh PRINT BigEndian (hex): Hex$(lh, 8) ln = ntohl(lh) ' back to LittleEndian PRINT LittleEndian: ln PRINT LittleEndian (hex): Hex$(ln, 8) END Regards Les Hardy Mohammad Razeghi wrote: Hi I am looking for c++ htonl function equal in gambas can any one help please ? Thanks ... As the network byte order seems to be Big Endian, you can set the ByteOrder property of your socket to gb.BigEndian. Logically, you should not have to use htonl() or ntohl(), so I'm curious why you need these functions. Regards, -- Benoît Minisini -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] There are errors in the class Key, and in the events KeyPress / KeyRelease?
Using Gambas 2.20, Ubuntu 9.10 with KDE 4.3.5 and GTK+ libraries Key.Code is not returned? Key.Text is lost? KeyRelease is not raised? Put a TextBox in a Form, then write the code to catch the pressed key. Run it and press a number o letter key. PUBLIC SUB TextBox1_KeyPress() PRINT Key.Code PRINT Key.Text END PUBLIC SUB TextBox1_KeyRelease() PRINT Key.Code PRINT Key.Text END Result Tests (gb.qt) pressed the '5' key KeyPress: Key.Code = 53, Key.Text = 5 KeyRelease: Key.Code = 53, Key.Text = Randomly KeyRelease wasn't raised. Result Test (gb.qt) -- pressed the '5' key KeyPress: Key.Code = 0, Key.Text = 5 KeyRelease: Key.Code = 53, Key.Text = 5 Randomly KeyRelease wasn't raised. Issues in two real proyects (I'm trying to isolate the problem): --- KeyPress never is raised when gb.gtk is used. KeyPress sometimes is not raised when gb.qt is used. Key.Text is lost when the event KeyRelease is raised. -- Fabián Flores Vadell www.speedbooksargentina.blogspot.com -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user