Re: [Gambas-user] SHELL not working (GB_DIR)
Doriano Blengino ha scritto: Jesus Guardon ha scritto: Hi again Continuing my testings on GB_DIR, I'm running into a new problem: SHELL command has no effect at all. All sentences using SHELL are not executed. As you can guess, running my project executable the normal way (not using GB_DIR) it is running right. Could this be a bug? SHELL is just an equivalent of EXEC [sh, -c, XXX] where XXX is the string passed to the SHELL command. Not at all. No error message is displayed, simply SHELL command seems to be ignored by the interpreter. As for launch my program I'm using a shell script (you can see it in the previous posts), I'm not able to run gdb against myprogram.gambas, or myprogram (without .sh extension). In a previous mail you wrote: I am calling my executable from a bash script located in /usr/local/bin je...@jesus:~$ cat /usr/local/bin/dfhlog #!/bin/sh export PATH=/opt/dfhlog/gambas2/bin export GB_DIR=/opt/dfhlog/gambas2 exec /opt/dfhlog/dfhlog.gambas (In this case, LD_LIBRARY_PATH is not used, because they already are in my system). Your export PATH command imposes a path which excludes standard unix paths - you will never find system utilities like pidof(1), and neither the shell itself. You should write: export PATH=/opt/dfhlog/gambas2/bin:$PATH to add your personal path the the standard ones. Or, if you are a security paranoid, you could use: export PATH=/opt/dfhlog/gambas2/bin:/usr/bin:/bin This way you don't trust the existing path. This second form excludes /sbin and /usr/sbin; you should add them if you need system administration commands like route, fdisk, reboot, addgroup and many others. Regards, Just after hitting the send button, I realized that this idea is correct only in part. May be it solves, it is a quick try. The right part is that the PATH variable is used by the shell itself, so even if your gambas program finds the shell and asks it to execute something, the shell will fail to do it. Probably this is not considered an error by gambas, so the instruction SHELL pidof xxx fails silently. The ambigous part is in whether gambas uses PATH to search for the shell. If it is so, then your gambas program will not find the shell, and gambas should report this, because an internal instruction of gambas is failing. In this case, however, one can ask himself if makes it sense to use PATH to search for the shell, which traditionally is /bin/sh, and many scripts included system ones address the shell in this way. Assuming that SHELL is a substitute for EXEC [sh, -c, ], and that EXEC searches executables in PATH, this would explain all. Perhaps would be better to bind SHELL to EXEC [/bin/sh, -c, ...]. I am not sure if, natively, exec() searches executables in PATH. May be that there is the system call exec() which does one thing, and the C library wrapped exec() which does differently. In any case, if it is so, this would explain my sensation that SHELLs in gambas are slow. In my system (a normal Debian), the PATH variable looks like /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11. Every time a gambas program invokes a SHELL, the system searches sh in 4 directories, and then sh searches for the executable in 4 directories again; the first four directories could be skipped. Regards, -- Doriano Blengino Listen twice before you speak. This is why we have two ears, but only one mouth. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] SHELL not working (GB_DIR)[solved]
Doriano Blengino escribió: Jesus Guardon ha scritto: Hi again Continuing my testings on GB_DIR, I'm running into a new problem: SHELL command has no effect at all. All sentences using SHELL are not executed. As you can guess, running my project executable the normal way (not using GB_DIR) it is running right. Could this be a bug? Not at all. No error message is displayed, simply SHELL command seems to be ignored by the interpreter. As for launch my program I'm using a shell script (you can see it in the previous posts), I'm not able to run gdb against myprogram.gambas, or myprogram (without .sh extension). In a previous mail you wrote: I am calling my executable from a bash script located in /usr/local/bin je...@jesus:~$ cat /usr/local/bin/dfhlog #!/bin/sh export PATH=/opt/dfhlog/gambas2/bin export GB_DIR=/opt/dfhlog/gambas2 exec /opt/dfhlog/dfhlog.gambas (In this case, LD_LIBRARY_PATH is not used, because they already are in my system). Your export PATH command imposes a path which excludes standard unix paths - you will never find system utilities like pidof(1), and neither the shell itself. You should write: export PATH=/opt/dfhlog/gambas2/bin:$PATH to add your personal path the the standard ones. Or, if you are a security paranoid, you could use: export PATH=/opt/dfhlog/gambas2/bin:/usr/bin:/bin This way you don't trust the existing path. This second form excludes /sbin and /usr/sbin; you should add them if you need system administration commands like route, fdisk, reboot, addgroup and many others. Regards, Ye! This solved the issue. I might figured it out, I didn't know of exclusion on exports. Many thanks, Doriano (and Benoît, for such a great feature!) Regards, Jesús -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2]
I can't quite understand your question... Gambas has ability to make installation packages (Project -- Make -- Installation package...). ./configure -C and make doesn't need sudo, only make install needs it. Jussi On Fri, Dec 18, 2009 at 16:45, craf p...@vtr.net wrote: -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] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] Fecha: Fri, 18 Dec 2009 15:33:07 +0100 -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] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] Fecha: Fri, 18 Dec 2009 11:53:09 +0100 Hello. When I create a new project with database support. The hidden file . project show me the components that are needed to run the application. Example. # Gambas Project File 2.0 Title=myproject Startup=FMain Library=gb.db Library=gb.gtk Library=gb.gtk.ext Library=gb.form =NOT FOUND Library=gb.db.form All the components I could find in the folder / usr/local/lib/gambas2 / but that is not the only component is the gb.form. How can I locate it, or refers to another component in particular?. Regards Your installation of Gambas is apparently broken. How did you install it? Hi Benoit, thanks for responding. I tell you, I'm trying to do an install script of my programs in order to distribute other equipment. I need to copy all the shared libraries needed by components Gambas. To do this read the file (. Project) and then run ldd component instruction. The script finds all least gb.form component. I have no problems running Gambas and run my programs, just do not find the component gb.form in the folder /usr/local/lib/gambas2. gb.form is a component written in gambas, so you have only the gb.form.gambas and gb.form.component files in the lib/gambas2 directory. Regards, Hello. So I need the component gb.form?. If so, why I run my applications, if required this component, because when you create a basic gtk application, me included?. What would that do to include it in my collection?, Or is it normal that I receive?. Regards. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] form.h is badly overridden in class 'form3'
hi in gambas2 form has no error but i ported gambas3 then form.h is badly overridden in class 'form3' ___ Yahoo! Türkiye açıldı! http://yahoo.com.tr İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor! -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2]
-Mensaje original- De: Jussi Lahtinen jussi.lahti...@gmail.com 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] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] Fecha: Sat, 19 Dec 2009 16:05:16 +0200 I can't quite understand your question... Gambas has ability to make installation packages (Project -- Make -- Installation package...). ./configure -C and make doesn't need sudo, only make install needs it. Jussi Hello. I have no problem with the installation of Gambas. What I am trying to do is a script to install my application on another computer without having all the libraries compartidas.Now, to know what components are needed, just look at the file (. project), which shows you the necessary libraries . Example Library = gb.db Library = gb.gtk etc. The problem is that Gambas brings extra controls that are installed with the library gb.form, which comes not listed in the hidden file (.project), it leaves the library gb.draw which is also required. Only I mean that in the file (. project) would appear all the libraries that are marked in the section components within the Gambas IDE. As I explained Benoit, is that the library is a component gb.form done with Gambas and therefore does not appear listed in the file (.project). Unfortunately English is not my native language, and can misinterpret what I need. Regards. On Fri, Dec 18, 2009 at 16:45, craf p...@vtr.net wrote: -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] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] Fecha: Fri, 18 Dec 2009 15:33:07 +0100 -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] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] Fecha: Fri, 18 Dec 2009 11:53:09 +0100 Hello. When I create a new project with database support. The hidden file . project show me the components that are needed to run the application. Example. # Gambas Project File 2.0 Title=myproject Startup=FMain Library=gb.db Library=gb.gtk Library=gb.gtk.ext Library=gb.form =NOT FOUND Library=gb.db.form All the components I could find in the folder / usr/local/lib/gambas2 / but that is not the only component is the gb.form. How can I locate it, or refers to another component in particular?. Regards Your installation of Gambas is apparently broken. How did you install it? Hi Benoit, thanks for responding. I tell you, I'm trying to do an install script of my programs in order to distribute other equipment. I need to copy all the shared libraries needed by components Gambas. To do this read the file (. Project) and then run ldd component instruction. The script finds all least gb.form component. I have no problems running Gambas and run my programs, just do not find the component gb.form in the folder /usr/local/lib/gambas2. gb.form is a component written in gambas, so you have only the gb.form.gambas and gb.form.component files in the lib/gambas2 directory. Regards, Hello. So I need the component gb.form?. If so, why I run my applications, if required this component, because when you create a basic gtk application, me included?. What would that do to include it in my collection?, Or is it normal that I receive?. Regards. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- This SF.Net
Re: [Gambas-user] form.h is badly overridden in class 'form3'
hiin gambas2 form has no error but i ported gambas3 then form.h is badly overridden in class 'form3' H is a property of the Form class. Form3 inherits the Form class, and so, if it reimplements the H symbol, it must be a property too, with the same datatype. Gambas2 says nothing because it is a bug that could be fixed in Gambas3 only. Regards, -- Benoît Minisini -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2]
-Mensaje original- De: Jussi Lahtinen jussi.lahti...@gmail.com 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] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] Fecha: Sat, 19 Dec 2009 16:05:16 +0200 I can't quite understand your question... Gambas has ability to make installation packages (Project -- Make -- Installation package...). ./configure -C and make doesn't need sudo, only make install needs it. Jussi Hello. I have no problem with the installation of Gambas. What I am trying to do is a script to install my application on another computer without having all the libraries compartidas.Now, to know what components are needed, just look at the file (. project), which shows you the necessary libraries . Example Library = gb.db Library = gb.gtk etc. The problem is that Gambas brings extra controls that are installed with the library gb.form, which comes not listed in the hidden file (.project), it leaves the library gb.draw which is also required. Only I mean that in the file (. project) would appear all the libraries that are marked in the section components within the Gambas IDE. As I explained Benoit, is that the library is a component gb.form done with Gambas and therefore does not appear listed in the file (.project). Unfortunately English is not my native language, and can misinterpret what I need. Regards. Yes, there are hidden dependencies: gb.draw, that is needed by all GUI components, any gb.db.* driver that could be loaded by the gb.db component. But you should get an error message while running your program if a Gambas component written in C/C++ is missing. Beside the hidden dependencies, you just have to list all Library= lines in the .project file, and copy in the /lib/gambas2 directory all files beginning with the component name. For example: you have gb.form in the .project file? Do a cp gb.form.* destination. If you want all the details, read the how to package gambas page on the wiki. Regards, -- Benoît Minisini -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] form.h is badly overridden in class 'form3'
thanks. and how can draw arc without line start point (or end point) to center. --- 19/12/09 Cts tarihinde Benoît Minisini gam...@users.sourceforge.net şöyle yazıyor: Kimden: Benoît Minisini gam...@users.sourceforge.net Konu: Re: [Gambas-user] form.h is badly overridden in class 'form3' Kime: mailing list for gambas users gambas-user@lists.sourceforge.net Tarihi: 19 Aralık 2009 Cumartesi, 23:39 hi in gambas2 form has no error but i ported gambas3 then form.h is badly overridden in class 'form3' H is a property of the Form class. Form3 inherits the Form class, and so, if it reimplements the H symbol, it must be a property too, with the same datatype. Gambas2 says nothing because it is a bug that could be fixed in Gambas3 only. Regards, -- Benoît Minisini -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___ Yahoo! Türkiye açıldı! http://yahoo.com.tr İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor! -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2]
-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] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] Fecha: Sat, 19 Dec 2009 22:44:23 +0100 -Mensaje original- De: Jussi Lahtinen jussi.lahti...@gmail.com 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] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] Fecha: Sat, 19 Dec 2009 16:05:16 +0200 I can't quite understand your question... Gambas has ability to make installation packages (Project -- Make -- Installation package...). ./configure -C and make doesn't need sudo, only make install needs it. Jussi Hello. I have no problem with the installation of Gambas. What I am trying to do is a script to install my application on another computer without having all the libraries compartidas.Now, to know what components are needed, just look at the file (. project), which shows you the necessary libraries . Example Library = gb.db Library = gb.gtk etc. The problem is that Gambas brings extra controls that are installed with the library gb.form, which comes not listed in the hidden file (.project), it leaves the library gb.draw which is also required. Only I mean that in the file (. project) would appear all the libraries that are marked in the section components within the Gambas IDE. As I explained Benoit, is that the library is a component gb.form done with Gambas and therefore does not appear listed in the file (.project). Unfortunately English is not my native language, and can misinterpret what I need. Regards. Yes, there are hidden dependencies: gb.draw, that is needed by all GUI components, any gb.db.* driver that could be loaded by the gb.db component. But you should get an error message while running your program if a Gambas component written in C/C++ is missing. Beside the hidden dependencies, you just have to list all Library= lines in the .project file, and copy in the /lib/gambas2 directory all files beginning with the component name. For example: you have gb.form in the .project file? Do a cp gb.form.* destination. If you want all the details, read the how to package gambas page on the wiki. Regards, Thanks Benoit. Now I have clearer ideas. Regards -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] form.h is badly overridden in class 'form3'
thanks. and how can draw arc without line start point (or end point) to center. Sorry, I need a better english to understand the question... -- Benoît Minisini -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] form.h is badly overridden in class 'form3'
i am sorry. i added my question. --- 20/12/09 Pzr tarihinde Benoît Minisini gam...@users.sourceforge.net şöyle yazıyor: Kimden: Benoît Minisini gam...@users.sourceforge.net Konu: Re: [Gambas-user] form.h is badly overridden in class 'form3' Kime: mailing list for gambas users gambas-user@lists.sourceforge.net Tarihi: 20 Aralık 2009 Pazar, 0:21 thanks. and how can draw arc without line start point (or end point) to center. Sorry, I need a better english to understand the question... -- Benoît Minisini -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___ Yahoo! Türkiye açıldı! http://yahoo.com.tr İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor! arc-0.0.1.tar.gz Description: GNU Zip compressed data -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user