From rterry at ...1946... Tue Mar 1 04:10:24 2011 From: rterry at ...1946... (richard terry) Date: Tue, 1 Mar 2011 14:10:24 +1100 Subject: [Gambas-user] dumb date question Message-ID: <201103011410.24384.rterry@...1946...> I never can figure out the simple things If I have 2 dates and want to find if one is more recent than the other, what would be the syntax? Regards Richard From mdavies5 at ...169... Tue Mar 1 05:49:47 2011 From: mdavies5 at ...169... (Michael) Date: Tue, 01 Mar 2011 15:49:47 +1100 Subject: [Gambas-user] dumb date question In-Reply-To: <201103011410.24384.rterry@...1946...> References: <201103011410.24384.rterry@...1946...> Message-ID: <4D6C7AEB.6060601@...169...> If dt1 > dt2 then end if Dates are stored as numbers. The most recent date will be the largest number. Regards Michael On 01/03/11 14:10, richard terry wrote: > I never can figure out the simple things > > If I have 2 dates and want to find if one is more recent than the other, what > would be the syntax? > > Regards > > Richard > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search& Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gambas at ...2524... Tue Mar 1 07:38:42 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 01 Mar 2011 06:38:42 +0000 Subject: [Gambas-user] Issue 44 in gambas: GTK+ and Workspace Action_Activate does not match the active.window In-Reply-To: <1-6813199134517018827-3336724901201085414-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3336724901201085414-gambas=googlecode.com@...2524...> <0-6813199134517018827-3336724901201085414-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3336724901201085414-gambas=googlecode.com@...2524...> Comment #2 on issue 44 by sot... at ...626...: GTK+ and Workspace Action_Activate does not match the active.window http://code.google.com/p/gambas/issues/detail?id=44 Hi Benoit, Thanks for the answer, but I not totally agree with you; if you switch to QT4 library it works and you get the correct message related to the active form. Could you try? Is there a valid reason why QT4 and GTK behaves different? Attachments: test_f2_qt.tar.gz 6.6 KB From gambas at ...2524... Tue Mar 1 11:11:56 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 01 Mar 2011 10:11:56 +0000 Subject: [Gambas-user] Issue 45 in gambas: error on completion code: IDE propagates bad data type in property declaration to property methods Message-ID: <0-6813199134517018827-12963508845248913713-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 45 by fabianfl... at ...626...: error on completion code: IDE propagates bad data type in property declaration to property methods http://code.google.com/p/gambas/issues/detail?id=45 When writing a property and fails to specify properly its data type, Gambas IDE spreads my error onto the _Write and _Read methods. Version: TRUNK Revision: r3534 Operating system: Linux Distribution: Ubuntu Architecture: x86 GUI component: QT3 / QT4 / GTK+ Desktop used: KDE To reproduce this behavior, just write in the IDE something like that: PROPERTY name AS bye bye is an intentional error (bye instead byte) Then just hit the Enter key. The result is something like that: Private Function name_Read() As Bye End Private Sub name_Write(Value As Bye) End From demosthenesk at ...626... Tue Mar 1 11:22:22 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 01 Mar 2011 12:22:22 +0200 Subject: [Gambas-user] About Draw.Style.Arrow Message-ID: <1298974942.3754.2.camel@...2493...> is this page published? http://gambasdoc.org/help/comp/gb.qt4/.draw.style/arrow?v3&view i think there is a mistake about Flag and State parts. it says State is TRUE if the arrow is disabled, FALSE otherwise. but there is no State in declaration STATIC SUB Arrow ( X AS Integer, Y AS Integer, Width AS Integer, Height AS Integer, Type AS Integer [ , Flag AS Integer ] ) -- Regards, Demosthenes Koptsis. From gambas at ...2524... Tue Mar 1 13:35:22 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 01 Mar 2011 12:35:22 +0000 Subject: [Gambas-user] Issue 45 in gambas: error on completion code: IDE propagates bad data type in property declaration to property methods In-Reply-To: <0-6813199134517018827-12963508845248913713-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12963508845248913713-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12963508845248913713-gambas=googlecode.com@...2524...> Comment #1 on issue 45 by oonthew... at ...626...: error on completion code: IDE propagates bad data type in property declaration to property methods http://code.google.com/p/gambas/issues/detail?id=45 This is not bug. IDE cannot know if user is going to define Bye datatype (with struct or class). From eilert-sprachen at ...221... Tue Mar 1 15:36:59 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 01 Mar 2011 15:36:59 +0100 Subject: [Gambas-user] Application_Read does react only once Message-ID: <4D6D048B.7020208@...221...> Hi folks, This is a small project I have been circling around for about a year or so. It would be a simple command line application that waits for and evaluates every keystroke you make. Some of you were so kind to point me to Application_Read to achieve that, but I found it only gives one single keystroke (a Return) and (seamingly) is never called again. To make things short, this is the core of my application so far: ' Gambas module file PRIVATE txt AS String PUBLIC SUB Main() END PUBLIC SUB Application_Read() DIM t$ AS String PRINT "hello world" 'this is just debug code READ #LAST, t$, -256 IF t$ <> "" THEN PRINT t$ & " : "; END IF txt = txt & t$ PRINT "keys are:" & txt; txt = "" END So, why does "hello world" only appear one single time (after a first Return), and why will I never read " : " but only the letters of the keys pressed? On my machine, the whole thing runs within "Konsole" on a graphical screen, but I think that will not really make a difference, will it? Thanks for your help! Regards Rolf From jussi.lahtinen at ...626... Tue Mar 1 21:21:03 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 1 Mar 2011 22:21:03 +0200 Subject: [Gambas-user] Bug with debugging Message-ID: Hi! I'm working on experimental profiler project (I hope Benoit will release better approach to this in future). However, I'm constantly running into debugging problems; occasionally missing error messages, and randomly missing possibility to "look" inside variable. This project is full of bugs, missing features, etc. and it exist primarily as experiment. So, no comments about code quality is needed. Way to reproduce problems. 1. Click on "Open project" and select some *small* project to test. 2. Click on "Record". 3. Click on "Run" 4. Click on "Record" 5. Close the project you opened for profiling. Now you should have "Out of bounds" error message (some times not [try running Profiler from IDE couple of times to demonstrate missing messages]). Then try to see what cBData[] holds, almost never you can't. If you can try other variables. With this project reproducing this problem shouldn't be difficult, couple runs should be enough. Gambas 3 rev 3627 @ Ubuntu 10.10 64bit Jussi P.S Code is GPL v2 if it is going to be useful... -------------- next part -------------- A non-text attachment was scrubbed... Name: Profiler-0.0.5.tar.gz Type: application/x-gzip Size: 8321 bytes Desc: not available URL: From gambas at ...2524... Wed Mar 2 01:05:41 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 02 Mar 2011 00:05:41 +0000 Subject: [Gambas-user] Issue 43 in gambas: Drawing on transparent background doesn't work in gb3 In-Reply-To: <4-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> <0-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> Comment #5 on issue 43 by benoit.m... at ...626...: Drawing on transparent background doesn't work in gb3 http://code.google.com/p/gambas/issues/detail?id=43 Alas these two config files are useless. I need the version of your GUI libraries, which WM you use (apparently KDE4 KWM), which version of KDE you use. If you can, try with a different desktop, with / without composition, which GUI driver you are using, which version of the driver... From gambas at ...2524... Wed Mar 2 01:35:06 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 02 Mar 2011 00:35:06 +0000 Subject: [Gambas-user] Issue 45 in gambas: error on completion code: IDE propagates bad data type in property declaration to property methods In-Reply-To: <2-6813199134517018827-12963508845248913713-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-12963508845248913713-gambas=googlecode.com@...2524...> <0-6813199134517018827-12963508845248913713-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-12963508845248913713-gambas=googlecode.com@...2524...> Comment #3 on issue 45 by fabianfl... at ...626...: error on completion code: IDE propagates bad data type in property declaration to property methods http://code.google.com/p/gambas/issues/detail?id=45 I'm sorry guys, this is an design decision. The IDE knows what are the Gambas data types and knows what are the user defined data types in the current project so far. Others IDE's shows this like an error or a warning to the user. Do not doing it, is not help to user with typing errors, something in that editors should be useful. I don't know how to say it better :-) From gambas at ...2524... Wed Mar 2 08:41:23 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 02 Mar 2011 07:41:23 +0000 Subject: [Gambas-user] Issue 44 in gambas: GTK+ and Workspace Action_Activate does not match the active.window In-Reply-To: <3-6813199134517018827-3336724901201085414-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-3336724901201085414-gambas=googlecode.com@...2524...> <0-6813199134517018827-3336724901201085414-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-3336724901201085414-gambas=googlecode.com@...2524...> Comment #4 on issue 44 by sot... at ...626...: GTK+ and Workspace Action_Activate does not match the active.window http://code.google.com/p/gambas/issues/detail?id=44 Il giorno mar, 01/03/2011 alle 23.57 +0000, gambas at ...2524... ha scritto: Ok Benoit, Thanks again. From rterry at ...1946... Wed Mar 2 09:39:24 2011 From: rterry at ...1946... (richard terry) Date: Wed, 2 Mar 2011 19:39:24 +1100 Subject: [Gambas-user] Missing libraries for some examples Message-ID: <201103021939.24449.rterry@...1946...> Hi list, I've just been trying some of the examples, and it seems my machine (Kubuntu 9) missing some stuff for example it complains about OpenGL missing - could anyone tell me what particular libaries I need. I did look in synaptic but it was pretty cryptic to my simple mind. Thanks in advance. From sbungay at ...981... Wed Mar 2 02:48:15 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 01 Mar 2011 20:48:15 -0500 Subject: [Gambas-user] Listview picture not showing... In-Reply-To: References: <4D69690F.6080709@...981...> Message-ID: <4D6DA1DF.5070603@...981...> Thanks Fabien, sorry fir the delayed reply, it suddenly got really busy around here and this had to take a lower priority. I'll put that into practice. On 02/26/2011 04:41 PM, Fabien Bodard wrote: > 2011/2/26 Stephen Bungay: >> This has undoubtedly been asked before. >> >> GAMBAS 2.2 >> >> I am trying to add an icon to the listview items, to that end this >> code snippet should do the trick; >> >> Private SUB Initialize_Listview1() >> DIM Icon AS NEW Picture >> >> Icon.Load("/home/username/mypicture.png") ' This png file is 26x16 >> and has a transparent background >> Listview1.Add("1","Entry 1", Icon) >> >> END >> >> No errors generated, no picture appears in the listview. Examining >> the Icon object sees an hex value in Image and 0 width and 0 height. >> >> >> >> ------------------------------------------------------------------------------ >> Free Software Download: Index, Search& Analyze Logs and other IT data in >> Real-Time with Splunk. Collect, index and harness all the fast moving IT data >> generated by your applications, servers and devices whether physical, virtual >> or in the cloud. Deliver compliance at lower cost and gain new business >> insights. http://p.sf.net/sfu/splunk-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > you need to do like that : > > Icon = Icon.load(...) > > or just > Icon = Picture[...] > > > > icon.load does not set the icon internally but just return a picture object > From gambas at ...2524... Wed Mar 2 00:57:36 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 01 Mar 2011 23:57:36 +0000 Subject: [Gambas-user] Issue 44 in gambas: GTK+ and Workspace Action_Activate does not match the active.window In-Reply-To: <2-6813199134517018827-3336724901201085414-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-3336724901201085414-gambas=googlecode.com@...2524...> <0-6813199134517018827-3336724901201085414-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-3336724901201085414-gambas=googlecode.com@...2524...> Comment #3 on issue 44 by benoit.m... at ...626...: GTK+ and Workspace Action_Activate does not match the active.window http://code.google.com/p/gambas/issues/detail?id=44 It does not "work" with gb.qt4. When two menus have the same shortcut, the one who is activated is inderminate. So there is no reason why Qt4 and GTK+ should behave the same way. And it seems to work in gb.qt4 by accident imho. From gambas at ...2524... Wed Mar 2 01:01:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 02 Mar 2011 00:01:38 +0000 Subject: [Gambas-user] Issue 45 in gambas: error on completion code: IDE propagates bad data type in property declaration to property methods In-Reply-To: <1-6813199134517018827-12963508845248913713-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12963508845248913713-gambas=googlecode.com@...2524...> <0-6813199134517018827-12963508845248913713-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12963508845248913713-gambas=googlecode.com@...2524...> Updates: Status: Invalid Labels: -Version Version-TRUNK Comment #2 on issue 45 by benoit.m... at ...626...: error on completion code: IDE propagates bad data type in property declaration to property methods http://code.google.com/p/gambas/issues/detail?id=45 I couldn't have said better. From rterry at ...1946... Wed Mar 2 10:13:02 2011 From: rterry at ...1946... (richard terry) Date: Wed, 2 Mar 2011 20:13:02 +1100 Subject: [Gambas-user] 3628 version Controls spacing Question Message-ID: <201103022013.03000.rterry@...1946...> Upgraded to this version, suddenly my entire gui looks wacky. All the controls are spaced differently - I've got a lot of borderless stacked textboxes which all of a sudden are much more widely separated - almost like I'd switched on the spacing property of a container and doubled it. I'm running kubuntu 9 and QT. Regards richard From gambas at ...1... Wed Mar 2 02:09:56 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Mar 2011 02:09:56 +0100 Subject: [Gambas-user] IconView...bug? In-Reply-To: References: Message-ID: <201103020209.57010.gambas@...1...> > I can't change the bakcground of IconView. Would be appropriate to add the > background Property ^^ > > Private Function Background_Read() As Integer > Return $hView.Background > End > Private Sub Background_Write(Value As Integer) > $hView.Background = Value > End > > Regards, Fixed in revision #3628. Regards, -- Beno?t Minisini From sbungay at ...981... Wed Mar 2 02:54:51 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 01 Mar 2011 20:54:51 -0500 Subject: [Gambas-user] Listview picture not showing... In-Reply-To: References: <4D69690F.6080709@...981...> Message-ID: <4D6DA36B.1050707@...981...> On 02/26/2011 04:41 PM, Fabien Bodard wrote: > 2011/2/26 Stephen Bungay: >> This has undoubtedly been asked before. >> >> GAMBAS 2.2 >> >> I am trying to add an icon to the listview items, to that end this >> code snippet should do the trick; >> >> Private SUB Initialize_Listview1() >> DIM Icon AS NEW Picture >> >> Icon.Load("/home/username/mypicture.png") ' This png file is 26x16 >> and has a transparent background >> Listview1.Add("1","Entry 1", Icon) >> >> END >> >> No errors generated, no picture appears in the listview. Examining >> the Icon object sees an hex value in Image and 0 width and 0 height. >> >> >> >> ------------------------------------------------------------------------------ >> Free Software Download: Index, Search& Analyze Logs and other IT data in >> Real-Time with Splunk. Collect, index and harness all the fast moving IT data >> generated by your applications, servers and devices whether physical, virtual >> or in the cloud. Deliver compliance at lower cost and gain new business >> insights. http://p.sf.net/sfu/splunk-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > you need to do like that : > > Icon = Icon.load(...) > > or just > Icon = Picture[...] > > > > icon.load does not set the icon internally but just return a picture object > Excellent. Thank you for clarifying. Picture.Load not setting the picture is counter-intuitive.. but OK... whatever works. From rterry at ...1946... Wed Mar 2 09:53:31 2011 From: rterry at ...1946... (richard terry) Date: Wed, 2 Mar 2011 19:53:31 +1100 Subject: [Gambas-user] Bug in Webview demo in Gambas Message-ID: <201103021953.31928.rterry@...1946...> Maybe this is just my machine, I typed in this url, and the sample died: FBrowser.WebView_Click.286: http://www.youtube.com/ (process:10837): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function (process:10837): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed (process:10837): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed Regards richard From eilert-sprachen at ...221... Wed Mar 2 10:43:57 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 02 Mar 2011 10:43:57 +0100 Subject: [Gambas-user] ncurses - macro is not found Message-ID: <4D6E115D.4020807@...221...> I do not have that much idea of how that works under C, so that's why I ask here. In the ncurses library, there are macros. One of them is needed to get the dimensions of the "window". But when I define it EXTERN getmaxyx(... when my program starts, there is merely the error "cannot find symbol getmaxyx in library ncurses". So what can I do here? Regards Rolf From gambas at ...1... Wed Mar 2 21:21:43 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Mar 2011 21:21:43 +0100 Subject: [Gambas-user] ncurses - macro is not found In-Reply-To: <4D6E115D.4020807@...221...> References: <4D6E115D.4020807@...221...> Message-ID: <201103022121.43559.gambas@...1...> > I do not have that much idea of how that works under C, so that's why I > ask here. > > In the ncurses library, there are macros. One of them is needed to get > the dimensions of the "window". But when I define it > > EXTERN getmaxyx(... > > when my program starts, there is merely the error "cannot find symbol > getmaxyx in library ncurses". > > So what can I do here? > > Regards > Rolf > A macro is not a function. It is some code replaced by some other code at compilation time. The "getmaxyx" identifier does not exist in the executable. You must read the C header file to see what the getmaxyx() macro actually does. The gcc compiler has the "-E" option that can help you, by writing to the standard output the real code that will be compiled once all macros have been expanded. Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Wed Mar 2 16:21:28 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 02 Mar 2011 16:21:28 +0100 Subject: [Gambas-user] How to define variables with EXTERN Message-ID: <4D6E6078.10801@...221...> Is it possible to access the values of variables defined in external libraries? (The mailing list is so slow these days, I do not even have an echo of my question from hours ago. It was about macros.) Now I found that there are COLUMNS and LINES defined within ncurses, so if I would like to read those values, how could I achieve that? Thanks for all hints Rolf From gambas at ...1... Wed Mar 2 21:22:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Mar 2011 21:22:17 +0100 Subject: [Gambas-user] 3628 version Controls spacing Question In-Reply-To: <201103022013.03000.rterry@...1946...> References: <201103022013.03000.rterry@...1946...> Message-ID: <201103022122.17685.gambas@...1...> > Upgraded to this version, suddenly my entire gui looks wacky. > > All the controls are spaced differently - I've got a lot of borderless > stacked textboxes which all of a sudden are much more widely separated - > almost like I'd switched on the spacing property of a container and > doubled it. > > I'm running kubuntu 9 and QT. > > Regards > > richard > What was your version before the upgrade? -- Beno?t Minisini From gambas at ...1... Wed Mar 2 21:23:43 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Mar 2011 21:23:43 +0100 Subject: [Gambas-user] Bug in Webview demo in Gambas In-Reply-To: <201103021953.31928.rterry@...1946...> References: <201103021953.31928.rterry@...1946...> Message-ID: <201103022123.43089.gambas@...1...> > Maybe this is just my machine, I typed in this url, and the sample died: > > FBrowser.WebView_Click.286: http://www.youtube.com/ > > (process:10837): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion > failed, use IA__g_type_init() prior to this function > > (process:10837): GLib-CRITICAL **: g_once_init_leave: assertion > `initialization_value != 0' failed > > (process:10837): GLib-GObject-CRITICAL **: g_object_new: assertion > `G_TYPE_IS_OBJECT (object_type)' failed > > Regards > > richard > A bug is WebKit for sure. All the webpage contents is entirely managed by the WebKit Qt library, I cannot do anything agains the bugs. Do you have the latest Qt library? -- Beno?t Minisini From gambas at ...1... Wed Mar 2 21:25:42 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Mar 2011 21:25:42 +0100 Subject: [Gambas-user] Listview picture not showing... In-Reply-To: <4D6DA36B.1050707@...981...> References: <4D69690F.6080709@...981...> <4D6DA36B.1050707@...981...> Message-ID: <201103022125.42106.gambas@...1...> > > Excellent. Thank you for clarifying. Picture.Load not setting the > picture is counter-intuitive.. but OK... whatever works. > The "counter-intuitiveness" comes from the ability to use a static method (Picture.Load) on a real object. This is commonly allowed in object-oriented programming, so I did the same. But maybe I should raise an error instead. Regards, -- Beno?t Minisini From rterry at ...1946... Wed Mar 2 22:18:38 2011 From: rterry at ...1946... (richard terry) Date: Thu, 3 Mar 2011 08:18:38 +1100 Subject: [Gambas-user] 3628 version Controls spacing Question In-Reply-To: <201103022122.17685.gambas@...1...> References: <201103022013.03000.rterry@...1946...> <201103022122.17685.gambas@...1...> Message-ID: <201103030818.38940.rterry@...1946...> On Thursday 03 March 2011 07:22:17 Beno?t Minisini wrote: > > Upgraded to this version, suddenly my entire gui looks wacky. > > > > All the controls are spaced differently - I've got a lot of borderless > > stacked textboxes which all of a sudden are much more widely separated - > > almost like I'd switched on the spacing property of a container and > > doubled it. > > > > I'm running kubuntu 9 and QT. > > > > Regards > > > > richard > > What was your version before the upgrade? > Wish I Knew, it wasn't that long ago, maybe a week or two. Can you remind me how to rollback a version. Also, did you ever get around to thinking about implenting that pixel spacing property we talked about on the list a while ago? Regards Richard From rterry at ...1946... Wed Mar 2 22:35:25 2011 From: rterry at ...1946... (richard terry) Date: Thu, 3 Mar 2011 08:35:25 +1100 Subject: [Gambas-user] Bug in Webview demo in Gambas In-Reply-To: <201103022123.43089.gambas@...1...> References: <201103021953.31928.rterry@...1946...> <201103022123.43089.gambas@...1...> Message-ID: <201103030835.25371.rterry@...1946...> On Thursday 03 March 2011 07:23:43 Beno?t Minisini wrote: > > Maybe this is just my machine, I typed in this url, and the sample died: > > > > FBrowser.WebView_Click.286: http://www.youtube.com/ > > > > (process:10837): GLib-GObject-CRITICAL **: > > /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization > > assertion failed, use IA__g_type_init() prior to this function > > > > (process:10837): GLib-CRITICAL **: g_once_init_leave: assertion > > `initialization_value != 0' failed > > > > (process:10837): GLib-GObject-CRITICAL **: g_object_new: assertion > > `G_TYPE_IS_OBJECT (object_type)' failed > > > > Regards > > > > richard > > A bug is WebKit for sure. All the webpage contents is entirely managed by > the WebKit Qt library, I cannot do anything agains the bugs. Do you have > the latest Qt library? > Yes, I think, its 4.5.2 but I think I'm going to have to upgrade to Kubuntu 10.0. Can you do stuff like show flash plugins in your webkit? Its a big upgrade for me because I've my entire development env on my laptop + stacks of clinical things and programs I've collected, virtualbox running all my pathology software hl7 downloaders etc , probably easier to buy a new laptop drive and put the old one in a case to plug in the side!!!!! REgards Richard From kevinfishburne at ...1887... Thu Mar 3 01:12:52 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 02 Mar 2011 19:12:52 -0500 Subject: [Gambas-user] Missing libraries for some examples In-Reply-To: <201103021939.24449.rterry@...1946...> References: <201103021939.24449.rterry@...1946...> Message-ID: <4D6EDD04.4020400@...1887...> On 03/02/2011 03:39 AM, richard terry wrote: Hi list, I've just been trying some of the examples, and it seems my machine (Kubuntu 9) missing some stuff for example it complains about OpenGL missing - could anyone tell me what particular libaries I need. I did look in synaptic but it was pretty cryptic to my simple mind. I'd compile GAMBAS 3 if you want to get started properly. If you look here: [1]http://gambas.sourceforge.net/en/main.html you'll see the command that needs to be issued to install all the compilation dependencies. Which command depends on which version of Ubuntu you're using. Generally Ubuntu's version numbers are x.04, x.10, so you are probably using Kubuntu 9.04 or 9.10. Once you figure out what version of Ubuntu you're using then copy/paste the command (minus the $) into a terminal window and press Enter. Example, for 10.04 (Lucid) you'd enter the command: sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlc lient15-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2- dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-de v libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpop pler-glib-dev libasound2-dev libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-de v libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev To compile the latest GAMBAS 3 build you'd issue commands like these: svn checkout [2]https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ cd trunk ./reconf-all ./configure make sudo make install gambas3 While probably not exactly what you're asking for, all that should give you a proper GAMBAS with all necessary dependencies. As far as OpenGL, your video drivers may not support hardware acceleration. I'd upgrade your version of Ubuntu or try installing the proprietary drivers using jockey-gtk or the Kubuntu equivalent. Most ATI and NVIDIA cards should be supported and allow OpenGL. -- Kevin Fishburne Eight Virtues www: [3]http://sales.eightvirtues.com e-mail: [4]sales at ...1887... phone: (770) 853-6271 References 1. http://gambas.sourceforge.net/en/main.html 2. https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ 3. http://sales.eightvirtues.com/ 4. mailto:sales at ...1887... From gambas at ...1... Thu Mar 3 02:04:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 3 Mar 2011 02:04:51 +0100 Subject: [Gambas-user] 3628 version Controls spacing Question In-Reply-To: <201103030818.38940.rterry@...1946...> References: <201103022013.03000.rterry@...1946...> <201103022122.17685.gambas@...1...> <201103030818.38940.rterry@...1946...> Message-ID: <201103030204.55721.gambas@...1...> > On Thursday 03 March 2011 07:22:17 Beno?t Minisini wrote: > > > Upgraded to this version, suddenly my entire gui looks wacky. > > > > > > All the controls are spaced differently - I've got a lot of borderless > > > stacked textboxes which all of a sudden are much more widely separated > > > - almost like I'd switched on the spacing property of a container and > > > doubled it. > > > > > > I'm running kubuntu 9 and QT. > > > > > > Regards > > > > > > richard > > > > What was your version before the upgrade? > > Wish I Knew, it wasn't that long ago, maybe a week or two. Not very precise. :-/ It will help me to guess what happened on your machine. > > Can you remind me how to rollback a version. svn update -r VERSION > > Also, did you ever get around to thinking about implenting that pixel > spacing property we talked about on the list a while ago? > > Regards > > Richard > Yes, I know I have to do that for the Gambas 3 release. But it may break a lot of things, so instead of having you running after me, I will have gazillions of other users. :-) So I must take the time to think before. Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Thu Mar 3 09:10:26 2011 From: eilert-sprachen at ...221... (Sprachschule Eilert) Date: Thu, 03 Mar 2011 09:10:26 +0100 Subject: [Gambas-user] ncurses - macro is not found In-Reply-To: <201103022121.43559.gambas@...1...> References: <4D6E115D.4020807@...221...> <201103022121.43559.gambas@...1...> Message-ID: <4D6F4CF2.8070201@...394...> Am 02.03.2011 21:21, schrieb Beno?t Minisini: >> I do not have that much idea of how that works under C, so that's why I >> ask here. >> >> In the ncurses library, there are macros. One of them is needed to get >> the dimensions of the "window". But when I define it >> >> EXTERN getmaxyx(... >> >> when my program starts, there is merely the error "cannot find symbol >> getmaxyx in library ncurses". >> >> So what can I do here? >> >> Regards >> Rolf >> > > A macro is not a function. It is some code replaced by some other code at > compilation time. The "getmaxyx" identifier does not exist in the executable. > > You must read the C header file to see what the getmaxyx() macro actually > does. > > The gcc compiler has the "-E" option that can help you, by writing to the > standard output the real code that will be compiled once all macros have been > expanded. > > Regards, > Thanks for the tip. I am aware of what a macro in general does, but I do not understand the result of this thing: getmaxyx(stdscr, y, x); becomes (y = ((stdscr)?((stdscr)->_maxy + 1):(-1)), x = ((stdscr)?((stdscr)->_maxx + 1):(-1))); and I do not know what "?", "->" and ":" are good for... I guess, the basic functions are called maxy and maxx, but why with "_" etc...? When I try to simply declare maxx and maxy in my Gambas program, I merely get a "Type mismatch: wanted Integer, got Function" instead. I guess you know what I mean ;-) Regards Rolf -- Rolf-Werner Eilert SPRACHSCHULE EILERT Kollegienwall 19 - 49074 Osnabr?ck www.eilert-sprachen.de - 0541/22653 From austinium at ...43... Thu Mar 3 10:33:00 2011 From: austinium at ...43... (vikram) Date: Thu, 3 Mar 2011 01:33:00 -0800 (PST) Subject: [Gambas-user] (no subject) Message-ID: <677702.36334.qm@...2469...> Hi, An application I am working on allows users to select .sql dump files and the "source" them into MySQL. I am storing the paths of .sql files obtained via Dialog.OpenFile() in a array and then iterating through the array with the following command(via SHELL) to "source" the .sql database dumps. mysql -uroot -padmin -e \"source " & Globals.DBsqlFilePathArray[counter] & "\" " Trouble is the application becomes unresponsive when large files are used. So I display a Message dialog informing the user that the operation will take some time and then follow a previous thread (http://www.mail-archive.com/gambas-user at lists.sourceforge.net/msg11153.html) to display the busy cursor. But the busy cursor is not displayed when the user moves the mouse over the Message dialog. It still feels like the application has "frozen". I feel displaying a progressbar would be better, but I am not able to figure out how I can get the progress bar to work with the "source" operation in the background. I did check out the progressbar sample here(http://gambaslinux.eg2.fr/articles.php?lng=en&pg=126), but thats not exactly what i am trying to make. Even a dummy progress bar whose value keeps cycling between 0 and 1 would do. Are there any tutorials or examples related to using progress bars in gambas? Thanks in advance, Best Regards, Vikram Nair From rterry at ...1946... Thu Mar 3 10:45:17 2011 From: rterry at ...1946... (richard terry) Date: Thu, 3 Mar 2011 20:45:17 +1100 Subject: [Gambas-user] Save Project > dialog icons missing Message-ID: <201103032045.17595.rterry@...1946...> Hi Benoit, The little icons to create directory etc missing from the top bar. I realise they are still on the menu, great, but it works quicker to also have them visually in the dialog. Regards richard From eilert-sprachen at ...221... Thu Mar 3 10:59:21 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 03 Mar 2011 10:59:21 +0100 Subject: [Gambas-user] (no subject) In-Reply-To: <677702.36334.qm@...2469...> References: <677702.36334.qm@...2469...> Message-ID: <4D6F6679.6090200@...221...> Am 03.03.2011 10:33, schrieb vikram: > Hi, > > An application I am working on allows users to select .sql dump files and the "source" them into MySQL. I am storing the paths of .sql files obtained via Dialog.OpenFile() in a array and then iterating through the array with the following command(via SHELL) to "source" the .sql database dumps. > > mysql -uroot -padmin -e \"source "& Globals.DBsqlFilePathArray[counter]& "\"" > > Trouble is the application becomes unresponsive when large files are used. So I display a Message dialog informing the user that the operation will take some time and then follow a previous thread (http://www.mail-archive.com/gambas-user at lists.sourceforge.net/msg11153.html) to display the busy cursor. But the busy cursor is not displayed when the user moves the mouse over the Message dialog. It still feels like the application has "frozen". > > I feel displaying a progressbar would be better, but I am not able to figure out how I can get the progress bar to work with the "source" operation in the background. I did check out the progressbar sample here(http://gambaslinux.eg2.fr/articles.php?lng=en&pg=126), but thats not exactly what i am trying to make. Even a dummy progress bar whose value keeps cycling between 0 and 1 would do. > > Are there any tutorials or examples related to using progress bars in gambas? > > Thanks in advance, > Best Regards, > Vikram Nair > Is there a way you can prepare the display before you call mysql? I had the same trouble with a printer function (not external one, but seems to be the same problem). My solution was to call the display things that say "please wait" and then refresh and WAIT so the display has a chance to build up before I dive into the printing part. However, during printing I did not find a functioning way of reading the mouse enabling the user to actually click on "Abort" to stop the process. I tried everything, but the function will only react when work is done, so aside from its displaying use, the Abort thing has remained useless. What I did achieve is that it displays the pages or names printed during printing - the display refreshing part is running. Regards Rolf From soleilpqd at ...626... Thu Mar 3 17:47:19 2011 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Thu, 3 Mar 2011 23:47:19 +0700 Subject: [Gambas-user] Local path URI Message-ID: Hi, How to copy a file path to clipboard so I can Paste with nautilus? It seems that when I copy a file from Nautilus, clipboard stores its URI path with special formats. In additional, can Gambas3 convert a local path to URI path like "/abc/xyz ltm.pqr" to "file:///abc/xyz%20ltm.pqr"? From gambas at ...1... Fri Mar 4 00:39:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Mar 2011 00:39:53 +0100 Subject: [Gambas-user] About Draw.Style.Arrow In-Reply-To: <1298974942.3754.2.camel@...2493...> References: <1298974942.3754.2.camel@...2493...> Message-ID: <201103040039.53353.gambas@...1...> > is this page published? > > http://gambasdoc.org/help/comp/gb.qt4/.draw.style/arrow?v3&view > > > i think there is a mistake about Flag and State parts. > > it says > > State is TRUE if the arrow is disabled, FALSE otherwise. > > but there is no State in declaration > > STATIC SUB Arrow ( X AS Integer, Y AS Integer, Width AS Integer, Height > AS Integer, Type AS Integer [ , Flag AS Integer ] ) The documentation is just not up to date. -- Beno?t Minisini From gambas at ...1... Fri Mar 4 01:01:21 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Mar 2011 01:01:21 +0100 Subject: [Gambas-user] ncurses - macro is not found In-Reply-To: <4D6F4CF2.8070201@...394...> References: <4D6E115D.4020807@...221...> <201103022121.43559.gambas@...1...> <4D6F4CF2.8070201@...394...> Message-ID: <201103040101.21090.gambas@...1...> > Am 02.03.2011 21:21, schrieb Beno?t Minisini: > >> I do not have that much idea of how that works under C, so that's why I > >> ask here. > >> > >> In the ncurses library, there are macros. One of them is needed to get > >> the dimensions of the "window". But when I define it > >> > >> EXTERN getmaxyx(... > >> > >> when my program starts, there is merely the error "cannot find symbol > >> getmaxyx in library ncurses". > >> > >> So what can I do here? > >> > >> Regards > >> Rolf > > > > A macro is not a function. It is some code replaced by some other code at > > compilation time. The "getmaxyx" identifier does not exist in the > > executable. > > > > You must read the C header file to see what the getmaxyx() macro actually > > does. > > > > The gcc compiler has the "-E" option that can help you, by writing to the > > standard output the real code that will be compiled once all macros have > > been expanded. > > > > Regards, > > Thanks for the tip. I am aware of what a macro in general does, but I do > not understand the result of this thing: > > getmaxyx(stdscr, y, x); > > becomes > > (y = ((stdscr)?((stdscr)->_maxy + 1):(-1)), x = > ((stdscr)?((stdscr)->_maxx + 1):(-1))); > > and I do not know what "?", "->" and ":" are good for... I guess, the > basic functions are called maxy and maxx, but why with "_" etc...? "x ? y : z" is an expression that returns "z" if "x" is zero, and returns "y" otherwise. (stdscr)->_maxy is the value of the "_maxy" field of the structure pointed by stdscr. So you must declare a structure equivalent to what stdscr points at, to be able to access its _maxy field, as that macro does. Of course, a ncurses component written in C would be simpler! Regards, -- Beno?t Minisini From gambas at ...1... Fri Mar 4 01:02:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Mar 2011 01:02:17 +0100 Subject: [Gambas-user] Application_Read does react only once In-Reply-To: <4D6D048B.7020208@...221...> References: <4D6D048B.7020208@...221...> Message-ID: <201103040102.17899.gambas@...1...> > Hi folks, > > This is a small project I have been circling around for about a year or > so. It would be a simple command line application that waits for and > evaluates every keystroke you make. > > Some of you were so kind to point me to Application_Read to achieve > that, but I found it only gives one single keystroke (a Return) and > (seamingly) is never called again. To make things short, this is the > core of my application so far: > > ' Gambas module file > > PRIVATE txt AS String > > > > PUBLIC SUB Main() > > END > > > PUBLIC SUB Application_Read() > DIM t$ AS String > > PRINT "hello world" 'this is just debug code > > READ #LAST, t$, -256 > > IF t$ <> "" THEN > PRINT t$ & " : "; > END IF > > txt = txt & t$ > > PRINT "keys are:" & txt; > > txt = "" > > END > > So, why does "hello world" only appear one single time (after a first > Return), and why will I never read " : " but only the letters of the > keys pressed? > > On my machine, the whole thing runs within "Konsole" on a graphical > screen, but I think that will not really make a difference, will it? > > Thanks for your help! > > Regards > > Rolf > Please send a complete project each time you report a bug, even if it is a small one that looks evident for you. Regards, -- Beno?t Minisini From gambas at ...1... Fri Mar 4 01:06:04 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Mar 2011 01:06:04 +0100 Subject: [Gambas-user] Application_Read does react only once In-Reply-To: <201103040102.17899.gambas@...1...> References: <4D6D048B.7020208@...221...> <201103040102.17899.gambas@...1...> Message-ID: <201103040106.04592.gambas@...1...> > > Hi folks, > > > > This is a small project I have been circling around for about a year or > > so. It would be a simple command line application that waits for and > > evaluates every keystroke you make. > > > > Some of you were so kind to point me to Application_Read to achieve > > that, but I found it only gives one single keystroke (a Return) and > > (seamingly) is never called again. To make things short, this is the > > core of my application so far: > > > > ... > > > > So, why does "hello world" only appear one single time (after a first > > Return), and why will I never read " : " but only the letters of the > > keys pressed? > > > > On my machine, the whole thing runs within "Konsole" on a graphical > > screen, but I think that will not really make a difference, will it? > > > > Thanks for your help! > > > > Regards > > > > Rolf > > Please send a complete project each time you report a bug, even if it is a > small one that looks evident for you. > > Regards, That code works perfectly in real situation (inside a terminal). But not correctly from the IDE, as apparently stroke typed from the IDE console window are not received immediately by the debugged application. You must type a lot of characters before. Regards, -- Beno?t Minisini From gambas at ...1... Fri Mar 4 01:08:46 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Mar 2011 01:08:46 +0100 Subject: [Gambas-user] Local path URI In-Reply-To: References: Message-ID: <201103040108.46084.gambas@...1...> > Hi, > > How to copy a file path to clipboard so I can Paste with nautilus? It seems > that when I copy a file from Nautilus, clipboard stores its URI path with > special formats. You must use the "text/uri-list" mime type apparently. > In additional, can Gambas3 convert a local path to URI path like "/abc/xyz > ltm.pqr" to "file:///abc/xyz%20ltm.pqr"? Maybe I should add a function for that in the interpreter... Regards, -- Beno?t Minisini From zachsmith022 at ...626... Fri Mar 4 01:15:16 2011 From: zachsmith022 at ...626... (Zach Smith) Date: Thu, 3 Mar 2011 18:15:16 -0600 Subject: [Gambas-user] Add/remove a breakpoint without pausing program Message-ID: Beno?t, Is it possible to add the ability to add a breakpoint while a program is running? VB6 can do this. It would be convenient because when you pause the program there is no predicting where in the code it will stop and then you have to find the line you wanted to add a breakpoint to. Note that F9 toggles the breakpoint tool button icon while the program is running but it obviously does nothing. From gambas at ...2524... Fri Mar 4 01:55:55 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 04 Mar 2011 00:55:55 +0000 Subject: [Gambas-user] Issue 46 in gambas: a breakpoint on a commented line has inconsistent behavior Message-ID: <0-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 46 by zachsmit... at ...626...: a breakpoint on a commented line has inconsistent behavior http://code.google.com/p/gambas/issues/detail?id=46 1) Describe the problem. a breakpoint on a commented line has inconsistent behavior 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r3617 Operating system: Linux Distribution: Arch Architecture: x86_64 GUI component: GTK+ Desktop used: Xfce 5) Explain clearly how to reproduce the bug or the crash. using tool buttons: set a breakpoint on a line of code comment out the line remove the breakpoint uncomment the line (now a breakpoint can't be set without moving to another line and back or switching focus to another window and back) From gambas at ...1... Fri Mar 4 02:06:11 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Mar 2011 02:06:11 +0100 Subject: [Gambas-user] Bug with debugging In-Reply-To: References: Message-ID: <201103040206.11144.gambas@...1...> > Hi! > I'm working on experimental profiler project (I hope Benoit will release > better approach to this in future). > However, I'm constantly running into debugging problems; > occasionally missing error messages, and randomly missing possibility to > "look" inside variable. > > This project is full of bugs, missing features, etc. and it exist primarily > as experiment. > So, no comments about code quality is needed. > > Way to reproduce problems. > > 1. Click on "Open project" and select some *small* project to test. > 2. Click on "Record". > 3. Click on "Run" > 4. Click on "Record" > 5. Close the project you opened for profiling. > > Now you should have "Out of bounds" error message (some times not [try > running Profiler from IDE couple of times to demonstrate missing > messages]). Then try to see what cBData[] holds, almost never you can't. > If you can try other variables. > With this project reproducing this problem shouldn't be difficult, couple > runs should be enough. > > > Gambas 3 rev 3627 @ Ubuntu 10.10 64bit > > Jussi > P.S Code is GPL v2 if it is going to be useful... The array has no element, so the debugger displays nothing when double clicking on it. Maybe it should displays a message instead... -- Beno?t Minisini From gambas at ...1... Fri Mar 4 02:32:44 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Mar 2011 02:32:44 +0100 Subject: [Gambas-user] System information hidden in FAbout In-Reply-To: <4D6A9320.9030400@...221...> References: <4D6A9320.9030400@...221...> Message-ID: <201103040232.44152.gambas@...1...> > @ Beno?t: > It took me some time to find out where the system information could be > found (remembered that I saw it once, but forgot). > It is very well hidden in the menu "About Gambas", where I never would look > for system infos. > Please, make it a separate menu item in the help menu, or a tab in the > project properties. I think these places would be more likely to be looked > at. > > Regards > Matti > System information has its own menu entry and its own dialog box now. Since revision #3631. Regards, -- Beno?t Minisini From gambas at ...1... Fri Mar 4 02:33:21 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Mar 2011 02:33:21 +0100 Subject: [Gambas-user] App crashes because of FBalloon (gb3) In-Reply-To: <1Pt4nm-0s2vz60@...2522...> References: <1Pt4nm-0s2vz60@...2522...> Message-ID: <201103040233.21127.gambas@...1...> > Since a few days I have strange crashes with the message: > "This application has raised an unexpected error and must abort. > [29] Invalid object. > FBalloon.Window_Move.320" > It happens sometimes, not reproducable, when Gambas was minimized and is > rezized again. > Last time, I can definitely say that my project wasn't running, the > Balloon class is not used, and no error balloon showing. > Could it be a result of the fix of issue #37? The time would fit. > gb 3 rev. 3608, KDE/qt > Regards > Matti Please tell me if you get that again. Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Fri Mar 4 10:32:11 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 04 Mar 2011 10:32:11 +0100 Subject: [Gambas-user] Application_Read does react only once In-Reply-To: <201103040106.04592.gambas@...1...> References: <4D6D048B.7020208@...221...> <201103040102.17899.gambas@...1...> <201103040106.04592.gambas@...1...> Message-ID: <4D70B19B.2070101@...221...> Am 04.03.2011 01:06, schrieb Beno?t Minisini: >>> Hi folks, >>> >>> This is a small project I have been circling around for about a year or >>> so. It would be a simple command line application that waits for and >>> evaluates every keystroke you make. >>> >>> Some of you were so kind to point me to Application_Read to achieve >>> that, but I found it only gives one single keystroke (a Return) and >>> (seamingly) is never called again. To make things short, this is the >>> core of my application so far: >>> >>> ... >>> >>> So, why does "hello world" only appear one single time (after a first >>> Return), and why will I never read " : " but only the letters of the >>> keys pressed? >>> >>> On my machine, the whole thing runs within "Konsole" on a graphical >>> screen, but I think that will not really make a difference, will it? >>> >>> Thanks for your help! >>> >>> Regards >>> >>> Rolf >> >> Please send a complete project each time you report a bug, even if it is a >> small one that looks evident for you. >> >> Regards, > > That code works perfectly in real situation (inside a terminal). But not > correctly from the IDE, as apparently stroke typed from the IDE console window > are not received immediately by the debugged application. You must type a lot > of characters before. > > Regards, > Ok, that explains it. What a pitty... All I would need for my idea is a reliable single key reader (such as getch() in ncurses) and the chance to find out the terminal dimensions. So I'll try to get it done with ncurses. Regards Rolf From eilert-sprachen at ...221... Fri Mar 4 10:32:59 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 04 Mar 2011 10:32:59 +0100 Subject: [Gambas-user] Application_Read does react only once In-Reply-To: <201103040102.17899.gambas@...1...> References: <4D6D048B.7020208@...221...> <201103040102.17899.gambas@...1...> Message-ID: <4D70B1CB.5090209@...221...> Am 04.03.2011 01:02, schrieb Beno?t Minisini: >> Hi folks, >> >> This is a small project I have been circling around for about a year or >> so. It would be a simple command line application that waits for and >> evaluates every keystroke you make. >> >> Some of you were so kind to point me to Application_Read to achieve >> that, but I found it only gives one single keystroke (a Return) and >> (seamingly) is never called again. To make things short, this is the >> core of my application so far: >> >> ' Gambas module file >> >> PRIVATE txt AS String >> >> >> >> PUBLIC SUB Main() >> >> END >> >> >> PUBLIC SUB Application_Read() >> DIM t$ AS String >> >> PRINT "hello world" 'this is just debug code >> >> READ #LAST, t$, -256 >> >> IF t$<> "" THEN >> PRINT t$& " : "; >> END IF >> >> txt = txt& t$ >> >> PRINT "keys are:"& txt; >> >> txt = "" >> >> END >> >> So, why does "hello world" only appear one single time (after a first >> Return), and why will I never read " : " but only the letters of the >> keys pressed? >> >> On my machine, the whole thing runs within "Konsole" on a graphical >> screen, but I think that will not really make a difference, will it? >> >> Thanks for your help! >> >> Regards >> >> Rolf >> > > Please send a complete project each time you report a bug, even if it is a > small one that looks evident for you. > > Regards, > Errr - didn't I? What is missing? Rolf From gambas at ...1... Fri Mar 4 13:05:56 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Mar 2011 13:05:56 +0100 Subject: [Gambas-user] Application_Read does react only once In-Reply-To: <4D70B1CB.5090209@...221...> References: <4D6D048B.7020208@...221...> <201103040102.17899.gambas@...1...> <4D70B1CB.5090209@...221...> Message-ID: <201103041305.56062.gambas@...1...> > > > > Please send a complete project each time you report a bug, even if it is > > a small one that looks evident for you. > > > > Regards, > > Errr - didn't I? What is missing? > > Rolf > You just sent the module. But without the full project, I don't have the full context (which components are used). It is often essential to fix a bug. Regards, -- Beno?t Minisini From gambas at ...1... Fri Mar 4 13:07:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Mar 2011 13:07:03 +0100 Subject: [Gambas-user] Add/remove a breakpoint without pausing program In-Reply-To: References: Message-ID: <201103041307.03544.gambas@...1...> > Beno?t, > > Is it possible to add the ability to add a breakpoint while a program > is running? VB6 can do this. It would be convenient because when you > pause the program there is no predicting where in the code it will > stop and then you have to find the line you wanted to add a breakpoint > to. Note that F9 toggles the breakpoint tool button icon while the > program is running but it obviously does nothing. > Alas it is not possible at the moment. If I find a good solution for that in the future, I will do it. Regards, -- Beno?t Minisini From gambas at ...2524... Fri Mar 4 14:35:31 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 04 Mar 2011 13:35:31 +0000 Subject: [Gambas-user] Issue 46 in gambas: a breakpoint on a commented line has inconsistent behavior In-Reply-To: <0-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 46 by benoit.m... at ...626...: a breakpoint on a commented line has inconsistent behavior http://code.google.com/p/gambas/issues/detail?id=46 I cannot reproduce that bug. Can you be more precise about your actions? Can you send make a little project for that, and tell me if you set/unset the breakpoint by double-clicking in the editor margin, or by using the breakpoint tab in the debug bottom panel? From jussi.lahtinen at ...626... Fri Mar 4 23:22:13 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 5 Mar 2011 00:22:13 +0200 Subject: [Gambas-user] Bug with debugging In-Reply-To: <201103040206.11144.gambas@...1...> References: <201103040206.11144.gambas@...1...> Message-ID: That wasn't the whole problem... but for some reason I can't reproduce rest of the problems anymore with this project. I have other (huge) project where I can reproduce these problems randomly, but I can't send it... I'll try to isolate this problem. Jussi 2011/3/4 Beno?t Minisini > > Hi! > > I'm working on experimental profiler project (I hope Benoit will release > > better approach to this in future). > > However, I'm constantly running into debugging problems; > > occasionally missing error messages, and randomly missing possibility to > > "look" inside variable. > > > > This project is full of bugs, missing features, etc. and it exist > primarily > > as experiment. > > So, no comments about code quality is needed. > > > > Way to reproduce problems. > > > > 1. Click on "Open project" and select some *small* project to test. > > 2. Click on "Record". > > 3. Click on "Run" > > 4. Click on "Record" > > 5. Close the project you opened for profiling. > > > > Now you should have "Out of bounds" error message (some times not [try > > running Profiler from IDE couple of times to demonstrate missing > > messages]). Then try to see what cBData[] holds, almost never you can't. > > If you can try other variables. > > With this project reproducing this problem shouldn't be difficult, couple > > runs should be enough. > > > > > > Gambas 3 rev 3627 @ Ubuntu 10.10 64bit > > > > Jussi > > P.S Code is GPL v2 if it is going to be useful... > > The array has no element, so the debugger displays nothing when double > clicking on it. Maybe it should displays a message instead... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sat Mar 5 00:33:56 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 04 Mar 2011 23:33:56 +0000 Subject: [Gambas-user] Issue 46 in gambas: a breakpoint on a commented line has inconsistent behavior In-Reply-To: <1-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> <0-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> Comment #2 on issue 46 by zachsmit... at ...626...: a breakpoint on a commented line has inconsistent behavior http://code.google.com/p/gambas/issues/detail?id=46 To see the problem, try using F9 or the tool button to set/unset the breakpoint. It works correctly, however, if you double click the editor margin. Steps to reproduce: move cursor to position 1 in a line to comment press F9 press ' press F9 press press F9 (breakpoint does not get set) From gambas at ...1... Sat Mar 5 03:45:43 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 5 Mar 2011 03:45:43 +0100 Subject: [Gambas-user] Change in spacing/padding/margin property for Gambas 3 Message-ID: <201103050345.43852.gambas@...1...> Hi, I am currently changing the behaviour of the Spacing, Padding and Margin property to fit requests from Richard Terry, and I'm trying to not break every application by doing that. The old behaviour was: - If Spacing is TRUE, then child controls are spaced with Desktop.Scale pixels. - If Margin is TRUE, then the container has a margin of Desktop.Scale pixels around its children. - The Padding property is a number of pixels added to the margin. The new behaviour I propose is the following: - If Spacing is TRUE, and if Padding is zero, then child controls are spaced with Desktop.Scale pixels. - If Spacing is TRUE, and if Padding is not zero, then child controls are spaced with Padding pixels. - If Margin is TRUE, and if Padding is zero, then the container has a margin of Desktop.Scale pixels around its children. - If Margin is TRUE, and if Padding is not zero, then the container has a margin of Padding pixels around its children. - If Margin is FALSE, and Spacing is FALSE, but Padding is not zero, then the container has a margin of Padding pixels around its children. That to be compatibie with the old behaviour. It allows to have pixel precision to spacing and margin, except that then spacing and margin both have the same value. What do you think? -- Beno?t Minisini From gambas at ...2524... Sat Mar 5 05:03:03 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 05 Mar 2011 04:03:03 +0000 Subject: [Gambas-user] Issue 28 in gambas: Gambas debugger show a 'syntax error' when displaying an array In-Reply-To: <2-6813199134517018827-2909860699509145214-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-2909860699509145214-gambas=googlecode.com@...2524...> <0-6813199134517018827-2909860699509145214-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-2909860699509145214-gambas=googlecode.com@...2524...> Comment #3 on issue 28 by zachsmit... at ...626...: Gambas debugger show a 'syntax error' when displaying an array http://code.google.com/p/gambas/issues/detail?id=28 Bug confirmed in Gambas 3, r3617. From rterry at ...1946... Sat Mar 5 05:59:40 2011 From: rterry at ...1946... (richard terry) Date: Sat, 5 Mar 2011 15:59:40 +1100 Subject: [Gambas-user] Change in spacing/padding/margin property for Gambas 3 In-Reply-To: <201103050345.43852.gambas@...1...> References: <201103050345.43852.gambas@...1...> Message-ID: <201103051559.40111.rterry@...1946...> On Saturday 05 March 2011 13:45:43 Beno?t Minisini wrote: Thanks for considering this Benoit, I'll obviously vote for whatever will give me single pixel control over the gui elements. Regards Richard > Hi, > > I am currently changing the behaviour of the Spacing, Padding and Margin > property to fit requests from Richard Terry, and I'm trying to not break > every application by doing that. > > The old behaviour was: > > - If Spacing is TRUE, then child controls are spaced with Desktop.Scale > pixels. > > - If Margin is TRUE, then the container has a margin of Desktop.Scale > pixels around its children. > > - The Padding property is a number of pixels added to the margin. > > The new behaviour I propose is the following: > > - If Spacing is TRUE, and if Padding is zero, then child controls are > spaced with Desktop.Scale pixels. > > - If Spacing is TRUE, and if Padding is not zero, then child controls are > spaced with Padding pixels. > > - If Margin is TRUE, and if Padding is zero, then the container has a > margin of Desktop.Scale pixels around its children. > > - If Margin is TRUE, and if Padding is not zero, then the container has a > margin of Padding pixels around its children. > > - If Margin is FALSE, and Spacing is FALSE, but Padding is not zero, then > the container has a margin of Padding pixels around its children. That to > be compatibie with the old behaviour. > > It allows to have pixel precision to spacing and margin, except that then > spacing and margin both have the same value. > > What do you think? > From demosthenesk at ...626... Sat Mar 5 10:11:48 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 05 Mar 2011 11:11:48 +0200 Subject: [Gambas-user] Draw.Pop and Draw.Push Message-ID: <1299316308.4166.2.camel@...2493...> I read the docs about these methods. What are they doing exactly? 1) The matrix is the drawing area? 2) where is it saved and from where is it restored? -- Regards, Demosthenes Koptsis. From ron at ...1740... Sat Mar 5 16:32:28 2011 From: ron at ...1740... (Ron) Date: Sat, 5 Mar 2011 16:32:28 +0100 Subject: [Gambas-user] Weird error Gambas2 Message-ID: Just about to release a new version of my project, and I get weird error messages again... It's always like this ;-) When I run my command line project I get this error a lot of times: THROW system error from CRFXComTX.WriteMessage.377 THROW system error from CRFXComTX.WriteMessage.377 ... ... Line 377 contains: TRY READ #hRFXComTX, bTemp ?? I don't get it.. gambas2, build yesterday, gb.qt, maveric,k 32 bits. Regards, Ron. From herberthguzman at ...626... Sat Mar 5 21:17:29 2011 From: herberthguzman at ...626... (herberth guzman) Date: Sat, 5 Mar 2011 14:17:29 -0600 Subject: [Gambas-user] gb.report Message-ID: Saludos a todo, necesito ayuda, estoy realizando un programa en gambas3 y necesito crear reportes, logre crear reportes con gb.report despues de varios dias, pero quiero llamar el reporte desde un formulario llamado frmreportes. Alguien podria decirme como visualizarlo. Gracias Greetings all, I need help, I am implementing a program in gambas3 and need to create reports, create reports with gb.report achieved after several days, but I call the report from a form called frmreportes. Someone could tell me how to view it. Thanks From herberthguzman at ...626... Sat Mar 5 21:20:08 2011 From: herberthguzman at ...626... (herberth guzman) Date: Sat, 5 Mar 2011 14:20:08 -0600 Subject: [Gambas-user] gb.report Message-ID: Saludos a todo, necesito ayuda, estoy realizando un programa en gambas3 y necesito crear reportes, logre crear reportes con gb.report despues de varios dias, pero quiero llamar el reporte desde un formulario llamado frmreportes. Alguien podria decirme como visualizarlo. Gracias Greetings all, I need help, I am implementing a program in gambas3 and need to create reports, create reports with gb.report achieved after several days, but I call the report from a form called frmreportes. Someone could tell me how to view it. Thanks. Herberth From soleilpqd at ...626... Sat Mar 5 21:51:24 2011 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Sun, 6 Mar 2011 03:51:24 +0700 Subject: [Gambas-user] Settings Message-ID: Hi, I tried use Settings to read index.theme of icon theme: cfgReader = NEW Settings("/path/to/index.theme") With the file "~/.icons/elementaryXubuntu/index.theme" [Icon Theme] .... Directories=actions/16,actions/22,..... ..... cfgReader["Icon Theme/Directories"] return whole line. It's OK. But with the file "/usr/share/icons/Fedora/index.theme" and other themes in /usr/share/icons which have "Directories" line like this: [Icon Theme] .... Directories=16x16/places,16x16/apps,..... ..... cfgReader["Icon Theme/Directories"] return only 16 What wrong with 'x'? '-------------------------------------------------------' [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.35.11-83.fc14.i686 DistributionVendor=redhat DistributionRelease=Fedora release 14 (Laughlin) [System] CPUArchitecture=i686 TotalRam=1793500 kB Desktop=Gnome [Gambas] Gambas1=Not Installed Gambas2=2.22.0 Gambas2Path=/usr/local/bin/gbx2 *Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 Last revision (update 5 Mars)* -------------- next part -------------- A non-text attachment was scrubbed... Name: index.theme Type: application/octet-stream Size: 2430 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: index.theme Type: application/octet-stream Size: 1128 bytes Desc: not available URL: From gambas.fr at ...626... Sat Mar 5 22:21:50 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 5 Mar 2011 22:21:50 +0100 Subject: [Gambas-user] gb.report In-Reply-To: References: Message-ID: 2011/3/5 herberth guzman : > Saludos a todo, necesito ayuda, estoy realizando un programa en gambas3 y > necesito crear reportes, logre crear reportes con gb.report despues de > varios dias, pero quiero llamar el reporte desde un formulario llamado > frmreportes. Alguien podria decirme como visualizarlo. Gracias > > > Greetings all, I need help, I am implementing a program in gambas3 and need to > create reports, create reports with gb.report achieved after several days, > but I call the report from a form called frmreportes. Someone could tell me > how to view it. Thanks. you can use the preview form in your project i give you a buggy one, i've a problem with the timer stamp but you can see how it work ! > > Herberth > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: FPreview.class Type: application/octet-stream Size: 2379 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FPreview.form Type: application/octet-stream Size: 1714 bytes Desc: not available URL: From gambas.fr at ...626... Sat Mar 5 22:30:06 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 5 Mar 2011 22:30:06 +0100 Subject: [Gambas-user] Settings In-Reply-To: References: Message-ID: 2011/3/5 Ph?m Quang D??ng : > Hi, > > I tried use Settings to read index.theme of icon theme: > > cfgReader = NEW Settings("/path/to/index.theme") > > With the file "~/.icons/elementaryXubuntu/index.theme" > [Icon Theme] > .... > Directories=actions/16,actions/22,..... > ..... > > cfgReader["Icon Theme/Directories"] return whole line. It's OK. > > But with the file "/usr/share/icons/Fedora/index.theme" and other themes in > /usr/share/icons which have "Directories" line like this: > [Icon Theme] > .... > Directories=16x16/places,16x16/apps,..... > ..... > > cfgReader["Icon Theme/Directories"] return only 16 > > What wrong with 'x'? nothing... it's a bug ... if the result begin by a number then if the next character is not a dot it return an integer :/ > > '-------------------------------------------------------' > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.35.11-83.fc14.i686 > DistributionVendor=redhat > DistributionRelease=Fedora release 14 (Laughlin) > > [System] > CPUArchitecture=i686 > TotalRam=1793500 kB > Desktop=Gnome > > [Gambas] > Gambas1=Not Installed > Gambas2=2.22.0 > Gambas2Path=/usr/local/bin/gbx2 > *Gambas3=2.99.0 > Gambas3Path=/usr/local/bin/gbx3 > Last revision (update 5 Mars)* > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From gambas at ...1... Sat Mar 5 22:53:30 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 5 Mar 2011 22:53:30 +0100 Subject: [Gambas-user] Settings In-Reply-To: References: Message-ID: <201103052253.30251.gambas@...1...> > 2011/3/5 Ph?m Quang D??ng : > > Hi, > > > > I tried use Settings to read index.theme of icon theme: > > > > cfgReader = NEW Settings("/path/to/index.theme") > > > > With the file "~/.icons/elementaryXubuntu/index.theme" > > [Icon Theme] > > .... > > Directories=actions/16,actions/22,..... > > ..... > > > > cfgReader["Icon Theme/Directories"] return whole line. It's OK. > > > > But with the file "/usr/share/icons/Fedora/index.theme" and other themes > > in /usr/share/icons which have "Directories" line like this: > > [Icon Theme] > > .... > > Directories=16x16/places,16x16/apps,..... > > ..... > > > > cfgReader["Icon Theme/Directories"] return only 16 > > > > What wrong with 'x'? > > nothing... it's a bug ... if the result begin by a number then if the > next character is not a dot it return an integer :/ > It's not really a bug, but Settings must just be used for reading files written by Settings. Reading files created elsewhere is not supported. Regards, -- Beno?t Minisini From gambas at ...1... Sat Mar 5 22:56:06 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 5 Mar 2011 22:56:06 +0100 Subject: [Gambas-user] Weird error Gambas2 In-Reply-To: References: Message-ID: <201103052256.06669.gambas@...1...> > Just about to release a new version of my project, and I get weird > error messages again... > It's always like this ;-) > > When I run my command line project I get this error a lot of times: > > THROW system error from CRFXComTX.WriteMessage.377 > THROW system error from CRFXComTX.WriteMessage.377 > ... > ... > > Line 377 contains: > TRY READ #hRFXComTX, bTemp > > ?? I don't get it.. > > gambas2, build yesterday, gb.qt, maveric,k 32 bits. > > Regards, > Ron. I think it's the message I added to catch the error in Domotiga, don't you remember? I can't check, because I can't connect to your machine anymore. Regards, -- Beno?t Minisini From herberthguzman at ...626... Sat Mar 5 23:31:12 2011 From: herberthguzman at ...626... (herberth guzman) Date: Sat, 5 Mar 2011 16:31:12 -0600 Subject: [Gambas-user] Gambas-user Digest, Vol 58, Issue 8 In-Reply-To: References: Message-ID: Gracias por tu ayuda, en gambas2 ponia reporte.Preview, pero aqui en gambas3 me mate buscando y buscando y no pude no aparece la opcion o equivalente, voy a estar pendiente de la solucion. Thanks for your help, gambas2 ponia reporte.Preview, but here in gambas3 me mate searching and searching and I could not see the option or equivalent, I will be aware of the solution. From kevinfishburne at ...1887... Sun Mar 6 04:36:14 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 05 Mar 2011 22:36:14 -0500 Subject: [Gambas-user] gb3+sdl: Screen object not created and screen events don't trigger Message-ID: <4D73012E.4060607@...1887...> I have a module, Render, with the following: Public Screen As New Window As "Screen" Public Sub Screen_Create() With Screen .Width = swidth .Height = sheight .Framerate = 60 .FullScreen = sfullscreen .Show() End With End Public Sub Screen_Close() Main.Terminate End Public Sub Screen_Draw() [stuff...] End The procedure Screen_Draw should be triggered as an event automatically, yet it is not. When manually calling it I get a "No device" error when it tries to write to the screen via Draw.Image(...). Double-clicking the "Screen" object in the variable declaration states "Unknown symbol". BeastScroll works fine, even using the same components as the app that fails (gb, gb.image, gb.image.effect, gb.image.imlib, gb.image.io, gb.net, gb.sdl, gb.sdl.sound). It's almost like it thinks the declaration "Public Screen As New Window As "Screen"" is a joke or something. :/ Obviously I'm doing something wrong but an hour of experimentation so far has yielded no results. I'm using gb3 revision 3608. As I mentioned BeastScroll works, so I think it's probably not a gb3 bug. Any advice appreciated! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...2524... Sun Mar 6 04:53:35 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 06 Mar 2011 03:53:35 +0000 Subject: [Gambas-user] Issue 47 in gambas: Make code pretty tool button clears breakpoints Message-ID: <0-6813199134517018827-15676378731405905991-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 47 by zachsmit... at ...626...: Make code pretty tool button clears breakpoints http://code.google.com/p/gambas/issues/detail?id=47 Version: TRUNK or BRANCHES/2.0 or 2.22.0 Revision: r3617 Operating system: Linux Distribution: ArchLinux Architecture: x86_64 GUI component: QT3 / QT4 / GTK+ Desktop used: Gnome / KDE ... When you press the "make code pretty" tool button, it clears all breakpoints in code page being displayed. It would be desirable if the breakpoints were preserved. From kevinfishburne at ...1887... Sun Mar 6 05:34:12 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 05 Mar 2011 23:34:12 -0500 Subject: [Gambas-user] gb3+sdl: Screen object not created and screen events don't trigger In-Reply-To: <4D73012E.4060607@...1887...> References: <4D73012E.4060607@...1887...> Message-ID: <4D730EC4.1010800@...1887...> On 03/05/2011 10:36 PM, Kevin Fishburne wrote: > I have a module, Render, with the following: > > ... > > The procedure Screen_Draw should be triggered as an event automatically, > yet it is not. When manually calling it I get a "No device" error when > it tries to write to the screen via Draw.Image(...). Double-clicking the > "Screen" object in the variable declaration states "Unknown symbol". > BeastScroll works fine, even using the same components as the app that > fails (gb, gb.image, gb.image.effect, gb.image.imlib, gb.image.io, > gb.net, gb.sdl, gb.sdl.sound). It's almost like it thinks the > declaration "Public Screen As New Window As "Screen"" is a joke or > something. :/ Okay, I made a copy of the app and ripped it up with no mercy. Apparently "WAIT x" and "WAIT" do not allow the Draw event to trigger for the screen/window. Looks like the Screen_Draw procedure will have to contain code from the main loop in order for the screen to refresh. While this shouldn't be a big problem for me to adjust to, is this a bug or oversight? I'm guessing the Screen.Show method is what starts the Draw event triggering, but I'm just guessing. SDL is definitely different than traditional GAMBAS drawing logic. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From support at ...2529... Sun Mar 6 08:16:48 2011 From: support at ...2529... (John Spikowski) Date: Sat, 05 Mar 2011 23:16:48 -0800 Subject: [Gambas-user] gb.info Message-ID: <1299395808.1867.22.camel@...2530...> || || Unable to compile gb.info || I just built 3638 and noticed this message in the make install phase of the build. Is this something that needs to be reported? From gambas.fr at ...626... Sun Mar 6 08:20:55 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 6 Mar 2011 08:20:55 +0100 Subject: [Gambas-user] gb.info In-Reply-To: <1299395808.1867.22.camel@...2530...> References: <1299395808.1867.22.camel@...2530...> Message-ID: 2011/3/6 John Spikowski : > || > || Unable to compile gb.info > || > > > I just built 3638 and noticed this message in the make install phase of > the build. Is this something that needs to be reported? gb.info have been desactived > > > > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...2524... Sun Mar 6 08:30:16 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 06 Mar 2011 07:30:16 +0000 Subject: [Gambas-user] Issue 47 in gambas: Make code pretty tool button clears breakpoints In-Reply-To: <0-6813199134517018827-15676378731405905991-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15676378731405905991-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15676378731405905991-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 47 by benoit.m... at ...626...: Make code pretty tool button clears breakpoints http://code.google.com/p/gambas/issues/detail?id=47 (No comment was entered for this change.) From gambas at ...1... Sun Mar 6 08:31:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 6 Mar 2011 08:31:14 +0100 Subject: [Gambas-user] gb.info In-Reply-To: References: <1299395808.1867.22.camel@...2530...> Message-ID: <201103060831.14612.gambas@...1...> > 2011/3/6 John Spikowski : > > || Unable to compile gb.info > > > > I just built 3638 and noticed this message in the make install phase of > > the build. Is this something that needs to be reported? > > gb.info have been desactived > Fixed in revision #3638. Regards, -- Beno?t Minisini From gambas at ...2524... Sun Mar 6 08:34:17 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 06 Mar 2011 07:34:17 +0000 Subject: [Gambas-user] Issue 46 in gambas: a breakpoint on a commented line has inconsistent behavior In-Reply-To: <2-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> <0-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #3 on issue 46 by benoit.m... at ...626...: a breakpoint on a commented line has inconsistent behavior http://code.google.com/p/gambas/issues/detail?id=46 (No comment was entered for this change.) From ron at ...1740... Sun Mar 6 09:43:07 2011 From: ron at ...1740... (Ron) Date: Sun, 6 Mar 2011 09:43:07 +0100 Subject: [Gambas-user] Weird error Gambas2 In-Reply-To: <201103052256.06669.gambas@...1...> References: <201103052256.06669.gambas@...1...> Message-ID: Its in the stable repos code then. Because i compiled gambas from scratch. Had to reinstall my machine. I dont get the error in gui project. Which uses same code in that spot. Will restore your account too. --- Regards, Ron. On Mar 5, 2011 10:56 PM, "Beno?t Minisini" wrote: >> Just about to release a new version of my project, and I get weird >> error messages again... >> It's always like this ;-) >> >> When I run my command line project I get this error a lot of times: >> >> THROW system error from CRFXComTX.WriteMessage.377 >> THROW system error from CRFXComTX.WriteMessage.377 >> ... >> ... >> >> Line 377 contains: >> TRY READ #hRFXComTX, bTemp >> >> ?? I don't get it.. >> >> gambas2, build yesterday, gb.qt, maveric,k 32 bits. >> >> Regards, >> Ron. > > I think it's the message I added to catch the error in Domotiga, don't you > remember? > > I can't check, because I can't connect to your machine anymore. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From leo_senpao at ...1541... Sun Mar 6 17:09:39 2011 From: leo_senpao at ...1541... (Leo Sendra) Date: Mon, 7 Mar 2011 00:09:39 +0800 (SGT) Subject: [Gambas-user] (no subject) Message-ID: <911076.56493.qm@...2553...> http://74.52.152.213/FAT.html From office.zolano at ...626... Mon Mar 7 18:14:05 2011 From: office.zolano at ...626... (Biro Zoltan) Date: Mon, 7 Mar 2011 19:14:05 +0200 Subject: [Gambas-user] How can I delete myself from list? Message-ID: <4d73c0dd.8109cc0a.0f48.5208@...2392...> Hello everybody. How can I delete myself from list? I don't need anymore to recieve all coversations about Gambas. Is frustrating to delete or move the mails from inbox to other group. Best regards, Zoli B. From math.eber at ...221... Sun Mar 6 18:30:17 2011 From: math.eber at ...221... (Matti) Date: Sun, 06 Mar 2011 18:30:17 +0100 Subject: [Gambas-user] How can I delete myself from list? In-Reply-To: <4d73c0dd.8109cc0a.0f48.5208@...2392...> References: <4d73c0dd.8109cc0a.0f48.5208@...2392...> Message-ID: <4D73C4A9.4030606@...221...> https://lists.sourceforge.net/lists/listinfo/gambas-user The last point on this page. Am 07.03.2011 18:14, schrieb Biro Zoltan: > Hello everybody. > > > > How can I delete myself from list? I don't need anymore to recieve all > coversations about Gambas. > > Is frustrating to delete or move the mails from inbox to other group. > > > > Best regards, > > Zoli B. > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Sun Mar 6 18:39:31 2011 From: math.eber at ...221... (Matti) Date: Sun, 06 Mar 2011 18:39:31 +0100 Subject: [Gambas-user] Image class and histogram Message-ID: <4D73C6D3.6070902@...221...> For Image.Equalize and Image.Normalize, the color values (histogram) of the image must be internally read. Would it be possible to access those data? I would like to draw a histogram. Right now, I can't find any method of image class that would let me read the color values. Regards Matti From support at ...2529... Sun Mar 6 18:51:47 2011 From: support at ...2529... (John Spikowski) Date: Sun, 06 Mar 2011 09:51:47 -0800 Subject: [Gambas-user] Polynom Benchmark Message-ID: <1299433907.1828.3.camel@...2530...> I tried to run the Polynom benchmark with Gambas 3 (# 3638) and it returned this error. jrs at ...2530...:~/benchmark$ time ./polynom.gbs CComponent.InitComponent.166: #6: Type mismatch: wanted Integer, got String instead 0: CComponent.InitComponent.166 1: CComponent._init.212 2: MMain.MakeVirtualProject.191 3: MMain.Main.93 http://gambasdoc.org/help/doc/benchmark/polynom?v3 From gambas at ...1... Sun Mar 6 20:15:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 6 Mar 2011 20:15:50 +0100 Subject: [Gambas-user] Polynom Benchmark In-Reply-To: <1299433907.1828.3.camel@...2530...> References: <1299433907.1828.3.camel@...2530...> Message-ID: <201103062015.50944.gambas@...1...> > I tried to run the Polynom benchmark with Gambas 3 (# 3638) and it > returned this error. > > jrs at ...2530...:~/benchmark$ time ./polynom.gbs > CComponent.InitComponent.166: #6: Type mismatch: wanted Integer, got > String instead > 0: CComponent.InitComponent.166 > 1: CComponent._init.212 > 2: MMain.MakeVirtualProject.191 > 3: MMain.Main.93 > > http://gambasdoc.org/help/doc/benchmark/polynom?v3 > Fixed in revison #3640. Regards, -- Beno?t Minisini From gambas at ...1... Sun Mar 6 20:17:27 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 6 Mar 2011 20:17:27 +0100 Subject: [Gambas-user] Save Project > dialog icons missing In-Reply-To: <201103032045.17595.rterry@...1946...> References: <201103032045.17595.rterry@...1946...> Message-ID: <201103062017.27954.gambas@...1...> > Hi Benoit, > > The little icons to create directory etc missing from the top bar. > > I realise they are still on the menu, great, but it works quicker to also > have them visually in the dialog. > > Regards > > richard > I know, but I removed them to gain some place for displaying the directory path and the IconView zoom slider. -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Mar 6 22:30:47 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 6 Mar 2011 23:30:47 +0200 Subject: [Gambas-user] Missing data from Process_Read() Message-ID: Hi! I'm still working with my experimental profiler. It is unconventional and slow (for big projects, very slow), but it seems to work (not tested well) if you record whole run (or end of run) of the profiled program. However if you stop recording data before you close profiled program, you will lose some data. It will never arrive to Process_Read(). So any ideas where that data is lost and how to prevent it? Sources attached. Jussi P.S If you run profiler from IDE you may get less accurate results. -------------- next part -------------- A non-text attachment was scrubbed... Name: Profiler-0.0.13.tar.gz Type: application/x-gzip Size: 8465 bytes Desc: not available URL: From gambas at ...1... Sun Mar 6 22:43:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 6 Mar 2011 22:43:12 +0100 Subject: [Gambas-user] Missing data from Process_Read() In-Reply-To: References: Message-ID: <201103062243.12357.gambas@...1...> > Hi! > I'm still working with my experimental profiler. > It is unconventional and slow (for big projects, very slow), but it seems > to work (not tested well) if you record whole run (or end of run) of the > profiled program. > > However if you stop recording data before you close profiled program, you > will lose some data. > It will never arrive to Process_Read(). > > So any ideas where that data is lost and how to prevent it? > Sources attached. > > Jussi > P.S If you run profiler from IDE you may get less accurate results. By not correctly indenting your code, you make it very difficult to read... -- Beno?t Minisini From gambas at ...1... Sun Mar 6 22:47:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 6 Mar 2011 22:47:17 +0100 Subject: [Gambas-user] Missing data from Process_Read() In-Reply-To: References: Message-ID: <201103062247.17915.gambas@...1...> > Hi! > I'm still working with my experimental profiler. > It is unconventional and slow (for big projects, very slow), but it seems > to work (not tested well) if you record whole run (or end of run) of the > profiled program. > > However if you stop recording data before you close profiled program, you > will lose some data. > It will never arrive to Process_Read(). > > So any ideas where that data is lost and how to prevent it? > Sources attached. > > Jussi > P.S If you run profiler from IDE you may get less accurate results. In Process_Read(), why do you write that the ReadLine() method does not work, whereas it does exactly the same thing as "Line Input"? Otherwise, you are running the project with the Shell. Use Exec instead, the behavour may be better. Shell may create a buffered stream between your project and the profiled project. That would explain why you lose data. Regards, -- Beno?t Minisini From support at ...2529... Mon Mar 7 06:58:34 2011 From: support at ...2529... (John Spikowski) Date: Sun, 06 Mar 2011 21:58:34 -0800 Subject: [Gambas-user] Polynom Benchmark In-Reply-To: <201103062015.50944.gambas@...1...> References: <1299433907.1828.3.camel@...2530...> <201103062015.50944.gambas@...1...> Message-ID: <1299477514.1812.3.camel@...2530...> On Sun, 2011-03-06 at 20:15 +0100, Beno?t Minisini wrote: > > I tried to run the Polynom benchmark with Gambas 3 (# 3638) and it > > returned this error. > > > > jrs at ...2530...:~/benchmark$ time ./polynom.gbs > > CComponent.InitComponent.166: #6: Type mismatch: wanted Integer, got > > String instead > > 0: CComponent.InitComponent.166 > > 1: CComponent._init.212 > > 2: MMain.MakeVirtualProject.191 > > 3: MMain.Main.93 > > > > http://gambasdoc.org/help/doc/benchmark/polynom?v3 > > > > Fixed in revison #3640. > > Regards, > Thanks Beno?t, that fixed the problem. I ran the Polynom benchmark on my old HP laptop (2.8 ghz) under Ubuntu 10.10 (32 bit) comparing Perl, ScriptBasic, Python and Gambas 3. I'm assuming at this point that ScriptBasic being typeless and dynamically creating it's work array is the reason for the disparity. Note: I changed N in all programs to be 50000 from 500000. <<< Perl >>> jrs at ...2530...:~/benchmark$ time ./polynom.pl 125000 125000 125000 125000 125000 125000 125000 125000 125000 125000 real 0m53.441s user 0m51.199s sys 0m0.104s jrs at ...2530...:~/benchmark$ <<< ScriptBasic >>> jrs at ...2530...:~/benchmark$ time ./polynom.sb 125000 125000 125000 125000 125000 125000 125000 125000 125000 125000 real 3m19.787s user 3m11.804s sys 0m0.420s jrs at ...2530...:~/benchmark$ <<< Python >>> jrs at ...2530...:~/benchmark$ time ./polynom.py 125000.0 125000.0 125000.0 125000.0 125000.0 125000.0 125000.0 125000.0 125000.0 125000.0 real 0m50.074s user 0m46.415s sys 0m0.152s jrs at ...2530...:~/benchmark$ <<< Gambas 3 >>> jrs at ...2530...:~/benchmark$ time ./polynom.gbs 125000 125000 125000 125000 125000 125000 125000 125000 125000 125000 real 0m32.326s user 0m30.122s sys 0m0.068s jrs at ...2530...:~/benchmark$ From sbungay at ...981... Mon Mar 7 14:51:40 2011 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 07 Mar 2011 08:51:40 -0500 Subject: [Gambas-user] Drop Event not being raised... but Change is... Message-ID: <4D74E2EC.2060805@...981...> Gambas 2.22 I am dragging from a listview to a textarea testing drag and drop functionality. The interesting thing is that when I drop the item the text in the textarea receives it but the drop() event never fires, I can trap the Change() event, but not the Drop... anyone else ever run into this kind of behaviour? From jussi.lahtinen at ...626... Mon Mar 7 17:04:54 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 7 Mar 2011 18:04:54 +0200 Subject: [Gambas-user] Missing data from Process_Read() In-Reply-To: <201103062243.12357.gambas@...1...> References: <201103062243.12357.gambas@...1...> Message-ID: There is "Make code pretty" feature! ;) Jussi 2011/3/6 Beno?t Minisini > > Hi! > > I'm still working with my experimental profiler. > > It is unconventional and slow (for big projects, very slow), but it seems > > to work (not tested well) if you record whole run (or end of run) of the > > profiled program. > > > > However if you stop recording data before you close profiled program, you > > will lose some data. > > It will never arrive to Process_Read(). > > > > So any ideas where that data is lost and how to prevent it? > > Sources attached. > > > > Jussi > > P.S If you run profiler from IDE you may get less accurate results. > > By not correctly indenting your code, you make it very difficult to read... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Mar 7 17:29:28 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 7 Mar 2011 18:29:28 +0200 Subject: [Gambas-user] Missing data from Process_Read() In-Reply-To: <201103062247.17915.gambas@...1...> References: <201103062247.17915.gambas@...1...> Message-ID: > In Process_Read(), why do you write that the ReadLine() method does not > work, > whereas it does exactly the same thing as "Line Input"? > You didn't try to uncomment it? With some earlier revision, it gave strings like "something here\nsomething more", while "Line Input #RunProject, sLine" gave them correctly without "\n". This was under investigation and now when I tried to reproduce the problem, I got "broken pipe" and signal 11. With some sources just signal 11. Gambas 3 rev 3639 @ Ubuntu 10.10 64bit > Otherwise, you are running the project with the Shell. Use Exec instead, > the > behavour may be better. Shell may create a buffered stream between your > project and the profiled project. That would explain why you lose data. > Tried... but no luck. I attached new version of profiler. Now using exec and it doesn't waste memory anymore. Jussi BTW, by "unconventional" I meant "inconvenient", but I think that was obvious to everyone who tried it. -------------- next part -------------- A non-text attachment was scrubbed... Name: Profiler-0.0.14.tar.gz Type: application/x-gzip Size: 8430 bytes Desc: not available URL: From ulusoyab at ...43... Mon Mar 7 20:41:20 2011 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Mon, 7 Mar 2011 11:41:20 -0800 (PST) Subject: [Gambas-user] music error Message-ID: <656833.28847.qm@...2243...> Music example ?on gambas3 giving error. Abdurrahman ULUSOY From math.eber at ...221... Mon Mar 7 21:05:08 2011 From: math.eber at ...221... (Matti) Date: Mon, 07 Mar 2011 21:05:08 +0100 Subject: [Gambas-user] music error In-Reply-To: <656833.28847.qm@...2243...> References: <656833.28847.qm@...2243...> Message-ID: <4D753A74.5050004@...221...> Could you please at least describe the error? Or send a screenshot? Or give some informations about your machine? How should anybody help you or make Gambas better without any information? Am 07.03.2011 20:41, schrieb abdurrahman ulusoy: > Music example on gambas3 giving error. > > Abdurrahman ULUSOY > > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From austinium at ...43... Tue Mar 8 08:09:23 2011 From: austinium at ...43... (vikram) Date: Mon, 7 Mar 2011 23:09:23 -0800 (PST) Subject: [Gambas-user] Using Character constants in Gambas Message-ID: <39136.55377.qm@...2517...> Hi, I am working on an application in which I reuse the same dialog for performing different tasks. I have a PUBLIC INTEGER variable(named dialogType) in the dialog's .class file. When creating instances of this dialog I set the DialogInstance.dialogType to the value(0,1,2,...) which indicates the purpose of the dialog. The value of DialogInstance.dialogType is used within the dialog to decide what to do with the user input. I am using numeric values to indicate the dialog type. This isn't very elegant. I am looking for the Gambas equivalent of doing a #define CHARCONST value in C. I have tried using a Collection. DIM DialogType AS NEW Collection DialogType["SomeType0"] = 0 DialogType["SomeType1"] = 1 DialogType["SomeType2"] = 2 DialogType["SomeType3"] = 3 DialogType["SomeType4"] = 4 I am thinking of placing the collection's definition in a Module and then using it to replace the numeric constants: DIM DialogInstance as DialogName DialogInstance = NEW DialogName DialogInstance.dialogType = ModuleName.DialogType["SomeType0"] 'current code 'DialogInstance.dialogType = 0 Is there a better way of using character constants in Gambas? Gambas 2.21/Debian 6 Thanks, Vikram Nair From Gambas at ...1950... Tue Mar 8 10:13:23 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 08 Mar 2011 10:13:23 +0100 Subject: [Gambas-user] Using Character constants in Gambas In-Reply-To: <39136.55377.qm@...2517...> References: <39136.55377.qm@...2517...> Message-ID: <1299575603.2422.5796.camel@...2479...> I would just create a Module called something like DialogFactory... PUBLIC ErrorDialog AS Integer = 0 PUBLIC WarningDialog AS Integer = 1 PUBLIC InformationDialog AS Integer = 2 PRIVATE DefaultDialogType AS Integer = ErrorDialog PRIVATE AllowedTypes AS Integer[] = [ErrorDialog, WarningDialog, InformationDialog] PUBLIC FUNCTION getDialog(dialogType AS Integer) AS VikramDialog DIM vDialog AS NEW VikramDialog DIM type AS Integer FOR EACH type IN AllowedTypes IF type = dialogType vDialog.dialogType = dialogType RETURN vDialog END IF NEXT PRINT "ERROR! Unknown dialog type: " & dialogType vDialog.dialogType = DefaultDialogType RETURN vDialog END Using this code simply becomes: DIM aDialog AS VikramDialog aDialog = DialogFactory.getDialog(DialogFactory.InformationDialog) PRINT aDialog.dialogType aDialog = DialogFactory.getDialog(DialogFactory.WarningDialog) PRINT aDialog.dialogType aDialog = DialogFactory.getDialog(5) PRINT aDialog.dialogType Of course, you can add other stuff to the getDialog function, like the dialog name, title etc. etc... What do you think? Regards, Caveat On Mon, 2011-03-07 at 23:09 -0800, vikram wrote: > Hi, > > I am working on an application in which I reuse the same dialog for performing different tasks. I have a PUBLIC INTEGER variable(named dialogType) in the dialog's .class file. When creating instances of this dialog I set the DialogInstance.dialogType to the value(0,1,2,...) which indicates the purpose of the dialog. The value of DialogInstance.dialogType is used within the dialog to decide what to do with the user input. > > I am using numeric values to indicate the dialog type. This isn't very elegant. I am looking for the Gambas equivalent of doing a #define CHARCONST value in C. > > I have tried using a Collection. > > DIM DialogType AS NEW Collection > DialogType["SomeType0"] = 0 > DialogType["SomeType1"] = 1 > DialogType["SomeType2"] = 2 > DialogType["SomeType3"] = 3 > DialogType["SomeType4"] = 4 > > I am thinking of placing the collection's definition in a Module and then using it to replace the numeric constants: > DIM DialogInstance as DialogName > DialogInstance = NEW DialogName > DialogInstance.dialogType = ModuleName.DialogType["SomeType0"] > 'current code > 'DialogInstance.dialogType = 0 > > Is there a better way of using character constants in Gambas? > > Gambas 2.21/Debian 6 > > Thanks, > Vikram Nair > > > > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mx4eva at ...626... Tue Mar 8 11:06:23 2011 From: mx4eva at ...626... (k p) Date: Tue, 8 Mar 2011 23:06:23 +1300 Subject: [Gambas-user] Text Boxes Message-ID: When doing the following: TextLabel1.Text = "i" & TextBox1.Text & " " & " iEQU" & " " & "0" I expect a string in a text box, which I get. However the length of the spacing stays the same no matter how many spaces I put between the " " What I'm trying to achieve is that the output string follows my coding standard. Ie if I write Callbutton in TextBox1, then the output shows "iCallbutton iEQU 0" What am I doing wrong ? Kim From eilert-sprachen at ...221... Tue Mar 8 11:57:16 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 08 Mar 2011 11:57:16 +0100 Subject: [Gambas-user] Text Boxes In-Reply-To: References: Message-ID: <4D760B8C.60901@...221...> Am 08.03.2011 11:06, schrieb k p: > When doing the following: > TextLabel1.Text = "i"& TextBox1.Text& " "& " iEQU"& " "& "0" > > I expect a string in a text box, which I get. > However the length of the spacing stays the same no matter how many spaces I > put between the " " > > What I'm trying to achieve is that the output string follows my coding > standard. > Ie if I write Callbutton in TextBox1, then the output shows > "iCallbutton iEQU 0" > > What am I doing wrong ? > > Kim I'm not sure what you exactly do here in your program, but your example above consists of string constants. You would have to vary the number of spaces according to the length of the strings in TextBox1.Text, such as space$(20 - string.len(TextBox1.Text)) to give just an example for UTF-8. Or did I get you completely wrong here? Regards Rolf From austinium at ...43... Tue Mar 8 12:07:01 2011 From: austinium at ...43... (vikram) Date: Tue, 8 Mar 2011 03:07:01 -0800 (PST) Subject: [Gambas-user] Using Character constants in Gambas Message-ID: <128980.13066.qm@...2469...> Hi Caveat, Thanks, that is a lot simpler :) Best Regards, Vikram Nair From austinium at ...43... Tue Mar 8 12:07:12 2011 From: austinium at ...43... (vikram) Date: Tue, 8 Mar 2011 03:07:12 -0800 (PST) Subject: [Gambas-user] Using Character constants in Gambas Message-ID: <457649.21493.qm@...2508...> Hi Caveat, Thanks, that is a lot simpler :) Best Regards, Vikram Nair From Gambas at ...1950... Tue Mar 8 12:47:04 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 08 Mar 2011 12:47:04 +0100 Subject: [Gambas-user] Using Character constants in Gambas In-Reply-To: <128980.13066.qm@...2469...> References: <128980.13066.qm@...2469...> Message-ID: <1299584824.2422.5957.camel@...2479...> You're welcome :-) I was thinking if you want your module to be used by others who may have the bright idea of changing the public attributes, you should probably code using the CONST keyword...it's also clearer that these values should never be changed... PUBLIC CONST ErrorDialog AS Integer = 0 PUBLIC CONST WarningDialog AS Integer = 1 PUBLIC CONST InformationDialog AS Integer = 2 PRIVATE DefaultDialogType AS Integer = ErrorDialog ... The following code will now produce a runtime error on the 2nd line: PRINT "before: " & DialogFactory.ErrorDialog DialogFactory.ErrorDialog = 5 PRINT "after: " & DialogFactory.ErrorDialog Regards, Caveat On Tue, 2011-03-08 at 03:07 -0800, vikram wrote: > Hi Caveat, > > Thanks, that is a lot simpler :) > > Best Regards, > Vikram Nair > > > > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Tue Mar 8 13:24:41 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 08 Mar 2011 13:24:41 +0100 Subject: [Gambas-user] Date picker: reading single days (Gambas 2) Message-ID: <4D762009.4000700@...221...> Now, there is a minor thing that I came across when I tried to color days in the date picker: There can be more than 1 month, or even there will be in most cases, even 3 months is possible. Is it possible to know which days from which month are currently shown in the control? Something like an array I can iterate through to decide if this day must be coloured? Thanks for your ideas! Rolf From sbungay at ...981... Tue Mar 8 15:04:40 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 08 Mar 2011 09:04:40 -0500 Subject: [Gambas-user] Controlling mplayer while embeded... Message-ID: <4D763778.3010007@...981...> Anyone have an example of this? I have launched mplayer using exec and have it in an embedder, now want to control it through push buttons. From eilert-sprachen at ...221... Tue Mar 8 16:04:43 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 08 Mar 2011 16:04:43 +0100 Subject: [Gambas-user] Date picker: reading single days (Gambas 2) In-Reply-To: <4D762009.4000700@...221...> References: <4D762009.4000700@...221...> Message-ID: <4D76458B.3020601@...221...> Am 08.03.2011 13:24, schrieb Rolf-Werner Eilert: > Now, there is a minor thing that I came across when I tried to color > days in the date picker: There can be more than 1 month, or even there > will be in most cases, even 3 months is possible. > > Is it possible to know which days from which month are currently shown > in the control? Something like an array I can iterate through to decide > if this day must be coloured? > > Thanks for your ideas! > > Rolf > Sorry, I already found a solution: You have to see the date picker as a continuous calendar, not a single-month one. You can set all colors for the whole year (or every date), so the colored days of the previous/next month will appear automatically when browsing the months. Regards Rolf From sbungay at ...981... Tue Mar 8 16:54:56 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 08 Mar 2011 10:54:56 -0500 Subject: [Gambas-user] Controlling mplayer while embeded... In-Reply-To: <4D763778.3010007@...981...> References: <4D763778.3010007@...981...> Message-ID: <4D765150.6040500@...981...> On 03/08/2011 09:04 AM, Stephen Bungay wrote: > Anyone have an example of this? I have launched mplayer using exec > and have it in an embedder, now want to control it through push buttons. > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > OK, successfully sending a pause command to embedded mplayer, but it exits as soon as it is paused. From mx4eva at ...626... Tue Mar 8 20:11:15 2011 From: mx4eva at ...626... (k p) Date: Wed, 9 Mar 2011 08:11:15 +1300 Subject: [Gambas-user] String and textboxes Message-ID: > When doing the following: > TextLabel1.Text = "i"& TextBox1.Text& " "& " iEQU"& " "& "0" > > I expect a string in a text box, which I get. > However the length of the spacing stays the same no matter how many spaces I > put between the " " > > What I'm trying to achieve is that the output string follows my coding > standard. > Ie if I write Callbutton in TextBox1, then the output shows > "iCallbutton iEQU 0" > > What am I doing wrong ? > > Kim I'm not sure what you exactly do here in your program, but your example above consists of string constants. You would have to vary the number of spaces according to the length of the strings in TextBox1.Text, such as space$(20 - string.len(TextBox1.Text)) to give just an example for UTF-8. Or did I get you completely wrong here? Regards Rolf What is happening is that white spaces does NOT change in the output textbox, no matter how many white spaces I put in between the " ". Ie " " and " " produces the same output in the text box. So I get the following "iCallbutton iEQU 0" When I would expect this "iCallbutton iEQU 0" Hmm Kim From simonart.dominique at ...11... Tue Mar 8 20:49:06 2011 From: simonart.dominique at ...11... (Simonart Dominique) Date: Tue, 08 Mar 2011 20:49:06 +0100 Subject: [Gambas-user] String and textboxes In-Reply-To: References: Message-ID: <4D768832.6000906@...11...> Hi, With Gambas2 v2.21 it works exactly as you want! Tested with Label and TextBox regards Le 08/03/2011 20:11, k p a ?crit : >> When doing the following: >> TextLabel1.Text = "i"& TextBox1.Text& ""& " iEQU"& ""& "0" >> >> I expect a string in a text box, which I get. >> However the length of the spacing stays the same no matter how many spaces > I >> put between the " " >> >> What I'm trying to achieve is that the output string follows my coding >> standard. >> Ie if I write Callbutton in TextBox1, then the output shows >> "iCallbutton iEQU 0" >> >> What am I doing wrong ? >> >> Kim > > > I'm not sure what you exactly do here in your program, but your example > above consists of string constants. You would have to vary the number of > spaces according to the length of the strings in TextBox1.Text, such as > > space$(20 - string.len(TextBox1.Text)) > > to give just an example for UTF-8. > > Or did I get you completely wrong here? > > Regards > > Rolf > > > > What is happening is that white spaces does NOT change in the output > textbox, no matter how many white spaces I put in between the " ". > Ie " " and " " produces the same output in the text box. > > So I get the following > "iCallbutton iEQU 0" > > When I would expect this > "iCallbutton iEQU 0" > > Hmm > > Kim > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Wed Mar 9 03:24:19 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 09 Mar 2011 02:24:19 +0000 Subject: [Gambas-user] Issue 48 in gambas: long lines wrap in search window Message-ID: <0-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 48 by zachsmit... at ...626...: long lines wrap in search window http://code.google.com/p/gambas/issues/detail?id=48 1) long lines wrap in search window 2) Version: TRUNK Revision: r3617 Would it be better to not wrap and use a horizontal scroll bar instead? Attachments: Screenshot.png 96.3 KB test23-0.0.1.tar.gz 4.4 KB From afroehlke at ...784... Wed Mar 9 13:20:51 2011 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Wed, 9 Mar 2011 13:20:51 +0100 Subject: [Gambas-user] Gambas2 and debian 6 with kde 4 In-Reply-To: <4D768832.6000906@...11...> References: <4D768832.6000906@...11...> Message-ID: <8D42310D957CFB46AA11921A711D4D1602C67C9C7C@...1899...> Hello, we used Kubuntu in the past and are now working with debian 6 and kde 4. But the layout is very odd there. We found out, that by using qb.gt.kde in our projects, the layout is ok, but then every control has an underline for the System-Hotkey ([ALT]+[UNDERLINED LETTER]), and this underline is marked with "&" in the text property of the control. Is there any way to get the Gambas programs to look fine, without including gb.qt.kde in the projects? Maybe there is a value in a config-file or a package to install? In Kubuntu with kde 4 and Ubuntu the layout is ok, but that's no option for us. So we think it has to be an issue of debian. In short: - we have to use debian 6 with kde 4 - we don't want to include gb.qt.kde in our projects, because we would have to change too many things - in Kubuntu with kde 4, it looks fine Any ideas? Regards, Andreas From kevinfishburne at ...1887... Thu Mar 10 02:46:50 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 09 Mar 2011 20:46:50 -0500 Subject: [Gambas-user] gb3 (rev. 3641) and SDL surfaces Message-ID: <4D782D8A.4000802@...1887...> I've been experimenting with gb.sdl and found that I could achieve frame rates higher than 380 fps at 1920x1080, including alpha channel. This involves writing directly to the SDL window/surface with a 1920x1080 image loaded from a file, for example: Public Screen As New Window As "Screen" Public SomeImage As Image = Image.Load("someimage.png") Public Sub Main() ' Create screen. With Screen .Width = 1920 .Height = 1080 .Framerate = 1000 .FullScreen = True .Show() End With End Public Sub Screen_Draw() Draw.Image(SomeImage, 0, 0) Draw.Text(Screen.Framerate & " FPS", 0, 0) End While this is awesome, there is a problem if images need to be composited before being written to the SDL surface. For example, if I wanted to do something like this: Water.Draw(WaterRipples, 0, 0) Water.Draw(SkyReflection, 0, 0) Water.DrawAlpha(WaterDepth, 0, 0) and then draw Water to the SDL window, not only is the imlib2 component required (otherwise it states the .Draw method is unknown), it kills the frame rate because the Draw method is done in software (imlib2) and only the writes done directly to the SDL window are hardware accelerated. Attempting to circumvent this I created a second SDL window, hoping I could write the contents of window B to window A. The idea was to create multiple secondary SDL windows, using them as image buffers, then write the buffers as necessary to the main SDL window when its Draw event was called. This didn't work at all and I don't think it's supported. Is there a way to use the Draw method, or an equivalent, so that image-to-image writes can be done entirely in SDL? I've already converted my app to use the SDL component but too much of it currently uses the .Draw and .DrawAlpha methods which bring the framerate to 21 fps at 1280x720. The framerate is only going to get worse from here, as I'm just getting started. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...2524... Thu Mar 10 03:22:32 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Mar 2011 02:22:32 +0000 Subject: [Gambas-user] Issue 49 in gambas: gb3 IDE tab order not preserved Message-ID: <0-6813199134517018827-4888750028081543612-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 49 by kevinfis... at ...1887...: gb3 IDE tab order not preserved http://code.google.com/p/gambas/issues/detail?id=49 The order of the module/class/form/etc. tabs seems to be randomly rearranged after saving a project, closing the IDE, then re-running the IDE. While a minor bug in the grand scheme of things, it is highly annoying if you have multiple modules that you switch between frequently while coding. Productivity is affected if, for example, you arrange the tabs in alphabetical (or any, really) order. Version: gb3 Revision: 3641 Operating system: Linux / FreeBSD Distribution: Ubuntu Architecture: x86_64 GUI component: Qt4 Desktop used: Gnome From nugroho.redbuff at ...626... Thu Mar 10 05:36:59 2011 From: nugroho.redbuff at ...626... (Nugroho Al Gopar) Date: Thu, 10 Mar 2011 11:36:59 +0700 Subject: [Gambas-user] displaying mysql query result into gridview Message-ID: <1299731819.3931.8.camel@...2555...> I have learn how to connect mysql through gambas and make simple query like select * from table. My problem is, i can not display the results inti gridview or table view. I've try many codes style, include the code written in ebook titled "gambas-beginner-guide", but none is works. I put the code in my attachment. they are two different projects. I would like to display data from mysql table named makul. Here is the structure: kode int(2) auto_increment not null primary key, nama varhcar(50), sks int(2) the table has 5 records. Please help me solve the problem. I use this for my graduation. regard, Nugroho -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas_table_view.tar.gz Type: application/x-compressed-tar Size: 12519 bytes Desc: not available URL: From mdavies5 at ...169... Thu Mar 10 06:58:37 2011 From: mdavies5 at ...169... (Michael) Date: Thu, 10 Mar 2011 16:58:37 +1100 Subject: [Gambas-user] displaying mysql query result into gridview In-Reply-To: <1299731819.3931.8.camel@...2555...> References: <1299731819.3931.8.camel@...2555...> Message-ID: <4D78688D.3060307@...169...> NUgroho, Here is code from one of my projects: Private Sub PopulateCharges() Dim intRow As Integer = 0 Dim strType As String = "" If rsCharges.Available Then rsCharges.MoveFirst grdCharge.Rows.Count = rsCharges.Count For Each rsCharges grdCharge[intRow, 0].Text = rsCharges!unique_id grdCharge[intRow, 1].Text = rsCharges!charge_source grdCharge[intRow, 2].Text = rsCharges!charge_type grdCharge[intRow, 3].Text = rsCharges!charge_start grdCharge[intRow, 4].Text = rsCharges!charge_end grdCharge[intRow, 5].Text = rsCharges!charge_display Inc intRow Next modMain.UpdateStatus(rsCharges.Count & " Charge records returned") LoadChargeCombos(rsCharges) grdCharge.Row = intRow - 1 Endif Catch Message.Error(Error.Class.Name & ": " & Error.Where & ": " & Error.Text) End I assume you have got your recordset (rsCharges) from the Db. You ned to check how many rows are need in the grid and set this. Then populate each row and column as above. Regrads Michael Davies On 10/03/11 15:36, Nugroho Al Gopar wrote: > I have learn how to connect mysql through gambas and make simple query > like select * from table. > > My problem is, i can not display the results inti gridview or table > view. I've try many codes style, include the code written in ebook > titled "gambas-beginner-guide", but none is works. I put the code in my > attachment. they are two different projects. > > I would like to display data from mysql table named makul. Here is the > structure: > kode int(2) auto_increment not null primary key, > nama varhcar(50), > sks int(2) > > the table has 5 records. > > Please help me solve the problem. I use this for my graduation. > > regard, > > Nugroho > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Thu Mar 10 08:30:38 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 10 Mar 2011 08:30:38 +0100 Subject: [Gambas-user] String and textboxes In-Reply-To: References: Message-ID: <4D787E1E.10802@...221...> Am 08.03.2011 20:11, schrieb k p: >> When doing the following: >> TextLabel1.Text = "i"& TextBox1.Text& ""& " iEQU"& ""& "0" >> >> I expect a string in a text box, which I get. >> However the length of the spacing stays the same no matter how many spaces > I >> put between the " " >> >> What I'm trying to achieve is that the output string follows my coding >> standard. >> Ie if I write Callbutton in TextBox1, then the output shows >> "iCallbutton iEQU 0" >> >> What am I doing wrong ? >> >> Kim > > > I'm not sure what you exactly do here in your program, but your example > above consists of string constants. You would have to vary the number of > spaces according to the length of the strings in TextBox1.Text, such as > > space$(20 - string.len(TextBox1.Text)) > > to give just an example for UTF-8. > > Or did I get you completely wrong here? > > Regards > > Rolf > > > > What is happening is that white spaces does NOT change in the output > textbox, no matter how many white spaces I put in between the " ". > Ie " " and " " produces the same output in the text box. > > So I get the following > "iCallbutton iEQU 0" > > When I would expect this > "iCallbutton iEQU 0" > > Hmm > > Kim Ok, that is a strange one! I'm using Gambas 2 here, there is no problem. Maybe there's something wrong in the way UTF-8 strings are handed to the textbox? But that would be something for Benoit - he's in charge of the inner mystiques of the Gambas system ;-) No: Just had this idea: Is the textbox a richtext-box? And could it be that it interprets white spaces as mere words-separating according to HTML? So that would explain it. Try "    " or "   " instead, does it help? Rolf From gambas at ...1... Thu Mar 10 11:09:11 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 10 Mar 2011 11:09:11 +0100 Subject: [Gambas-user] gb3 (rev. 3641) and SDL surfaces In-Reply-To: <4D782D8A.4000802@...1887...> References: <4D782D8A.4000802@...1887...> Message-ID: <201103101109.11459.gambas@...1...> > I've been experimenting with gb.sdl and found that I could achieve frame > rates higher than 380 fps at 1920x1080, including alpha channel. This > involves writing directly to the SDL window/surface with a 1920x1080 > image loaded from a file, for example: > > Public Screen As New Window As "Screen" > Public SomeImage As Image = Image.Load("someimage.png") > > Public Sub Main() > > ' Create screen. > With Screen > .Width = 1920 > .Height = 1080 > .Framerate = 1000 > .FullScreen = True > .Show() > End With > > End > > Public Sub Screen_Draw() > > Draw.Image(SomeImage, 0, 0) > Draw.Text(Screen.Framerate & " FPS", 0, 0) > > End > > While this is awesome, there is a problem if images need to be > composited before being written to the SDL surface. For example, if I > wanted to do something like this: > > Water.Draw(WaterRipples, 0, 0) > Water.Draw(SkyReflection, 0, 0) > Water.DrawAlpha(WaterDepth, 0, 0) > > and then draw Water to the SDL window, not only is the imlib2 component > required (otherwise it states the .Draw method is unknown), it kills the > frame rate because the Draw method is done in software (imlib2) and only > the writes done directly to the SDL window are hardware accelerated. > > Attempting to circumvent this I created a second SDL window, hoping I > could write the contents of window B to window A. The idea was to create > multiple secondary SDL windows, using them as image buffers, then write > the buffers as necessary to the main SDL window when its Draw event was > called. This didn't work at all and I don't think it's supported. > > Is there a way to use the Draw method, or an equivalent, so that > image-to-image writes can be done entirely in SDL? I've already > converted my app to use the SDL component but too much of it currently > uses the .Draw and .DrawAlpha methods which bring the framerate to 21 > fps at 1280x720. The framerate is only going to get worse from here, as > I'm just getting started. I think (only Laurent can confirm) that SDL uses internally OpenGL to do its stuff. So the speed of the SDL component depends on the graphics driver (which is a very sensible thing on Linux). Then, if you want to compose images, I think only doing direct OpenGL call will help you, by stacking textured rectangles. But I don't know if OpenGL can do the equivalent of Draw.Alpha(). Regards, -- Beno?t Minisini From ihaywood at ...1979... Fri Mar 11 12:24:09 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Fri, 11 Mar 2011 22:24:09 +1100 Subject: [Gambas-user] changes to Regexp Message-ID: I noitced with old versions of gambas, Regexp.Submatches[0].Text returns the whole match, .Submatches[1] the first submatch and so on. But in the latest version this changes and Submartches[0] becomes the first match. see project attached, its output on revision 3564 re.SubMatches[0].Text the brown fox re.SubMatches[1].Text brown and svn 3641: re.SubMatches[0].Text brown re.SubMatches[1].Text fox Is this an intentional/permanent change in the language? (because I have quite a few Submatches references to change....) Ian -------------- next part -------------- A non-text attachment was scrubbed... Name: test-regexp-0.0.1.tar.gz Type: application/x-gzip Size: 4651 bytes Desc: not available URL: From sotema at ...626... Fri Mar 11 16:35:58 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Fri, 11 Mar 2011 16:35:58 +0100 Subject: [Gambas-user] Wizard Title Size grows changing the index Message-ID: <1299857758.3733.12.camel@...2516...> Hope someone can help me here. I noted a strange behaviour with the wizard title size. My wizard has count = 5, each time a go forward or back through the steps the title size increases till it gets the total size of the wizard. This happens in the IDE as like as at application running. A simple project attached to show that. OS: Ubuntu 10.04 X86_64 Kernel: 2.6.32-29-generic Gb3: 3641 Both QT and GTK are afflicted Regards, Emanuele -------------- next part -------------- A non-text attachment was scrubbed... Name: wizard.tar.gz Type: application/x-compressed-tar Size: 5085 bytes Desc: not available URL: From gambas at ...1... Fri Mar 11 19:39:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 11 Mar 2011 19:39:32 +0100 Subject: [Gambas-user] changes to Regexp In-Reply-To: References: Message-ID: <201103111939.32883.gambas@...1...> > I noitced with old versions of gambas, Regexp.Submatches[0].Text > returns the whole match, .Submatches[1] the first submatch and so on. > But in the latest version this changes and Submartches[0] becomes the > first match. > > see project attached, its output on revision 3564 > re.SubMatches[0].Text the brown fox > re.SubMatches[1].Text brown > > and svn 3641: > re.SubMatches[0].Text brown > re.SubMatches[1].Text fox > > Is this an intentional/permanent change in the language? (because I > have quite a few Submatches references to change....) > > Ian I recently cleaned up the code, but as I didn't write it initially, and apparently I have made a mistake by being too logical. I will fix that... -- Beno?t Minisini From jussi.lahtinen at ...626... Fri Mar 11 20:31:16 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 11 Mar 2011 21:31:16 +0200 Subject: [Gambas-user] Signal 11 with callback functions Message-ID: Hi! Is there something I have misunderstand? I get; gbx3: warning: circular references detected: gbx3: 1 FMain And then signal 11. See attachment. Gambas 3 rev 3639 @ Ubuntu 10.10 64bit Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: CallbackTest-0.0.1.tar.gz Type: application/x-gzip Size: 7264 bytes Desc: not available URL: From jussi.lahtinen at ...626... Fri Mar 11 20:33:03 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 11 Mar 2011 21:33:03 +0200 Subject: [Gambas-user] Signal 11 with callback functions In-Reply-To: References: Message-ID: Forgot... press the button, and error is raised after the form is closed. Jussi On Fri, Mar 11, 2011 at 21:31, Jussi Lahtinen wrote: > Hi! > Is there something I have misunderstand? > > I get; > gbx3: warning: circular references detected: > gbx3: 1 FMain > > And then signal 11. > > See attachment. > > Gambas 3 rev 3639 @ Ubuntu 10.10 64bit > > Jussi > From gambas at ...1... Sat Mar 12 00:16:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 12 Mar 2011 00:16:33 +0100 Subject: [Gambas-user] Wizard Title Size grows changing the index In-Reply-To: <1299857758.3733.12.camel@...2516...> References: <1299857758.3733.12.camel@...2516...> Message-ID: <201103120016.34008.gambas@...1...> > Hope someone can help me here. > I noted a strange behaviour with the wizard title size. My wizard has > count = 5, each time a go forward or back through the steps the title > size increases till it gets the total size of the wizard. This happens > in the IDE as like as at application running. A simple project attached > to show that. > > OS: Ubuntu 10.04 X86_64 > Kernel: 2.6.32-29-generic > Gb3: 3641 > Both QT and GTK are afflicted > Regards, > Emanuele It should be fixed in revision #3642. Regards, -- Beno?t Minisini From nugroho.redbuff at ...626... Sat Mar 12 03:35:15 2011 From: nugroho.redbuff at ...626... (Nugroho Al Gopar) Date: Sat, 12 Mar 2011 09:35:15 +0700 Subject: [Gambas-user] displaying mysql query result into gridview In-Reply-To: <4D78688D.3060307@...169...> References: <1299731819.3931.8.camel@...2555...> <4D78688D.3060307@...169...> Message-ID: <1299897315.8117.8.camel@...2555...> Hi Michael I've try to use your script replied to me in my program. But I need few explanations. 1. Where should I put the code? It is something like bellow? ------------------------ ' Gambas class file PRIVATE SUB PopulateCharges() DIM rsCharges AS Result DIM intRow AS Integer = 0 DIM strType AS String = "" sql.getSQL 'for connect to database rsCharges = sql.$hConn.Exec("SELECT * FROM makul") 'executing query IF rsCharges.Available THEN rsCharges.MoveFirst GridView1.Rows.Count = rsCharges.Count FOR EACH rsCharges GridView1[intRow, 0].Text = rsCharges!unique_id GridView1[intRow, 1].Text = rsCharges!charge_source GridView1[intRow, 2].Text = rsCharges!charge_type 'rsCharges!charge_display INC intRow NEXT sql.UpdateStatus(rsCharges.Count & " Charge records returned ") LoadChargeCombos(rsCharges) GridView1.Row = intRow - 1 ENDIF CATCH Message.Error(Error.Class.Name & ": " & Error.Where & ": " & Error.Text) END PUBLIC SUB Form_Open() PopulateCharges() END ------------------------ 2. LoadChargeCombos is detected as unknown identifier in my program. Is it a procedure you have. If it is, please let me know the script. Thanks. From mdavies5 at ...169... Sat Mar 12 04:44:35 2011 From: mdavies5 at ...169... (Michael) Date: Sat, 12 Mar 2011 14:44:35 +1100 Subject: [Gambas-user] displaying mysql query result into gridview In-Reply-To: <1299897315.8117.8.camel@...2555...> References: <1299731819.3931.8.camel@...2555...> <4D78688D.3060307@...169...> <1299897315.8117.8.camel@...2555...> Message-ID: <4D7AEC23.9070900@...169...> Nugroho, Sorry, I just cut and pasted some existing code. You can delete the reference to LoadChargeCombos. This is a local routine to populate some combo boxes. The rest of your code should work fine. Best Wishes Michael On 12/03/11 13:35, Nugroho Al Gopar wrote: > Hi Michael > > I've try to use your script replied to me in my program. But I need few > explanations. > 1. Where should I put the code? It is something like bellow? > ------------------------ > ' Gambas class file > > PRIVATE SUB PopulateCharges() > DIM rsCharges AS Result > DIM intRow AS Integer = 0 > DIM strType AS String = "" > > sql.getSQL 'for connect to database > rsCharges = sql.$hConn.Exec("SELECT * FROM makul") 'executing query > IF rsCharges.Available THEN > rsCharges.MoveFirst > GridView1.Rows.Count = rsCharges.Count > FOR EACH rsCharges > GridView1[intRow, 0].Text = rsCharges!unique_id > GridView1[intRow, 1].Text = rsCharges!charge_source > GridView1[intRow, 2].Text = rsCharges!charge_type > 'rsCharges!charge_display > INC intRow > NEXT > sql.UpdateStatus(rsCharges.Count& " Charge records returned > ") > LoadChargeCombos(rsCharges) > GridView1.Row = intRow - 1 > ENDIF > CATCH > Message.Error(Error.Class.Name& ": "& Error.Where& ": " > & Error.Text) > END > > PUBLIC SUB Form_Open() > > PopulateCharges() > > END > > ------------------------ > 2. LoadChargeCombos is detected as unknown identifier in my program. Is > it a procedure you have. If it is, please let me know the script. > > Thanks. > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From arosa at ...2015... Sat Mar 12 13:06:28 2011 From: arosa at ...2015... (Toni Rosa) Date: Sat, 12 Mar 2011 13:06:28 +0100 Subject: [Gambas-user] Wizard Title Size grows changing the index Message-ID: Beno?t Minisini wrote: >> Hope someone can help me here. >> I noted a strange behaviour with the wizard title size. My wizard has >> count = 5, each time a go forward or back through the steps the title >> size increases till it gets the total size of the wizard. This happens >> in the IDE as like as at application running. A simple project attached >> to show that. >> >> OS: Ubuntu 10.04 X86_64 >> Kernel: 2.6.32-29-generic >> Gb3: 3641 >> Both QT and GTK are afflicted >> Regards, >> Emanuele > >It should be fixed in revision #3642. > >Regards, > >-- >Beno?t Minisini > >------------------------------------------------------------------------------ >Colocation vs. Managed Hosting >A question and answer guide to determining the best fit >for your organization - today and in the future. >http://p.sf.net/sfu/internap-sfd2d >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Sat Mar 12 16:57:49 2011 From: ron at ...1740... (Ron) Date: Sat, 12 Mar 2011 16:57:49 +0100 Subject: [Gambas-user] Weird error Gambas2 In-Reply-To: References: <201103052256.06669.gambas@...1...> Message-ID: Benoit, http://gambas.svn.sourceforge.net/viewvc/gambas/gambas/branches/2.0/main/gbx/gb_error.c?r1=3470&r2=3469&pathrev=3470 If I get that output does it mean anything, if not can you delete it from the repos please? I get it when I try to read sockets with try, very annoing. I haven't been able to get the System Error(42) anymore. I have no clue. But reading for a socket while there is nothing to read triggers this THROW Error debug msgs. If you need to debug it, please let me know, I restore your ssh login. Regards, Ron. On Sun, Mar 6, 2011 at 9:43 AM, Ron wrote: > Its in the stable repos code then. > Because i compiled gambas from scratch. > Had to reinstall my machine. > I dont get the error in gui project. > Which uses same code in that spot. > Will restore your account too. > > --- > Regards, > Ron. > > On Mar 5, 2011 10:56 PM, "Beno?t Minisini" > wrote: >>> Just about to release a new version of my project, and I get weird >>> error messages again... >>> It's always like this ;-) >>> >>> When I run my command line project I get this error a lot of times: >>> >>> THROW system error from CRFXComTX.WriteMessage.377 >>> THROW system error from CRFXComTX.WriteMessage.377 >>> ... >>> ... >>> >>> Line 377 contains: >>> TRY READ #hRFXComTX, bTemp >>> >>> ?? I don't get it.. >>> >>> gambas2, build yesterday, gb.qt, maveric,k 32 bits. >>> >>> Regards, >>> Ron. >> >> I think it's the message I added to catch the error in Domotiga, don't you >> remember? >> >> I can't check, because I can't connect to your machine anymore. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> What You Don't Know About Data Connectivity CAN Hurt You >> This paper provides an overview of data connectivity, details >> its effect on application quality, and explores various alternative >> solutions. http://p.sf.net/sfu/progress-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Mar 12 17:34:05 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 12 Mar 2011 17:34:05 +0100 Subject: [Gambas-user] Weird error Gambas2 In-Reply-To: References: Message-ID: <201103121734.05760.gambas@...1...> > Benoit, > > http://gambas.svn.sourceforge.net/viewvc/gambas/gambas/branches/2.0/main/gb > x/gb_error.c?r1=3470&r2=3469&pathrev=3470 > > If I get that output does it mean anything, if not can you delete it > from the repos please? > > I get it when I try to read sockets with try, very annoing. > > I haven't been able to get the System Error(42) anymore. > I have no clue. > > But reading for a socket while there is nothing to read triggers this > THROW Error debug msgs. > If you need to debug it, please let me know, I restore your ssh login. > > Regards, > Ron. > Done in revision #3643. Regards, -- Beno?t Minisini From gambas at ...1... Sat Mar 12 17:53:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 12 Mar 2011 17:53:48 +0100 Subject: [Gambas-user] Signal 11 with callback functions In-Reply-To: References: Message-ID: <201103121753.48134.gambas@...1...> > Forgot... press the button, and error is raised after the form is closed. > > Jussi > It should be fixed in revision #3644. Regards, -- Beno?t Minisini From gambas at ...2524... Sat Mar 12 19:40:13 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 12 Mar 2011 18:40:13 +0000 Subject: [Gambas-user] Issue 50 in gambas: [feature request] unicode support Message-ID: <0-6813199134517018827-5630645713861428215-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 50 by cplopez: [feature request] unicode support http://code.google.com/p/gambas/issues/detail?id=50 It would be nice if gambas had unicode support. It would allow many new variable names (such as ?, ? or ?) and shorter and more readable expressions. It would also make possible for non english native speakers (as me) to have more meaningful variable names. From jussi.lahtinen at ...626... Sat Mar 12 20:43:31 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 12 Mar 2011 21:43:31 +0200 Subject: [Gambas-user] Signal 11 with callback functions In-Reply-To: <201103121753.48134.gambas@...1...> References: <201103121753.48134.gambas@...1...> Message-ID: It's better, but there are other problems too... Something to do with "select case" and callback functions. I managed to isolate the problem. See attachment. Click coupleo of times that button, and you will see cumulative performance problem leading practically to freeze. Gambas 3 rev 3644 @ Ubuntu 10.10 64bit Jussi 2011/3/12 Beno?t Minisini > > Forgot... press the button, and error is raised after the form is closed. > > > > Jussi > > > > It should be fixed in revision #3644. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: CallbackTest-0.0.2.tar.gz Type: application/x-gzip Size: 7373 bytes Desc: not available URL: From gambas at ...1... Sun Mar 13 03:05:08 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 13 Mar 2011 03:05:08 +0100 Subject: [Gambas-user] Signal 11 with callback functions In-Reply-To: References: <201103121753.48134.gambas@...1...> Message-ID: <201103130305.08898.gambas@...1...> > It's better, but there are other problems too... Something to do with > "select case" and callback functions. > I managed to isolate the problem. See attachment. > > Click coupleo of times that button, and you will see cumulative performance > problem leading practically to freeze. > > Gambas 3 rev 3644 @ Ubuntu 10.10 64bit > > Jussi > It should be better in revision #3646. Regards, -- Beno?t Minisini From gambas at ...1... Sun Mar 13 03:06:07 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 13 Mar 2011 03:06:07 +0100 Subject: [Gambas-user] Drop Event not being raised... but Change is... In-Reply-To: <4D74E2EC.2060805@...981...> References: <4D74E2EC.2060805@...981...> Message-ID: <201103130306.07071.gambas@...1...> > Gambas 2.22 > > I am dragging from a listview to a textarea testing drag and drop > functionality. The interesting thing is that when I drop the item the > text in the textarea receives it but the drop() event never fires, I can > trap the Change() event, but not the Drop... anyone else ever run into > this kind of behaviour? > Can you make a little project that shows the bug? -- Beno?t Minisini From gambas at ...1... Sun Mar 13 03:49:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 13 Mar 2011 03:49:50 +0100 Subject: [Gambas-user] Image class and histogram In-Reply-To: <4D73C6D3.6070902@...221...> References: <4D73C6D3.6070902@...221...> Message-ID: <201103130349.50346.gambas@...1...> > For Image.Equalize and Image.Normalize, the color values (histogram) of the > image must be internally read. > > Would it be possible to access those data? I would like to draw a > histogram. Right now, I can't find any method of image class that would > let me read the color values. > > Regards > Matti > I implemented the Image.Histogram() method in the gb.image.effect component (revision #3647). It works like that: Dim hImage as Image Dim hHist As ImageHistogram hHist = hImage.Histogram() Print hHist[, ] is Image.Red, Image.Blue, Image.Green or Image.Alpha. must be between 0 and 255. Can you test it? -- Beno?t Minisini From rterry at ...1946... Sun Mar 13 12:22:51 2011 From: rterry at ...1946... (richard terry) Date: Sun, 13 Mar 2011 22:22:51 +1100 Subject: [Gambas-user] Font in the add breakpoint textbox Message-ID: <201103132222.51367.rterry@...1946...> Meaning to ask this for a while - the font in this text box is quite small on my machine - is it my machine or is it set that small? Regards Richard From mdavies5 at ...169... Sun Mar 13 12:35:52 2011 From: mdavies5 at ...169... (Michael) Date: Sun, 13 Mar 2011 22:35:52 +1100 Subject: [Gambas-user] Font in the add breakpoint textbox In-Reply-To: <201103132222.51367.rterry@...1946...> References: <201103132222.51367.rterry@...1946...> Message-ID: <4D7CAC18.8000306@...169...> I can't find this textbox. I have a Toggle Breakpoint menu and a Tooltip but no text box. AM I missing something? Michael On 13/03/11 22:22, richard terry wrote: > Meaning to ask this for a while - the font in this text box is quite small on > my machine - is it my machine or is it set that small? > > Regards > > Richard > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From ron at ...1740... Sun Mar 13 13:54:01 2011 From: ron at ...1740... (Ron) Date: Sun, 13 Mar 2011 13:54:01 +0100 Subject: [Gambas-user] Signal 11 with callback functions In-Reply-To: <201103130305.08898.gambas@...1...> References: <201103121753.48134.gambas@...1...> <201103130305.08898.gambas@...1...> Message-ID: Can someone explain what extern callbacks are/do? Thanks! 2011/3/13 Beno?t Minisini : >> It's better, but there are other problems too... Something to do with >> "select case" and callback functions. >> I managed to isolate the problem. See attachment. >> >> Click coupleo of times that button, and you will see cumulative performance >> problem leading practically to freeze. >> >> Gambas 3 rev 3644 @ Ubuntu 10.10 64bit >> >> Jussi >> > > It should be better in revision #3646. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sun Mar 13 14:07:50 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 13 Mar 2011 15:07:50 +0200 Subject: [Gambas-user] Signal 11 with callback functions In-Reply-To: References: <201103121753.48134.gambas@...1...> <201103130305.08898.gambas@...1...> Message-ID: Take a look at the sources I attached to earlier mail. But quickly explaining; it means possibility to use external library, in way that external library also uses functions from gambas program. See also: http://en.wikipedia.org/wiki/Callback_%28computer_programming%29 http://gambasdoc.org/help/lang/extdecl?v3 (there are section about callback functions) Jussi On Sun, Mar 13, 2011 at 14:54, Ron wrote: > Can someone explain what extern callbacks are/do? > > Thanks! > > 2011/3/13 Beno?t Minisini : > >> It's better, but there are other problems too... Something to do with > >> "select case" and callback functions. > >> I managed to isolate the problem. See attachment. > >> > >> Click coupleo of times that button, and you will see cumulative > performance > >> problem leading practically to freeze. > >> > >> Gambas 3 rev 3644 @ Ubuntu 10.10 64bit > >> > >> Jussi > >> > > > > It should be better in revision #3646. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > > ------------------------------------------------------------------------------ > > Colocation vs. Managed Hosting > > A question and answer guide to determining the best fit > > for your organization - today and in the future. > > http://p.sf.net/sfu/internap-sfd2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Mar 13 14:11:16 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 13 Mar 2011 14:11:16 +0100 Subject: [Gambas-user] Signal 11 with callback functions In-Reply-To: References: <201103130305.08898.gambas@...1...> Message-ID: <201103131411.16467.gambas@...1...> > Can someone explain what extern callbacks are/do? > > Thanks! > Some external functions written in C ask for a function pointer argument. In Gambas 3, you can use any private or public function written in Gambas as function pointer. The interpreter internally creates a temporary internal C function (a "closure") that will be actually sent to the external function. That closure will call the original Gambas function each time it is called. Each argument that is a function pointer creates its own closure. All these closures are internally stored in a hash table that is cleared when the program exits. If you do not send any function pointer to an external function, then the hash table is not created, so there is no overhead at all. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Mar 13 14:42:04 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 13 Mar 2011 15:42:04 +0200 Subject: [Gambas-user] Signal 11 with callback functions In-Reply-To: <201103130305.08898.gambas@...1...> References: <201103121753.48134.gambas@...1...> <201103130305.08898.gambas@...1...> Message-ID: Works correctly and FAST! Thanks, this is very useful feature! Jussi 2011/3/13 Beno?t Minisini > > It's better, but there are other problems too... Something to do with > > "select case" and callback functions. > > I managed to isolate the problem. See attachment. > > > > Click coupleo of times that button, and you will see cumulative > performance > > problem leading practically to freeze. > > > > Gambas 3 rev 3644 @ Ubuntu 10.10 64bit > > > > Jussi > > > > It should be better in revision #3646. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sun Mar 13 14:46:05 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 13 Mar 2011 13:46:05 +0000 Subject: [Gambas-user] Issue 49 in gambas: gb3 IDE tab order not preserved In-Reply-To: <0-6813199134517018827-4888750028081543612-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4888750028081543612-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4888750028081543612-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 49 by benoit.m... at ...626...: gb3 IDE tab order not preserved http://code.google.com/p/gambas/issues/detail?id=49 (No comment was entered for this change.) From gambas at ...2524... Sun Mar 13 14:52:11 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 13 Mar 2011 13:52:11 +0000 Subject: [Gambas-user] Issue 48 in gambas: long lines wrap in search window In-Reply-To: <0-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 48 by benoit.m... at ...626...: long lines wrap in search window http://code.google.com/p/gambas/issues/detail?id=48 (No comment was entered for this change.) From gambas at ...2524... Sun Mar 13 14:56:13 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 13 Mar 2011 13:56:13 +0000 Subject: [Gambas-user] Issue 50 in gambas: [feature request] unicode support In-Reply-To: <0-6813199134517018827-5630645713861428215-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5630645713861428215-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-5630645713861428215-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version -Type-Bug Version-TRUNK Type-Enhancement Comment #1 on issue 50 by benoit.m... at ...626...: [feature request] unicode support http://code.google.com/p/gambas/issues/detail?id=50 I understand the problem for not being able to write symbols in its own language. But it prevents other people that do not speak your language from reading your code. Moreover, the compiler will have to be redesigned, and it will be slower. So I will keep symbols to be ASCII only. English is the international language for programming, it's not my fault! From math.eber at ...221... Sun Mar 13 16:55:26 2011 From: math.eber at ...221... (Matti) Date: Sun, 13 Mar 2011 16:55:26 +0100 Subject: [Gambas-user] Image class and histogram In-Reply-To: <201103130349.50346.gambas@...1...> References: <4D73C6D3.6070902@...221...> <201103130349.50346.gambas@...1...> Message-ID: <4D7CE8EE.1040805@...221...> Great! Works fine. For the channels R, G, B I get exactly the same histograms as GIMP shows. For the combined grayscale histogram I get a different curve, but this depends on how the brightness value is computed. Have to read more. Am 13.03.2011 03:49, schrieb Beno?t Minisini: > > I implemented the Image.Histogram() method in the gb.image.effect component > (revision #3647). > > It works like that: > > Dim hImage as Image > Dim hHist As ImageHistogram > > hHist = hImage.Histogram() > Print hHist[, ] > > is Image.Red, Image.Blue, Image.Green or Image.Alpha. > must be between 0 and 255. > > Can you test it? > From gambas at ...1... Sun Mar 13 17:14:19 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 13 Mar 2011 17:14:19 +0100 Subject: [Gambas-user] Image class and histogram In-Reply-To: <4D7CE8EE.1040805@...221...> References: <4D73C6D3.6070902@...221...> <201103130349.50346.gambas@...1...> <4D7CE8EE.1040805@...221...> Message-ID: <201103131714.19304.gambas@...1...> > Great! > Works fine. For the channels R, G, B I get exactly the same histograms as > GIMP shows. > For the combined grayscale histogram I get a different curve, but this > depends on how the brightness value is computed. Have to read more. > You get an histogram only for R, G, B and Alpha. What is that "combined grayscale" thing? -- Beno?t Minisini From math.eber at ...221... Sun Mar 13 17:40:04 2011 From: math.eber at ...221... (Matti) Date: Sun, 13 Mar 2011 17:40:04 +0100 Subject: [Gambas-user] Image class and histogram In-Reply-To: <201103131714.19304.gambas@...1...> References: <4D73C6D3.6070902@...221...> <201103130349.50346.gambas@...1...> <4D7CE8EE.1040805@...221...> <201103131714.19304.gambas@...1...> Message-ID: <4D7CF364.3070905@...221...> It's a histogram of pure brightness values, used in photography and in all those image processing programs. See http://manual.gimp.org/en/gimp-histogram-dialog.html: "For RGB images, it is convenient to define a Value ?pseudochannel ?. This is not a real color channel: it does not reflect any information stored directly in the image. Instead, the Value at a pixel is given by the equation V = max(R,G,B). Essentially, the Value is what you would get at that pixel if you converted the image to Grayscale mode." So, my thought was wrong. You can't deduce a brightness histogram from the histograms of R, G and B. To get that, you have to read the brightness value of every pixel (V = max(R,G,B)) and store the values in a separate channel. Am 13.03.2011 17:14, schrieb Beno?t Minisini: >> Great! >> Works fine. For the channels R, G, B I get exactly the same histograms as >> GIMP shows. >> For the combined grayscale histogram I get a different curve, but this >> depends on how the brightness value is computed. Have to read more. >> > > You get an histogram only for R, G, B and Alpha. What is that "combined > grayscale" thing? > From gambas at ...2524... Sun Mar 13 20:16:58 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 13 Mar 2011 19:16:58 +0000 Subject: [Gambas-user] Issue 51 in gambas: valuebox of type IPAddress gives out of bounds error and signal 11 Message-ID: <0-6813199134517018827-13840496707836734497-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 51 by zachsmit... at ...626...: valuebox of type IPAddress gives out of bounds error and signal 11 http://code.google.com/p/gambas/issues/detail?id=51 1) if a valuebox of type IPAddress has its text property set to "", then typing anything in the box results in an out of bounds error and a signal 11. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r3649 Operating system: Linux Distribution: Arch Linux Architecture: x86 / x86_64 GUI component: GTK+ Run program and type anything in the box. Attachments: test25-0.0.1.tar.gz 4.4 KB From gambas at ...2524... Sun Mar 13 20:48:09 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 13 Mar 2011 19:48:09 +0000 Subject: [Gambas-user] Issue 47 in gambas: Make code pretty tool button clears breakpoints In-Reply-To: <1-6813199134517018827-15676378731405905991-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-15676378731405905991-gambas=googlecode.com@...2524...> <0-6813199134517018827-15676378731405905991-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-15676378731405905991-gambas=googlecode.com@...2524...> Updates: Labels: -Priority-Medium Priority-Low Comment #2 on issue 47 by benoit.m... at ...626...: Make code pretty tool button clears breakpoints http://code.google.com/p/gambas/issues/detail?id=47 (No comment was entered for this change.) From gambas at ...2524... Sun Mar 13 20:52:11 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 13 Mar 2011 19:52:11 +0000 Subject: [Gambas-user] Issue 48 in gambas: long lines wrap in search window In-Reply-To: <1-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> <0-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> Updates: Labels: -Priority-Medium Priority-Low Comment #2 on issue 48 by benoit.m... at ...626...: long lines wrap in search window http://code.google.com/p/gambas/issues/detail?id=48 (No comment was entered for this change.) From gambas at ...2524... Sun Mar 13 22:03:55 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 13 Mar 2011 21:03:55 +0000 Subject: [Gambas-user] Issue 51 in gambas: valuebox of type IPAddress gives out of bounds error and signal 11 In-Reply-To: <0-6813199134517018827-13840496707836734497-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-13840496707836734497-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-13840496707836734497-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 51 by benoit.m... at ...626...: valuebox of type IPAddress gives out of bounds error and signal 11 http://code.google.com/p/gambas/issues/detail?id=51 (No comment was entered for this change.) From rterry at ...1946... Mon Mar 14 00:06:38 2011 From: rterry at ...1946... (richard terry) Date: Mon, 14 Mar 2011 10:06:38 +1100 Subject: [Gambas-user] Errata: Font in the add Watch textbox In-Reply-To: <201103132222.51367.rterry@...1946...> References: <201103132222.51367.rterry@...1946...> Message-ID: <201103141006.38650.rterry@...1946...> On Sunday 13 March 2011 22:22:51 richard terry wrote: > Meaning to ask this for a while - the font in this text box is quite small > on my machine - is it my machine or is it set that small? > > Regards > > Richard > > --------------------------------------------------------------------------- > --- Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Sorry, half asleep I meant the 'watch' textbox From gambas at ...2524... Mon Mar 14 03:05:39 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 14 Mar 2011 02:05:39 +0000 Subject: [Gambas-user] Issue 51 in gambas: valuebox of type IPAddress gives out of bounds error and signal 11 In-Reply-To: <1-6813199134517018827-13840496707836734497-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-13840496707836734497-gambas=googlecode.com@...2524...> <0-6813199134517018827-13840496707836734497-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-13840496707836734497-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 51 by benoit.m... at ...626...: valuebox of type IPAddress gives out of bounds error and signal 11 http://code.google.com/p/gambas/issues/detail?id=51 It should be fixed in revision #3650. From kevinfishburne at ...1887... Mon Mar 14 07:13:54 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 14 Mar 2011 02:13:54 -0400 Subject: [Gambas-user] translating planar coordinates relative to point's angle Message-ID: <4D7DB222.200@...1887...> I'm disturbed that I couldn't find an answer via Google that wasn't too complex for my feeble mind to understand (my fault; I suck at math), so I'm asking here. I'm trying to move a point with an angle/direction/vector relative to its angle. Let's say I have these variables: Dim a as Single ' Point's angle in degrees. Dim x as Single ' Point's x coordinate. Dim y as Single ' Point's y coordinate. Dim xvel as Single ' Point's right/left velocity (+/-). Dim yvel as Single ' Point's backward/forward velocity (+/-). What's a good algorithm to figure out the new values of x and y when adjusted by xvel and yvel relative to a? I've looked through a bunch of vector math "tutorials" but they are very broad and difficult for me to understand. I'm good at many things, but this isn't one of them. Any help will be greatly appreciated. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Mon Mar 14 08:18:20 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 14 Mar 2011 03:18:20 -0400 Subject: [Gambas-user] translating planar coordinates relative to point's angle In-Reply-To: <4D7DB222.200@...1887...> References: <4D7DB222.200@...1887...> Message-ID: <4D7DC13C.5020304@...1887...> On 03/14/2011 02:13 AM, Kevin Fishburne wrote: > I'm trying to move a point with an angle/direction/vector relative to > its angle. Let's say I have these variables: > > Dim a as Single ' Point's angle in degrees. > Dim x as Single ' Point's x coordinate. > Dim y as Single ' Point's y coordinate. > Dim xvel as Single ' Point's right/left velocity (+/-). > Dim yvel as Single ' Point's backward/forward velocity (+/-). > > What's a good algorithm to figure out the new values of x and y when > adjusted by xvel and yvel relative to a? After more research I got a little closer, trying this: ' Move player relative to player's orientation. worldx = worldx + ((Interface.stick_leftx / 131072) * Cos(Rad(orientation))) worldy = worldy + ((Interface.stick_lefty / 131072) * Sin(Rad(orientation))) It lets me move horizontally but not vertically unless I rotate the player. What am I doing wrong here? FYI, the Interface.stick_left variables are divided by 131072 so that they are compressed from the range +/- 32768 to +/- 0.25, the maximum movement speed for testing. I feel I'm so very close, yet so very far. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Mon Mar 14 08:38:15 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 14 Mar 2011 03:38:15 -0400 Subject: [Gambas-user] gb3 (rev. 3641) and SDL surfaces In-Reply-To: <201103101109.11459.gambas@...1...> References: <4D782D8A.4000802@...1887...> <201103101109.11459.gambas@...1...> Message-ID: <4D7DC5E7.8050405@...1887...> On 03/10/2011 05:09 AM, Beno?t Minisini wrote: >> I've been experimenting with gb.sdl and found that I could achieve frame >> rates higher than 380 fps at 1920x1080, including alpha channel. This >> involves writing directly to the SDL window/surface with a 1920x1080 >> image loaded from a file, for example: >> >> Public Screen As New Window As "Screen" >> Public SomeImage As Image = Image.Load("someimage.png") >> >> Public Sub Main() >> >> ' Create screen. >> With Screen >> .Width = 1920 >> .Height = 1080 >> .Framerate = 1000 >> .FullScreen = True >> .Show() >> End With >> >> End >> >> Public Sub Screen_Draw() >> >> Draw.Image(SomeImage, 0, 0) >> Draw.Text(Screen.Framerate& " FPS", 0, 0) >> >> End >> >> While this is awesome, there is a problem if images need to be >> composited before being written to the SDL surface. For example, if I >> wanted to do something like this: >> >> Water.Draw(WaterRipples, 0, 0) >> Water.Draw(SkyReflection, 0, 0) >> Water.DrawAlpha(WaterDepth, 0, 0) >> >> and then draw Water to the SDL window, not only is the imlib2 component >> required (otherwise it states the .Draw method is unknown), it kills the >> frame rate because the Draw method is done in software (imlib2) and only >> the writes done directly to the SDL window are hardware accelerated. >> >> Attempting to circumvent this I created a second SDL window, hoping I >> could write the contents of window B to window A. The idea was to create >> multiple secondary SDL windows, using them as image buffers, then write >> the buffers as necessary to the main SDL window when its Draw event was >> called. This didn't work at all and I don't think it's supported. >> >> Is there a way to use the Draw method, or an equivalent, so that >> image-to-image writes can be done entirely in SDL? I've already >> converted my app to use the SDL component but too much of it currently >> uses the .Draw and .DrawAlpha methods which bring the framerate to 21 >> fps at 1280x720. The framerate is only going to get worse from here, as >> I'm just getting started. > I think (only Laurent can confirm) that SDL uses internally OpenGL to do its > stuff. So the speed of the SDL component depends on the graphics driver (which > is a very sensible thing on Linux). > > Then, if you want to compose images, I think only doing direct OpenGL call > will help you, by stacking textured rectangles. But I don't know if OpenGL can > do the equivalent of Draw.Alpha(). That makes sense, as SDL uses OpenGL when available for hardware acceleration. I think it's basically a wrapper for OpenGL (or DirectX though that is irrelevant obviously). While DrawAlpha is a blessing, the main problem is the regular Draw method not being supported by the SDL component. As I said drawing directly to the SDL surface is super fast but image-to-image drawing is super slow. I have no issue with DrawAlpha being maintained in software only, but basic image blitting should definitely be supported by the SDL (and by proxy OpenGL) component. I wonder if this has something to do with how the images are loaded into RAM/VRAM. Without understanding the SDL implementation, it's hard for me to imagine why blitting an image to the SDL surface is fast but blitting image A to image B is slow. Maybe there's a good reason for that, but it seems counter-intuitive to me (story of my life, right?). -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From doriano.blengino at ...1909... Mon Mar 14 09:46:51 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 14 Mar 2011 09:46:51 +0100 Subject: [Gambas-user] translating planar coordinates relative to point's angle In-Reply-To: <4D7DB222.200@...1887...> References: <4D7DB222.200@...1887...> Message-ID: <4D7DD5FB.1080904@...1909...> Kevin Fishburne ha scritto: > I'm disturbed that I couldn't find an answer via Google that wasn't too > complex for my feeble mind to understand (my fault; I suck at math), so > I'm asking here. > > I'm trying to move a point with an angle/direction/vector relative to > its angle. Let's say I have these variables: > > Dim a as Single ' Point's angle in degrees. > Dim x as Single ' Point's x coordinate. > Dim y as Single ' Point's y coordinate. > Dim xvel as Single ' Point's right/left velocity (+/-). > Dim yvel as Single ' Point's backward/forward velocity (+/-). > > What's a good algorithm to figure out the new values of x and y when > adjusted by xvel and yvel relative to a? > > I've looked through a bunch of vector math "tutorials" but they are very > broad and difficult for me to understand. I'm good at many things, but > this isn't one of them. Any help will be greatly appreciated. > > I think that you have too many variables involved... to define a speed in a plane you need only two coordinates - you should choose between two methods (or coordinate systems). The first one, which seems to fit best, is to choose a direction in degrees (or radians) and a velocity. At ever"step", the x,y position varies by cos(direction) and sin(direction), both multiplied first by the velocity of the object. In the second method is to keep two velocities, left/right and top/down. At every step, you add the velocities to the current position. As you see, both methods only involve two variables that specify the direction and speed of the object, and of course its current position, which get upgraded at every step (or frame). The first method, polar coordinates, is probably nearer to the idea of a moving object. If the object changes direction, you simply change the "direction" variable. If the object changes speed, you simply change the "speed variable". The second method is the same as the former, where horizontal (left/right) speed is cos(direction) and vertical is sin(direction). The problem is that if you don't keep track of the "direction", but instead you use its components, it is slightly difficult to change direction; anyway, the two coordinate systems are the same, and from one you can pass to the other at will (not counting math rounding problems). I think that you could choose by looking at what your joystick means to you. Does it rotate the object, like the famous game Asteroids? Then choose polar coordinates. Or does it mean left/right and up/down? Then choose cartesian coordinates (but you talked about speed and direction...). Hope this can help, regards, Doriano From gambas at ...2524... Mon Mar 14 14:19:15 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 14 Mar 2011 13:19:15 +0000 Subject: [Gambas-user] Issue 42 in gambas: In Gambas3 (2.99.0), Line Input hangs up. In-Reply-To: <1-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> <0-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Comment #2 on issue 42 by jonericn... at ...626...: In Gambas3 (2.99.0), Line Input hangs up. http://code.google.com/p/gambas/issues/detail?id=42 Sorry, I do not know the meaning of "true terminal". It hangs when I run the command in a "commandline" project, which uses the IDE, of course. Is there another way to run a Gambas commandline program? From jussi.lahtinen at ...626... Mon Mar 14 21:00:18 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 14 Mar 2011 22:00:18 +0200 Subject: [Gambas-user] More debugging bugs Message-ID: Hi! See attached project. 1 .Click on the button, and try to inspect object inside of StructArr, you will get "StructArr[0]", "No element" which is false. 2. Then, try to inspect D2Arr, you will get "Bad number of dimensions" and "Out of bounds", which are also false. Gambas 3 rev 3647 @ Ubuntu 10.10 64bit Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: DebugTest-0.0.1.tar.gz Type: application/x-gzip Size: 4857 bytes Desc: not available URL: From kevinfishburne at ...1887... Mon Mar 14 22:22:32 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 14 Mar 2011 17:22:32 -0400 Subject: [Gambas-user] translating planar coordinates relative to point's angle In-Reply-To: <4D7DD5FB.1080904@...1909...> References: <4D7DB222.200@...1887...> <4D7DD5FB.1080904@...1909...> Message-ID: <4D7E8718.7020804@...1887...> On 03/14/2011 04:46 AM, Doriano Blengino wrote: > I think that you have too many variables involved... to define a speed > in a plane you need only two coordinates - you should choose between two > methods (or coordinate systems). > > The first one, which seems to fit best, is to choose a direction in > degrees (or radians) and a velocity. At ever"step", the x,y position > varies by cos(direction) and sin(direction), both multiplied first by > the velocity of the object. > > In the second method is to keep two velocities, left/right and top/down. > At every step, you add the velocities to the current position. > > As you see, both methods only involve two variables that specify the > direction and speed of the object, and of course its current position, > which get upgraded at every step (or frame). > > The first method, polar coordinates, is probably nearer to the idea of a > moving object. If the object changes direction, you simply change the > "direction" variable. If the object changes speed, you simply change the > "speed variable". > > The second method is the same as the former, where horizontal > (left/right) speed is cos(direction) and vertical is sin(direction). The > problem is that if you don't keep track of the "direction", but instead > you use its components, it is slightly difficult to change direction; > anyway, the two coordinate systems are the same, and from one you can > pass to the other at will (not counting math rounding problems). Thanks, that is a very good explanation and gives me good food for thought. I'll try to apply it tonight to see if I can get things working properly. > I think that you could choose by looking at what your joystick means to > you. Does it rotate the object, like the famous game Asteroids? Then > choose polar coordinates. Or does it mean left/right and up/down? Then > choose cartesian coordinates (but you talked about speed and direction...). It actually does both, which is probably why it isn't working yet. I'm using a Playstation-style gamepad with two analog sticks for player control. The right stick's horizontal axis controls the player's orientation/direction and the left stick controls the player's movement/translation. Here's the breakdown of the two sticks: Right stick, left = Player turns counter-clockwise Right stick, right = Player turns clockwise Left stick, up = Player walks forward Left stick, down = Player walks backward Left stick, left = Player strafes left Left stick, right = Player strafes right It's very similar to the controls used in most first person shooters. Pushing the right stick modifies an orientation variable, so you can turn faster or slower depending on how far you push the stick. How far you push the left stick determines the speed with which you move. Combining the two sticks should allow things like circle-strafing. Based on what you said I'm guessing I should be using the second method, or is there something deeper I need to know? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From zachsmith022 at ...626... Tue Mar 15 01:45:55 2011 From: zachsmith022 at ...626... (Zach Smith) Date: Mon, 14 Mar 2011 19:45:55 -0500 Subject: [Gambas-user] Feature request: triple-click to select line Message-ID: Is there any possibility of adding a triple-click to select a whole line of code in the IDE? From gambas at ...1... Tue Mar 15 02:08:58 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 15 Mar 2011 02:08:58 +0100 Subject: [Gambas-user] Feature request: triple-click to select line In-Reply-To: References: Message-ID: <201103150208.58689.gambas@...1...> > Is there any possibility of adding a triple-click to select a whole > line of code in the IDE? > I don't think so. But you can select an entire line by clicking inside the margin. Regards, -- Beno?t Minisini From doriano.blengino at ...1909... Tue Mar 15 16:03:41 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 15 Mar 2011 16:03:41 +0100 Subject: [Gambas-user] translating planar coordinates relative to point's angle In-Reply-To: <4D7E8718.7020804@...1887...> References: <4D7DB222.200@...1887...> <4D7DD5FB.1080904@...1909...> <4D7E8718.7020804@...1887...> Message-ID: <4D7F7FCD.2000209@...1909...> Kevin Fishburne ha scritto: > On 03/14/2011 04:46 AM, Doriano Blengino wrote: > >> I think that you have too many variables involved... to define a speed >> in a plane you need only two coordinates - you should choose between two >> methods (or coordinate systems). >> >> >> I think that you could choose by looking at what your joystick means to >> you. Does it rotate the object, like the famous game Asteroids? Then >> choose polar coordinates. Or does it mean left/right and up/down? Then >> choose cartesian coordinates (but you talked about speed and direction...). >> > > It actually does both, which is probably why it isn't working yet. I'm > using a Playstation-style gamepad with two analog sticks for player > control. The right stick's horizontal axis controls the player's > orientation/direction and the left stick controls the player's > movement/translation. Here's the breakdown of the two sticks: > > Right stick, left = Player turns counter-clockwise > Right stick, right = Player turns clockwise > Left stick, up = Player walks forward > Left stick, down = Player walks backward > Left stick, left = Player strafes left > Left stick, right = Player strafes right > > It's very similar to the controls used in most first person shooters. > Pushing the right stick modifies an orientation variable, so you can > turn faster or slower depending on how far you push the stick. How far > you push the left stick determines the speed with which you move. > Combining the two sticks should allow things like circle-strafing. > By adding a fixed value to the orientation of the player, at every frame, it will run in circle (speed<>0), or it will rotate on-place (speed=0). The radius of the circle will be proportional to speed/rotational_step... > Based on what you said I'm guessing I should be using the second method, > or is there something deeper I need to know? > I think there is nothing more to add... it depends on the real movements of the player. When it strafes (never heard this term before - had to consult a dictionary :-)) does it actually change its path? Perhaps no, so the right joystick implements the movements of the player with polar notation, while the left one creates missiles which, in turn, are moving objects with a given speed and angle (polar again). Polar and cartesian speeds could be combined too, anyway: in a single frame you can add "polarspeed*cos(polarangle)" to Xpos, "polarspeed*sin(polarangle)" to Ypos, then add "horizspeed" to Xpos and "vertispeed" to Ypos. The result is again a vector with an angle, but you can play with four variables... but I don't think this would lead to an easy playable game (but you could use this to simulate the back-kick of a heavy gun. Suppose the player is moving at 45? with speed 10; then it fires at 135?. You could calculate back_kick_speedX=-cos(fired_angle) and back_kick_speedY=-sin(fired_angle); then at every frame you move the player in the usual manner, then add the components back_kick*, then reduce the back_kick* components to 50% of before. This should simulate a back-bump which quickly ceases :-)) ). This is not to insist on Asteroids game, but it was actually behaving like this: the movement was really in the x/y plane, with decreasing speeds, and when the fuel was burned those x/y components were adjusted by sin and cos of the ship orientation. In fact, it was hard to play... :-) Cheers, Doriano From jussi.lahtinen at ...626... Tue Mar 15 20:16:38 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 15 Mar 2011 21:16:38 +0200 Subject: [Gambas-user] Signal 11 when opening project Message-ID: Hi! Try to open attached project. Gambas 3 rev 3651 @ Ubuntu 10.10 64bit Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTester.tar.gz Type: application/x-gzip Size: 17347 bytes Desc: not available URL: From jussi.lahtinen at ...626... Tue Mar 15 20:20:20 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 15 Mar 2011 21:20:20 +0200 Subject: [Gambas-user] Signal 11 when opening project In-Reply-To: References: Message-ID: Something to do with ".settings" file... but there is more. After resetting settings everything opens as expected, but attempt to compile that project crashes Gambas again. Jussi On Tue, Mar 15, 2011 at 21:16, Jussi Lahtinen wrote: > Hi! > Try to open attached project. > > Gambas 3 rev 3651 @ Ubuntu 10.10 64bit > > Jussi > > From jussi.lahtinen at ...626... Tue Mar 15 20:23:43 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 15 Mar 2011 21:23:43 +0200 Subject: [Gambas-user] Signal 11 when opening project In-Reply-To: References: Message-ID: Hmmm... some misinformation, sorry. Problem is in viewing mTest.module, not ".settings" issue. Jussi On Tue, Mar 15, 2011 at 21:20, Jussi Lahtinen wrote: > Something to do with ".settings" file... but there is more. > After resetting settings everything opens as expected, but attempt to > compile that project crashes Gambas again. > > Jussi > > > > On Tue, Mar 15, 2011 at 21:16, Jussi Lahtinen wrote: > >> Hi! >> Try to open attached project. >> >> Gambas 3 rev 3651 @ Ubuntu 10.10 64bit >> >> Jussi >> >> > From jussi.lahtinen at ...626... Tue Mar 15 20:28:04 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 15 Mar 2011 21:28:04 +0200 Subject: [Gambas-user] Signal 11 when opening project In-Reply-To: References: Message-ID: OK, just try to write mkinteger$()... Jussi On Tue, Mar 15, 2011 at 21:23, Jussi Lahtinen wrote: > Hmmm... some misinformation, sorry. > Problem is in viewing mTest.module, not ".settings" issue. > > Jussi > > > > On Tue, Mar 15, 2011 at 21:20, Jussi Lahtinen wrote: > >> Something to do with ".settings" file... but there is more. >> After resetting settings everything opens as expected, but attempt to >> compile that project crashes Gambas again. >> >> Jussi >> >> >> >> On Tue, Mar 15, 2011 at 21:16, Jussi Lahtinen wrote: >> >>> Hi! >>> Try to open attached project. >>> >>> Gambas 3 rev 3651 @ Ubuntu 10.10 64bit >>> >>> Jussi >>> >>> >> > From kevinfishburne at ...1887... Tue Mar 15 21:03:26 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 15 Mar 2011 16:03:26 -0400 Subject: [Gambas-user] translating planar coordinates relative to point's angle In-Reply-To: <4D7F7FCD.2000209@...1909...> References: <4D7DB222.200@...1887...> <4D7DD5FB.1080904@...1909...> <4D7E8718.7020804@...1887...> <4D7F7FCD.2000209@...1909...> Message-ID: <4D7FC60E.2050107@...1887...> On 03/15/2011 11:03 AM, Doriano Blengino wrote: By adding a fixed value to the orientation of the player, at every frame, it will run in circle (speed<>0), or it will rotate on-place (speed=0). The radius of the circle will be proportional to speed/rotational_step... Yes, that is true. How far the right stick is pushed horizontally determines how much is added or subtracted to the orientation variable. For debugging purposes I'm graphically rotating the player to show the orientation, so I know that part is working. Based on what you said I'm guessing I should be using the second method, or is there something deeper I need to know? I think there is nothing more to add... it depends on the real movements of the player. When it strafes (never heard this term before - had to consult a dictionary :-)) does it actually change its path? Perhaps no, so the right joystick implements the movements of the player with polar notation, while the left one creates missiles which, in turn, are moving objects with a given speed and angle (polar again). Sorry for the confusion there. The traditional definition of strafing is shooting things but in gaming it means lateral (or any) movement. In my case strafing means all movement, whether side-to-side, forward or backward. One thing I'm trying to avoid is "straferunning", which is where the new position is improperly calculated by treating horizontal and verticle movement separately (maybe they used two vectors?). The result is that moving diagonally is faster than moving in one direction (x=x+1; y=y+1; technique=BAD). This article gives some good information about this type of control scheme: [1]http://en.wikipedia.org/wiki/Strafing_(gaming) I made this GIMP diagram to illustrate the controls relative to our discussion. It includes my code for calculating orientation and position: [2]http://www.eightvirtues.com/sanctimonia/images/stick_mapping.jpg Polar and cartesian speeds could be combined too, anyway: in a single frame you can add "polarspeed*cos(polarangle)" to Xpos, "polarspeed*sin(polarangle)" to Ypos, then add "horizspeed" to Xpos and "vertispeed" to Ypos. The result is again a vector with an angle, but you can play with four variables... but I don't think this would lead to an easy playable game (but you could use this to simulate the back-kick of a heavy gun. Suppose the player is moving at 45?? with speed 10; then it fires at 135??. You could calculate back_kick_speedX=-cos(fired_angle) and back_kick_speedY=-sin(fired_angle); then at every frame you move the player in the usual manner, then add the components back_kick*, then reduce the back_kick* components to 50% of before. This should simulate a back-bump which quickly ceases :-)) ). This is not to insist on Asteroids game, but it was actually behaving like this: the movement was really in the x/y plane, with decreasing speeds, and when the fuel was burned those x/y components were adjusted by sin and cos of the ship orientation. In fact, it was hard to play... :-) That sounds like it's somewhere in the area of where I'm failing. Right now I'm doing this: worldx = worldx + ((Interface.stick_leftx / 131072) * Cos(Rad(orientation))) worldy = worldy + ((Interface.stick_lefty / 131072) * Sin(Rad(orientation))) Interface.stick_leftx represents the horizontal speed and ranges from -32767 to +32767. Interface.stick_lefty represents the vertical speed and has the same range. These values are the raw data reported from the gamepad and indicate how far the stick is being pushed. Values of zero indicate the stick is at rest. Just to be clear on what -should- be happening, here's an example. Player is facing up (0 degrees): left stick pushed up moves up, pushed down moves down, pushed left moves left, pushed right moves right. Player is facing right (90 degrees): left stick pushed up moves right, pushed down moves left, pushed left moves up, pushed right moves down. I'm starting to feel like a real idiot here. Not sure how the part of my brain that does math got fried, maybe I need some ritalin. :/ Also I really appreciate your help. I read and re-read everything you say, trying to understand, and am still actively researching this on the net trying to figure it out. I just found this which may have some relevance ([3]http://s1.zetaboards.com/Game_Maker_Cookbook/topic/861865/1/): if keyboard_check(vk_left) //Left Strafe { x-=lengthdir_x(speed,direction-90) y-=lengthdir_y(speed,direction-90) } if keyboard_check(vk_right) //Right Strafe { x-=lengthdir_x(speed,direction+90) y-=lengthdir_y(speed,direction+90) } It appears they're offsetting the orientation in their movement calculation based on what direction the player is trying to move in. -90 for left and +90 for right. Those directions are static though and mine use variable values from an analog stick. Maybe I need to calculate twice, once for Interface.stick_leftx (offset by 90 degrees) and once for Interface.stick_lefty (not offset)? Wonder if that will produce the dreaded straferunning... -- Kevin Fishburne Eight Virtues www: [4]http://sales.eightvirtues.com e-mail: [5]sales at ...1887... phone: (770) 853-6271 References 1. http://en.wikipedia.org/wiki/Strafing_%28gaming%29 2. http://www.eightvirtues.com/sanctimonia/images/stick_mapping.jpg 3. http://s1.zetaboards.com/Game_Maker_Cookbook/topic/861865/1/ 4. http://sales.eightvirtues.com/ 5. mailto:sales at ...1887... From doriano.blengino at ...1909... Tue Mar 15 22:03:56 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 15 Mar 2011 22:03:56 +0100 Subject: [Gambas-user] translating planar coordinates relative to point's angle In-Reply-To: <4D7FC60E.2050107@...1887...> References: <4D7DB222.200@...1887...> <4D7DD5FB.1080904@...1909...> <4D7E8718.7020804@...1887...> <4D7F7FCD.2000209@...1909...> <4D7FC60E.2050107@...1887...> Message-ID: <4D7FD43C.50000@...1909...> Kevin Fishburne ha scritto: > Just to be clear on what -should- be happening, here's an example. > Player is facing up (0 degrees): left stick pushed up moves up, pushed down > moves down, pushed left moves left, pushed right moves right. > Player is facing right (90 degrees): left stick pushed up moves right, > pushed down moves left, pushed left moves up, pushed right moves down. > Well, you need to rotate the data from the left joystick around the player. This is the formula of rotation: xr := xp*g92cos - yp*g92sin; yr := xp*g92sin + yp*g92cos; Sorry, I took them from an old pascal program, but I explain. The above code rotates a point (xp; yp) around the origin, by a given angle "g92", of which g92cos and g92sin are the cosine and sine. The new rotated point is (xr; yr). Please note that 0 degrees is toward right, 90? up, 180 left, but a computer screen is flipped up side down (which is not a rotation but a mirror), so the y coordinates must be mirrored (choose the opposite sign if a coordinate is relative, or subtract the coordinate from the maximum Y coordinate if absolute). In addition, you say that 0? is up, and 90? right, which is both mirrored and rotated in respect to the canonical trigonometry... this kind of things can drive me crazy... :-) Back to the problem. If I well understand, at every frame you take the left joystick, and apply its "command" to the player. But the direction of the movement depends on the orientation of the player. Well, you take the left joystick data (x and y) and rotate them using the formulas above, basin on current player orientation. This way, when the left joystick slides up, the player will always move ahead, along its current direction. Now I will make an example. Suppose your player is at X=0 and Y=0, facing up (0 degrees), and you move the left joystick "up". You receive y=10 and x=0 from the left joystick. The above formula gives (cos(0)=1, sin(0)=0): xr := xp*g92cos - yp*g92sin = 0*1 - 10*0 = 0 yr := xp*g92sin + yp*g92cos = 0*0 + 10*1 = 10 So you add 0 to X and subtract 10 from Y (or add "-yr" to Y). The player moves up. Note that X is added and Y is subtracted because of the screen. Now, suppose that the player instead is facing right (90?). The formula gives (cos(90)=0, sin(90)=1: xr := xp*g92cos - yp*g92sin = 0*0 - 10*1 = -10 yr := xp*g92sin + yp*g92cos = 0*1 + 10*0 = 0 So you add -10 to X, and subtract 0 from Y. The player moves left. Why not to the right? Because if you rotate your head to the left, you turn 90 degrees, and if you turn your head to the right, you turn -90?. So if you say that 0? is up and 90? is right, there is something wrong. I hope that what I write is comprehensible... I don't know at which extent your program is already using this strange coordinates, so I prefer to elaborate no more (a little tired this night), but by inverting the readings from the joystick, and/or swapping X and Y from the joystick, or by using "90-angle" instead of "angle" when calculating cos() and sin(), you should quickly solve without touching the rest of the program. I presume you should use both "90-angle" and subtract from Y instead of adding to it, but I am not sure - sorry. In a few days I will go to visit those URLs you posted, I am always curious about math and videogames :-) Cheers, Doriano From lordheavym at ...626... Wed Mar 16 14:32:55 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 16 Mar 2011 14:32:55 +0100 Subject: [Gambas-user] gb3 (rev. 3641) and SDL surfaces In-Reply-To: <4D7DC5E7.8050405@...1887...> References: <4D782D8A.4000802@...1887...> <201103101109.11459.gambas@...1...> <4D7DC5E7.8050405@...1887...> Message-ID: <201103161432.55910.lordheavym@...626...> Le lundi 14 mars 2011 08:38:15, Kevin Fishburne a ?crit : > On 03/10/2011 05:09 AM, Beno?t Minisini wrote: > >> I've been experimenting with gb.sdl and found that I could achieve frame > >> rates higher than 380 fps at 1920x1080, including alpha channel. This > >> involves writing directly to the SDL window/surface with a 1920x1080 > >> image loaded from a file, for example: > >> > >> Public Screen As New Window As "Screen" > >> Public SomeImage As Image = Image.Load("someimage.png") > >> > >> Public Sub Main() > >> > >> ' Create screen. > >> With Screen > >> > >> .Width = 1920 > >> .Height = 1080 > >> .Framerate = 1000 > >> .FullScreen = True > >> .Show() > >> > >> End With > >> > >> End > >> > >> Public Sub Screen_Draw() > >> > >> Draw.Image(SomeImage, 0, 0) > >> Draw.Text(Screen.Framerate& " FPS", 0, 0) > >> > >> End > >> > >> While this is awesome, there is a problem if images need to be > >> composited before being written to the SDL surface. For example, if I > >> wanted to do something like this: > >> > >> Water.Draw(WaterRipples, 0, 0) > >> Water.Draw(SkyReflection, 0, 0) > >> Water.DrawAlpha(WaterDepth, 0, 0) > >> > >> and then draw Water to the SDL window, not only is the imlib2 component > >> required (otherwise it states the .Draw method is unknown), it kills the > >> frame rate because the Draw method is done in software (imlib2) and only > >> the writes done directly to the SDL window are hardware accelerated. > >> > >> Attempting to circumvent this I created a second SDL window, hoping I > >> could write the contents of window B to window A. The idea was to create > >> multiple secondary SDL windows, using them as image buffers, then write > >> the buffers as necessary to the main SDL window when its Draw event was > >> called. This didn't work at all and I don't think it's supported. > >> > >> Is there a way to use the Draw method, or an equivalent, so that > >> image-to-image writes can be done entirely in SDL? I've already > >> converted my app to use the SDL component but too much of it currently > >> uses the .Draw and .DrawAlpha methods which bring the framerate to 21 > >> fps at 1280x720. The framerate is only going to get worse from here, as > >> I'm just getting started. > > > > I think (only Laurent can confirm) that SDL uses internally OpenGL to do > > its stuff. So the speed of the SDL component depends on the graphics > > driver (which is a very sensible thing on Linux). > > > > Then, if you want to compose images, I think only doing direct OpenGL > > call will help you, by stacking textured rectangles. But I don't know if > > OpenGL can do the equivalent of Draw.Alpha(). > > That makes sense, as SDL uses OpenGL when available for hardware > acceleration. I think it's basically a wrapper for OpenGL (or DirectX > though that is irrelevant obviously). While DrawAlpha is a blessing, the > main problem is the regular Draw method not being supported by the SDL > component. As I said drawing directly to the SDL surface is super fast > but image-to-image drawing is super slow. I have no issue with DrawAlpha > being maintained in software only, but basic image blitting should > definitely be supported by the SDL (and by proxy OpenGL) component. I > wonder if this has something to do with how the images are loaded into > RAM/VRAM. Without understanding the SDL implementation, it's hard for me > to imagine why blitting an image to the SDL surface is fast but blitting > image A to image B is slow. Maybe there's a good reason for that, but it > seems counter-intuitive to me (story of my life, right?). SDL 1.2.x library itself isn't hardware accelerated under linux. The SDL component use only the SDL library to keep window/images in RAM, but all drawing in the window is done with OpenGL (using texturing), so image are cached (send only one time in the VRAM). If you modify the Image continuously, the Image will need to be load in VRAM before displaying continously also. Currently blitting image to image is slow because done in software, but i've plans to do this with OpenGL (so in VRAM directly) through the Framebuffer Object extension. Perhaps an accelerated DrawAlpha() method should be possible, i'm currently digging the net about such a possibility. ++ From ron at ...1740... Wed Mar 16 17:36:52 2011 From: ron at ...1740... (Ron) Date: Wed, 16 Mar 2011 17:36:52 +0100 Subject: [Gambas-user] Gambas stable bugs in BSet and BChg? Message-ID: <4D80E724.60306@...1740...> When you run this: PUBLIC SUB Main() DIM bByte AS Byte PRINT Bin(bByte, 8) BSet(bByte, 0) PRINT Bin(bByte, 8) BChg(bByte, 0) PRINT Bin(bByte, 8) bByte = bByte OR &H1 PRINT Bin(bByte, 8) PRINT BTst(bByte, 0) END You get this: 00000000 00000000 00000000 00000001 True BSet and BChg seem to do nothing... BTst works Gambas 2.22 Regards, Ron_2nd. From gambas at ...1... Wed Mar 16 18:38:18 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 16 Mar 2011 18:38:18 +0100 Subject: [Gambas-user] Gambas stable bugs in BSet and BChg? In-Reply-To: <4D80E724.60306@...1740...> References: <4D80E724.60306@...1740...> Message-ID: <201103161838.18387.gambas@...1...> > When you run this: > > PUBLIC SUB Main() > > DIM bByte AS Byte > > PRINT Bin(bByte, 8) > > BSet(bByte, 0) > PRINT Bin(bByte, 8) > > BChg(bByte, 0) > PRINT Bin(bByte, 8) > > bByte = bByte OR &H1 > PRINT Bin(bByte, 8) > > PRINT BTst(bByte, 0) > > END > > You get this: > > 00000000 > 00000000 > 00000000 > 00000001 > True > > BSet and BChg seem to do nothing... > BTst works > > Gambas 2.22 > > Regards, > Ron_2nd. > These are functions, not instructions ! -- Beno?t Minisini From gambas at ...1... Wed Mar 16 19:09:52 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 16 Mar 2011 19:09:52 +0100 Subject: [Gambas-user] More debugging bugs In-Reply-To: References: Message-ID: <201103161909.52514.gambas@...1...> > Hi! > See attached project. > > 1 .Click on the button, and try to inspect object inside of StructArr, > you will get "StructArr[0]", "No element" which is false. > > 2. Then, try to inspect D2Arr, you will get "Bad number of dimensions" and > "Out of bounds", which are also false. > > > Gambas 3 rev 3647 @ Ubuntu 10.10 64bit > > Jussi Yep. The debugger does not know how to handle structures and multi-dimensional arrays. :-( -- Beno?t Minisini From gambas at ...1... Wed Mar 16 19:15:16 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 16 Mar 2011 19:15:16 +0100 Subject: [Gambas-user] Signal 11 when opening project In-Reply-To: References: Message-ID: <201103161915.16562.gambas@...1...> > OK, just try to write mkinteger$()... > > Jussi > Fixed in revision #3653. Regards, -- Beno?t Minisini From ron at ...1740... Wed Mar 16 20:28:14 2011 From: ron at ...1740... (Ron) Date: Wed, 16 Mar 2011 20:28:14 +0100 Subject: [Gambas-user] Gambas stable bugs in BSet and BChg? In-Reply-To: <201103161838.18387.gambas@...1...> References: <4D80E724.60306@...1740...> <201103161838.18387.gambas@...1...> Message-ID: AHA! Forget my e-mail ;-) Regards, Ron_2nd. 2011/3/16 Beno?t Minisini : >> When you run this: >> >> PUBLIC SUB Main() >> >> ? ?DIM bByte AS Byte >> >> ? ?PRINT Bin(bByte, 8) >> >> ? ?BSet(bByte, 0) >> ? ?PRINT Bin(bByte, 8) >> >> ? ?BChg(bByte, 0) >> ? ?PRINT Bin(bByte, 8) >> >> ? ?bByte = bByte OR &H1 >> ? ?PRINT Bin(bByte, 8) >> >> ? ?PRINT BTst(bByte, 0) >> >> END >> >> You get this: >> >> 00000000 >> 00000000 >> 00000000 >> 00000001 >> True >> >> BSet and BChg seem to do nothing... >> BTst works >> >> Gambas 2.22 >> >> Regards, >> Ron_2nd. >> > > These are functions, not instructions ! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Mar 16 23:16:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 16 Mar 2011 23:16:53 +0100 Subject: [Gambas-user] More debugging bugs In-Reply-To: <201103161909.52514.gambas@...1...> References: <201103161909.52514.gambas@...1...> Message-ID: <201103162316.53883.gambas@...1...> > > Hi! > > See attached project. > > > > 1 .Click on the button, and try to inspect object inside of StructArr, > > you will get "StructArr[0]", "No element" which is false. > > > > 2. Then, try to inspect D2Arr, you will get "Bad number of dimensions" > > and "Out of bounds", which are also false. > > > > > > Gambas 3 rev 3647 @ Ubuntu 10.10 64bit > > > > Jussi > > Yep. The debugger does not know how to handle structures and > multi-dimensional arrays. :-( OK, fixed in revision #3654! Regards, -- Beno?t Minisini From gambas at ...2524... Thu Mar 17 00:56:05 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 16 Mar 2011 23:56:05 +0000 Subject: [Gambas-user] Issue 49 in gambas: gb3 IDE tab order not preserved In-Reply-To: <1-6813199134517018827-4888750028081543612-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4888750028081543612-gambas=googlecode.com@...2524...> <0-6813199134517018827-4888750028081543612-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4888750028081543612-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 49 by benoit.m... at ...626...: gb3 IDE tab order not preserved http://code.google.com/p/gambas/issues/detail?id=49 It should be fixed in revision #3656. From kevinfishburne at ...1887... Thu Mar 17 05:40:09 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 17 Mar 2011 00:40:09 -0400 Subject: [Gambas-user] translating planar coordinates relative to point's angle In-Reply-To: <4D7FD43C.50000@...1909...> References: <4D7DB222.200@...1887...> <4D7DD5FB.1080904@...1909...> <4D7E8718.7020804@...1887...> <4D7F7FCD.2000209@...1909...> <4D7FC60E.2050107@...1887...> <4D7FD43C.50000@...1909...> Message-ID: <4D8190A9.9090804@...1887...> On 03/15/2011 05:03 PM, Doriano Blengino wrote: > Kevin Fishburne ha scritto: >> Just to be clear on what -should- be happening, here's an example. >> Player is facing up (0 degrees): left stick pushed up moves up, pushed down >> moves down, pushed left moves left, pushed right moves right. >> Player is facing right (90 degrees): left stick pushed up moves right, >> pushed down moves left, pushed left moves up, pushed right moves down. >> > Well, you need to rotate the data from the left joystick around the > player. This is the formula of rotation: > xr := xp*g92cos - yp*g92sin; > yr := xp*g92sin + yp*g92cos; > > Sorry, I took them from an old pascal program, but I explain. > The above code rotates a point (xp; yp) around the origin, by a given > angle "g92", of which g92cos and g92sin are the cosine and sine. The new > rotated point is (xr; yr). Please note that 0 degrees is toward right, > 90? up, 180 left, but a computer screen is flipped up side down (which > is not a rotation but a mirror), so the y coordinates must be mirrored > (choose the opposite sign if a coordinate is relative, or subtract the > coordinate from the maximum Y coordinate if absolute). In addition, you > say that 0? is up, and 90? right, which is both mirrored and rotated in > respect to the canonical trigonometry... this kind of things can drive > me crazy... :-) > > Back to the problem. If I well understand, at every frame you take the > left joystick, and apply its "command" to the player. But the direction > of the movement depends on the orientation of the player. Well, you take > the left joystick data (x and y) and rotate them using the formulas > above, basin on current player orientation. This way, when the left > joystick slides up, the player will always move ahead, along its current > direction. Now I will make an example. > > Suppose your player is at X=0 and Y=0, facing up (0 degrees), and you > move the left joystick "up". You receive y=10 and x=0 from the left > joystick. The above formula gives (cos(0)=1, sin(0)=0): > xr := xp*g92cos - yp*g92sin = 0*1 - 10*0 = 0 > yr := xp*g92sin + yp*g92cos = 0*0 + 10*1 = 10 > > So you add 0 to X and subtract 10 from Y (or add "-yr" to Y). The player > moves up. Note that X is added and Y is subtracted because of the screen. > > Now, suppose that the player instead is facing right (90?). The formula > gives (cos(90)=0, sin(90)=1: > xr := xp*g92cos - yp*g92sin = 0*0 - 10*1 = -10 > yr := xp*g92sin + yp*g92cos = 0*1 + 10*0 = 0 > > So you add -10 to X, and subtract 0 from Y. The player moves left. Why > not to the right? Because if you rotate your head to the left, you turn > 90 degrees, and if you turn your head to the right, you turn -90?. So if > you say that 0? is up and 90? is right, there is something wrong. I hope > that what I write is comprehensible... > > I don't know at which extent your program is already using this strange > coordinates, so I prefer to elaborate no more (a little tired this > night), but by inverting the readings from the joystick, and/or swapping > X and Y from the joystick, or by using "90-angle" instead of "angle" > when calculating cos() and sin(), you should quickly solve without > touching the rest of the program. I presume you should use both > "90-angle" and subtract from Y instead of adding to it, but I am not > sure - sorry. In a few days I will go to visit those URLs you posted, I > am always curious about math and videogames :-) Doriano, you a genius. =) I adjusted my calculations based on your formulas and I'll be damned it if didn't work perfect on the first try. Amazing... Here's the code in gb: ' Move player relative to player's orientation. worldx = worldx + (Interface.stick_leftx / 131072) * Cos(Rad(orientation)) - (Interface.stick_lefty / 131072) * Sin(Rad(orientation)) worldy = worldy + (Interface.stick_leftx / 131072) * Sin(Rad(orientation)) + (Interface.stick_lefty / 131072) * Cos(Rad(orientation)) For others who may read this in the future, the division by 131072 just compresses the movement range to -0.25 to 0.25 since the gamepad stick input goes from -32767 to 32767, so apply your own number as necessary. Of course as soon as my celebration ended I realized I was now deep in the swamp of getting full-screen rotation working. I've made pretty good progress so far and surprisingly am actually learning a little new math (namely how to rotate point A around point B by angle X). Thanks again Doriano. -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Thu Mar 17 06:09:19 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 17 Mar 2011 01:09:19 -0400 Subject: [Gambas-user] gb3 (rev. 3641) and SDL surfaces In-Reply-To: <201103161432.55910.lordheavym@...626...> References: <4D782D8A.4000802@...1887...> <201103101109.11459.gambas@...1...> <4D7DC5E7.8050405@...1887...> <201103161432.55910.lordheavym@...626...> Message-ID: <4D81977F.6030104@...1887...> On 03/16/2011 09:32 AM, Laurent Carlier wrote: > SDL 1.2.x library itself isn't hardware accelerated under linux. The SDL > component use only the SDL library to keep window/images in RAM, but all > drawing in the window is done with OpenGL (using texturing), so image are > cached (send only one time in the VRAM). If you modify the Image continuously, > the Image will need to be load in VRAM before displaying continously also. I understand. SDL is basically an OpenGL wrapper to make it a little easier to use. So it's something like GAMBAS -> SDL -> OpenGL -> Drivers -> Hardware -> Your Eyes. > Currently blitting image to image is slow because done in software, but i've > plans to do this with OpenGL (so in VRAM directly) through the Framebuffer > Object extension. > > Perhaps an accelerated DrawAlpha() method should be possible, i'm currently > digging the net about such a possibility. That is exciting to hear. If the Draw and DrawAlpha methods were done in SDL/OpenGL that would make a world of difference for game programming in gb. Considering that gb is a BASIC dialect, most gb game programmers might not be too excited to learn the complexities of OpenGL, but gb's drawing logic is pretty easy once you know it. In my case it would push the frame rate from 3-4 FPS to well over 20 (at least), which would be amazing. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bugcy013 at ...626... Thu Mar 17 07:36:58 2011 From: bugcy013 at ...626... (Ganesh Kumar) Date: Thu, 17 Mar 2011 06:36:58 +0000 Subject: [Gambas-user] How to play video Message-ID: Hi..Guys I am new to gambas..I want to play a video with in frame , when completed video the next frame will started.. please guide me.. Thanks Ganesh. -- Did I learn something today? If not, I wasted it. From Gambas at ...1950... Thu Mar 17 10:39:55 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 17 Mar 2011 10:39:55 +0100 Subject: [Gambas-user] translating planar coordinates relative to point's angle In-Reply-To: <4D8190A9.9090804@...1887...> References: <4D7DB222.200@...1887...> <4D7DD5FB.1080904@...1909...> <4D7E8718.7020804@...1887...> <4D7F7FCD.2000209@...1909...> <4D7FC60E.2050107@...1887...> <4D7FD43C.50000@...1909...> <4D8190A9.9090804@...1887...> Message-ID: <1300354795.24355.4417.camel@...2479...> Hi Kevin Great to hear you got it working. I was having a discussion with a developer friend of mine who needs to do a lot of "math stuff" in his work and he came up with the suggestion to use affines, just a little after Doriano came up with the working solution (which is actually based on affines). If you want more background (and it looks like you may need it), he suggested you try this link: http://en.wikipedia.org/wiki/Rotation_%28mathematics%29 Regards, Caveat On Thu, 2011-03-17 at 00:40 -0400, Kevin Fishburne wrote: > On 03/15/2011 05:03 PM, Doriano Blengino wrote: > > Kevin Fishburne ha scritto: > >> Just to be clear on what -should- be happening, here's an example. > >> Player is facing up (0 degrees): left stick pushed up moves up, pushed down > >> moves down, pushed left moves left, pushed right moves right. > >> Player is facing right (90 degrees): left stick pushed up moves right, > >> pushed down moves left, pushed left moves up, pushed right moves down. > >> > > Well, you need to rotate the data from the left joystick around the > > player. This is the formula of rotation: > > xr := xp*g92cos - yp*g92sin; > > yr := xp*g92sin + yp*g92cos; > > > > Sorry, I took them from an old pascal program, but I explain. > > The above code rotates a point (xp; yp) around the origin, by a given > > angle "g92", of which g92cos and g92sin are the cosine and sine. The new > > rotated point is (xr; yr). Please note that 0 degrees is toward right, > > 90? up, 180 left, but a computer screen is flipped up side down (which > > is not a rotation but a mirror), so the y coordinates must be mirrored > > (choose the opposite sign if a coordinate is relative, or subtract the > > coordinate from the maximum Y coordinate if absolute). In addition, you > > say that 0? is up, and 90? right, which is both mirrored and rotated in > > respect to the canonical trigonometry... this kind of things can drive > > me crazy... :-) > > > > Back to the problem. If I well understand, at every frame you take the > > left joystick, and apply its "command" to the player. But the direction > > of the movement depends on the orientation of the player. Well, you take > > the left joystick data (x and y) and rotate them using the formulas > > above, basin on current player orientation. This way, when the left > > joystick slides up, the player will always move ahead, along its current > > direction. Now I will make an example. > > > > Suppose your player is at X=0 and Y=0, facing up (0 degrees), and you > > move the left joystick "up". You receive y=10 and x=0 from the left > > joystick. The above formula gives (cos(0)=1, sin(0)=0): > > xr := xp*g92cos - yp*g92sin = 0*1 - 10*0 = 0 > > yr := xp*g92sin + yp*g92cos = 0*0 + 10*1 = 10 > > > > So you add 0 to X and subtract 10 from Y (or add "-yr" to Y). The player > > moves up. Note that X is added and Y is subtracted because of the screen. > > > > Now, suppose that the player instead is facing right (90?). The formulawe came up with > > gives (cos(90)=0, sin(90)=1: > > xr := xp*g92cos - yp*g92sin = 0*0 - 10*1 = -10 > > yr := xp*g92sin + yp*g92cos = 0*1 + 10*0 = 0 > > > > So you add -10 to X, and subtract 0 from Y. The player moves left. Why > > not to the right? Because if you rotate your head to the left, you turn > > 90 degrees, and if you turn your head to the right, you turn -90?. So if > > you say that 0? is up and 90? is right, there is something wrong. I hope > > that what I write is comprehensible... > > > > I don't know at which extent your program is already using this strange > > coordinates, so I prefer to elaborate no more (a little tired this > > night), but by inverting the readings from the joystick, and/or swapping > > X and Y from the joystick, or by using "90-angle" instead of "angle" > > when calculating cos() and sin(), you should quickly solve without > > touching the rest of the program. I presume you should use both > > "90-angle" and subtract from Y instead of adding to it, but I am not > > sure - sorry. In a few days I will go to visit those URLs you posted, I > > am always curious about math and videogames :-) > > Doriano, you a genius. =) I adjusted my calculations based on your > formulas and I'll be damned it if didn't work perfect on the first try. > Amazing... Here's the code in gb: > > ' Move player relative to player's orientation. > worldx = worldx + (Interface.stick_leftx / 131072) * > Cos(Rad(orientation)) - (Interface.stick_lefty / 131072) * > Sin(Rad(orientation)) > worldy = worldy + (Interface.stick_leftx / 131072) * > Sin(Rad(orientation)) + (Interface.stick_lefty / 131072) * > Cos(Rad(orientation)) > > For others who may read this in the future, the division by 131072 just > compresses the movement range to -0.25 to 0.25 since the gamepad stick > input goes from -32767 to 32767, so apply your own number as necessary. > > Of course as soon as my celebration ended I realized I was now deep in > the swamp of getting full-screen rotation working. I've made pretty good > progress so far and surprisingly am actually learning a little new math > (namely how to rotate point A around point B by angle X). > > Thanks again Doriano. > From bill-lancaster at ...2231... Thu Mar 17 16:39:57 2011 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Thu, 17 Mar 2011 08:39:57 -0700 (PDT) Subject: [Gambas-user] Controlling mplayer while embeded... In-Reply-To: <4D765150.6040500@...981...> References: <4D763778.3010007@...981...> <4D765150.6040500@...981...> Message-ID: <31173699.post@...1379...> Stephen - I'm trying the thing. PRINT #$hProcess, " "; 'pause and PRINT #$hProcess, "q"; 'stop works fine. At the moment I'm struggling to 'jump' forward to a specific point in an audio file. Bill Lancaster -- View this message in context: http://old.nabble.com/Controlling-mplayer-while-embeded...-tp31097361p31173699.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Fri Mar 18 00:30:29 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 17 Mar 2011 23:30:29 +0000 Subject: [Gambas-user] Issue 52 in gambas: problem with GTK listbox when index is out of bounds Message-ID: <0-6813199134517018827-4720491510090426319-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 52 by zachsmit... at ...626...: problem with GTK listbox when index is out of bounds http://code.google.com/p/gambas/issues/detail?id=52 1) When you set the listbox index to -1, the first item is selected and you get GTK errors in the console. When you set the index higher then the max. index, then the first item is selected. In QT, no item is selected in either case (as expected). Version: TRUNK Revision: r3649 Operating system: Linux / FreeBSD Distribution: ArchLinux . Architecture: x86_64 GUI component: GTK+ Desktop used: Gnome / KDE ... Attachments: listbox-0.0.2.tar.gz 5.1 KB From gambas at ...2524... Fri Mar 18 00:35:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 17 Mar 2011 23:35:38 +0000 Subject: [Gambas-user] Issue 52 in gambas: problem with GTK listbox when index is out of bounds In-Reply-To: <0-6813199134517018827-4720491510090426319-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4720491510090426319-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4720491510090426319-gambas=googlecode.com@...2524...> Comment #1 on issue 52 by zachsmit... at ...626...: problem with GTK listbox when index is out of bounds http://code.google.com/p/gambas/issues/detail?id=52 This is a workaround to using listbox1.Index = -1 listbox1.Index = 0 listbox1[0].Selected = False From gambas at ...2524... Fri Mar 18 02:04:28 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 18 Mar 2011 01:04:28 +0000 Subject: [Gambas-user] Issue 52 in gambas: problem with GTK listbox when index is out of bounds In-Reply-To: <1-6813199134517018827-4720491510090426319-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4720491510090426319-gambas=googlecode.com@...2524...> <0-6813199134517018827-4720491510090426319-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4720491510090426319-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #2 on issue 52 by benoit.m... at ...626...: problem with GTK listbox when index is out of bounds http://code.google.com/p/gambas/issues/detail?id=52 (No comment was entered for this change.) From gambas at ...2524... Fri Mar 18 03:15:33 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 18 Mar 2011 02:15:33 +0000 Subject: [Gambas-user] Issue 52 in gambas: problem with GTK listbox when index is out of bounds In-Reply-To: <2-6813199134517018827-4720491510090426319-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-4720491510090426319-gambas=googlecode.com@...2524...> <0-6813199134517018827-4720491510090426319-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-4720491510090426319-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 52 by benoit.m... at ...626...: problem with GTK listbox when index is out of bounds http://code.google.com/p/gambas/issues/detail?id=52 Fixed in revision #3659. From gambas at ...2524... Fri Mar 18 04:18:10 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 18 Mar 2011 03:18:10 +0000 Subject: [Gambas-user] Issue 53 in gambas: peculiar button highlighting when hovering over button Message-ID: <0-6813199134517018827-9549388421848447991-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 53 by zachsmit... at ...626...: peculiar button highlighting when hovering over button http://code.google.com/p/gambas/issues/detail?id=53 I've tried to emulate the SpinBox control. It functions the way I'd like except for the button highlighting. Before either button is pressed, the button is highlighted correctly while hovering over the button. After I press the buttons and hover over them, the highlight appears as though they are being pushed. Not sure if this is a bug, window style problem or a programming error. Version: TRUNK Revision: r3649 Operating system: Linux Distribution: ArchLinux Architecture: x86_64 GUI component: QT4 / GTK+ Desktop used: Xfce4 Attachments: button-0.0.3.tar.gz 5.8 KB From gambas at ...1... Sat Mar 19 03:15:42 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Mar 2011 03:15:42 +0100 Subject: [Gambas-user] Removal of gb.db.firebird Message-ID: <201103190315.42195.gambas@...1...> Hi, I'm sorry that I had to remove the gb.db.firebird component in Gambas 3, because the license of some its source files is not actually compatible with the General Public License. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Sat Mar 19 03:25:14 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 18 Mar 2011 22:25:14 -0400 Subject: [Gambas-user] Removal of gb.db.firebird In-Reply-To: <201103190315.42195.gambas@...1...> References: <201103190315.42195.gambas@...1...> Message-ID: <4D84140A.7030600@...1887...> On 03/18/2011 10:15 PM, Beno?t Minisini wrote: > Hi, > > I'm sorry that I had to remove the gb.db.firebird component in Gambas 3, > because the license of some its source files is not actually compatible with > the General Public License. Did you voice your concerns about incompatibility to the maintainers? I have no personal stake in this; I didn't know what it was until a couple of minutes ago, but it seems a shame if their variation on the license makes it incompatible. Their license may affect them adversely in the future if they don't change it. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Sat Mar 19 03:30:42 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Mar 2011 03:30:42 +0100 Subject: [Gambas-user] Removal of gb.db.firebird In-Reply-To: <4D84140A.7030600@...1887...> References: <201103190315.42195.gambas@...1...> <4D84140A.7030600@...1887...> Message-ID: <201103190330.42456.gambas@...1...> > On 03/18/2011 10:15 PM, Beno?t Minisini wrote: > > Hi, > > > > I'm sorry that I had to remove the gb.db.firebird component in Gambas 3, > > because the license of some its source files is not actually compatible > > with the General Public License. > > Did you voice your concerns about incompatibility to the maintainers? I > have no personal stake in this; I didn't know what it was until a couple > of minutes ago, but it seems a shame if their variation on the license > makes it incompatible. Their license may affect them adversely in the > future if they don't change it. I don't know who to contact. I was just warned by a FSF guy about that. So I am removing it now for the release candidate. But I will add it back if the problem is fixed. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Sat Mar 19 03:43:57 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 18 Mar 2011 22:43:57 -0400 Subject: [Gambas-user] Removal of gb.db.firebird In-Reply-To: <201103190330.42456.gambas@...1...> References: <201103190315.42195.gambas@...1...> <4D84140A.7030600@...1887...> <201103190330.42456.gambas@...1...> Message-ID: <4D84186D.6010505@...1887...> On 03/18/2011 10:30 PM, Beno?t Minisini wrote: >> On 03/18/2011 10:15 PM, Beno?t Minisini wrote: >>> Hi, >>> >>> I'm sorry that I had to remove the gb.db.firebird component in Gambas 3, >>> because the license of some its source files is not actually compatible >>> with the General Public License. >> Did you voice your concerns about incompatibility to the maintainers? I >> have no personal stake in this; I didn't know what it was until a couple >> of minutes ago, but it seems a shame if their variation on the license >> makes it incompatible. Their license may affect them adversely in the >> future if they don't change it. > I don't know who to contact. I was just warned by a FSF guy about that. So I > am removing it now for the release candidate. But I will add it back if the > problem is fixed. I just sent their foundation or whatever the following through their web site: --------------------------------------------------------- removal of Firebird component from GAMBAS 3 --------------------------------------------------------- From Kevin Fishburne, email kevinfishburne at ...1887... Ph: 770-853-6271 Beno?t Minisini just announced on the GAMBAS users mailing list that he will be removing the Firebird component from his programming language due to concerns raised by an unknown (by me) associate of the Free Software Foundation. Said associate stated that the Firebird license is incompatible with the GPL, presumably version 2, but that he may add it later if the issue has been corrected. While I'm not suggesting any particular action be taken, I'd like to make you aware of the incident. I've sent a copy of this email to the mailing list so that Beno?t and users of GAMBAS are aware. Please feel free to contact him about this matter in the mailing list gambas at ...52... -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Sat Mar 19 03:49:19 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 18 Mar 2011 22:49:19 -0400 Subject: [Gambas-user] Removal of gb.db.firebird In-Reply-To: <4D84186D.6010505@...1887...> References: <201103190315.42195.gambas@...1...> <4D84140A.7030600@...1887...> <201103190330.42456.gambas@...1...> <4D84186D.6010505@...1887...> Message-ID: <4D8419AF.404@...1887...> On 03/18/2011 10:43 PM, Kevin Fishburne wrote: > On 03/18/2011 10:30 PM, Beno?t Minisini wrote: >>> On 03/18/2011 10:15 PM, Beno?t Minisini wrote: >>>> Hi, >>>> >>>> I'm sorry that I had to remove the gb.db.firebird component in >>>> Gambas 3, >>>> because the license of some its source files is not actually >>>> compatible >>>> with the General Public License. >>> Did you voice your concerns about incompatibility to the maintainers? I >>> have no personal stake in this; I didn't know what it was until a >>> couple >>> of minutes ago, but it seems a shame if their variation on the license >>> makes it incompatible. Their license may affect them adversely in the >>> future if they don't change it. >> I don't know who to contact. I was just warned by a FSF guy about >> that. So I >> am removing it now for the release candidate. But I will add it back >> if the >> problem is fixed. > > I just sent their foundation or whatever the following through their > web site: > > > --------------------------------------------------------- > removal of Firebird component from GAMBAS 3 > --------------------------------------------------------- > From Kevin Fishburne, email kevinfishburne at ...1887... > Ph: 770-853-6271 > > Beno?t Minisini just announced on the GAMBAS users mailing list that > he will be removing the Firebird component from his programming > language due to concerns raised by an unknown (by me) associate of the > Free Software Foundation. Said associate stated that the Firebird > license is incompatible with the GPL, presumably version 2, but that > he may add it later if the issue has been corrected. > > While I'm not suggesting any particular action be taken, I'd like to > make you aware of the incident. I've sent a copy of this email to the > mailing list so that Beno?t and users of GAMBAS are aware. > > Please feel free to contact him about this matter in the mailing list > gambas at ...52... > Wow. So much for that. See attached NDR. Maybe I should send them an email from AOL or something... -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- An embedded message was scrubbed... From: MAILER-DAEMON at ...2557... (Mail Delivery System) Subject: Undelivered Mail Returned to Sender Date: Fri, 18 Mar 2011 22:43:52 -0400 (EDT) Size: 3673 URL: From gambas at ...1... Sat Mar 19 03:59:27 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Mar 2011 03:59:27 +0100 Subject: [Gambas-user] Removal of gb.db.firebird In-Reply-To: <4D8419AF.404@...1887...> References: <201103190315.42195.gambas@...1...> <4D84186D.6010505@...1887...> <4D8419AF.404@...1887...> Message-ID: <201103190359.27580.gambas@...1...> Here is the mail about the license problems in Gambas: ---8<------------------------------------------------------------------- Hello, Thank you for your email. I'm sorry it has taken me a little while to get back to you, but this is a complex program you have here. I went over all of it and checked every single license in it and most all of it is very well done. There are only a few things that need to be changed in order for me to add it to the Directory. This file: gb.db.firebird/src/ibpp/core/iberror.h requires the Interbase Public License 1.0 which is not included in the program and, furthermore, is not compatible with the GPL. In order to accept your program into the Directory you will need to replace this code with something that is compatible with the GPL and include that license. This file: gb.net.smtp/src/libsmtp_connection.c requires the LGPLv2.1. If you include the full text of the LGPL in your program then you will have satisfied the requirements of this particular file. The whole text of the LGPL can be found here. http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html Once the two things listed above are done please email me and let me know where I can find a tarball with the new files. I will be happy to look over your work and let you know if I can upload your project to the Directory. Thanks for supporting free software, Kelly Directory Maintainer ---8<------------------------------------------------------------------- The gb.net.smtp problem has been fixed. But to communicate with a firebird database server, you have to use source files that are all under the InterBase license (not just iberror.h). And that license is not compatible with GPL. -- Beno?t Minisini From kevinfishburne at ...1887... Sat Mar 19 04:22:01 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 18 Mar 2011 23:22:01 -0400 Subject: [Gambas-user] Removal of gb.db.firebird In-Reply-To: <201103190359.27580.gambas@...1...> References: <201103190315.42195.gambas@...1...> <4D84186D.6010505@...1887...> <4D8419AF.404@...1887...> <201103190359.27580.gambas@...1...> Message-ID: <4D842159.3030203@...1887...> On 03/18/2011 10:59 PM, Beno?t Minisini wrote: > Here is the mail about the license problems in Gambas: > > ---8<------------------------------------------------------------------- > > Hello, > Thank you for your email. I'm sorry it has taken me a little while to > get back to you, but this is a complex program you have here. I went > over all of it and checked every single license in it and most all of it > is very well done. There are only a few things that need to be changed > in order for me to add it to the Directory. > > This file: > gb.db.firebird/src/ibpp/core/iberror.h requires the Interbase Public > License 1.0 which is not included in the program and, furthermore, is > not compatible with the GPL. In order to accept your program into the > Directory you will need to replace this code with something that is > compatible with the GPL and include that license. > > This file: > gb.net.smtp/src/libsmtp_connection.c requires the LGPLv2.1. If you > include the full text of the LGPL in your program then you will have > satisfied the requirements of this particular file. The whole text of > the LGPL can be found here. > http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html > > Once the two things listed above are done please email me and let me > know where I can find a tarball with the new files. I will be happy to > look over your work and let you know if I can upload your project to the > Directory. > > Thanks for supporting free software, > Kelly > Directory Maintainer > > ---8<------------------------------------------------------------------- > > The gb.net.smtp problem has been fixed. > > But to communicate with a firebird database server, you have to use source > files that are all under the InterBase license (not just iberror.h). And that > license is not compatible with GPL. Thanks. I couldn't find much information on the differences between the GPL and the Interbase license on Google, other than Wikipedia's FSF-approved licenses article flatly stating it was incompatible, and this: http://www.gnu.org/licenses/license-list.html "This is a free software license that is essentially the same as the Mozilla Public License, Version 1.1. Like the MPL, the IPL has some complex restrictions that make it incompatible with the GNU GPL. That is, a module covered by the GPL and a module covered by the IPL cannot legally be linked together. We urge you not to use the IPL for this reason." http://fedoraproject.org/wiki/Licensing also states it is GPL 2 incompatible. I suppose either the FSF, Firebird or an attorney would need to provide further enlightenment. Regardless, if they want to play hardball with some unusual license, let them reap the rewards. I fully support removing it from GAMBAS. Open source license "flavors" invite a storm of loopholes and move open source farther away from its original intent. There's a real danger in people bastardizing open source licenses while still benefiting from the term "open". (Google comes to mind...) Glad to see GAMBAS has the strength of its convictions. :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Sat Mar 19 15:30:02 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Mar 2011 15:30:02 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package Message-ID: <201103191530.02315.gambas@...1...> Hi, I have uploaded a pre-release of the Gambas 3 source package for the first release candidate. There: http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2/download Please can you try to compile it on your own distribution and tell me if you encounter any problem? And for those who can make binary packages: can you try to make a binary package from this source package and tell me if you get any problem? That way, I hope that packaging problems will be fixed before the final release! Note: the Gambas 3 RC1 package name will be gambas3-2.99.1.tar.bz2. Thanks in advance! Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Mar 19 15:57:44 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 19 Mar 2011 16:57:44 +0200 Subject: [Gambas-user] Removal of gb.db.firebird In-Reply-To: <4D8419AF.404@...1887...> References: <201103190315.42195.gambas@...1...> <4D84140A.7030600@...1887...> <201103190330.42456.gambas@...1...> <4D84186D.6010505@...1887...> <4D8419AF.404@...1887...> Message-ID: If I understand correctly it is ibpp code that has "wrong" license, and Firebird license doesn't matter. So I think we should contact them ( http://www.ibpp.org/ ). Anyone done it yet? Did I understand correctly? Anyone know if it is possible in this case to have double license? Jussi On Sat, Mar 19, 2011 at 04:49, Kevin Fishburne < kevinfishburne at ...1887...> wrote: > On 03/18/2011 10:43 PM, Kevin Fishburne wrote: > >> On 03/18/2011 10:30 PM, Beno?t Minisini wrote: >> >>> On 03/18/2011 10:15 PM, Beno?t Minisini wrote: >>>> >>>>> Hi, >>>>> >>>>> I'm sorry that I had to remove the gb.db.firebird component in Gambas >>>>> 3, >>>>> because the license of some its source files is not actually compatible >>>>> with the General Public License. >>>>> >>>> Did you voice your concerns about incompatibility to the maintainers? I >>>> have no personal stake in this; I didn't know what it was until a couple >>>> of minutes ago, but it seems a shame if their variation on the license >>>> makes it incompatible. Their license may affect them adversely in the >>>> future if they don't change it. >>>> >>> I don't know who to contact. I was just warned by a FSF guy about that. >>> So I >>> am removing it now for the release candidate. But I will add it back if >>> the >>> problem is fixed. >>> >> >> I just sent their foundation or whatever the following through their web >> site: >> >> >> --------------------------------------------------------- >> removal of Firebird component from GAMBAS 3 >> --------------------------------------------------------- >> From Kevin Fishburne, email kevinfishburne at ...1887... >> Ph: 770-853-6271 >> >> Beno?t Minisini just announced on the GAMBAS users mailing list that he >> will be removing the Firebird component from his programming language due to >> concerns raised by an unknown (by me) associate of the Free Software >> Foundation. Said associate stated that the Firebird license is incompatible >> with the GPL, presumably version 2, but that he may add it later if the >> issue has been corrected. >> >> While I'm not suggesting any particular action be taken, I'd like to make >> you aware of the incident. I've sent a copy of this email to the mailing >> list so that Beno?t and users of GAMBAS are aware. >> >> Please feel free to contact him about this matter in the mailing list >> gambas at ...52... >> >> > Wow. So much for that. See attached NDR. Maybe I should send them an email > from AOL or something... > > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Sat Mar 19 16:03:02 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 19 Mar 2011 17:03:02 +0200 Subject: [Gambas-user] Removal of gb.db.firebird In-Reply-To: References: <201103190315.42195.gambas@...1...> <4D84140A.7030600@...1887...> <201103190330.42456.gambas@...1...> <4D84186D.6010505@...1887...> <4D8419AF.404@...1887...> Message-ID: Hmmm.... mixed up. There is the text "The content of this file was generated by the Firebird project". So they cannot do anything about it. And apparently IBPP license is OK. Jussi On Sat, Mar 19, 2011 at 16:57, Jussi Lahtinen wrote: > If I understand correctly it is ibpp code that has "wrong" license, and > Firebird license doesn't matter. > So I think we should contact them ( http://www.ibpp.org/ ). > Anyone done it yet? Did I understand correctly? > > Anyone know if it is possible in this case to have double license? > > Jussi > > > > On Sat, Mar 19, 2011 at 04:49, Kevin Fishburne < > kevinfishburne at ...1887...> wrote: > >> On 03/18/2011 10:43 PM, Kevin Fishburne wrote: >> >>> On 03/18/2011 10:30 PM, Beno?t Minisini wrote: >>> >>>> On 03/18/2011 10:15 PM, Beno?t Minisini wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I'm sorry that I had to remove the gb.db.firebird component in Gambas >>>>>> 3, >>>>>> because the license of some its source files is not actually >>>>>> compatible >>>>>> with the General Public License. >>>>>> >>>>> Did you voice your concerns about incompatibility to the maintainers? I >>>>> have no personal stake in this; I didn't know what it was until a >>>>> couple >>>>> of minutes ago, but it seems a shame if their variation on the license >>>>> makes it incompatible. Their license may affect them adversely in the >>>>> future if they don't change it. >>>>> >>>> I don't know who to contact. I was just warned by a FSF guy about that. >>>> So I >>>> am removing it now for the release candidate. But I will add it back if >>>> the >>>> problem is fixed. >>>> >>> >>> I just sent their foundation or whatever the following through their web >>> site: >>> >>> >>> --------------------------------------------------------- >>> removal of Firebird component from GAMBAS 3 >>> --------------------------------------------------------- >>> From Kevin Fishburne, email kevinfishburne at ...1887... >>> Ph: 770-853-6271 >>> >>> Beno?t Minisini just announced on the GAMBAS users mailing list that he >>> will be removing the Firebird component from his programming language due to >>> concerns raised by an unknown (by me) associate of the Free Software >>> Foundation. Said associate stated that the Firebird license is incompatible >>> with the GPL, presumably version 2, but that he may add it later if the >>> issue has been corrected. >>> >>> While I'm not suggesting any particular action be taken, I'd like to make >>> you aware of the incident. I've sent a copy of this email to the mailing >>> list so that Beno?t and users of GAMBAS are aware. >>> >>> Please feel free to contact him about this matter in the mailing list >>> gambas at ...52... >>> >>> >> Wow. So much for that. See attached NDR. Maybe I should send them an email >> from AOL or something... >> >> >> -- >> Kevin Fishburne >> Eight Virtues >> www: http://sales.eightvirtues.com >> e-mail: sales at ...1887... >> phone: (770) 853-6271 >> >> >> >> ------------------------------------------------------------------------------ >> Colocation vs. Managed Hosting >> A question and answer guide to determining the best fit >> for your organization - today and in the future. >> http://p.sf.net/sfu/internap-sfd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > From gambas at ...1... Sat Mar 19 16:18:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Mar 2011 16:18:55 +0100 Subject: [Gambas-user] Redesigning the web site for Gambas 3 Message-ID: <201103191618.55874.gambas@...1...> Hi, I want to revamp the Gambas web site look for Gambas 3. I want to present the same informations to the user, but in a simpler manner. The more useful the link, the more visible (for example a big download button on the front page). I'd like to some propositions for a new look from you, Gambas users. The internal design of the web site will not change: it is a Gambas project that generates the web pages in different languages. Most of the text is located in the wiki now. If possible, everything could be located in the wiki (except the main page), the look being changed through a specific style sheet. It must work at least with Firefox 3.6 and Chrome. I don't care with Internet Explorer <= 8. So if you have any suggestions for the new look (a link to another web site, even some HTML/CSS files), do not hesitate! Best regards, -- Beno?t Minisini From lordheavym at ...626... Sat Mar 19 16:47:52 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 19 Mar 2011 16:47:52 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103191530.02315.gambas@...1...> References: <201103191530.02315.gambas@...1...> Message-ID: <201103191647.53164.lordheavym@...626...> Le samedi 19 mars 2011 15:30:02, Beno?t Minisini a ?crit : > Hi, > > I have uploaded a pre-release of the Gambas 3 source package for the first > release candidate. There: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2 > /download > > Please can you try to compile it on your own distribution and tell me if > you encounter any problem? > > And for those who can make binary packages: can you try to make a binary > package from this source package and tell me if you get any problem? That > way, I hope that packaging problems will be fixed before the final > release! > > Note: the Gambas 3 RC1 package name will be gambas3-2.99.1.tar.bz2. > > Thanks in advance! > > Regards, Ok, i've started the work on a package for Archlinux. ++ From lordheavym at ...626... Sat Mar 19 16:53:59 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 19 Mar 2011 16:53:59 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103191530.02315.gambas@...1...> References: <201103191530.02315.gambas@...1...> Message-ID: <201103191653.59154.lordheavym@...626...> Le samedi 19 mars 2011 15:30:02, Beno?t Minisini a ?crit : > Hi, > > I have uploaded a pre-release of the Gambas 3 source package for the first > release candidate. There: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2 > /download > > Please can you try to compile it on your own distribution and tell me if > you encounter any problem? > > And for those who can make binary packages: can you try to make a binary > package from this source package and tell me if you get any problem? That > way, I hope that packaging problems will be fixed before the final > release! > > Note: the Gambas 3 RC1 package name will be gambas3-2.99.1.tar.bz2. > > Thanks in advance! > > Regards, You forgot to generate the configure script. ++ From linuxos at ...1896... Sat Mar 19 17:43:52 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Sat, 19 Mar 2011 17:43:52 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103191653.59154.lordheavym@...626...> References: <201103191530.02315.gambas@...1...> <201103191653.59154.lordheavym@...626...> Message-ID: <88C82256-E868-464B-BA2F-2E3F8C974A0B@...1896...> Just use this command to generate it: ./reconf-all Olivier Cruilles Mail: linuxos at ...1896... Le 19 mars 2011 ? 16:53, Laurent Carlier a ?crit : > Le samedi 19 mars 2011 15:30:02, Beno?t Minisini a ?crit : >> Hi, >> >> I have uploaded a pre-release of the Gambas 3 source package for the first >> release candidate. There: >> >> http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2 >> /download >> >> Please can you try to compile it on your own distribution and tell me if >> you encounter any problem? >> >> And for those who can make binary packages: can you try to make a binary >> package from this source package and tell me if you get any problem? That >> way, I hope that packaging problems will be fixed before the final >> release! >> >> Note: the Gambas 3 RC1 package name will be gambas3-2.99.1.tar.bz2. >> >> Thanks in advance! >> >> Regards, > > You forgot to generate the configure script. > > ++ > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From lordheavym at ...626... Sat Mar 19 18:05:23 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 19 Mar 2011 18:05:23 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103191530.02315.gambas@...1...> References: <201103191530.02315.gambas@...1...> Message-ID: <201103191805.23151.lordheavym@...626...> Le samedi 19 mars 2011 15:30:02, Beno?t Minisini a ?crit : > Hi, > > I have uploaded a pre-release of the Gambas 3 source package for the first > release candidate. There: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2 > /download > > Please can you try to compile it on your own distribution and tell me if > you encounter any problem? > > And for those who can make binary packages: can you try to make a binary > package from this source package and tell me if you get any problem? That > way, I hope that packaging problems will be fixed before the final > release! > > Note: the Gambas 3 RC1 package name will be gambas3-2.99.1.tar.bz2. > > Thanks in advance! > > Regards, Something seem wrong with the package, no problems with the svn trunk: [lordh at ...2346... gambas3-2.99.0]$ LANG=C make make all-recursive make[1]: Entering directory `/home/lordh/gambas3-2.99.0' Making all in main make[2]: Entering directory `/home/lordh/gambas3-2.99.0/main' make all-recursive make[3]: Entering directory `/home/lordh/gambas3-2.99.0/main' Making all in gbc make[4]: Entering directory `/home/lordh/gambas3-2.99.0/main/gbc' gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gb_error.o -MD -MP -MF .deps/gbc3-gb_error.Tpo -c -o gbc3-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c mv -f .deps/gbc3-gb_error.Tpo .deps/gbc3-gb_error.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gb_alloc.o -MD -MP -MF .deps/gbc3-gb_alloc.Tpo -c -o gbc3-gb_alloc.o `test -f 'gb_alloc.c' || echo './'`gb_alloc.c mv -f .deps/gbc3-gb_alloc.Tpo .deps/gbc3-gb_alloc.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gb_array.o -MD -MP -MF .deps/gbc3-gb_array.Tpo -c -o gbc3-gb_array.o `test -f 'gb_array.c' || echo './'`gb_array.c mv -f .deps/gbc3-gb_array.Tpo .deps/gbc3-gb_array.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_read.o -MD -MP -MF .deps/gbc3-gbc_read.Tpo -c -o gbc3-gbc_read.o `test -f 'gbc_read.c' || echo './'`gbc_read.c mv -f .deps/gbc3-gbc_read.Tpo .deps/gbc3-gbc_read.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_preprocess.o -MD -MP -MF .deps/gbc3-gbc_preprocess.Tpo -c -o gbc3- gbc_preprocess.o `test -f 'gbc_preprocess.c' || echo './'`gbc_preprocess.c mv -f .deps/gbc3-gbc_preprocess.Tpo .deps/gbc3-gbc_preprocess.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_reserved.o -MD -MP -MF .deps/gbc3-gbc_reserved.Tpo -c -o gbc3- gbc_reserved.o `test -f 'gbc_reserved.c' || echo './'`gbc_reserved.c mv -f .deps/gbc3-gbc_reserved.Tpo .deps/gbc3-gbc_reserved.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_compile.o -MD -MP -MF .deps/gbc3-gbc_compile.Tpo -c -o gbc3- gbc_compile.o `test -f 'gbc_compile.c' || echo './'`gbc_compile.c mv -f .deps/gbc3-gbc_compile.Tpo .deps/gbc3-gbc_compile.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_type.o -MD -MP -MF .deps/gbc3-gbc_type.Tpo -c -o gbc3-gbc_type.o `test -f 'gbc_type.c' || echo './'`gbc_type.c mv -f .deps/gbc3-gbc_type.Tpo .deps/gbc3-gbc_type.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gb_buffer.o -MD -MP -MF .deps/gbc3-gb_buffer.Tpo -c -o gbc3-gb_buffer.o `test -f 'gb_buffer.c' || echo './'`gb_buffer.c mv -f .deps/gbc3-gb_buffer.Tpo .deps/gbc3-gb_buffer.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_dump.o -MD -MP -MF .deps/gbc3-gbc_dump.Tpo -c -o gbc3-gbc_dump.o `test -f 'gbc_dump.c' || echo './'`gbc_dump.c mv -f .deps/gbc3-gbc_dump.Tpo .deps/gbc3-gbc_dump.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_class.o -MD -MP -MF .deps/gbc3-gbc_class.Tpo -c -o gbc3-gbc_class.o `test -f 'gbc_class.c' || echo './'`gbc_class.c mv -f .deps/gbc3-gbc_class.Tpo .deps/gbc3-gbc_class.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_code.o -MD -MP -MF .deps/gbc3-gbc_code.Tpo -c -o gbc3-gbc_code.o `test -f 'gbc_code.c' || echo './'`gbc_code.c mv -f .deps/gbc3-gbc_code.Tpo .deps/gbc3-gbc_code.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_trans.o -MD -MP -MF .deps/gbc3-gbc_trans.Tpo -c -o gbc3-gbc_trans.o `test -f 'gbc_trans.c' || echo './'`gbc_trans.c mv -f .deps/gbc3-gbc_trans.Tpo .deps/gbc3-gbc_trans.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_header.o -MD -MP -MF .deps/gbc3-gbc_header.Tpo -c -o gbc3- gbc_header.o `test -f 'gbc_header.c' || echo './'`gbc_header.c mv -f .deps/gbc3-gbc_header.Tpo .deps/gbc3-gbc_header.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_trans_code.o -MD -MP -MF .deps/gbc3-gbc_trans_code.Tpo -c -o gbc3- gbc_trans_code.o `test -f 'gbc_trans_code.c' || echo './'`gbc_trans_code.c mv -f .deps/gbc3-gbc_trans_code.Tpo .deps/gbc3-gbc_trans_code.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_trans_expr.o -MD -MP -MF .deps/gbc3-gbc_trans_expr.Tpo -c -o gbc3- gbc_trans_expr.o `test -f 'gbc_trans_expr.c' || echo './'`gbc_trans_expr.c mv -f .deps/gbc3-gbc_trans_expr.Tpo .deps/gbc3-gbc_trans_expr.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_trans_tree.o -MD -MP -MF .deps/gbc3-gbc_trans_tree.Tpo -c -o gbc3- gbc_trans_tree.o `test -f 'gbc_trans_tree.c' || echo './'`gbc_trans_tree.c mv -f .deps/gbc3-gbc_trans_tree.Tpo .deps/gbc3-gbc_trans_tree.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_trans_ctrl.o -MD -MP -MF .deps/gbc3-gbc_trans_ctrl.Tpo -c -o gbc3- gbc_trans_ctrl.o `test -f 'gbc_trans_ctrl.c' || echo './'`gbc_trans_ctrl.c mv -f .deps/gbc3-gbc_trans_ctrl.Tpo .deps/gbc3-gbc_trans_ctrl.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_trans_subr.o -MD -MP -MF .deps/gbc3-gbc_trans_subr.Tpo -c -o gbc3- gbc_trans_subr.o `test -f 'gbc_trans_subr.c' || echo './'`gbc_trans_subr.c mv -f .deps/gbc3-gbc_trans_subr.Tpo .deps/gbc3-gbc_trans_subr.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_output.o -MD -MP -MF .deps/gbc3-gbc_output.Tpo -c -o gbc3- gbc_output.o `test -f 'gbc_output.c' || echo './'`gbc_output.c mv -f .deps/gbc3-gbc_output.Tpo .deps/gbc3-gbc_output.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_pcode.o -MD -MP -MF .deps/gbc3-gbc_pcode.Tpo -c -o gbc3-gbc_pcode.o `test -f 'gbc_pcode.c' || echo './'`gbc_pcode.c mv -f .deps/gbc3-gbc_pcode.Tpo .deps/gbc3-gbc_pcode.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gb_file.o -MD -MP -MF .deps/gbc3-gb_file.Tpo -c -o gbc3-gb_file.o `test -f 'gb_file.c' || echo './'`gb_file.c mv -f .deps/gbc3-gb_file.Tpo .deps/gbc3-gb_file.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_form.o -MD -MP -MF .deps/gbc3-gbc_form.Tpo -c -o gbc3-gbc_form.o `test -f 'gbc_form.c' || echo './'`gbc_form.c mv -f .deps/gbc3-gbc_form.Tpo .deps/gbc3-gbc_form.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gb_str.o -MD -MP -MF .deps/gbc3-gb_str.Tpo -c -o gbc3-gb_str.o `test -f 'gb_str.c' || echo './'`gb_str.c mv -f .deps/gbc3-gb_str.Tpo .deps/gbc3-gb_str.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_chown.o -MD -MP -MF .deps/gbc3-gbc_chown.Tpo -c -o gbc3-gbc_chown.o `test -f 'gbc_chown.c' || echo './'`gbc_chown.c mv -f .deps/gbc3-gbc_chown.Tpo .deps/gbc3-gbc_chown.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gb_common.o -MD -MP -MF .deps/gbc3-gb_common.Tpo -c -o gbc3-gb_common.o `test -f 'gb_common.c' || echo './'`gb_common.c mv -f .deps/gbc3-gb_common.Tpo .deps/gbc3-gb_common.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc_arch.o -MD -MP -MF .deps/gbc3-gbc_arch.Tpo -c -o gbc3-gbc_arch.o `test -f 'gbc_arch.c' || echo './'`gbc_arch.c mv -f .deps/gbc3-gbc_arch.Tpo .deps/gbc3-gbc_arch.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gb_table.o -MD -MP -MF .deps/gbc3-gb_table.Tpo -c -o gbc3-gb_table.o `test -f 'gb_table.c' || echo './'`gb_table.c mv -f .deps/gbc3-gb_table.Tpo .deps/gbc3-gb_table.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc3-gbc.o -MD -MP -MF .deps/gbc3-gbc.Tpo -c -o gbc3-gbc.o `test -f 'gbc.c' || echo './'`gbc.c mv -f .deps/gbc3-gbc.Tpo .deps/gbc3-gbc.Po /bin/sh ../libtool --tag=CC --mode=link gcc - DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbc3 gbc3-gb_error.o gbc3- gb_alloc.o gbc3-gb_array.o gbc3-gbc_read.o gbc3-gbc_preprocess.o gbc3- gbc_reserved.o gbc3-gbc_compile.o gbc3-gbc_type.o gbc3-gb_buffer.o gbc3- gbc_dump.o gbc3-gbc_class.o gbc3-gbc_code.o gbc3-gbc_trans.o gbc3-gbc_header.o gbc3-gbc_trans_code.o gbc3-gbc_trans_expr.o gbc3-gbc_trans_tree.o gbc3- gbc_trans_ctrl.o gbc3-gbc_trans_subr.o gbc3-gbc_output.o gbc3-gbc_pcode.o gbc3-gb_file.o gbc3-gbc_form.o gbc3-gb_str.o gbc3-gbc_chown.o gbc3-gb_common.o gbc3-gbc_arch.o gbc3-gb_table.o gbc3-gbc.o -lm gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba3-gb_error.o -MD -MP -MF .deps/gba3-gb_error.Tpo -c -o gba3-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c mv -f .deps/gba3-gb_error.Tpo .deps/gba3-gb_error.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba3-gb_alloc.o -MD -MP -MF .deps/gba3-gb_alloc.Tpo -c -o gba3-gb_alloc.o `test -f 'gb_alloc.c' || echo './'`gb_alloc.c mv -f .deps/gba3-gb_alloc.Tpo .deps/gba3-gb_alloc.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba3-gb_array.o -MD -MP -MF .deps/gba3-gb_array.Tpo -c -o gba3-gb_array.o `test -f 'gb_array.c' || echo './'`gb_array.c mv -f .deps/gba3-gb_array.Tpo .deps/gba3-gb_array.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba3-gb_table.o -MD -MP -MF .deps/gba3-gb_table.Tpo -c -o gba3-gb_table.o `test -f 'gb_table.c' || echo './'`gb_table.c mv -f .deps/gba3-gb_table.Tpo .deps/gba3-gb_table.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba3-gb_str.o -MD -MP -MF .deps/gba3-gb_str.Tpo -c -o gba3-gb_str.o `test -f 'gb_str.c' || echo './'`gb_str.c mv -f .deps/gba3-gb_str.Tpo .deps/gba3-gb_str.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba3-gb_file.o -MD -MP -MF .deps/gba3-gb_file.Tpo -c -o gba3-gb_file.o `test -f 'gb_file.c' || echo './'`gb_file.c mv -f .deps/gba3-gb_file.Tpo .deps/gba3-gb_file.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba3-gbc_archive.o -MD -MP -MF .deps/gba3-gbc_archive.Tpo -c -o gba3- gbc_archive.o `test -f 'gbc_archive.c' || echo './'`gbc_archive.c mv -f .deps/gba3-gbc_archive.Tpo .deps/gba3-gbc_archive.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba3-gbc_chown.o -MD -MP -MF .deps/gba3-gbc_chown.Tpo -c -o gba3-gbc_chown.o `test -f 'gbc_chown.c' || echo './'`gbc_chown.c mv -f .deps/gba3-gbc_chown.Tpo .deps/gba3-gbc_chown.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba3-gb_common.o -MD -MP -MF .deps/gba3-gb_common.Tpo -c -o gba3-gb_common.o `test -f 'gb_common.c' || echo './'`gb_common.c mv -f .deps/gba3-gb_common.Tpo .deps/gba3-gb_common.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba3-gbc_arch.o -MD -MP -MF .deps/gba3-gbc_arch.Tpo -c -o gba3-gbc_arch.o `test -f 'gbc_arch.c' || echo './'`gbc_arch.c mv -f .deps/gba3-gbc_arch.Tpo .deps/gba3-gbc_arch.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba3-gba.o -MD -MP -MF .deps/gba3-gba.Tpo -c -o gba3-gba.o `test -f 'gba.c' || echo './'`gba.c mv -f .deps/gba3-gba.Tpo .deps/gba3-gba.Po /bin/sh ../libtool --tag=CC --mode=link gcc - DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -o gba3 gba3-gb_error.o gba3- gb_alloc.o gba3-gb_array.o gba3-gb_table.o gba3-gb_str.o gba3-gb_file.o gba3- gbc_archive.o gba3-gbc_chown.o gba3-gb_common.o gba3-gbc_arch.o gba3-gba.o gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi3-gb_error.o -MD -MP -MF .deps/gbi3-gb_error.Tpo -c -o gbi3-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c mv -f .deps/gbi3-gb_error.Tpo .deps/gbi3-gb_error.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi3-gb_alloc.o -MD -MP -MF .deps/gbi3-gb_alloc.Tpo -c -o gbi3-gb_alloc.o `test -f 'gb_alloc.c' || echo './'`gb_alloc.c mv -f .deps/gbi3-gb_alloc.Tpo .deps/gbi3-gb_alloc.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi3-gb_array.o -MD -MP -MF .deps/gbi3-gb_array.Tpo -c -o gbi3-gb_array.o `test -f 'gb_array.c' || echo './'`gb_array.c mv -f .deps/gbi3-gb_array.Tpo .deps/gbi3-gb_array.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi3-gb_str.o -MD -MP -MF .deps/gbi3-gb_str.Tpo -c -o gbi3-gb_str.o `test -f 'gb_str.c' || echo './'`gb_str.c mv -f .deps/gbi3-gb_str.Tpo .deps/gbi3-gb_str.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi3-gb_file.o -MD -MP -MF .deps/gbi3-gb_file.Tpo -c -o gbi3-gb_file.o `test -f 'gb_file.c' || echo './'`gb_file.c mv -f .deps/gbi3-gb_file.Tpo .deps/gbi3-gb_file.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi3-gb_table.o -MD -MP -MF .deps/gbi3-gb_table.Tpo -c -o gbi3-gb_table.o `test -f 'gb_table.c' || echo './'`gb_table.c mv -f .deps/gbi3-gb_table.Tpo .deps/gbi3-gb_table.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi3-gb_common.o -MD -MP -MF .deps/gbi3-gb_common.Tpo -c -o gbi3-gb_common.o `test -f 'gb_common.c' || echo './'`gb_common.c mv -f .deps/gbi3-gb_common.Tpo .deps/gbi3-gb_common.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi3-gbc_arch.o -MD -MP -MF .deps/gbi3-gbc_arch.Tpo -c -o gbi3-gbc_arch.o `test -f 'gbc_arch.c' || echo './'`gbc_arch.c mv -f .deps/gbi3-gbc_arch.Tpo .deps/gbi3-gbc_arch.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi3-gbi.o -MD -MP -MF .deps/gbi3-gbi.Tpo -c -o gbi3-gbi.o `test -f 'gbi.c' || echo './'`gbi.c mv -f .deps/gbi3-gbi.Tpo .deps/gbi3-gbi.Po /bin/sh ../libtool --tag=CC --mode=link gcc - DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbi3 gbi3-gb_error.o gbi3- gb_alloc.o gbi3-gb_array.o gbi3-gb_str.o gbi3-gb_file.o gbi3-gb_table.o gbi3- gb_common.o gbi3-gbc_arch.o gbi3-gbi.o -ldl gcc -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -Wno-unused-value -fsigned-char - fvisibility=hidden -g -Os -I../share -MT gbc_reserved_make.o -MD -MP -MF .deps/gbc_reserved_make.Tpo -c -o gbc_reserved_make.o gbc_reserved_make.c mv -f .deps/gbc_reserved_make.Tpo .deps/gbc_reserved_make.Po /bin/sh ../libtool --tag=CC --mode=link gcc -pipe -Wall -Wno-unused-value - fsigned-char -fvisibility=hidden -g -Os -I../share -o gbcm3 gbc_reserved_make.o make[4]: Leaving directory `/home/lordh/gambas3-2.99.0/main/gbc' Making all in gbx make[4]: Entering directory `/home/lordh/gambas3-2.99.0/main/gbx' gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -O3 -I../share -MT libgbx_a-gb_error.o -MD -MP -MF .deps/libgbx_a-gb_error.Tpo -c -o libgbx_a- gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c mv -f .deps/libgbx_a-gb_error.Tpo .deps/libgbx_a-gb_error.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -O3 -I../share -MT libgbx_a-gbx_exec_loop.o -MD -MP -MF .deps/libgbx_a-gbx_exec_loop.Tpo -c -o libgbx_a-gbx_exec_loop.o `test -f 'gbx_exec_loop.c' || echo './'`gbx_exec_loop.c mv -f .deps/libgbx_a-gbx_exec_loop.Tpo .deps/libgbx_a-gbx_exec_loop.Po rm -f libgbx.a ar cru libgbx.a libgbx_a-gb_error.o libgbx_a-gbx_exec_loop.o ranlib libgbx.a /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -I/usr/lib/libffi-3.0.9/include -O0 -MT gb_la- gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c -o gb_la- gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c mv -f .deps/gb_la-gbx_c_class.Tpo .deps/gb_la-gbx_c_class.Plo mv: cannot stat `.deps/gb_la-gbx_c_class.Tpo': No such file or directory make[4]: *** [gb_la-gbx_c_class.lo] Error 1 make[4]: Leaving directory `/home/lordh/gambas3-2.99.0/main/gbx' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/lordh/gambas3-2.99.0/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/lordh/gambas3-2.99.0/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/lordh/gambas3-2.99.0' make: *** [all] Error 2 From gambas at ...1... Sat Mar 19 18:38:11 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Mar 2011 18:38:11 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103191653.59154.lordheavym@...626...> References: <201103191530.02315.gambas@...1...> <201103191653.59154.lordheavym@...626...> Message-ID: <201103191838.11955.gambas@...1...> > Le samedi 19 mars 2011 15:30:02, Beno?t Minisini a ?crit : > > Hi, > > > > I have uploaded a pre-release of the Gambas 3 source package for the > > first release candidate. There: > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.b > > z2 /download > > > > Please can you try to compile it on your own distribution and tell me if > > you encounter any problem? > > > > And for those who can make binary packages: can you try to make a binary > > package from this source package and tell me if you get any problem? That > > way, I hope that packaging problems will be fixed before the final > > release! > > > > Note: the Gambas 3 RC1 package name will be gambas3-2.99.1.tar.bz2. > > > > Thanks in advance! > > > > Regards, > > You forgot to generate the configure script. > > ++ > I have removed all generated configure scripts from the package: its size is 9Mb only now, so it's worth it. To generate them, just do a "./reconf". Then you can do a "./configure -C". Regards, -- Beno?t Minisini From gambas at ...1... Sat Mar 19 18:39:35 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Mar 2011 18:39:35 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103191838.11955.gambas@...1...> References: <201103191530.02315.gambas@...1...> <201103191653.59154.lordheavym@...626...> <201103191838.11955.gambas@...1...> Message-ID: <201103191839.35043.gambas@...1...> > > Le samedi 19 mars 2011 15:30:02, Beno?t Minisini a ?crit : > > > Hi, > > > > > > I have uploaded a pre-release of the Gambas 3 source package for the > > > first release candidate. There: > > > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar > > > .b z2 /download > > > > > > Please can you try to compile it on your own distribution and tell me > > > if you encounter any problem? > > > > > > And for those who can make binary packages: can you try to make a > > > binary package from this source package and tell me if you get any > > > problem? That way, I hope that packaging problems will be fixed before > > > the final release! > > > > > > Note: the Gambas 3 RC1 package name will be gambas3-2.99.1.tar.bz2. > > > > > > Thanks in advance! > > > > > > Regards, > > > > You forgot to generate the configure script. > > > > ++ > > I have removed all generated configure scripts from the package: its size > is 9Mb only now, so it's worth it. > > To generate them, just do a "./reconf". Then you can do a "./configure -C". > > Regards, Actually a "./reconf-all" may be necessary. -- Beno?t Minisini From gambas at ...1... Sat Mar 19 18:39:47 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Mar 2011 18:39:47 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103191805.23151.lordheavym@...626...> References: <201103191530.02315.gambas@...1...> <201103191805.23151.lordheavym@...626...> Message-ID: <201103191839.47706.gambas@...1...> > Le samedi 19 mars 2011 15:30:02, Beno?t Minisini a ?crit : > > Hi, > > > > I have uploaded a pre-release of the Gambas 3 source package for the > > first release candidate. There: > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.b > > z2 /download > > > > Please can you try to compile it on your own distribution and tell me if > > you encounter any problem? > > > > And for those who can make binary packages: can you try to make a binary > > package from this source package and tell me if you get any problem? That > > way, I hope that packaging problems will be fixed before the final > > release! > > > > Note: the Gambas 3 RC1 package name will be gambas3-2.99.1.tar.bz2. > > > > Thanks in advance! > > > > Regards, > > Something seem wrong with the package, no problems with the svn trunk: > > [lordh at ...2346... gambas3-2.99.0]$ LANG=C make > make all-recursive > make[1]: Entering directory `/home/lordh/gambas3-2.99.0' > Making all in main > make[2]: Entering directory `/home/lordh/gambas3-2.99.0/main' > make all-recursive > make[3]: Entering directory `/home/lordh/gambas3-2.99.0/main' > Making all in gbc > make[4]: Entering directory `/home/lordh/gambas3-2.99.0/main/gbc' > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gb_error.o -MD -MP -MF .deps/gbc3-gb_error.Tpo -c -o > gbc3-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c > mv -f .deps/gbc3-gb_error.Tpo .deps/gbc3-gb_error.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gb_alloc.o -MD -MP -MF .deps/gbc3-gb_alloc.Tpo -c -o > gbc3-gb_alloc.o `test -f 'gb_alloc.c' || echo './'`gb_alloc.c > mv -f .deps/gbc3-gb_alloc.Tpo .deps/gbc3-gb_alloc.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gb_array.o -MD -MP -MF .deps/gbc3-gb_array.Tpo -c -o > gbc3-gb_array.o `test -f 'gb_array.c' || echo './'`gb_array.c > mv -f .deps/gbc3-gb_array.Tpo .deps/gbc3-gb_array.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_read.o -MD -MP -MF .deps/gbc3-gbc_read.Tpo -c -o > gbc3-gbc_read.o `test -f 'gbc_read.c' || echo './'`gbc_read.c > mv -f .deps/gbc3-gbc_read.Tpo .deps/gbc3-gbc_read.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_preprocess.o -MD -MP -MF > .deps/gbc3-gbc_preprocess.Tpo -c -o gbc3- gbc_preprocess.o `test -f > 'gbc_preprocess.c' || echo './'`gbc_preprocess.c mv -f > .deps/gbc3-gbc_preprocess.Tpo .deps/gbc3-gbc_preprocess.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_reserved.o -MD -MP -MF > .deps/gbc3-gbc_reserved.Tpo -c -o gbc3- gbc_reserved.o `test -f > 'gbc_reserved.c' || echo './'`gbc_reserved.c mv -f > .deps/gbc3-gbc_reserved.Tpo .deps/gbc3-gbc_reserved.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_compile.o -MD -MP -MF .deps/gbc3-gbc_compile.Tpo > -c -o gbc3- gbc_compile.o `test -f 'gbc_compile.c' || echo > './'`gbc_compile.c > mv -f .deps/gbc3-gbc_compile.Tpo .deps/gbc3-gbc_compile.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_type.o -MD -MP -MF .deps/gbc3-gbc_type.Tpo -c -o > gbc3-gbc_type.o `test -f 'gbc_type.c' || echo './'`gbc_type.c > mv -f .deps/gbc3-gbc_type.Tpo .deps/gbc3-gbc_type.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gb_buffer.o -MD -MP -MF .deps/gbc3-gb_buffer.Tpo -c > -o gbc3-gb_buffer.o `test -f 'gb_buffer.c' || echo './'`gb_buffer.c > mv -f .deps/gbc3-gb_buffer.Tpo .deps/gbc3-gb_buffer.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_dump.o -MD -MP -MF .deps/gbc3-gbc_dump.Tpo -c -o > gbc3-gbc_dump.o `test -f 'gbc_dump.c' || echo './'`gbc_dump.c > mv -f .deps/gbc3-gbc_dump.Tpo .deps/gbc3-gbc_dump.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_class.o -MD -MP -MF .deps/gbc3-gbc_class.Tpo -c > -o gbc3-gbc_class.o `test -f 'gbc_class.c' || echo './'`gbc_class.c > mv -f .deps/gbc3-gbc_class.Tpo .deps/gbc3-gbc_class.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_code.o -MD -MP -MF .deps/gbc3-gbc_code.Tpo -c -o > gbc3-gbc_code.o `test -f 'gbc_code.c' || echo './'`gbc_code.c > mv -f .deps/gbc3-gbc_code.Tpo .deps/gbc3-gbc_code.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_trans.o -MD -MP -MF .deps/gbc3-gbc_trans.Tpo -c > -o gbc3-gbc_trans.o `test -f 'gbc_trans.c' || echo './'`gbc_trans.c > mv -f .deps/gbc3-gbc_trans.Tpo .deps/gbc3-gbc_trans.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_header.o -MD -MP -MF .deps/gbc3-gbc_header.Tpo -c > -o gbc3- gbc_header.o `test -f 'gbc_header.c' || echo './'`gbc_header.c > mv -f .deps/gbc3-gbc_header.Tpo .deps/gbc3-gbc_header.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_trans_code.o -MD -MP -MF > .deps/gbc3-gbc_trans_code.Tpo -c -o gbc3- gbc_trans_code.o `test -f > 'gbc_trans_code.c' || echo './'`gbc_trans_code.c mv -f > .deps/gbc3-gbc_trans_code.Tpo .deps/gbc3-gbc_trans_code.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_trans_expr.o -MD -MP -MF > .deps/gbc3-gbc_trans_expr.Tpo -c -o gbc3- gbc_trans_expr.o `test -f > 'gbc_trans_expr.c' || echo './'`gbc_trans_expr.c mv -f > .deps/gbc3-gbc_trans_expr.Tpo .deps/gbc3-gbc_trans_expr.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_trans_tree.o -MD -MP -MF > .deps/gbc3-gbc_trans_tree.Tpo -c -o gbc3- gbc_trans_tree.o `test -f > 'gbc_trans_tree.c' || echo './'`gbc_trans_tree.c mv -f > .deps/gbc3-gbc_trans_tree.Tpo .deps/gbc3-gbc_trans_tree.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_trans_ctrl.o -MD -MP -MF > .deps/gbc3-gbc_trans_ctrl.Tpo -c -o gbc3- gbc_trans_ctrl.o `test -f > 'gbc_trans_ctrl.c' || echo './'`gbc_trans_ctrl.c mv -f > .deps/gbc3-gbc_trans_ctrl.Tpo .deps/gbc3-gbc_trans_ctrl.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_trans_subr.o -MD -MP -MF > .deps/gbc3-gbc_trans_subr.Tpo -c -o gbc3- gbc_trans_subr.o `test -f > 'gbc_trans_subr.c' || echo './'`gbc_trans_subr.c mv -f > .deps/gbc3-gbc_trans_subr.Tpo .deps/gbc3-gbc_trans_subr.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_output.o -MD -MP -MF .deps/gbc3-gbc_output.Tpo -c > -o gbc3- gbc_output.o `test -f 'gbc_output.c' || echo './'`gbc_output.c > mv -f .deps/gbc3-gbc_output.Tpo .deps/gbc3-gbc_output.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_pcode.o -MD -MP -MF .deps/gbc3-gbc_pcode.Tpo -c > -o gbc3-gbc_pcode.o `test -f 'gbc_pcode.c' || echo './'`gbc_pcode.c > mv -f .deps/gbc3-gbc_pcode.Tpo .deps/gbc3-gbc_pcode.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gb_file.o -MD -MP -MF .deps/gbc3-gb_file.Tpo -c -o > gbc3-gb_file.o `test -f 'gb_file.c' || echo './'`gb_file.c > mv -f .deps/gbc3-gb_file.Tpo .deps/gbc3-gb_file.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_form.o -MD -MP -MF .deps/gbc3-gbc_form.Tpo -c -o > gbc3-gbc_form.o `test -f 'gbc_form.c' || echo './'`gbc_form.c > mv -f .deps/gbc3-gbc_form.Tpo .deps/gbc3-gbc_form.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gb_str.o -MD -MP -MF .deps/gbc3-gb_str.Tpo -c -o > gbc3-gb_str.o `test -f 'gb_str.c' || echo './'`gb_str.c > mv -f .deps/gbc3-gb_str.Tpo .deps/gbc3-gb_str.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_chown.o -MD -MP -MF .deps/gbc3-gbc_chown.Tpo -c > -o gbc3-gbc_chown.o `test -f 'gbc_chown.c' || echo './'`gbc_chown.c > mv -f .deps/gbc3-gbc_chown.Tpo .deps/gbc3-gbc_chown.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gb_common.o -MD -MP -MF .deps/gbc3-gb_common.Tpo -c > -o gbc3-gb_common.o `test -f 'gb_common.c' || echo './'`gb_common.c > mv -f .deps/gbc3-gb_common.Tpo .deps/gbc3-gb_common.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc_arch.o -MD -MP -MF .deps/gbc3-gbc_arch.Tpo -c -o > gbc3-gbc_arch.o `test -f 'gbc_arch.c' || echo './'`gbc_arch.c > mv -f .deps/gbc3-gbc_arch.Tpo .deps/gbc3-gbc_arch.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gb_table.o -MD -MP -MF .deps/gbc3-gb_table.Tpo -c -o > gbc3-gb_table.o `test -f 'gb_table.c' || echo './'`gb_table.c > mv -f .deps/gbc3-gb_table.Tpo .deps/gbc3-gb_table.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbc3-gbc.o -MD -MP -MF .deps/gbc3-gbc.Tpo -c -o gbc3-gbc.o > `test -f 'gbc.c' || echo './'`gbc.c > mv -f .deps/gbc3-gbc.Tpo .deps/gbc3-gbc.Po > /bin/sh ../libtool --tag=CC --mode=link gcc - > DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbc3 > gbc3-gb_error.o gbc3- gb_alloc.o gbc3-gb_array.o gbc3-gbc_read.o > gbc3-gbc_preprocess.o gbc3- gbc_reserved.o gbc3-gbc_compile.o > gbc3-gbc_type.o gbc3-gb_buffer.o gbc3- gbc_dump.o gbc3-gbc_class.o > gbc3-gbc_code.o gbc3-gbc_trans.o gbc3-gbc_header.o gbc3-gbc_trans_code.o > gbc3-gbc_trans_expr.o gbc3-gbc_trans_tree.o gbc3- gbc_trans_ctrl.o > gbc3-gbc_trans_subr.o gbc3-gbc_output.o gbc3-gbc_pcode.o gbc3-gb_file.o > gbc3-gbc_form.o gbc3-gb_str.o gbc3-gbc_chown.o gbc3-gb_common.o > gbc3-gbc_arch.o gbc3-gb_table.o gbc3-gbc.o -lm > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gba3-gb_error.o -MD -MP -MF .deps/gba3-gb_error.Tpo -c -o > gba3-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c > mv -f .deps/gba3-gb_error.Tpo .deps/gba3-gb_error.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gba3-gb_alloc.o -MD -MP -MF .deps/gba3-gb_alloc.Tpo -c -o > gba3-gb_alloc.o `test -f 'gb_alloc.c' || echo './'`gb_alloc.c > mv -f .deps/gba3-gb_alloc.Tpo .deps/gba3-gb_alloc.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gba3-gb_array.o -MD -MP -MF .deps/gba3-gb_array.Tpo -c -o > gba3-gb_array.o `test -f 'gb_array.c' || echo './'`gb_array.c > mv -f .deps/gba3-gb_array.Tpo .deps/gba3-gb_array.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gba3-gb_table.o -MD -MP -MF .deps/gba3-gb_table.Tpo -c -o > gba3-gb_table.o `test -f 'gb_table.c' || echo './'`gb_table.c > mv -f .deps/gba3-gb_table.Tpo .deps/gba3-gb_table.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gba3-gb_str.o -MD -MP -MF .deps/gba3-gb_str.Tpo -c -o > gba3-gb_str.o `test -f 'gb_str.c' || echo './'`gb_str.c > mv -f .deps/gba3-gb_str.Tpo .deps/gba3-gb_str.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gba3-gb_file.o -MD -MP -MF .deps/gba3-gb_file.Tpo -c -o > gba3-gb_file.o `test -f 'gb_file.c' || echo './'`gb_file.c > mv -f .deps/gba3-gb_file.Tpo .deps/gba3-gb_file.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gba3-gbc_archive.o -MD -MP -MF .deps/gba3-gbc_archive.Tpo > -c -o gba3- gbc_archive.o `test -f 'gbc_archive.c' || echo > './'`gbc_archive.c > mv -f .deps/gba3-gbc_archive.Tpo .deps/gba3-gbc_archive.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gba3-gbc_chown.o -MD -MP -MF .deps/gba3-gbc_chown.Tpo -c > -o gba3-gbc_chown.o `test -f 'gbc_chown.c' || echo './'`gbc_chown.c > mv -f .deps/gba3-gbc_chown.Tpo .deps/gba3-gbc_chown.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gba3-gb_common.o -MD -MP -MF .deps/gba3-gb_common.Tpo -c > -o gba3-gb_common.o `test -f 'gb_common.c' || echo './'`gb_common.c > mv -f .deps/gba3-gb_common.Tpo .deps/gba3-gb_common.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gba3-gbc_arch.o -MD -MP -MF .deps/gba3-gbc_arch.Tpo -c -o > gba3-gbc_arch.o `test -f 'gbc_arch.c' || echo './'`gbc_arch.c > mv -f .deps/gba3-gbc_arch.Tpo .deps/gba3-gbc_arch.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gba3-gba.o -MD -MP -MF .deps/gba3-gba.Tpo -c -o gba3-gba.o > `test -f 'gba.c' || echo './'`gba.c > mv -f .deps/gba3-gba.Tpo .deps/gba3-gba.Po > /bin/sh ../libtool --tag=CC --mode=link gcc - > DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -I../share -o gba3 > gba3-gb_error.o gba3- gb_alloc.o gba3-gb_array.o gba3-gb_table.o > gba3-gb_str.o gba3-gb_file.o gba3- gbc_archive.o gba3-gbc_chown.o > gba3-gb_common.o gba3-gbc_arch.o gba3-gba.o gcc -DHAVE_CONFIG_H -I. -I.. > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi3-gb_error.o > -MD -MP -MF .deps/gbi3-gb_error.Tpo -c -o gbi3-gb_error.o `test -f > 'gb_error.c' || echo './'`gb_error.c > mv -f .deps/gbi3-gb_error.Tpo .deps/gbi3-gb_error.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbi3-gb_alloc.o -MD -MP -MF .deps/gbi3-gb_alloc.Tpo -c -o > gbi3-gb_alloc.o `test -f 'gb_alloc.c' || echo './'`gb_alloc.c > mv -f .deps/gbi3-gb_alloc.Tpo .deps/gbi3-gb_alloc.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbi3-gb_array.o -MD -MP -MF .deps/gbi3-gb_array.Tpo -c -o > gbi3-gb_array.o `test -f 'gb_array.c' || echo './'`gb_array.c > mv -f .deps/gbi3-gb_array.Tpo .deps/gbi3-gb_array.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbi3-gb_str.o -MD -MP -MF .deps/gbi3-gb_str.Tpo -c -o > gbi3-gb_str.o `test -f 'gb_str.c' || echo './'`gb_str.c > mv -f .deps/gbi3-gb_str.Tpo .deps/gbi3-gb_str.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbi3-gb_file.o -MD -MP -MF .deps/gbi3-gb_file.Tpo -c -o > gbi3-gb_file.o `test -f 'gb_file.c' || echo './'`gb_file.c > mv -f .deps/gbi3-gb_file.Tpo .deps/gbi3-gb_file.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbi3-gb_table.o -MD -MP -MF .deps/gbi3-gb_table.Tpo -c -o > gbi3-gb_table.o `test -f 'gb_table.c' || echo './'`gb_table.c > mv -f .deps/gbi3-gb_table.Tpo .deps/gbi3-gb_table.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbi3-gb_common.o -MD -MP -MF .deps/gbi3-gb_common.Tpo -c > -o gbi3-gb_common.o `test -f 'gb_common.c' || echo './'`gb_common.c > mv -f .deps/gbi3-gb_common.Tpo .deps/gbi3-gb_common.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbi3-gbc_arch.o -MD -MP -MF .deps/gbi3-gbc_arch.Tpo -c -o > gbi3-gbc_arch.o `test -f 'gbc_arch.c' || echo './'`gbc_arch.c > mv -f .deps/gbi3-gbc_arch.Tpo .deps/gbi3-gbc_arch.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -MT gbi3-gbi.o -MD -MP -MF .deps/gbi3-gbi.Tpo -c -o gbi3-gbi.o > `test -f 'gbi.c' || echo './'`gbi.c > mv -f .deps/gbi3-gbi.Tpo .deps/gbi3-gbi.Po > /bin/sh ../libtool --tag=CC --mode=link gcc - > DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbi3 > gbi3-gb_error.o gbi3- gb_alloc.o gbi3-gb_array.o gbi3-gb_str.o > gbi3-gb_file.o gbi3-gb_table.o gbi3- gb_common.o gbi3-gbc_arch.o > gbi3-gbi.o -ldl > gcc -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -Wno-unused-value -fsigned-char > - fvisibility=hidden -g -Os -I../share -MT gbc_reserved_make.o -MD -MP > -MF .deps/gbc_reserved_make.Tpo -c -o gbc_reserved_make.o > gbc_reserved_make.c mv -f .deps/gbc_reserved_make.Tpo > .deps/gbc_reserved_make.Po > /bin/sh ../libtool --tag=CC --mode=link gcc -pipe -Wall -Wno-unused-value > - fsigned-char -fvisibility=hidden -g -Os -I../share -o gbcm3 > gbc_reserved_make.o > make[4]: Leaving directory `/home/lordh/gambas3-2.99.0/main/gbc' > Making all in gbx > make[4]: Entering directory `/home/lordh/gambas3-2.99.0/main/gbx' > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -O3 > -I../share -MT libgbx_a-gb_error.o -MD -MP -MF > .deps/libgbx_a-gb_error.Tpo -c -o libgbx_a- gb_error.o `test -f > 'gb_error.c' || echo './'`gb_error.c > mv -f .deps/libgbx_a-gb_error.Tpo .deps/libgbx_a-gb_error.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -O3 > -I../share -MT libgbx_a-gbx_exec_loop.o -MD -MP -MF > .deps/libgbx_a-gbx_exec_loop.Tpo -c -o libgbx_a-gbx_exec_loop.o `test -f > 'gbx_exec_loop.c' || echo > './'`gbx_exec_loop.c > mv -f .deps/libgbx_a-gbx_exec_loop.Tpo .deps/libgbx_a-gbx_exec_loop.Po > rm -f libgbx.a > ar cru libgbx.a libgbx_a-gb_error.o libgbx_a-gbx_exec_loop.o > ranlib libgbx.a > /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. > -DGBX_INFO -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden > -g -Os -I../share -D_REENTRANT -I/usr/lib/libffi-3.0.9/include -O0 -MT > gb_la- gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c -o gb_la- > gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c mv -f > .deps/gb_la-gbx_c_class.Tpo .deps/gb_la-gbx_c_class.Plo > mv: cannot stat `.deps/gb_la-gbx_c_class.Tpo': No such file or directory > make[4]: *** [gb_la-gbx_c_class.lo] Error 1 > make[4]: Leaving directory `/home/lordh/gambas3-2.99.0/main/gbx' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/lordh/gambas3-2.99.0/main' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/lordh/gambas3-2.99.0/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/lordh/gambas3-2.99.0' > make: *** [all] Error 2 > I succeeded in compiling the package on Ubuntu 10.10 with no problem... Did you do a "./reconf-all" and then "./configure" ? -- Beno?t Minisini From lordheavym at ...626... Sat Mar 19 18:55:36 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 19 Mar 2011 18:55:36 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103191839.47706.gambas@...1...> References: <201103191530.02315.gambas@...1...> <201103191805.23151.lordheavym@...626...> <201103191839.47706.gambas@...1...> Message-ID: <201103191855.36545.lordheavym@...626...> Le samedi 19 mars 2011 18:39:47, Beno?t Minisini a ?crit : > > I succeeded in compiling the package on Ubuntu 10.10 with no problem... Did > you do a "./reconf-all" and then "./configure" ? Damn, i've done ./reconf instead of ./reconf-all, that must be the culprit... Sorry for the noise. ++ From gambas at ...1... Sat Mar 19 19:04:54 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Mar 2011 19:04:54 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103191855.36545.lordheavym@...626...> References: <201103191530.02315.gambas@...1...> <201103191839.47706.gambas@...1...> <201103191855.36545.lordheavym@...626...> Message-ID: <201103191904.54602.gambas@...1...> > Le samedi 19 mars 2011 18:39:47, Beno?t Minisini a ?crit : > > I succeeded in compiling the package on Ubuntu 10.10 with no problem... > > Did you do a "./reconf-all" and then "./configure" ? > > Damn, i've done ./reconf instead of ./reconf-all, that must be the > culprit... > > Sorry for the noise. > > ++ > Not necessarily, as I do a ./reconf instead of a ./reconf-all too. But I suspect that even if I removed the 'configure' scripts, there are other generated libtool files in the source packages that are ubuntu-compatible only. By doing a reconf-all, you should replace them with the right files from your system. -- Beno?t Minisini From mauricio at ...2500... Sat Mar 19 20:34:12 2011 From: mauricio at ...2500... (Mauricio Baeza) Date: Sat, 19 Mar 2011 13:34:12 -0600 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103191530.02315.gambas@...1...> References: <201103191530.02315.gambas@...1...> Message-ID: <1300563252.7204.2.camel@...37...> El s?b, 19-03-2011 a las 15:30 +0100, Beno?t Minisini escribi?: > Hi, > > I have uploaded a pre-release of the Gambas 3 source package for the first > release candidate. There: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2/download > > Please can you try to compile it on your own distribution and tell me if you > encounter any problem? > > And for those who can make binary packages: can you try to make a binary > package from this source package and tell me if you get any problem? That way, > I hope that packaging problems will be fixed before the final release! > > Note: the Gambas 3 RC1 package name will be gambas3-2.99.1.tar.bz2. > > Thanks in advance! > > Regards, > Hi Benoit.. I compile correctly Gambas3 in ArchLinux x64: http://uploadpie.com/18eQy An proyect migrated: http://uploadpie.com/MVWf2 Only message diferent, after ./configure -C || || THESE COMPONENTS ARE DISABLED: || - gb.opengl || - gb.sdl || But, run correctly Best regards -- __________________________________ Mauricio Baeza Serv?n Universo Libre M?xico, A.C. Fundador y Director General Todo lo que no podemos dar nos posee... Andre Gide From lordheavym at ...626... Sat Mar 19 21:15:52 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 19 Mar 2011 21:15:52 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103191530.02315.gambas@...1...> References: <201103191530.02315.gambas@...1...> Message-ID: <201103192115.52764.lordheavym@...626...> Le samedi 19 mars 2011 15:30:02, Beno?t Minisini a ?crit : > Hi, > > I have uploaded a pre-release of the Gambas 3 source package for the first > release candidate. There: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2 > /download > > Please can you try to compile it on your own distribution and tell me if > you encounter any problem? > > And for those who can make binary packages: can you try to make a binary > package from this source package and tell me if you get any problem? That > way, I hope that packaging problems will be fixed before the final > release! > > Note: the Gambas 3 RC1 package name will be gambas3-2.99.1.tar.bz2. > > Thanks in advance! > > Regards, gb.image directory seem to be missing from the tarball. ++ From math.eber at ...221... Sat Mar 19 22:19:05 2011 From: math.eber at ...221... (math.eber at ...221...) Date: Sat, 19 Mar 2011 22:19:05 +0100 Subject: [Gambas-user] =?utf-8?q?Gambas_3_RC1_pre-release_source_package?= In-Reply-To: <201103191530.02315.gambas@...1...> References: <201103191530.02315.gambas@...1...> Message-ID: <1Q13Y9-1UPFz60@...2430...> SUSE 11.2: Compiling runs into error in 'make': /bin/sh ../libtool --tag=CC --mode=link gcc -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbc3 gbc3-gb_error.o gbc3-gb_alloc.o gbc3-gb_array.o gbc3-gbc_read.o gbc3-gbc_preprocess.ogbc3-gbc_reserved.ogbc3-gbc_compile.ogbc3-gbc_type.o gbc3-gb_buffer.o gbc3-gbc_dump.o gbc3-gbc_class.o gbc3-gbc_code.o gbc3-gbc_trans.o gbc3-gbc_header.o gbc3-gbc_trans_code.o gbc3-gbc_trans_expr.o gbc3-gbc_trans_tree.o gbc3-gbc_trans_ctrl.o gbc3-gbc_trans_subr.o gbc3-gbc_output.o gbc3-gbc_pcode.o gbc3-gb_file.o gbc3-gbc_form.o gbc3-gb_str.o gbc3-gbc_chown.o gbc3-gb_common.o gbc3-gbc_arch.o gbc3-gb_table.o gbc3-gbc.o -lm libtool: Version mismatch error. This is libtool 2.2.6, but the libtool: definition of this LT_INIT comes from libtool 2.2.6b. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 libtool: and run autoconf again. make[4]: *** [gbc3] Fehler 63 make[4]: Leaving directory `/Platte2/Downloads/gambas3/preRC3/gambas3-2.99.0/main/gbc' make[3]: *** [all-recursive] Fehler 1 make[3]: Leaving directory `/Platte2/Downloads/gambas3/preRC3/gambas3-2.99.0/main' make[2]: *** [all] Fehler 2 make[2]: Leaving directory `/Platte2/Downloads/gambas3/preRC3/gambas3-2.99.0/main' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/Platte2/Downloads/gambas3/preRC3/gambas3-2.99.0' make: *** [all] Fehler 2 Looks like I'd have a wrong version of libtool, but with the svn versions everything compiles ok. Regards Matti -----Original-Nachricht----- Subject: [Gambas-user] Gambas 3 RC1 pre-release source package Date: Sat, 19 Mar 2011 15:30:02 +0100 From: Beno?t Minisini To: gambas-user at lists.sourceforge.net Hi, I have uploaded a pre-release of the Gambas 3 source package for the first release candidate. There: http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2/ download Please can you try to compile it on your own distribution and tell me if you encounter any problem? And for those who can make binary packages: can you try to make a binary package from this source package and tell me if you get any problem? That way, I hope that packaging problems will be fixed before the final release! Note: the Gambas 3 RC1 package name will be gambas3-2.99.1.tar.bz2. Thanks in advance! Regards, -- Beno?t Minisini ---------------------------------------------------------------------------- -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From colonizare at ...1877... Sat Mar 19 23:00:43 2011 From: colonizare at ...1877... (Juan Matias Olmos) Date: Sat, 19 Mar 2011 15:00:43 -0700 (PDT) Subject: [Gambas-user] installing gambas 3 Message-ID: <78434.57289.qm@...2561...> I'm a newbi, and this is my first try. Just download gambas3-2.99.0.tar.bz2 y get this: ~/Gambas 3/gambas3-2.99.0 $ ./reconf-all ./reconf-all: 7: libtoolize: not found ./reconf-all: 8: autoreconf: not found it's needed to be installed gambas 2? my system: notebook dell with linux mint 10 From jussi.lahtinen at ...626... Sat Mar 19 23:20:01 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 20 Mar 2011 00:20:01 +0200 Subject: [Gambas-user] installing gambas 3 In-Reply-To: <78434.57289.qm@...2561...> References: <78434.57289.qm@...2561...> Message-ID: I think you are trying to install development version (Gambas 3 RC1). I'll suggest to use stable versions from repositories or use svn to get current trunk. http://gambasdoc.org/help/readme?en&view Jussi On Sun, Mar 20, 2011 at 00:00, Juan Matias Olmos wrote: > I'm a newbi, and this is my first try. Just download gambas3-2.99.0.tar.bz2 > y > get this: > > ~/Gambas 3/gambas3-2.99.0 $ ./reconf-all > ./reconf-all: 7: libtoolize: not found > ./reconf-all: 8: autoreconf: not found > > it's needed to be installed gambas 2? > > my system: notebook dell with linux mint 10 > > > > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From colonizare at ...1877... Sun Mar 20 00:49:57 2011 From: colonizare at ...1877... (Juan Matias Olmos) Date: Sat, 19 Mar 2011 16:49:57 -0700 (PDT) Subject: [Gambas-user] error compiling gambas3 Message-ID: <282282.71116.qm@...2563...> this is what I get now.... make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.db.odbc? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.db.odbc? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.db.odbc? Making install in gb.db.postgresql make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.db.postgresql? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.db.postgresql? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.db.postgresql? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.db.postgresql? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.db.postgresql? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.db.postgresql? Making install in gb.db.sqlite2 make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.db.sqlite2? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.db.sqlite2? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.db.sqlite2? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.db.sqlite2? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.db.sqlite2? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.db.sqlite2? Making install in gb.db.sqlite3 make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.db.sqlite3? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.db.sqlite3? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.db.sqlite3? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.db.sqlite3? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.db.sqlite3? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.db.sqlite3? Making install in gb.net make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.net? Making install in src make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.net/src? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.net/src? make[3]: No se hace nada para ?install-exec-am?. test -z "/usr/local/lib/gambas3" || /bin/mkdir -p "/usr/local/lib/gambas3" /usr/bin/install -c -m 644 gb.net.component '/usr/local/lib/gambas3' test -z "/usr/local/lib/gambas3" || /bin/mkdir -p "/usr/local/lib/gambas3" /usr/bin/install -c -m 644 gb.net.component '/usr/local/lib/gambas3' test -z "/usr/local/lib/gambas3" || /bin/mkdir -p "/usr/local/lib/gambas3" /bin/bash ../libtool --mode=install /usr/bin/install -c gb.net.la '/usr/local/lib/gambas3' libtool: install: /usr/bin/install -c .libs/gb.net.so.0.0.0 /usr/local/lib/gambas3/gb.net.so.0.0.0 libtool: install: (cd /usr/local/lib/gambas3 && { ln -s -f gb.net.so.0.0.0 gb.net.so.0 || { rm -f gb.net.so.0 && ln -s gb.net.so.0.0.0 gb.net.so.0; }; }) libtool: install: (cd /usr/local/lib/gambas3 && { ln -s -f gb.net.so.0.0.0 gb.net.so || { rm -f gb.net.so && ln -s gb.net.so.0.0.0 gb.net.so; }; }) libtool: install: /usr/bin/install -c .libs/gb.net.lai /usr/local/lib/gambas3/gb.net.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/lib/gambas3 ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/gambas3 If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make install-data-hook make[4]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.net/src? Installing the gb.net control icons if needed... Creating the information files for gb.net component... gb.net make[4]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.net/src? make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.net/src? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.net/src? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.net? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.net? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.net? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.net? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.net? Making install in gb.net.curl make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.net.curl? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.net.curl? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.net.curl? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.net.curl? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.net.curl? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.net.curl? Making install in gb.net.smtp make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.net.smtp? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.net.smtp? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.net.smtp? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.net.smtp? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.net.smtp? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.net.smtp? Making install in gb.pcre make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.pcre? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.pcre? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.pcre? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.pcre? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.pcre? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.pcre? Making install in gb.sdl make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.sdl? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.sdl? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.sdl? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.sdl? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.sdl? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.sdl? Making install in gb.sdl.sound make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.sdl.sound? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.sdl.sound? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.sdl.sound? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.sdl.sound? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.sdl.sound? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.sdl.sound? Making install in gb.xml make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.xml? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.xml? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.xml? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.xml? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.xml? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.xml? Making install in gb.v4l make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.v4l? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.v4l? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.v4l? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.v4l? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.v4l? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.v4l? Making install in gb.crypt make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.crypt? Making install in src make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.crypt/src? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.crypt/src? make[3]: No se hace nada para ?install-exec-am?. test -z "/usr/local/lib/gambas3" || /bin/mkdir -p "/usr/local/lib/gambas3" /usr/bin/install -c -m 644 gb.crypt.component '/usr/local/lib/gambas3' test -z "/usr/local/lib/gambas3" || /bin/mkdir -p "/usr/local/lib/gambas3" /usr/bin/install -c -m 644 gb.crypt.component '/usr/local/lib/gambas3' test -z "/usr/local/lib/gambas3" || /bin/mkdir -p "/usr/local/lib/gambas3" /bin/bash ../libtool --mode=install /usr/bin/install -c gb.crypt.la '/usr/local/lib/gambas3' libtool: install: /usr/bin/install -c .libs/gb.crypt.so.0.0.0 /usr/local/lib/gambas3/gb.crypt.so.0.0.0 libtool: install: (cd /usr/local/lib/gambas3 && { ln -s -f gb.crypt.so.0.0.0 gb.crypt.so.0 || { rm -f gb.crypt.so.0 && ln -s gb.crypt.so.0.0.0 gb.crypt.so.0; }; }) libtool: install: (cd /usr/local/lib/gambas3 && { ln -s -f gb.crypt.so.0.0.0 gb.crypt.so || { rm -f gb.crypt.so && ln -s gb.crypt.so.0.0.0 gb.crypt.so; }; }) libtool: install: /usr/bin/install -c .libs/gb.crypt.lai /usr/local/lib/gambas3/gb.crypt.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/lib/gambas3 ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/gambas3 If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make install-data-hook make[4]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.crypt/src? Installing the gb.crypt control icons if needed... Creating the information files for gb.crypt component... gb.crypt make[4]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.crypt/src? make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.crypt/src? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.crypt/src? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.crypt? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.crypt? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.crypt? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.crypt? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.crypt? Making install in gb.qt4 make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.qt4? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.qt4? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.qt4? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.qt4? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.qt4? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.qt4? Making install in gb.gtk make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.gtk? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.gtk? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.gtk? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.gtk? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.gtk? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.gtk? Making install in gb.opengl make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.opengl? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.opengl? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.opengl? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.opengl? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.opengl? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.opengl? Making install in gb.desktop make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.desktop? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.desktop? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.desktop? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.desktop? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.desktop? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.desktop? Making install in gb.pdf make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.pdf? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.pdf? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.pdf? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.pdf? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.pdf? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.pdf? Making install in gb.cairo make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.cairo? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.cairo? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.cairo? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.cairo? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.cairo? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.cairo? Making install in gb.image.io make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.image.io? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.image.io? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.image.io? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.image.io? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.image.io? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.image.io? Making install in gb.image.imlib make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.image.imlib? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.image.imlib? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.image.imlib? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.image.imlib? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.image.imlib? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.image.imlib? Making install in gb.dbus make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.dbus? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.dbus? make[3]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/gb.dbus? make[3]: No se hace nada para ?install-exec-am?. make[3]: No se hace nada para ?install-data-am?. make[3]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.dbus? make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.dbus? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/gb.dbus? Making install in comp make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/comp? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/comp? Running the informer again twice because of dependencies between information files gb gb.compress gb.crypt gb.db gb.debug gb.eval gb.gui gbi3: warning: component gb.qt4 not found gb.image gb.image.effect gb.net gb.option gb.signal gb.vb gb gb.compress gb.crypt gb.db gb.debug gb.eval gb.gui gbi3: warning: component gb.qt4 not found gb.image gb.image.effect gb.net gb.option gb.signal gb.vb Installing the components... Compiling gb.eval.highlight... OK Installing gb.eval.highlight... Compiling gb.settings... OK Installing gb.settings... Compiling gb.form... Balloon.class:5: error: Unknown identifier: Control Compiling gb.form.stock... OK Installing gb.form.stock... Compiling gb.form.dialog... gbc: error: Component not found: gb.form Compiling gb.form.mdi... gbc: error: Component not found: gb.form Compiling gb.db.form... gbc: error: Component not found: gb.form Compiling gb.web... OK Installing gb.web... Compiling gb.report... gbc: error: Component not found: gb.form Compiling gb.chart... gbc: error: Component not found: gb.qt4 Compiling gb.mysql... OK Installing gb.mysql... make[2]: No se hace nada para ?install-data-am?. make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/comp? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/comp? Making install in app make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/app? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/app? Installing the development environment... Compiling gambas3... gbc: error: Component not found: gb.qt4 Compiling gbs3... OK Installing gbs3... Installing the scripter... Registering Gambas script mimetype Registering Gambas server page mimetype make[2]: No se hace nada para ?install-data-am?. make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/app? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/app? Making install in examples make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/examples? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0/examples? Installing the gambas examples... Compiling Automation/DBusExplorer/... gbc: error: Component not found: gb.form Compiling Basic/Blights/... win1.class:42: error: Unknown identifier: PictureBox Compiling Basic/Collection/... FStart.class:46: error: Unknown identifier: Button Compiling Basic/DragNDrop/... FDragNDrop.class:144: error: Unknown identifier: VBox Compiling Basic/Object/... FStart.class:36: error: Unknown identifier: Button Compiling Basic/Timer/... FOtherTimer.class:83: error: Unknown identifier: Button Compiling Control/ArrayOfControls/... gbc: error: Component not found: gb.form Compiling Control/Embedder/... gbc: error: Component not found: gb.form Compiling Control/HighlightEditor/... gbc: error: Component not found: gb.qt4 Compiling Control/TextEdit/... gbc: error: Component not found: gb.qt4 Compiling Control/TreeView/... TreeViewExample.class:170: error: Unknown identifier: Menu Compiling Control/Wizard/... gbc: error: Component not found: gb.form Compiling Database/Database/... gbc: error: Component not found: gb.form Compiling Database/MySQLExample/... gbc: error: Component not found: gb.qt4 Compiling Database/PictureDatabase/... FormPictureDatabase.class:233: error: Unknown identifier: HSplit Compiling Drawing/AnalogWatch/... FrmClock.class:242: error: Unknown identifier: Menu Compiling Drawing/Barcode/... FMain.class:167: error: Unknown identifier: Panel Compiling Drawing/Chart/... FormChart.class:118: error: Unknown identifier: PictureBox Compiling Drawing/Clock/... FClock.class:7: error: Unknown identifier: Picture Compiling Drawing/Gravity/... FAbout.class:14: error: Unknown identifier: PictureBox Compiling Drawing/OnScreenDisplay/... FOnScreenDisplay.class:9: error: Unknown identifier: Font Compiling Drawing/Painting/... FMain.class:467: error: Unknown identifier: SvgImage Compiling Games/BeastScroll/... gbc: error: Component not found: gb.image.io Compiling Games/Concent/... gbc: error: Component not found: gb.sdl.sound Compiling Games/DeepSpace/... FAbout.class:25: error: Unknown identifier: TextLabel Compiling Games/GameOfLife/... CGameField.class:7: error: Unknown identifier: DrawingArea Compiling Games/GNUBoxWorld/... gbc: error: Component not found: gb.qt4 Compiling Games/Puzzle1To8/... gbc: error: Component not found: gb.form Compiling Games/RobotFindsKitten/... Frfk.class:192: error: Unknown identifier: Button Compiling Games/Snake/... gbc: error: Component not found: gb.sdl.sound Compiling Games/Solitaire/... FBoardSelect.class:41: error: Unknown identifier: ComboBox Compiling Image/ImageViewer/... gbc: error: Component not found: gb.form Compiling Image/Lighttable/... gbc: error: Component not found: gb.qt4 Compiling Misc/Console/... FConsole.class:162: error: Unknown identifier: HBox Compiling Misc/Evaluator/... FEval.class:52: error: Unknown identifier: Label Compiling Misc/Explorer/... gbc: error: Component not found: gb.form Compiling Misc/Notepad/... gbc: error: Component not found: gb.form Compiling Misc/PDFViewer/... gbc: error: Component not found: gb.form Compiling Networking/ClientSocket/... FrmMain.class:237: error: Unknown identifier: Button Compiling Networking/DnsClient/... FMain.class:329: error: Unknown identifier: Button Compiling Networking/HTTPGet/... gbc: error: Component not found: gb.qt4 Compiling Networking/HTTPPost/... gbc: error: Component not found: gb.net.curl Compiling Networking/SerialPort/... FSerialPort.class:127: error: Unknown identifier: TextLabel Compiling Networking/ServerSocket/... gbc: error: Component not found: gb.net.curl Compiling Networking/UDPServerClient/... FrmClient.class:79: error: Unknown identifier: Panel Compiling Networking/WebBrowser/... gbc: error: Component not found: gb.qt4 Compiling OpenGL/3DWebCam/... gbc: error: Component not found: gb.image.io Compiling OpenGL/GambasGears/... gbc: error: Component not found: gb.image.io Compiling OpenGL/PDFPresentation/... gbc: error: Component not found: gb.qt4 Compiling OpenGL/TunnelSDL/... gbc: error: Component not found: gb.image.io Compiling Printing/Printing/... gbc: error: Component not found: gb.form Compiling Sound/CDPlayer/... gbc: error: Component not found: gb.qt4 Compiling Sound/MusicPlayer/... gbc: error: Component not found: gb.form Compiling Video/MoviePlayer/... gbc: error: Component not found: gb.form Compiling Video/MyWebCam/... gbc: error: Component not found: gb.v4l Compiling Video/WebCam/... gbc: error: Component not found: gb.form make[2]: No se hace nada para ?install-data-am?. make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0/examples? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0/examples? Making install in . make[1]: se ingresa al directorio ?/usr/src/gambas3-2.99.0? make[2]: se ingresa al directorio ?/usr/src/gambas3-2.99.0? || || Unable to compile gb.form || Unable to compile gb.form.dialog || Unable to compile gb.form.mdi || Unable to compile gb.db.form || Unable to compile gb.report || Unable to compile gb.chart || Unable to compile gambas3 || make[2]: No se hace nada para ?install-data-am?. make[2]: se sale del directorio ?/usr/src/gambas3-2.99.0? make[1]: se sale del directorio ?/usr/src/gambas3-2.99.0? matmint gambas3-2.99.0 # gambas3 No se ha encontrado la orden ?gambas3?, quiz?s quiso decir: La orden ?gambas2? del paquete ?gambas2-ide? (universe) gambas3: orden no encontrada matmint gambas3-2.99.0 # wait for help thanks Matias Olmos From gambas at ...1... Sun Mar 20 01:35:25 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 01:35:25 +0100 Subject: [Gambas-user] installing gambas 3 In-Reply-To: <78434.57289.qm@...2561...> References: <78434.57289.qm@...2561...> Message-ID: <201103200135.25163.gambas@...1...> > I'm a newbi, and this is my first try. Just download gambas3-2.99.0.tar.bz2 > y get this: > > ~/Gambas 3/gambas3-2.99.0 $ ./reconf-all > ./reconf-all: 7: libtoolize: not found > ./reconf-all: 8: autoreconf: not found > > it's needed to be installed gambas 2? > > my system: notebook dell with linux mint 10 > Yes, you have to install autoconf and libtool first. Regards, -- Beno?t Minisini From gambas at ...1... Sun Mar 20 01:36:49 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 01:36:49 +0100 Subject: [Gambas-user] error compiling gambas3 In-Reply-To: <282282.71116.qm@...2563...> References: <282282.71116.qm@...2563...> Message-ID: <201103200136.49045.gambas@...1...> > this is what I get now.... Apparently you didn't install all the development packages. I can't say more : you must tell which distribution you use so that someone can help you. Regards, -- Beno?t Minisini From gambas at ...1... Sun Mar 20 01:37:54 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 01:37:54 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <1Q13Y9-1UPFz60@...2430...> References: <201103191530.02315.gambas@...1...> <1Q13Y9-1UPFz60@...2430...> Message-ID: <201103200137.54598.gambas@...1...> > SUSE 11.2: > > Compiling runs into error in 'make': > > > /bin/sh ../libtool --tag=CC --mode=link gcc > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbc3 > gbc3-gb_error.o gbc3-gb_alloc.o gbc3-gb_array.o gbc3-gbc_read.o > > gbc3-gbc_preprocess.ogbc3-gbc_reserved.ogbc3-gbc_compile.ogbc3-gbc_type.o > gbc3-gb_buffer.o gbc3-gbc_dump.o gbc3-gbc_class.o gbc3-gbc_code.o > gbc3-gbc_trans.o gbc3-gbc_header.o gbc3-gbc_trans_code.o > gbc3-gbc_trans_expr.o gbc3-gbc_trans_tree.o gbc3-gbc_trans_ctrl.o > gbc3-gbc_trans_subr.o gbc3-gbc_output.o gbc3-gbc_pcode.o gbc3-gb_file.o > gbc3-gbc_form.o gbc3-gb_str.o gbc3-gbc_chown.o gbc3-gb_common.o > gbc3-gbc_arch.o gbc3-gb_table.o gbc3-gbc.o -lm > libtool: Version mismatch error. This is libtool 2.2.6, but the > libtool: definition of this LT_INIT comes from libtool 2.2.6b. > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 > libtool: and run autoconf again. > make[4]: *** [gbc3] Fehler 63 > make[4]: Leaving directory > `/Platte2/Downloads/gambas3/preRC3/gambas3-2.99.0/main/gbc' > make[3]: *** [all-recursive] Fehler 1 > make[3]: Leaving directory > `/Platte2/Downloads/gambas3/preRC3/gambas3-2.99.0/main' > make[2]: *** [all] Fehler 2 > make[2]: Leaving directory > `/Platte2/Downloads/gambas3/preRC3/gambas3-2.99.0/main' > make[1]: *** [all-recursive] Fehler 1 > make[1]: Leaving directory > `/Platte2/Downloads/gambas3/preRC3/gambas3-2.99.0' > make: *** [all] Fehler 2 > > > Looks like I'd have a wrong version of libtool, but with the svn > versions everything compiles ok. > > > Regards > > Matti > Did you run ./reconf-all before running ./configure ? -- Beno?t Minisini From gambas at ...1... Sun Mar 20 01:40:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 01:40:32 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103192115.52764.lordheavym@...626...> References: <201103191530.02315.gambas@...1...> <201103192115.52764.lordheavym@...626...> Message-ID: <201103200140.32349.gambas@...1...> > Le samedi 19 mars 2011 15:30:02, Beno?t Minisini a ?crit : > > Hi, > > > > I have uploaded a pre-release of the Gambas 3 source package for the > > first release candidate. There: > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.b > > z2 /download > > > > Please can you try to compile it on your own distribution and tell me if > > you encounter any problem? > > > > And for those who can make binary packages: can you try to make a binary > > package from this source package and tell me if you get any problem? That > > way, I hope that packaging problems will be fixed before the final > > release! > > > > Note: the Gambas 3 RC1 package name will be gambas3-2.99.1.tar.bz2. > > > > Thanks in advance! > > > > Regards, > > gb.image directory seem to be missing from the tarball. > > ++ > gb.image directory is not used anymore, I should remove it from the subversion repository. The gb.image component is now located inside ./main/lib. Regards, -- Beno?t Minisini From lordheavym at ...626... Sun Mar 20 02:04:12 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 20 Mar 2011 02:04:12 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103200140.32349.gambas@...1...> References: <201103191530.02315.gambas@...1...> <201103192115.52764.lordheavym@...626...> <201103200140.32349.gambas@...1...> Message-ID: <201103200204.12939.lordheavym@...626...> Le dimanche 20 mars 2011 01:40:32, Beno?t Minisini a ?crit : > > Le samedi 19 mars 2011 15:30:02, Beno?t Minisini a ?crit : > > > Hi, > > > > > > I have uploaded a pre-release of the Gambas 3 source package for the > > > first release candidate. There: > > > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar > > > .b z2 /download > > > > > > Please can you try to compile it on your own distribution and tell me > > > if you encounter any problem? > > > > > > And for those who can make binary packages: can you try to make a > > > binary package from this source package and tell me if you get any > > > problem? That way, I hope that packaging problems will be fixed before > > > the final release! > > > > > > Note: the Gambas 3 RC1 package name will be gambas3-2.99.1.tar.bz2. > > > > > > Thanks in advance! > > > > > > Regards, > > > > gb.image directory seem to be missing from the tarball. > > > > ++ > > gb.image directory is not used anymore, I should remove it from the > subversion repository. The gb.image component is now located inside > ./main/lib. > > Regards, Seem to be the same with gb.gtk.ext component. ++ From ihaywood at ...1979... Sun Mar 20 04:41:18 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Sun, 20 Mar 2011 14:41:18 +1100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103191530.02315.gambas@...1...> References: <201103191530.02315.gambas@...1...> Message-ID: 2011/3/20 Beno?t Minisini : > And for those who can make binary packages: can you try to make a binary > package from this source package and tell me if you get any problem? That way, > I hope that packaging problems will be fixed before the final release! compiles on Debian squeeze, Ubuntu lucid and maverick without problems. packages can be downloaded from: https://launchpad.net/~ihaywood3/+archive/gambas3 Ian From gambas at ...1... Sun Mar 20 04:59:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 04:59:13 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: References: <201103191530.02315.gambas@...1...> Message-ID: <201103200459.14026.gambas@...1...> > 2011/3/20 Beno?t Minisini : > > And for those who can make binary packages: can you try to make a binary > > package from this source package and tell me if you get any problem? That > > way, I hope that packaging problems will be fixed before the final > > release! > > compiles on Debian squeeze, Ubuntu lucid and maverick without problems. > > packages can be downloaded from: > https://launchpad.net/~ihaywood3/+archive/gambas3 > > Ian > Mmm... Binary packages must follow what is detailed on the wiki, at the "How to package Gambas" page. Regards, -- Beno?t Minisini From ihaywood at ...1979... Sun Mar 20 06:49:59 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Sun, 20 Mar 2011 16:49:59 +1100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103200459.14026.gambas@...1...> References: <201103191530.02315.gambas@...1...> <201103200459.14026.gambas@...1...> Message-ID: 2011/3/20 Beno?t Minisini : >> 2011/3/20 Beno?t Minisini : >> > And for those who can make binary packages: can you try to make a binary >> > package from this source package and tell me if you get any problem? That >> > way, I hope that packaging problems will be fixed before the final >> > release! >> >> compiles on Debian squeeze, Ubuntu lucid and maverick without problems. >> >> packages can be downloaded from: >> https://launchpad.net/~ihaywood3/+archive/gambas3 >> >> Ian >> > > Mmm... Binary packages must follow what is detailed on the wiki, at the "How > to package Gambas" page. the packages are basically the old gambas2 debian packages with "2" replaced by "3" (and using the gambas3 source of course) Some changes to dependencies are also required to make them build. However I haven't changed the structure and names of the packages, these seem to follow the guidelines set in the wiki, with two exceptions - gambas3-devel is gambas3-dev, this the Debian naming convention ("gambas3-devel" would be seen as being RedHat-style) - gambas3-help doesn't exist as it doesn't seem to build, I'll take a look at that. I'm happy to make other changes to bring these packages into line with the guidelines, but you will need to state specifically what the problems are. Ian From sotema at ...626... Sun Mar 20 14:03:37 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Sun, 20 Mar 2011 14:03:37 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103191530.02315.gambas@...1...> References: <201103191530.02315.gambas@...1...> Message-ID: <1300626217.28034.1.camel@...2476...> Il giorno sab, 19/03/2011 alle 15.30 +0100, Beno?t Minisini ha scritto: > Hi, > > I have uploaded a pre-release of the Gambas 3 source package for the first > release candidate. There: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2/download > Ok on Ubuntu 10.10 X86_64 Emanuele From math.eber at ...221... Sun Mar 20 14:10:07 2011 From: math.eber at ...221... (Matti) Date: Sun, 20 Mar 2011 14:10:07 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103200137.54598.gambas@...1...> References: <201103191530.02315.gambas@...1...> <1Q13Y9-1UPFz60@...2430...> <201103200137.54598.gambas@...1...> Message-ID: <4D85FCAF.9000808@...221...> > Did you run ./reconf-all before running ./configure ? > Yes! Am 20.03.2011 01:37, schrieb Beno?t Minisini: >> SUSE 11.2: >> >> Compiling runs into error in 'make': >> >> >> /bin/sh ../libtool --tag=CC --mode=link gcc >> -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value >> -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbc3 >> gbc3-gb_error.o gbc3-gb_alloc.o gbc3-gb_array.o gbc3-gbc_read.o >> >> gbc3-gbc_preprocess.ogbc3-gbc_reserved.ogbc3-gbc_compile.ogbc3-gbc_type.o >> gbc3-gb_buffer.o gbc3-gbc_dump.o gbc3-gbc_class.o gbc3-gbc_code.o >> gbc3-gbc_trans.o gbc3-gbc_header.o gbc3-gbc_trans_code.o >> gbc3-gbc_trans_expr.o gbc3-gbc_trans_tree.o gbc3-gbc_trans_ctrl.o >> gbc3-gbc_trans_subr.o gbc3-gbc_output.o gbc3-gbc_pcode.o gbc3-gb_file.o >> gbc3-gbc_form.o gbc3-gb_str.o gbc3-gbc_chown.o gbc3-gb_common.o >> gbc3-gbc_arch.o gbc3-gb_table.o gbc3-gbc.o -lm >> libtool: Version mismatch error. This is libtool 2.2.6, but the >> libtool: definition of this LT_INIT comes from libtool 2.2.6b. >> libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 >> libtool: and run autoconf again. >> make[4]: *** [gbc3] Fehler 63 >> make[4]: Leaving directory >> `/Platte2/Downloads/gambas3/preRC3/gambas3-2.99.0/main/gbc' >> make[3]: *** [all-recursive] Fehler 1 >> make[3]: Leaving directory >> `/Platte2/Downloads/gambas3/preRC3/gambas3-2.99.0/main' >> make[2]: *** [all] Fehler 2 >> make[2]: Leaving directory >> `/Platte2/Downloads/gambas3/preRC3/gambas3-2.99.0/main' >> make[1]: *** [all-recursive] Fehler 1 >> make[1]: Leaving directory >> `/Platte2/Downloads/gambas3/preRC3/gambas3-2.99.0' >> make: *** [all] Fehler 2 >> >> >> Looks like I'd have a wrong version of libtool, but with the svn >> versions everything compiles ok. >> >> >> Regards >> >> Matti >> > > Did you run ./reconf-all before running ./configure ? > From gambas at ...1... Sun Mar 20 15:55:57 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 15:55:57 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: References: <201103191530.02315.gambas@...1...> <201103200459.14026.gambas@...1...> Message-ID: <201103201555.57515.gambas@...1...> > 2011/3/20 Beno?t Minisini : > >> 2011/3/20 Beno?t Minisini : > >> > And for those who can make binary packages: can you try to make a > >> > binary package from this source package and tell me if you get any > >> > problem? That way, I hope that packaging problems will be fixed > >> > before the final release! > >> > >> compiles on Debian squeeze, Ubuntu lucid and maverick without problems. > >> > >> packages can be downloaded from: > >> https://launchpad.net/~ihaywood3/+archive/gambas3 > >> > >> Ian > > > > Mmm... Binary packages must follow what is detailed on the wiki, at the > > "How to package Gambas" page. > > the packages are basically the old gambas2 debian packages with "2" > replaced by "3" (and using the gambas3 source of course) > Some changes to dependencies are also required to make them build. > However I haven't changed the structure and names of the packages, > these seem to follow the guidelines set in the wiki, with two > exceptions > - gambas3-devel is gambas3-dev, this the Debian naming convention > ("gambas3-devel" would be seen as being RedHat-style) > - gambas3-help doesn't exist as it doesn't seem to build, I'll take a > look at that. > > I'm happy to make other changes to bring these packages into line with > the guidelines, but you will need to state specifically what the > problems are. > > Ian > Did you read the "How to package Gambas" wiki page? -- Beno?t Minisini From gambas at ...1... Sun Mar 20 16:18:36 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 16:18:36 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <4D85FCAF.9000808@...221...> References: <201103191530.02315.gambas@...1...> <201103200137.54598.gambas@...1...> <4D85FCAF.9000808@...221...> Message-ID: <201103201618.37016.gambas@...1...> > > Did you run ./reconf-all before running ./configure ? > > Yes! > Well. Normally, when running the ./reconf-all script, all libtool macro files inside the m4 directory should be replaced by what is installed on your system. So: 1) Can you check that libtool is installed on your system? 2) Can you compare the contents of the m4 directory between before running "./reconf-all" (just after the source package has been extracted), and just after? 3) Can you tell me if you find on your system the libtool macro files having the same name as the one located in the m4 directory? Thanks in advance. Regards, -- Beno?t Minisini From gambas at ...1... Sun Mar 20 16:22:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 16:22:34 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103201618.37016.gambas@...1...> References: <201103191530.02315.gambas@...1...> <4D85FCAF.9000808@...221...> <201103201618.37016.gambas@...1...> Message-ID: <201103201622.34845.gambas@...1...> > > 3) Can you tell me if you find on your system the libtool macro files > having the same name as the one located in the m4 directory? > For example, on Ubuntu, there are in /usr/share/aclocal. -- Beno?t Minisini From math.eber at ...221... Sun Mar 20 17:58:20 2011 From: math.eber at ...221... (Matti) Date: Sun, 20 Mar 2011 17:58:20 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103201618.37016.gambas@...1...> References: <201103191530.02315.gambas@...1...> <201103200137.54598.gambas@...1...> <4D85FCAF.9000808@...221...> <201103201618.37016.gambas@...1...> Message-ID: <4D86322C.6050809@...221...> Am 20.03.2011 16:18, schrieb Beno?t Minisini: > > Well. Normally, when running the ./reconf-all script, all libtool macro files > inside the m4 directory should be replaced by what is installed on your > system. What is "the m4 directory"? There are many m4 directories in the gambas dirs, all with the same files in them. Do you mean these dirs? > > So: > > 1) Can you check that libtool is installed on your system? Yes, it is (otherwise, I couldn't compile the svn revisions, could I?) Version 2.2.6-47.451.1 > > 2) Can you compare the contents of the m4 directory between before running > "./reconf-all" (just after the source package has been extracted), and just > after? The only change: a file "argz.m4" is added. See before/after screenshots. I also append the output of ./reconf-all, so you can look if something went wrong there. > > 3) Can you tell me if you find on your system the libtool macro files having > the same name as the one located in the m4 directory? Yes, they are all there, same names but older dates. Except for the "gb_cflags..." file. > > Thanks in advance. > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: gb3 reconf-all.txt.tar.gz Type: application/x-gzip Size: 75754 bytes Desc: not available URL: From lordheavym at ...626... Sun Mar 20 18:01:01 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 20 Mar 2011 18:01:01 +0100 Subject: [Gambas-user] Gambas3-RC1 available in Archlinux repos Message-ID: <201103201801.01157.lordheavym@...626...> I just going to push the first gambas3 release candidate in the community- testing repo. Feel free to test and report packaging bugs here or on the bug tracker. To install the all the packages: pacman -S gambas3 Or you can cherry pick individual packages. Have fun! From gambas at ...1... Sun Mar 20 18:05:27 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 18:05:27 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <4D86322C.6050809@...221...> References: <201103191530.02315.gambas@...1...> <201103201618.37016.gambas@...1...> <4D86322C.6050809@...221...> Message-ID: <201103201805.27518.gambas@...1...> > Am 20.03.2011 16:18, schrieb Beno?t Minisini: > > Well. Normally, when running the ./reconf-all script, all libtool macro > > files inside the m4 directory should be replaced by what is installed on > > your system. > > What is "the m4 directory"? There are many m4 directories in the gambas > dirs, all with the same files in them. Do you mean these dirs? Yes. Actually all m4 directories are copy of the top-level m4 directories (look inside a subversion repository copy, you will find symbolic links instead of normal directories). > > > So: > > > > 1) Can you check that libtool is installed on your system? > > Yes, it is (otherwise, I couldn't compile the svn revisions, could I?) > Version 2.2.6-47.451.1 > > > 2) Can you compare the contents of the m4 directory between before > > running "./reconf-all" (just after the source package has been > > extracted), and just after? > > The only change: a file "argz.m4" is added. See before/after screenshots. > I also append the output of ./reconf-all, so you can look if something went > wrong there. But did you compare the *contents* of the files? Did they change? > > > 3) Can you tell me if you find on your system the libtool macro files > > having the same name as the one located in the m4 directory? > > Yes, they are all there, same names but older dates. Except for the > "gb_cflags..." file. Yes, but where are they? Can you compare these files with the contents of m4 directory? Normally, during the ./reconf-all, the GNU tools must copy the contents of... Oops, wait a minute... I think that the copy is done only if they are *newer*. Or you have a libtool version *older* than the Ubuntu one. So: can you try to remove the libtool macro files from all m4 directories? Those that do not begin with "gb". Then do a ./reconf-all, and see if things get better. If things get better, I will remove these files from the source archive definitively. Regards, -- Beno?t Minisini From gambas at ...1... Sun Mar 20 18:08:23 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 18:08:23 +0100 Subject: [Gambas-user] Gambas3-RC1 available in Archlinux repos In-Reply-To: <201103201801.01157.lordheavym@...626...> References: <201103201801.01157.lordheavym@...626...> Message-ID: <201103201808.23906.gambas@...1...> > I just going to push the first gambas3 release candidate in the community- > testing repo. > > Feel free to test and report packaging bugs here or on the bug tracker. > > To install the all the packages: > pacman -S gambas3 > > Or you can cherry pick individual packages. > > Have fun! > You shouldn't, as that source package is *not* the release candidate. It is just a source package for testing if making binary packages work everywhere. That is not the case at the moment. Moreover, internal version numbers will be changed to 3.0.0 in the RC1 package, besides other little changes. So please wait a little! :-) Regards, -- Beno?t Minisini From lordheavym at ...626... Sun Mar 20 18:59:29 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 20 Mar 2011 18:59:29 +0100 Subject: [Gambas-user] Gambas3-RC1 available in Archlinux repos In-Reply-To: <201103201808.23906.gambas@...1...> References: <201103201801.01157.lordheavym@...626...> <201103201808.23906.gambas@...1...> Message-ID: <201103201859.29347.lordheavym@...626...> Le dimanche 20 mars 2011 18:08:23, Beno?t Minisini a ?crit : > > I just going to push the first gambas3 release candidate in the > > community- testing repo. > > > > Feel free to test and report packaging bugs here or on the bug tracker. > > > > To install the all the packages: > > pacman -S gambas3 > > > > Or you can cherry pick individual packages. > > > > Have fun! > > You shouldn't, as that source package is *not* the release candidate. It is > just a source package for testing if making binary packages work > everywhere. That is not the case at the moment. Moreover, internal version > numbers will be changed to 3.0.0 in the RC1 package, besides other little > changes. > > So please wait a little! :-) > > Regards, It's the testing repo, so no big hurts. ++ From math.eber at ...221... Sun Mar 20 19:09:14 2011 From: math.eber at ...221... (Matti) Date: Sun, 20 Mar 2011 19:09:14 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103201805.27518.gambas@...1...> References: <201103191530.02315.gambas@...1...> <201103201618.37016.gambas@...1...> <4D86322C.6050809@...221...> <201103201805.27518.gambas@...1...> Message-ID: <4D8642CA.3090305@...221...> Am 20.03.2011 18:05, schrieb Beno?t Minisini: >>> 2) Can you compare the contents of the m4 directory between before >>> running "./reconf-all" (just after the source package has been >>> extracted), and just after? >> >> The only change: a file "argz.m4" is added. See before/after screenshots. >> I also append the output of ./reconf-all, so you can look if something went >> wrong there. > > But did you compare the *contents* of the files? Did they change? As the timestamps didn't change, I assumed that the contents didn't change. Wrong idea? > >> >>> 3) Can you tell me if you find on your system the libtool macro files >>> having the same name as the one located in the m4 directory? >> >> Yes, they are all there, same names but older dates. Except for the >> "gb_cflags..." file. > > Yes, but where are they? Can you compare these files with the contents of m4 > directory? Normally, during the ./reconf-all, the GNU tools must copy the > contents of... Oops, wait a minute... I think that the copy is done only if > they are *newer*. Or you have a libtool version *older* than the Ubuntu one. > > So: can you try to remove the libtool macro files from all m4 directories? > Those that do not begin with "gb". Then do a ./reconf-all, and see if things > get better. > > If things get better, I will remove these files from the source archive > definitively. I removed all those files, and things definitely got better. Now, during ./reconf-all, the libtool macro files are copied from my system to the m4 directories. So, I think removing these files would be better. I still get (another) error in 'make', but maybe I deleted something that shouldn't be deleted. I'm waiting for the next round... From gambas at ...1... Sun Mar 20 19:12:20 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 19:12:20 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <4D8642CA.3090305@...221...> References: <201103191530.02315.gambas@...1...> <201103201805.27518.gambas@...1...> <4D8642CA.3090305@...221...> Message-ID: <201103201912.20463.gambas@...1...> > > I removed all those files, and things definitely got better. Now, during > ./reconf-all, the libtool macro files are copied from my system to the m4 > directories. > > So, I think removing these files would be better. > > I still get (another) error in 'make', but maybe I deleted something that > shouldn't be deleted. I'm waiting for the next round... > Please send the error message, or better the full make output. Thanks. -- Beno?t Minisini From math.eber at ...221... Sun Mar 20 19:25:47 2011 From: math.eber at ...221... (Matti) Date: Sun, 20 Mar 2011 19:25:47 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103201912.20463.gambas@...1...> References: <201103191530.02315.gambas@...1...> <201103201805.27518.gambas@...1...> <4D8642CA.3090305@...221...> <201103201912.20463.gambas@...1...> Message-ID: <4D8646AB.6040204@...221...> Here is the complete protocol of ./reconf-all, ./configure -C and make. Maybe there is an error before 'make'. Error messages at the end of make: "F?r das Ziel ?all-am? ist nichts zu tun." = For the target ?all-am? there is nothing to do. "*** Keine Regel, um ?all? zu erstellen. Schluss." = No rule to build ?all?. Finish. Am 20.03.2011 19:12, schrieb Beno?t Minisini: >> >> I removed all those files, and things definitely got better. Now, during >> ./reconf-all, the libtool macro files are copied from my system to the m4 >> directories. >> >> So, I think removing these files would be better. >> >> I still get (another) error in 'make', but maybe I deleted something that >> shouldn't be deleted. I'm waiting for the next round... >> > > Please send the error message, or better the full make output. > > Thanks. > > -------------- next part -------------- A non-text attachment was scrubbed... Name: gb3 RC Installation Protokoll.txt.tar.gz Type: application/x-gzip Size: 29445 bytes Desc: not available URL: From gambas at ...1... Sun Mar 20 19:37:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 19:37:53 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <4D8646AB.6040204@...221...> References: <201103191530.02315.gambas@...1...> <201103201912.20463.gambas@...1...> <4D8646AB.6040204@...221...> Message-ID: <201103201937.53064.gambas@...1...> > Here is the complete protocol of ./reconf-all, ./configure -C and make. > Maybe there is an error before 'make'. > > Error messages at the end of make: > "F?r das Ziel ?all-am? ist nichts zu tun." = For the target ?all-am? there > is nothing to do. > "*** Keine Regel, um ?all? zu erstellen. Schluss." = No rule to build > ?all?. Finish. > Didn't you see the "syntax error" message during the configuration of gb.sdl.sound? It should mean that the gbsdl.m4 file is missing in the m4 directory. Can you check that? -- Beno?t Minisini From gambas at ...1... Sun Mar 20 19:50:00 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 19:50:00 +0100 Subject: [Gambas-user] Gambas 3 RC pre-release package Message-ID: <201103201950.00976.gambas@...1...> I have just updated the gambas 3 RC1 pre-release package: http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2/download I have removed some configuration file (libtool m4 macro files) so that they are correctly copied from the m4 directory of the current system when running ./reconf-all. Please tell me if compiling works better now. Regards, -- Beno?t Minisini From math.eber at ...221... Sun Mar 20 19:50:09 2011 From: math.eber at ...221... (Matti) Date: Sun, 20 Mar 2011 19:50:09 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103201937.53064.gambas@...1...> References: <201103191530.02315.gambas@...1...> <201103201912.20463.gambas@...1...> <4D8646AB.6040204@...221...> <201103201937.53064.gambas@...1...> Message-ID: <4D864C61.70500@...221...> Didn't see that. But I knew I wasn't careful enough deleting those files... I will start again and tell you. Am 20.03.2011 19:37, schrieb Beno?t Minisini: > Didn't you see the "syntax error" message during the configuration of > gb.sdl.sound? It should mean that the gbsdl.m4 file is missing in the m4 > directory. Can you check that? > From math.eber at ...221... Sun Mar 20 20:23:03 2011 From: math.eber at ...221... (Matti) Date: Sun, 20 Mar 2011 20:23:03 +0100 Subject: [Gambas-user] Gambas 3 RC pre-release package In-Reply-To: <201103201950.00976.gambas@...1...> References: <201103201950.00976.gambas@...1...> Message-ID: <4D865417.4080407@...221...> Too bad: another 'make' error @openSUSE 11.2 (i586). I don't understand a single word... Am 20.03.2011 19:50, schrieb Beno?t Minisini: > I have just updated the gambas 3 RC1 pre-release package: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2/download > > I have removed some configuration file (libtool m4 macro files) so that they > are correctly copied from the m4 directory of the current system when running > ./reconf-all. > > Please tell me if compiling works better now. > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: gb3 RC Installation Protokoll.txt.tar.gz Type: application/x-gzip Size: 34242 bytes Desc: not available URL: From gambas at ...1... Sun Mar 20 20:29:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 20:29:53 +0100 Subject: [Gambas-user] Gambas 3 RC pre-release package In-Reply-To: <4D865417.4080407@...221...> References: <201103201950.00976.gambas@...1...> <4D865417.4080407@...221...> Message-ID: <201103202029.53359.gambas@...1...> > Too bad: another 'make' error @openSUSE 11.2 (i586). I don't understand a > single word... > Do a "make clean" before doing "make". That should remove the *_moc.cpp file that are generated files from my version of Qt (4.7), and they will be regenerated from yoru version of Qt. Regards, -- Beno?t Minisini From linuxos at ...1896... Sun Mar 20 20:38:16 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Sun, 20 Mar 2011 20:38:16 +0100 Subject: [Gambas-user] Gambas 3 RC pre-release package In-Reply-To: <201103201950.00976.gambas@...1...> References: <201103201950.00976.gambas@...1...> Message-ID: <89D4D0AC-2C95-41BD-8ECB-AB87F180FC2D@...1896...> Hi Benoit, All it's ok on Fedora 14. When I import my projet in v2.22.0 to this new gambas3 RC1 release, I have a strange message about 'Scale property' on some Forms. To resolve it, I need to change for these Forms the 'Scale property' from False to True, save the Form and repeat the operation to put again False. Otherwise, when I compile my project, the IDE does not detect all error in the first time, I need to play between the 'Compile All the project' Menu and the button 'Start running the application' to find all errors in my project becoming from gambas v2 Strange but not pesky. Olivier Cruilles Mail: linuxos at ...1896... Le 20 mars 2011 ? 19:50, Beno?t Minisini a ?crit : > I have just updated the gambas 3 RC1 pre-release package: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2/download > > I have removed some configuration file (libtool m4 macro files) so that they > are correctly copied from the m4 directory of the current system when running > ./reconf-all. > > Please tell me if compiling works better now. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Mar 20 20:42:57 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 20:42:57 +0100 Subject: [Gambas-user] Gambas 3 RC pre-release package In-Reply-To: <89D4D0AC-2C95-41BD-8ECB-AB87F180FC2D@...1896...> References: <201103201950.00976.gambas@...1...> <89D4D0AC-2C95-41BD-8ECB-AB87F180FC2D@...1896...> Message-ID: <201103202042.57355.gambas@...1...> > Hi Benoit, > > All it's ok on Fedora 14. > > When I import my projet in v2.22.0 to this new gambas3 RC1 release, I have > a strange message about 'Scale property' on some Forms. > > To resolve it, I need to change for these Forms the 'Scale property' from > False to True, save the Form and repeat the operation to put again False. > > Otherwise, when I compile my project, the IDE does not detect all error in > the first time, I need to play between the 'Compile All the project' Menu > and the button 'Start running the application' to find all errors in my > project becoming from gambas v2 Strange but not pesky. > > Olivier Cruilles > Mail: linuxos at ...1896... > Can you give me all the details? Or/and send me the project so that I can reproduce your strange messages. The Gambas2 -> Gambas3 converter is not complete (it cannot), but I can enhance it when people catch things that are not converted correctly. Regards, -- Beno?t Minisini From nando_f at ...951... Sun Mar 20 20:54:52 2011 From: nando_f at ...951... (nando) Date: Sun, 20 Mar 2011 15:54:52 -0400 Subject: [Gambas-user] Redesigning the web site for Gambas 3 In-Reply-To: <201103191618.55874.gambas@...1...> References: <201103191618.55874.gambas@...1...> Message-ID: <20110320195225.M6642@...951...> Benoit, I always liked PHP's pages, how it's laid out, and code suggestions/snippets ---------- Original Message ----------- From: Beno?t Minisini To: gambas-user at lists.sourceforge.net Sent: Sat, 19 Mar 2011 16:18:55 +0100 Subject: [Gambas-user] Redesigning the web site for Gambas 3 > Hi, > > I want to revamp the Gambas web site look for Gambas 3. > > I want to present the same informations to the user, but in a simpler manner. > The more useful the link, the more visible (for example a big download button > on the front page). > > I'd like to some propositions for a new look from you, Gambas users. > > The internal design of the web site will not change: it is a Gambas project > that generates the web pages in different languages. Most of the text is > located in the wiki now. If possible, everything could be located in the wiki > (except the main page), the look being changed through a specific style sheet. > > It must work at least with Firefox 3.6 and Chrome. I don't care with Internet > Explorer <= 8. > > So if you have any suggestions for the new look (a link to another web site, > even some HTML/CSS files), do not hesitate! > > Best regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Sun Mar 20 21:00:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 21:00:14 +0100 Subject: [Gambas-user] Redesigning the web site for Gambas 3 In-Reply-To: <20110320195225.M6642@...951...> References: <201103191618.55874.gambas@...1...> <20110320195225.M6642@...951...> Message-ID: <201103202100.14173.gambas@...1...> > Benoit, > I always liked PHP's pages, how it's laid out, and code > suggestions/snippets > What are you talking about exactly? -- Beno?t Minisini From support at ...2529... Sun Mar 20 21:08:26 2011 From: support at ...2529... (John Spikowski) Date: Sun, 20 Mar 2011 13:08:26 -0700 Subject: [Gambas-user] Redesigning the web site for Gambas 3 In-Reply-To: <201103202100.14173.gambas@...1...> References: <201103191618.55874.gambas@...1...> <20110320195225.M6642@...951...> <201103202100.14173.gambas@...1...> Message-ID: <1300651706.2190.8.camel@...2530...> On Sun, 2011-03-20 at 21:00 +0100, Beno?t Minisini wrote: > > Benoit, > > I always liked PHP's pages, how it's laid out, and code > > suggestions/snippets > > > > What are you talking about exactly? > I think this list member is suggesting that php be used in the design of the new Gambas website. I also got from the post that he thinks the vast amount of already available code might make the job easier. From math.eber at ...221... Sun Mar 20 21:09:35 2011 From: math.eber at ...221... (Matti) Date: Sun, 20 Mar 2011 21:09:35 +0100 Subject: [Gambas-user] Gambas 3 RC pre-release package In-Reply-To: <201103202029.53359.gambas@...1...> References: <201103201950.00976.gambas@...1...> <4D865417.4080407@...221...> <201103202029.53359.gambas@...1...> Message-ID: <4D865EFF.2030008@...221...> With 'make clean', it compiles ok now. Remember to update the installation instructions. Am 20.03.2011 20:29, schrieb Beno?t Minisini: >> Too bad: another 'make' error @openSUSE 11.2 (i586). I don't understand a >> single word... >> > > Do a "make clean" before doing "make". That should remove the *_moc.cpp file > that are generated files from my version of Qt (4.7), and they will be > regenerated from yoru version of Qt. > > Regards, > From gambas at ...1... Sun Mar 20 21:11:19 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 21:11:19 +0100 Subject: [Gambas-user] Redesigning the web site for Gambas 3 In-Reply-To: <1300651706.2190.8.camel@...2530...> References: <201103191618.55874.gambas@...1...> <201103202100.14173.gambas@...1...> <1300651706.2190.8.camel@...2530...> Message-ID: <201103202111.19149.gambas@...1...> > On Sun, 2011-03-20 at 21:00 +0100, Beno?t Minisini wrote: > > > Benoit, > > > I always liked PHP's pages, how it's laid out, and code > > > suggestions/snippets > > > > What are you talking about exactly? > > I think this list member is suggesting that php be used in the design of > the new Gambas website. I also got from the post that he thinks the vast > amount of already available code might make the job easier. > I'm actually asking for a new look. The internal design won't change: the web site will be html pages generated from Gambas. And if I had to do differently, I won't use PHP for sure! -- Beno?t Minisini From gambas at ...1... Sun Mar 20 21:18:22 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 20 Mar 2011 21:18:22 +0100 Subject: [Gambas-user] Gambas 3 RC pre-release package In-Reply-To: <4D865EFF.2030008@...221...> References: <201103201950.00976.gambas@...1...> <201103202029.53359.gambas@...1...> <4D865EFF.2030008@...221...> Message-ID: <201103202118.22483.gambas@...1...> > With 'make clean', it compiles ok now. > Remember to update the installation instructions. > I will remove the *_moc.cpp files from the source archive, so it should be unneeded soon. Regards, -- Beno?t Minisini From erwin.lemmers at ...2565... Sun Mar 20 21:09:53 2011 From: erwin.lemmers at ...2565... (Erwin Lemmers) Date: Sun, 20 Mar 2011 21:09:53 +0100 Subject: [Gambas-user] compiling Gambas3 Message-ID: <4D865F11.3090606@...2565...> Gambas version from svn is 3669 The distribution I'm using is Slackware Current i did a update today. After a ./reconfigure -C I get the following: || || THESE COMPONENTS ARE DISABLED: || - gb.db.odbc || - gb.db.sqlite2 || - gb.image.imlib || I have installed the image.imlib so this is not well detected by the configure script. After a make I get the follow error message of a missing library that I can't find. libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/i486-slackware-linux/4.5.2/../../../crti.o /usr/lib/gcc/i486-slackware-linux/4.5.2/crtbeginS.o .libs/main.o .libs/cwebsettings.o .libs/cwebframe.o .libs/cwebframe_moc.o .libs/cwebview.o .libs/cwebview_moc.o .libs/ccookiejar.o .libs/ccookiejar_moc.o .libs/cwebhittest.o .libs/cwebdownload.o .libs/cwebdownload_moc.o -Wl,-rpath -Wl,/usr/lib/qt/lib -Wl,-rpath -Wl,/usr/lib/qt/lib -L/usr/lib/qt/lib /usr/lib/qt/lib/libQtDBus.so /usr/lib/qt/lib/libQtXml.so /usr/lib/qt/lib/libQtWebKit.so -L../JavaScriptCore/release -L/usr/X11R6/lib -ljscore /usr/lib/libXrender.so -L/usr/lib /usr/lib/libsqlite3.so -ldl /usr/lib/qt/lib/libQtGui.so /usr/lib/qt/lib/libQtNetwork.so /usr/lib/qt/lib/libQtCore.so -lpthread -L/usr/lib/gcc/i486-slackware-linux/4.5.2 -L/usr/lib/gcc/i486-slackware-linux/4.5.2/../../../../i486-slackware-linux/lib -L/usr/lib/gcc/i486-slackware-linux/4.5.2/../../.. /usr/lib/libstdc++.so -lm -lc -lgcc_s /usr/lib/gcc/i486-slackware-linux/4.5.2/crtendS.o /usr/lib/gcc/i486-slackware-linux/4.5.2/../../../crtn.o -Os -Wl,-soname -Wl,gb.qt4.webkit.so.0 -o .libs/gb.qt4.webkit.so.0.0.0 /usr/lib/gcc/i486-slackware-linux/4.5.2/../../../../i486-slackware-linux/bin/ld: cannot find -ljscore collect2: ld returned 1 exit status make[5]: *** [gb.qt4.webkit.la] Error 1 make[5]: Leaving directory `/usr/src/gambas3/trunk/gb.qt4/src/webkit' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/usr/src/gambas3/trunk/gb.qt4/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/src/gambas3/trunk/gb.qt4' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/gambas3/trunk/gb.qt4' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/gambas3/trunk' make: *** [all] Error 2 Regards Erwin From zz84.kh at ...626... Mon Mar 21 01:28:15 2011 From: zz84.kh at ...626... (Eugeny Gazzaev) Date: Mon, 21 Mar 2011 02:28:15 +0200 Subject: [Gambas-user] Gambas 3 RC pre-release package (Beno?t Minisini) In-Reply-To: References: Message-ID: Hi Benoit! I tried to make Gambas 3 RC on Ubuntu 10.04 x86_64 and all OK!. :) All gathered, except the components gb.gtk, gb.opengl, gb.postgre and gb.sdl (all must be well, I didn't make them). -- Eugeny Gazzaev From gambas at ...1... Mon Mar 21 12:05:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 21 Mar 2011 12:05:40 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: References: <201103191530.02315.gambas@...1...> <201103200459.14026.gambas@...1...> Message-ID: <201103211205.40993.gambas@...1...> > > the packages are basically the old gambas2 debian packages with "2" > replaced by "3" (and using the gambas3 source of course) > Some changes to dependencies are also required to make them build. > However I haven't changed the structure and names of the packages, > these seem to follow the guidelines set in the wiki, with two > exceptions > - gambas3-devel is gambas3-dev, this the Debian naming convention > ("gambas3-devel" would be seen as being RedHat-style) > - gambas3-help doesn't exist as it doesn't seem to build, I'll take a > look at that. > > I'm happy to make other changes to bring these packages into line with > the guidelines, but you will need to state specifically what the > problems are. > > Ian > 1) I don't see where are all the individual binary packages (gambas3-runtime, gambas3-dev...) on the launchpad link you sent. 2) I have updated the "How to package Gambas" on the wiki. The main change is the removal of binary packages for gb.eval and gb.debug. They are both included inside gambas3-runtime package. Regards, -- Beno?t Minisini From pinozollo at ...626... Mon Mar 21 13:01:39 2011 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 21 Mar 2011 09:01:39 -0300 Subject: [Gambas-user] Gambas 3 RC pre-release package Message-ID: <4D873E23.1070303@...626...> Hi, It compiles fine on Ubuntu 10.04 Found that changing the default language of a project in the Project Property window, the OK ramains gray so tha change can not be enabled. I have re-compiled my old project, but at run I get a baloon saying that the form.name is badly erased. Any idea ? Salud Pino From gambas at ...1... Mon Mar 21 13:10:16 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 21 Mar 2011 13:10:16 +0100 Subject: [Gambas-user] Gambas 3 RC pre-release package In-Reply-To: <4D873E23.1070303@...626...> References: <4D873E23.1070303@...626...> Message-ID: <201103211310.16350.gambas@...1...> > Hi, > > It compiles fine on Ubuntu 10.04 > > Found that changing the default language of a project in the Project > Property window, the OK ramains gray so tha change can not be enabled. > > I have re-compiled my old project, but at run I get a baloon saying that > the form.name is badly erased. > > Any idea ? > > Salud > > Pino > No, the message is "badly overridden". It means that your in inheritance is incorrect. Gambas 2 was unable to detect such mistakes. To fix that, simply use another name than "Name", which is already used by the Name property. Regards, -- Beno?t Minisini From gambas at ...1... Mon Mar 21 14:05:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 21 Mar 2011 14:05:48 +0100 Subject: [Gambas-user] Gambas 3 RC 1 pre-release package updated Message-ID: <201103211405.48479.gambas@...1...> Hi, I have updated the Gambas 3 pre-release package with some changes in configuration files. http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2/download Can you try it again please, and tell me if it works on your distribution? Thank in advance. Regards, -- Beno?t Minisini From mauricio at ...2500... Mon Mar 21 16:56:03 2011 From: mauricio at ...2500... (Mauricio Baeza) Date: Mon, 21 Mar 2011 09:56:03 -0600 Subject: [Gambas-user] Gambas 3 RC 1 pre-release package updated In-Reply-To: <201103211405.48479.gambas@...1...> References: <201103211405.48479.gambas@...1...> Message-ID: <1300722963.9158.1.camel@...37...> El lun, 21-03-2011 a las 14:05 +0100, Beno?t Minisini escribi?: > Hi, > > I have updated the Gambas 3 pre-release package with some changes in > configuration files. > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.bz2/download > > Can you try it again please, and tell me if it works on your distribution? > > Thank in advance. > > Regards, > I not view files in directory... http://uploadpie.com/8thgQ Best Regards -- __________________________________ Mauricio Baeza Serv?n Universo Libre M?xico, A.C. Fundador y Director General Todo lo que no podemos dar nos posee... Andre Gide From gambas at ...1... Mon Mar 21 17:04:15 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 21 Mar 2011 17:04:15 +0100 Subject: [Gambas-user] Gambas 3 RC 1 pre-release package updated In-Reply-To: <1300722963.9158.1.camel@...37...> References: <201103211405.48479.gambas@...1...> <1300722963.9158.1.camel@...37...> Message-ID: <201103211704.15818.gambas@...1...> > El lun, 21-03-2011 a las 14:05 +0100, Beno?t Minisini escribi?: > > Hi, > > > > I have updated the Gambas 3 pre-release package with some changes in > > configuration files. > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.b > > z2/download > > > > Can you try it again please, and tell me if it works on your > > distribution? > > > > Thank in advance. > > > > Regards, > > I not view files in directory... > http://uploadpie.com/8thgQ > > > Best Regards WTF ? It told me that the upload has succeeded... I will upload it again. -- Beno?t Minisini From gambas at ...1... Mon Mar 21 17:15:05 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 21 Mar 2011 17:15:05 +0100 Subject: [Gambas-user] Gambas 3 RC 1 pre-release package updated In-Reply-To: <201103211704.15818.gambas@...1...> References: <201103211405.48479.gambas@...1...> <1300722963.9158.1.camel@...37...> <201103211704.15818.gambas@...1...> Message-ID: <201103211715.05100.gambas@...1...> > > El lun, 21-03-2011 a las 14:05 +0100, Beno?t Minisini escribi?: > > > Hi, > > > > > > I have updated the Gambas 3 pre-release package with some changes in > > > configuration files. > > > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar > > > .b z2/download > > > > > > Can you try it again please, and tell me if it works on your > > > distribution? > > > > > > Thank in advance. > > > > > > Regards, > > > > I not view files in directory... > > http://uploadpie.com/8thgQ > > > > > > Best Regards > > WTF ? It told me that the upload has succeeded... I will upload it again. Done. The file is named gambas3-2.99.1.tar.bz2 now: http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.1.tar.bz2/download -- Beno?t Minisini From mauricio at ...2500... Mon Mar 21 17:20:32 2011 From: mauricio at ...2500... (Mauricio Baeza) Date: Mon, 21 Mar 2011 10:20:32 -0600 Subject: [Gambas-user] Gambas 3 RC 1 pre-release package updated In-Reply-To: <201103211704.15818.gambas@...1...> References: <201103211405.48479.gambas@...1...> <1300722963.9158.1.camel@...37...> <201103211704.15818.gambas@...1...> Message-ID: <1300724432.9158.21.camel@...37...> El lun, 21-03-2011 a las 17:04 +0100, Beno?t Minisini escribi?: > > El lun, 21-03-2011 a las 14:05 +0100, Beno?t Minisini escribi?: > > > Hi, > > > > > > I have updated the Gambas 3 pre-release package with some changes in > > > configuration files. > > > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.0.tar.b > > > z2/download > > > > > > Can you try it again please, and tell me if it works on your > > > distribution? > > > > > > Thank in advance. > > > > > > Regards, > > > > I not view files in directory... > > http://uploadpie.com/8thgQ > > > > > > Best Regards > > WTF ? It told me that the upload has succeeded... I will upload it again. > Now is ok: http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.1.tar.bz2/download -- __________________________________ Mauricio Baeza Serv?n Universo Libre M?xico, A.C. Fundador y Director General Todo lo que no podemos dar nos posee... Andre Gide From mauricio at ...2500... Mon Mar 21 17:36:13 2011 From: mauricio at ...2500... (Mauricio Baeza) Date: Mon, 21 Mar 2011 10:36:13 -0600 Subject: [Gambas-user] Gambas 3 RC 1 pre-release package updated In-Reply-To: <201103211715.05100.gambas@...1...> References: <201103211405.48479.gambas@...1...> <1300722963.9158.1.camel@...37...> <201103211704.15818.gambas@...1...> <201103211715.05100.gambas@...1...> Message-ID: <1300725373.9158.23.camel@...37...> El lun, 21-03-2011 a las 17:15 +0100, Beno?t Minisini escribi?: > > Done. The file is named gambas3-2.99.1.tar.bz2 now: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.1.tar.bz2/download > Again, i compile correctly in ArchLinux x64: http://uploadpie.com/DFzZi Again, only message diferent, after ./configure -C || || THESE COMPONENTS ARE DISABLED: || - gb.opengl || - gb.sdl || Best regards -- __________________________________ Mauricio Baeza Serv?n Universo Libre M?xico, A.C. Fundador y Director General Todo lo que no podemos dar nos posee... Andre Gide From math.eber at ...221... Mon Mar 21 19:27:09 2011 From: math.eber at ...221... (Matti) Date: Mon, 21 Mar 2011 19:27:09 +0100 Subject: [Gambas-user] Gambas 3 RC 1 pre-release package updated In-Reply-To: <201103211715.05100.gambas@...1...> References: <201103211405.48479.gambas@...1...> <1300722963.9158.1.camel@...37...> <201103211704.15818.gambas@...1...> <201103211715.05100.gambas@...1...> Message-ID: <4D87987D.5060902@...221...> Installation ok on openSUSE 11.2. Am 21.03.2011 17:15, schrieb Beno?t Minisini: > > Done. The file is named gambas3-2.99.1.tar.bz2 now: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.1.tar.bz2/download > From ihaywood at ...1979... Mon Mar 21 20:21:09 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Tue, 22 Mar 2011 06:21:09 +1100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103211205.40993.gambas@...1...> References: <201103191530.02315.gambas@...1...> <201103200459.14026.gambas@...1...> <201103211205.40993.gambas@...1...> Message-ID: 2011/3/21 Beno?t Minisini : > 1) I don't see where are all the individual binary packages (gambas3-runtime, > gambas3-dev...) on the launchpad link you sent. https://launchpad.net/~ihaywood3/+archive/gambas3/+sourcepub/1558737/+listing-archive-extra From tobiasboe1 at ...20... Mon Mar 21 20:53:13 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 21 Mar 2011 20:53:13 +0100 Subject: [Gambas-user] ftpclient problems Message-ID: <4D87ACA9.7070400@...20...> good evening, i am redirecting a question to you again: ---- this time it's about the FTPClient class. after some research and tries i managed it to upload a file from a pc to a specified directory on an ftp server and to download a file from the ftp server to pc. 1. problem: the events FTPClient_Read(), _Connect() or _Error() don't raise. 2. problem: it also interests how to display the messages shown in the console in the program the source code follows. to test it successfully one has to change the ftp user data. SOURCE CODE: ' Gambas class file PUBLIC SUB Form_Open() FMain.Center FMain.Border = 1 END ' Form_Open() PUBLIC SUB btnFileDownLoad_Click() DIM s AS String oFTPClient.URL = "www.sekundarschuleosterburg.de/AAA/db.css" ' source ---> path to the original file on the ftp server oFTPClient.User = "w00c1898" oFTPClient.Password = "f1#skso" oFTPClient.Get("/home/hans/db.232") ' destination, local path (save as...) on the pc TextArea1.Insert(oFTPClient.Status & gb.NewLine) END ' btnFileDownLoad_Click() ---> GET PUBLIC SUB btnFileUpLoad_Click() oFTPClient.URL = "www.sekundarschuleosterburg.de/abc.123" ' destination ---> path on the ftp server oFTPClient.User = "w00c1898" oFTPClient.Password = "f1#skso" oFTPClient.Put("/home/hans/abc.txt") ' source, path to the original file on the pc TextArea1.Insert(oFTPClient.Status & gb.NewLine) END ' btnFileUpLoad_Click ---> PUT PUBLIC SUB Form_Close() IF oFTPClient.Status = Net.Connected AND oFTPClient.Status <> Net.ReceivingData THEN oFTPClient.Close ENDIF END ' Form_Close() PUBLIC SUB oFTPClient_Connect() IF oFTPClient.Status = Net.Connecting THEN TextArea1.Text = "Es wird ..." & gb.NewLine ENDIF END PUBLIC SUB oFTPClient_Read() DIM sAntwort AS String TextArea1.Insert(oFTPClient.Status & gb.NewLine) 'IF oFTPClient.Status = Net.Connected THEN 'oFTPClient.Peek 'READ #oFTPClient, sAntwort, Lof(oFTPClient) LINE INPUT #LAST, sAntwort 'READ #LAST, sAntwort, -256 TextArea1.Text = TextArea1.Text & sAntwort Label1.Caption = sAntwort 'ENDIF 'TextArea1.Insert("Verbunden" & gb.NewLine) END PUBLIC SUB oFTPClient_Error() TextArea1.Insert("FEHLER!" & gb.NewLine) END any help is appreciated. ---- regards, tobi From lordheavym at ...626... Mon Mar 21 21:22:29 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 21 Mar 2011 21:22:29 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: References: <201103191530.02315.gambas@...1...> <201103200459.14026.gambas@...1...> <201103211205.40993.gambas@...1...> Message-ID: 2011/3/21 Ian Haywood > 2011/3/21 Beno?t Minisini : > > > 1) I don't see where are all the individual binary packages > (gambas3-runtime, > > gambas3-dev...) on the launchpad link you sent. > > https://launchpad.net/~ihaywood3/+archive/gambas3/+sourcepub/1558737/+listing-archive-extra > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > It seem there is a problem with the naming of gb.qt4 packages components, it should be gambas3-gb-qt4 instead of gambas3-gb-qt, also gambas3-gb-opengl-glsl is missing, it's not a part of gambas-gb-opengl package. Regards, Laurent Carlier From lordheavym at ...626... Mon Mar 21 21:25:52 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 21 Mar 2011 21:25:52 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: References: <201103191530.02315.gambas@...1...> <201103200459.14026.gambas@...1...> <201103211205.40993.gambas@...1...> Message-ID: 2011/3/21 Laurent Carlier > > > 2011/3/21 Ian Haywood > >> 2011/3/21 Beno?t Minisini : >> >> > 1) I don't see where are all the individual binary packages >> (gambas3-runtime, >> > gambas3-dev...) on the launchpad link you sent. >> >> https://launchpad.net/~ihaywood3/+archive/gambas3/+sourcepub/1558737/+listing-archive-extra >> >> >> ------------------------------------------------------------------------------ >> Colocation vs. Managed Hosting >> A question and answer guide to determining the best fit >> for your organization - today and in the future. >> http://p.sf.net/sfu/internap-sfd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > It seem there is a problem with the naming of gb.qt4 packages components, > it should be gambas3-gb-qt4 instead of gambas3-gb-qt, > also gambas3-gb-opengl-glsl is missing, it's not a part of gambas-gb-opengl > package. > > Regards, > Laurent Carlier > > Also there is no gambas3-gb-form-stock package in the wiki package list ++ From gambas at ...1... Mon Mar 21 21:38:02 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 21 Mar 2011 21:38:02 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: References: <201103191530.02315.gambas@...1...> Message-ID: <201103212138.02660.gambas@...1...> > > > > It seem there is a problem with the naming of gb.qt4 packages components, > > it should be gambas3-gb-qt4 instead of gambas3-gb-qt, > > also gambas3-gb-opengl-glsl is missing, it's not a part of > > gambas-gb-opengl package. > > > > Regards, > > Laurent Carlier > > Also there is no gambas3-gb-form-stock package in the wiki package list > > ++ Fixed in the wiki page. -- Beno?t Minisini From gambas at ...1... Mon Mar 21 21:38:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 21 Mar 2011 21:38:31 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: References: <201103191530.02315.gambas@...1...> <201103211205.40993.gambas@...1...> Message-ID: <201103212138.31195.gambas@...1...> > 2011/3/21 Beno?t Minisini : > > 1) I don't see where are all the individual binary packages > > (gambas3-runtime, gambas3-dev...) on the launchpad link you sent. > > https://launchpad.net/~ihaywood3/+archive/gambas3/+sourcepub/1558737/+listi > ng-archive-extra > You should read carefully the "how to package gambas" page to know what packages should be done exactly. Regards, -- Beno?t Minisini From gambas at ...1... Mon Mar 21 21:43:26 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 21 Mar 2011 21:43:26 +0100 Subject: [Gambas-user] ftpclient problems In-Reply-To: <4D87ACA9.7070400@...20...> References: <4D87ACA9.7070400@...20...> Message-ID: <201103212143.26744.gambas@...1...> > good evening, > > i am redirecting a question to you again: > > ---- > this time it's about the FTPClient class. after some research and tries > i managed it to upload a file from a pc to a specified directory on an > ftp server and to download a file from the ftp server to pc. > > 1. problem: > the events FTPClient_Read(), _Connect() or _Error() don't raise. > > 2. problem: > it also interests how to display the messages shown in the console in > the program > > the source code follows. to test it successfully one has to change the > ftp user data. > > SOURCE CODE: > > ' Gambas class file > > PUBLIC SUB Form_Open() > > FMain.Center > FMain.Border = 1 > > END ' Form_Open() > > PUBLIC SUB btnFileDownLoad_Click() > DIM s AS String > > oFTPClient.URL = "www.sekundarschuleosterburg.de/AAA/db.css" ' source > ---> path to the original file on the ftp server > oFTPClient.User = "w00c1898" > oFTPClient.Password = "f1#skso" > oFTPClient.Get("/home/hans/db.232") ' destination, local path (save > as...) on the pc > TextArea1.Insert(oFTPClient.Status & gb.NewLine) > > END ' btnFileDownLoad_Click() ---> GET > > PUBLIC SUB btnFileUpLoad_Click() > > oFTPClient.URL = "www.sekundarschuleosterburg.de/abc.123" ' > destination ---> path on the ftp server > oFTPClient.User = "w00c1898" > oFTPClient.Password = "f1#skso" > oFTPClient.Put("/home/hans/abc.txt") ' source, path to the original > file on the pc > TextArea1.Insert(oFTPClient.Status & gb.NewLine) > > END ' btnFileUpLoad_Click ---> PUT > > PUBLIC SUB Form_Close() > > IF oFTPClient.Status = Net.Connected AND oFTPClient.Status <> > Net.ReceivingData THEN > oFTPClient.Close > ENDIF > > END ' Form_Close() > > PUBLIC SUB oFTPClient_Connect() > IF oFTPClient.Status = Net.Connecting THEN > TextArea1.Text = "Es wird ..." & gb.NewLine > ENDIF > END > > PUBLIC SUB oFTPClient_Read() > DIM sAntwort AS String > > TextArea1.Insert(oFTPClient.Status & gb.NewLine) > 'IF oFTPClient.Status = Net.Connected THEN > 'oFTPClient.Peek > 'READ #oFTPClient, sAntwort, Lof(oFTPClient) > LINE INPUT #LAST, sAntwort > 'READ #LAST, sAntwort, -256 > TextArea1.Text = TextArea1.Text & sAntwort > Label1.Caption = sAntwort > 'ENDIF > > 'TextArea1.Insert("Verbunden" & gb.NewLine) > > END > > PUBLIC SUB oFTPClient_Error() > > TextArea1.Insert("FEHLER!" & gb.NewLine) > > END > > any help is appreciated. > ---- > > regards, > tobi > The Read event is raised in asynchronous mode only, i.e. if the Async property has been set. The FtpClient apparently never raise the Connect event. When should that event be raised? The Error event should be raised as soon as there is an error. I don't understand your english sentence in the point #2. And finally, please send a full project when some problem must be reproduced. Regards, -- Beno?t Minisini From lordheavym at ...626... Mon Mar 21 21:45:17 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 21 Mar 2011 21:45:17 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103212138.31195.gambas@...1...> References: <201103191530.02315.gambas@...1...> <201103211205.40993.gambas@...1...> <201103212138.31195.gambas@...1...> Message-ID: Le 21 mars 2011 21:38, Beno?t Minisini a ?crit : > > 2011/3/21 Beno?t Minisini : > > > 1) I don't see where are all the individual binary packages > > > (gambas3-runtime, gambas3-dev...) on the launchpad link you sent. > > > > > https://launchpad.net/~ihaywood3/+archive/gambas3/+sourcepub/1558737/+listi > > ng-archive-extra > > > > You should read carefully the "how to package gambas" page to know what > packages should be done exactly. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Also the list is available here: http://www.archlinux.org/groups/i686/gambas3/ From lordheavym at ...626... Mon Mar 21 21:46:58 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 21 Mar 2011 21:46:58 +0100 Subject: [Gambas-user] Gambas 3 RC 1 pre-release package updated In-Reply-To: <1300725373.9158.23.camel@...37...> References: <201103211405.48479.gambas@...1...> <1300722963.9158.1.camel@...37...> <201103211704.15818.gambas@...1...> <201103211715.05100.gambas@...1...> <1300725373.9158.23.camel@...37...> Message-ID: 2011/3/21 Mauricio Baeza > El lun, 21-03-2011 a las 17:15 +0100, Beno?t Minisini escribi?: > > > > > > Done. The file is named gambas3-2.99.1.tar.bz2 now: > > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.1.tar.bz2/download > > > > > > Again, i compile correctly in ArchLinux x64: http://uploadpie.com/DFzZi > > Again, only message diferent, after ./configure -C > > || > || THESE COMPONENTS ARE DISABLED: > || - gb.opengl > || - gb.sdl > || > > > Best regards > > > -- > __________________________________ > Mauricio Baeza Serv?n > Universo Libre M?xico, A.C. > Fundador y Director General > > Todo lo que no podemos dar nos posee... Andre Gide > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Gambas3 is available in the commumity-testing repo, you can take a look at the PKGBUILD package if you want to know the correct dependencies. ++ From lordheavym at ...626... Mon Mar 21 21:54:21 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 21 Mar 2011 21:54:21 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103212138.02660.gambas@...1...> References: <201103191530.02315.gambas@...1...> <201103212138.02660.gambas@...1...> Message-ID: Le 21 mars 2011 21:38, Beno?t Minisini a ?crit : > > > > > > It seem there is a problem with the naming of gb.qt4 packages > components, > > > it should be gambas3-gb-qt4 instead of gambas3-gb-qt, > > > also gambas3-gb-opengl-glsl is missing, it's not a part of > > > gambas-gb-opengl package. > > > > > > Regards, > > > Laurent Carlier > > > > Also there is no gambas3-gb-form-stock package in the wiki package list > > > > ++ > > Fixed in the wiki page. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > What package depend on this component ? ++ From gambas at ...1... Mon Mar 21 22:05:01 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 21 Mar 2011 22:05:01 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: References: <201103191530.02315.gambas@...1...> <201103212138.02660.gambas@...1...> Message-ID: <201103212205.01245.gambas@...1...> > > > > > > Also there is no gambas3-gb-form-stock package in the wiki package list > > > > > > ++ > > > > Fixed in the wiki page. > > > > -- > > Beno?t Minisini > > > > What package depend on this component ? > gb.form.stock depends on nothing. It is just an hidden component used for storing stock icon files. It is loaded by gb.form only if really needed. -- Beno?t Minisini From linuxos at ...1896... Tue Mar 22 00:48:41 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Tue, 22 Mar 2011 00:48:41 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103212205.01245.gambas@...1...> References: <201103191530.02315.gambas@...1...> <201103212138.02660.gambas@...1...> <201103212205.01245.gambas@...1...> Message-ID: <4E4CA56D-95D7-481D-83E6-F087F3C19511@...1896...> Hi Benoit, I think there is a problem with the ToolBar object and the property 'Orientation' Horizontal orientation is ok but not the Vertical orientation. Olivier Cruilles Mail: linuxos at ...1896... > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From linuxos at ...1896... Tue Mar 22 00:50:24 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Tue, 22 Mar 2011 00:50:24 +0100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: <201103212205.01245.gambas@...1...> References: <201103191530.02315.gambas@...1...> <201103212138.02660.gambas@...1...> <201103212205.01245.gambas@...1...> Message-ID: <5BF4A09F-7471-4821-B8AA-C227FFFE1CFB@...1896...> Oups sorry, On Fedora 14, Gambas 2.99 RC1 Olivier Cruilles Mail: linuxos at ...1896... Le 21 mars 2011 ? 22:05, Beno?t Minisini a ?crit : > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From anthony at ...2542... Tue Mar 22 03:14:41 2011 From: anthony at ...2542... (Anthony Tekatch) Date: Mon, 21 Mar 2011 22:14:41 -0400 Subject: [Gambas-user] Gambas 3 RC 1 pre-release package updated In-Reply-To: <201103211715.05100.gambas@...1...> References: <201103211405.48479.gambas@...1...> <1300722963.9158.1.camel@...37...> <201103211704.15818.gambas@...1...> <201103211715.05100.gambas@...1...> Message-ID: <20110321221441.4b97bba3@...2543...> > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-2.99.1.tar.bz2/download I hope this isn't too dumb :) After ./reconf-all and ./configure, I get this: || THESE COMPONENTS ARE DISABLED: || - gb.db.odbc || - gb.db.postgresql || - gb.db.sqlite2 || - gb.db.sqlite3 || - gb.desktop || - gb.gtk || - gb.net.curl || - gb.opengl || - gb.pdf || - gb.qt4 || - gb.sdl || - gb.sdl.sound || - gb.v4l || - gb.xml Is there an easy place to look to find all the Ubuntu packages that need to be installed to enable those components? This is my setup: uname -m = x86_64 uname -r = 2.6.35-28-generic uname -s = Linux uname -v = #49-Ubuntu SMP Tue Mar 1 14:39:03 UTC 2011 Thanks! From ihaywood at ...1979... Tue Mar 22 03:15:17 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Tue, 22 Mar 2011 13:15:17 +1100 Subject: [Gambas-user] Gambas 3 RC1 pre-release source package In-Reply-To: References: <201103191530.02315.gambas@...1...> <201103200459.14026.gambas@...1...> <201103211205.40993.gambas@...1...> Message-ID: On Tue, Mar 22, 2011 at 7:22 AM, Laurent Carlier wrote: > 2011/3/21 Ian Haywood > >> 2011/3/21 Beno?t Minisini : >> >> > 1) I don't see where are all the individual binary packages >> (gambas3-runtime, >> > gambas3-dev...) on the launchpad link you sent. >> >> https://launchpad.net/~ihaywood3/+archive/gambas3/+sourcepub/1558737/+listing-archive-extra >> >> >> ------------------------------------------------------------------------------ >> Colocation vs. Managed Hosting >> A question and answer guide to determining the best fit >> for your organization - today and in the future. >> http://p.sf.net/sfu/internap-sfd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > It seem there is a problem with the naming of gb.qt4 packages components, it > should be gambas3-gb-qt4 instead of gambas3-gb-qt, will do. > also gambas3-gb-opengl-glsl is missing, it's not a part of gambas-gb-opengl > package. will take a look. do you know what "glsl" stands for? (to help work out dependencies?) Ian From kevinfishburne at ...1887... Tue Mar 22 03:27:15 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 21 Mar 2011 22:27:15 -0400 Subject: [Gambas-user] translating planar coordinates relative to point's angle In-Reply-To: <1300354795.24355.4417.camel@...2479...> References: <4D7DB222.200@...1887...> <4D7DD5FB.1080904@...1909...> <4D7E8718.7020804@...1887...> <4D7F7FCD.2000209@...1909...> <4D7FC60E.2050107@...1887...> <4D7FD43C.50000@...1909...> <4D8190A9.9090804@...1887...> <1300354795.24355.4417.camel@...2479...> Message-ID: <4D880903.6090107@...1887...> On 03/17/2011 05:39 AM, Caveat wrote: > Hi Kevin > Great to hear you got it working. I was having a discussion with a > developer friend of mine who needs to do a lot of "math stuff" in his > work and he came up with the suggestion to use affines, just a little > after Doriano came up with the working solution (which is actually based > on affines). > > If you want more background (and it looks like you may need it), he > suggested you try this link: > > http://en.wikipedia.org/wiki/Rotation_%28mathematics%29 Hi Caveat. Thanks for the link. I've looked it over a couple of times and it's good that it has the basic formula. My problem is that while I'm very creative/intelligent/determined, it's hard for me to relate a lot of mathematical principles to practical problems/solutions in code. I don't know if I have a learning disability or some other deficiency, but it's always been hard for me to apply abstract principles to things in real life, especially mathematics. It's very frustrating as you can imagine. On that note I'm about to start another thread on a similar subject, so hopefully someone can help me there too. Fortunately for me most of the "crazy" stuff in my app is complete and I can move on to other things. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Tue Mar 22 04:28:14 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 21 Mar 2011 23:28:14 -0400 Subject: [Gambas-user] the math behind full screen rotation Message-ID: <4D88174E.8080100@...1887...> Just when I thought I could see the sun I was cast down again into darkness. I've been working on this problem for several days with limited success. I'm trying to implement full screen rotation in an overhead-perspective game. The angle of the screen is locked to the angle of the player. If the player turns then the screen also turns, meaning the player is always facing "up". Here is an example of exactly what I'm trying to do: http://www.youtube.com/watch?v=lX_bhygaSy0 These are the variables I'm working with: orientation ' Player/camera's angle in degrees (Rad(orientation)). bworkspace ' Image buffer containing the original non-rotated background. brotated ' Image buffer containing the new rotated bworkspace. cx ' Camera's x coordinate in bworkspace. cy ' Camera's y coordinate in bworkspace. brotated is larger than bworkspace because the rotation function doesn't crop the rotated image: http://www.eightvirtues.com/sanctimonia/images/bworkspace.png (512x512) http://www.eightvirtues.com/sanctimonia/images/brotated.png(725x726) How do I convert the camera coordinates (cx, cy) in bworkspace to the equivalent coordinates in brotated? Essentially I need bworkspace to be rotated around (cx,cy), but the rotate function only rotates about the center of the image. Because of this I think I need some combination of rotating (cx,cy) about some point and offseting it as well. Reading my own email it sounds simple, but I've tried so many things that I can't believe I haven't solved the problem through sheer luck. -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 From mauricio at ...2500... Tue Mar 22 06:25:17 2011 From: mauricio at ...2500... (Mauricio Baeza) Date: Mon, 21 Mar 2011 23:25:17 -0600 Subject: [Gambas-user] Gambas 3 RC 1 pre-release package updated In-Reply-To: References: <201103211405.48479.gambas@...1...> <1300722963.9158.1.camel@...37...> <201103211704.15818.gambas@...1...> <201103211715.05100.gambas@...1...> <1300725373.9158.23.camel@...37...> Message-ID: <1300771517.2194.11.camel@...37...> On lun, 2011-03-21 at 21:46 +0100, Laurent Carlier wrote: > Gambas3 is available in the commumity-testing repo, you can take a > look at > the PKGBUILD package if you > want to know the correct dependencies. Thanks, I was missing the following optional units: sdl_ttf, sdl_gfx, glew Is now complete Best regards -- __________________________________ Mauricio Baeza Serv?n Universo Libre M?xico, A.C. Fundador y Director General Todo lo que no podemos dar nos posee... Andre Gide From bill-lancaster at ...2231... Tue Mar 22 10:07:22 2011 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Tue, 22 Mar 2011 02:07:22 -0700 (PDT) Subject: [Gambas-user] help with EXEC usage Message-ID: <31208112.post@...1379...> This works OK in terminal:- get_iplayer --stream 12735 | mplayer -cache 3072 - But I can't get it to run in EXEC, e.g $hProcess = EXEC ["get_iplayer", "--stream", "12735", "|", "mplayer", "-cache", "3072 -"] and all kind of other permuations. Any help would be appreciated Bill Lancaster -- View this message in context: http://old.nabble.com/help-with-EXEC-usage-tp31208112p31208112.html Sent from the gambas-user mailing list archive at Nabble.com. From tobiasboe1 at ...20... Tue Mar 22 17:25:14 2011 From: tobiasboe1 at ...20... (tobias) Date: Tue, 22 Mar 2011 17:25:14 +0100 Subject: [Gambas-user] ftpclient problems In-Reply-To: <201103212143.26744.gambas@...1...> References: <4D87ACA9.7070400@...20...> <201103212143.26744.gambas@...1...> Message-ID: <4D88CD6A.3060205@...20...> hello, > I don't understand your english sentence in the point #2. > yes, i don't understand the german original either, i just translated the words :) i will ask for that sentence and the project. regards. From jussi.lahtinen at ...626... Tue Mar 22 17:58:56 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 22 Mar 2011 18:58:56 +0200 Subject: [Gambas-user] help with EXEC usage In-Reply-To: <31208112.post@...1379...> References: <31208112.post@...1379...> Message-ID: I think you need to use shell if you need pipes. http://gambasdoc.org/help/doc/shellexec Jussi On Tue, Mar 22, 2011 at 11:07, Bill-Lancaster wrote: > > This works OK in terminal:- > > get_iplayer --stream 12735 | mplayer -cache 3072 - > > But I can't get it to run in EXEC, e.g > > $hProcess = EXEC ["get_iplayer", "--stream", "12735", "|", "mplayer", > "-cache", "3072 -"] > > and all kind of other permuations. > > Any help would be appreciated > > Bill Lancaster > > -- > View this message in context: > http://old.nabble.com/help-with-EXEC-usage-tp31208112p31208112.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Mar 22 20:35:26 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 22 Mar 2011 21:35:26 +0200 Subject: [Gambas-user] Crash (sgn 11) with console Message-ID: Way to reproduce the problem. 1. Open any project to IDE. 2. Click on console. 3. Type in "? ." 4. Click on editor. Gambas 3 rev 3657 @ Ubuntu 10.10 64bit Jussi From mauricio at ...2500... Tue Mar 22 20:51:30 2011 From: mauricio at ...2500... (Mauricio Baeza) Date: Tue, 22 Mar 2011 13:51:30 -0600 Subject: [Gambas-user] Crash (sgn 11) with console In-Reply-To: References: Message-ID: <1300823490.20834.4.camel@...37...> El mar, 22-03-2011 a las 21:35 +0200, Jussi Lahtinen escribi?: > Way to reproduce the problem. > > 1. Open any project to IDE. > 2. Click on console. > 3. Type in "? ." > 4. Click on editor. > > Gambas 3 rev 3657 @ Ubuntu 10.10 64bit > > Jussi Also in ArchLinx x64 -- __________________________________ Mauricio Baeza Serv?n From nkoch22 at ...626... Wed Mar 23 05:30:13 2011 From: nkoch22 at ...626... (Nicolas Koch) Date: Wed, 23 Mar 2011 00:30:13 -0400 Subject: [Gambas-user] Gambas 2.15.2_2 has just been released.on PBIdir for PC-BSD Message-ID: Gambas 2.15.2 is a little old, but at least users no longer have to build 2.15 from freshports on PC-BSD. Enjoy! http://www.pbidir.com/bt/pbi/6/gambas -- -Nick From bill-lancaster at ...2231... Wed Mar 23 09:37:17 2011 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Wed, 23 Mar 2011 01:37:17 -0700 (PDT) Subject: [Gambas-user] help with EXEC usage In-Reply-To: References: <31208112.post@...1379...> Message-ID: <31217709.post@...1379...> Jussi, thanks for the advice. I forgot to mention that it worked also with SHELL but I had no control over the process. $hProcess = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072 -") FOR WRITE Neither PRINT #$hProcess, "q"; nor IF $hProcess THEN $hProcess.Kill nor PRINT #$hProcess, "^c"; works. Is there something in get_iplayer or mplayer that I'm missing or am I not using SHELL properly? Bill -- View this message in context: http://old.nabble.com/help-with-EXEC-usage-tp31208112p31217709.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Mar 23 14:05:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 23 Mar 2011 14:05:03 +0100 Subject: [Gambas-user] Crash (sgn 11) with console In-Reply-To: <1300823490.20834.4.camel@...37...> References: <1300823490.20834.4.camel@...37...> Message-ID: <201103231405.03223.gambas@...1...> > El mar, 22-03-2011 a las 21:35 +0200, Jussi Lahtinen escribi?: > > Way to reproduce the problem. > > > > 1. Open any project to IDE. > > 2. Click on console. > > 3. Type in "? ." > > 4. Click on editor. > > > > Gambas 3 rev 3657 @ Ubuntu 10.10 64bit > > > > Jussi > > Also in ArchLinx x64 Fixed in revision #3677. Regards, -- Beno?t Minisini From gambas at ...1... Wed Mar 23 14:13:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 23 Mar 2011 14:13:40 +0100 Subject: [Gambas-user] the math behind full screen rotation In-Reply-To: <4D88174E.8080100@...1887...> References: <4D88174E.8080100@...1887...> Message-ID: <201103231413.40889.gambas@...1...> > Just when I thought I could see the sun I was cast down again into > darkness. I've been working on this problem for several days with > limited success. > > I'm trying to implement full screen rotation in an overhead-perspective > game. The angle of the screen is locked to the angle of the player. If > the player turns then the screen also turns, meaning the player is > always facing "up". Here is an example of exactly what I'm trying to do: > http://www.youtube.com/watch?v=lX_bhygaSy0 > > These are the variables I'm working with: > > orientation ' Player/camera's angle in degrees (Rad(orientation)). > bworkspace ' Image buffer containing the original non-rotated background. > brotated ' Image buffer containing the new rotated bworkspace. > cx ' Camera's x coordinate in bworkspace. > cy ' Camera's y coordinate in bworkspace. > > brotated is larger than bworkspace because the rotation function doesn't > crop the rotated image: > > http://www.eightvirtues.com/sanctimonia/images/bworkspace.png (512x512) > http://www.eightvirtues.com/sanctimonia/images/brotated.png(725x726) > > How do I convert the camera coordinates (cx, cy) in bworkspace to the > equivalent coordinates in brotated? Essentially I need bworkspace to be > rotated around (cx,cy), but the rotate function only rotates about the > center of the image. Because of this I think I need some combination of > rotating (cx,cy) about some point and offseting it as well. Reading my > own email it sounds simple, but I've tried so many things that I can't > believe I haven't solved the problem through sheer luck. The Rotate method is slow, and it rotates only around the image center. So you have to crop the image first, rotate it, and crop it again. The initial crop should be the size of the final display * SQR(2), so that any rotation will fit. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Wed Mar 23 16:12:50 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 23 Mar 2011 17:12:50 +0200 Subject: [Gambas-user] help with EXEC usage In-Reply-To: <31217709.post@...1379...> References: <31208112.post@...1379...> <31217709.post@...1379...> Message-ID: Name is missing... $hProcess = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072-") FOR WRITE *As "Process"* Jussi On Wed, Mar 23, 2011 at 10:37, Bill-Lancaster wrote: > > Jussi, thanks for the advice. > > I forgot to mention that it worked also with SHELL but I had no control > over > the process. > $hProcess = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072 > -") FOR WRITE > Neither > PRINT #$hProcess, "q"; > nor > IF $hProcess THEN $hProcess.Kill > nor > PRINT #$hProcess, "^c"; > works. > > Is there something in get_iplayer or mplayer that I'm missing or am I not > using SHELL properly? > > Bill > -- > View this message in context: > http://old.nabble.com/help-with-EXEC-usage-tp31208112p31217709.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Mar 23 16:22:17 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 23 Mar 2011 17:22:17 +0200 Subject: [Gambas-user] help with EXEC usage In-Reply-To: References: <31208112.post@...1379...> <31217709.post@...1379...> Message-ID: Hmmm... no wait... you are working with Gambas 2. I don't know what is wrong. Please send little project to demonstrate the problem. Jussi On Wed, Mar 23, 2011 at 17:12, Jussi Lahtinen wrote: > Name is missing... > $hProcess = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072-") FOR > WRITE *As "Process"* > > Jussi > > > > > On Wed, Mar 23, 2011 at 10:37, Bill-Lancaster wrote: > >> >> Jussi, thanks for the advice. >> >> I forgot to mention that it worked also with SHELL but I had no control >> over >> the process. >> $hProcess = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072 >> -") FOR WRITE >> Neither >> PRINT #$hProcess, "q"; >> nor >> IF $hProcess THEN $hProcess.Kill >> nor >> PRINT #$hProcess, "^c"; >> works. >> >> Is there something in get_iplayer or mplayer that I'm missing or am I not >> using SHELL properly? >> >> Bill >> -- >> View this message in context: >> http://old.nabble.com/help-with-EXEC-usage-tp31208112p31217709.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Enable your software for Intel(R) Active Management Technology to meet the >> growing manageability and security demands of your customers. Businesses >> are taking advantage of Intel(R) vPro (TM) technology - will your software >> be a part of the solution? Download the Intel(R) Manageability Checker >> today! http://p.sf.net/sfu/intel-dev2devmar >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From bill-lancaster at ...2231... Wed Mar 23 16:51:42 2011 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Wed, 23 Mar 2011 08:51:42 -0700 (PDT) Subject: [Gambas-user] help with EXEC usage In-Reply-To: References: <31208112.post@...1379...> <31217709.post@...1379...> Message-ID: <31221079.post@...1379...> Jussi - little project attached -- View this message in context: http://old.nabble.com/help-with-EXEC-usage-tp31208112p31221079.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Wed Mar 23 17:42:52 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 23 Mar 2011 18:42:52 +0200 Subject: [Gambas-user] help with EXEC usage In-Reply-To: <31221079.post@...1379...> References: <31208112.post@...1379...> <31217709.post@...1379...> <31221079.post@...1379...> Message-ID: Can't see attachment..? Jussi On Wed, Mar 23, 2011 at 17:51, Bill-Lancaster wrote: > > Jussi - little project attached > -- > View this message in context: > http://old.nabble.com/help-with-EXEC-usage-tp31208112p31221079.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Thu Mar 24 01:43:26 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 24 Mar 2011 00:43:26 +0000 Subject: [Gambas-user] Issue 53 in gambas: peculiar button highlighting when hovering over button In-Reply-To: <0-6813199134517018827-9549388421848447991-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9549388421848447991-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9549388421848447991-gambas=googlecode.com@...2524...> Updates: Status: Invalid Labels: -Version Version-TRUNK Comment #1 on issue 53 by benoit.m... at ...626...: peculiar button highlighting when hovering over button http://code.google.com/p/gambas/issues/detail?id=53 That behaviour may depend on the style. What I see on my own machine seems perfectly normal, with the code you wrote. But by incorrectly managing Mouse events, you may interfer with the button normal behaviour. You must not use WAIT inside a mouse event handler. Bad idea! :-) If you want to implement auto-repeat, you must use a Timer. From kevinfishburne at ...1887... Thu Mar 24 04:03:20 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 23 Mar 2011 23:03:20 -0400 Subject: [Gambas-user] the math behind full screen rotation In-Reply-To: <201103231413.40889.gambas@...1...> References: <4D88174E.8080100@...1887...> <201103231413.40889.gambas@...1...> Message-ID: <4D8AB478.6060009@...1887...> On 03/23/2011 09:13 AM, Beno?t Minisini wrote: >> I'm trying to implement full screen rotation in an overhead-perspective >> game. The angle of the screen is locked to the angle of the player. If >> the player turns then the screen also turns, meaning the player is >> always facing "up". Here is an example of exactly what I'm trying to do: >> http://www.youtube.com/watch?v=lX_bhygaSy0 >> >> These are the variables I'm working with: >> >> orientation ' Player/camera's angle in degrees (Rad(orientation)). >> bworkspace ' Image buffer containing the original non-rotated background. >> brotated ' Image buffer containing the new rotated bworkspace. >> cx ' Camera's x coordinate in bworkspace. >> cy ' Camera's y coordinate in bworkspace. >> >> brotated is larger than bworkspace because the rotation function doesn't >> crop the rotated image: >> >> http://www.eightvirtues.com/sanctimonia/images/bworkspace.png (512x512) >> http://www.eightvirtues.com/sanctimonia/images/brotated.png(725x726) >> >> How do I convert the camera coordinates (cx, cy) in bworkspace to the >> equivalent coordinates in brotated? Essentially I need bworkspace to be >> rotated around (cx,cy), but the rotate function only rotates about the >> center of the image. Because of this I think I need some combination of >> rotating (cx,cy) about some point and offseting it as well. Reading my >> own email it sounds simple, but I've tried so many things that I can't >> believe I haven't solved the problem through sheer luck. > The Rotate method is slow, and it rotates only around the image center. > > So you have to crop the image first, rotate it, and crop it again. The initial > crop should be the size of the final display * SQR(2), so that any rotation > will fit. That will probably work, but there should be a mathematical way to compensate for not cropping the image twice, or even once. As long as the entire image is preserved by the rotation function (it is) and it behaves in a predictable manner (it does), the camera's coordinates should be able to be translated and rotated so that they are in the same position in the rotated image as they were in the non-rotated image. For the sake of efficiency that is what I'm trying to accomplish. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From support at ...2529... Thu Mar 24 05:05:52 2011 From: support at ...2529... (John Spikowski) Date: Wed, 23 Mar 2011 21:05:52 -0700 Subject: [Gambas-user] the math behind full screen rotation In-Reply-To: <4D8AB478.6060009@...1887...> References: <4D88174E.8080100@...1887...> <201103231413.40889.gambas@...1...> <4D8AB478.6060009@...1887...> Message-ID: <1300939552.1846.23.camel@...2530...> On Wed, 2011-03-23 at 23:03 -0400, Kevin Fishburne wrote: > That will probably work, but there should be a mathematical way to > compensate for not cropping the image twice, or even once. As long as > the entire image is preserved by the rotation function (it is) and it > behaves in a predictable manner (it does), the camera's coordinates > should be able to be translated and rotated so that they are in the same > position in the rotated image as they were in the non-rotated image. For > the sake of efficiency that is what I'm trying to accomplish. > This thread might help. (or not) http://forums.libsdl.org/viewtopic.php?t=2983&sid=1d2c6a94470c0fd56f3f542cd702ec37 From bill-lancaster at ...2231... Thu Mar 24 07:45:28 2011 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Wed, 23 Mar 2011 23:45:28 -0700 (PDT) Subject: [Gambas-user] help with EXEC usage In-Reply-To: References: <31208112.post@...1379...> <31217709.post@...1379...> <31221079.post@...1379...> Message-ID: <31226463.post@...1379...> Sorry - I'll try again. Its so simple, hardly worth making a project. I'm using get_iplayer in a Gambas project to download past BBC radio programmes. It's working fine. To listen to the programme, this is the code - get_iplayer --stream 13142 | mplayer -cache 3072 -, where 13142 is the programme's index in get_iplayer. I can start the programme but can't stop it. Anyway, here's a small project Bill PUBLIC hProc AS Process PUBLIC SUB btnPlay_Click() hProc = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072 -") FOR WRITE END PUBLIC SUB btnStop_Click() IF hProc THEN hProc.Kill END -- View this message in context: http://old.nabble.com/help-with-EXEC-usage-tp31208112p31226463.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Thu Mar 24 20:36:11 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 24 Mar 2011 21:36:11 +0200 Subject: [Gambas-user] help with EXEC usage In-Reply-To: <31226463.post@...1379...> References: <31208112.post@...1379...> <31217709.post@...1379...> <31221079.post@...1379...> <31226463.post@...1379...> Message-ID: Bit short of time... but quickly looking at this. I'm not sure but I think this problem has something to do with fact that you are starting two process with shell command. And I'm not sure how Gambas2 handles these... does it try to kill the shell itself, or process started with command shell. So, you can try retrieve separated process pids (for get_iplayer and for mplayer) with pgrep, and use them to kill those processes. Maybe this is bug, Benoit? Jussi On Thu, Mar 24, 2011 at 08:45, Bill-Lancaster wrote: > > Sorry - I'll try again. > > Its so simple, hardly worth making a project. > > I'm using get_iplayer in a Gambas project to download past BBC radio > programmes. > > It's working fine. To listen to the programme, this is the code - > get_iplayer --stream 13142 | mplayer -cache 3072 -, where 13142 is the > programme's index in get_iplayer. > > I can start the programme but can't stop it. > > Anyway, here's a small project > > Bill > > > PUBLIC hProc AS Process > > PUBLIC SUB btnPlay_Click() > hProc = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072 -") > FOR WRITE > END > > PUBLIC SUB btnStop_Click() > IF hProc THEN hProc.Kill > END > > > -- > View this message in context: > http://old.nabble.com/help-with-EXEC-usage-tp31208112p31226463.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Mar 25 00:12:37 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 25 Mar 2011 00:12:37 +0100 Subject: [Gambas-user] help with EXEC usage In-Reply-To: References: <31208112.post@...1379...> <31226463.post@...1379...> Message-ID: <201103250012.37615.gambas@...1...> > Bit short of time... but quickly looking at this. > I'm not sure but I think this problem has something to do with fact that > you are starting two process with shell command. > And I'm not sure how Gambas2 handles these... does it try to kill the shell > itself, or process started with command shell. > > So, you can try retrieve separated process pids (for get_iplayer and for > mplayer) with pgrep, and use them to kill those processes. > > Maybe this is bug, Benoit? > > Jussi > Gambas kills the shell process by sending it the SIGKILL signal. He is not aware of the processes run by the shell itself, and I don't know if the shell kills its child processes automatically when being killed. -- Beno?t Minisini From gambas at ...1... Fri Mar 25 00:21:52 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 25 Mar 2011 00:21:52 +0100 Subject: [Gambas-user] help with EXEC usage In-Reply-To: <201103250012.37615.gambas@...1...> References: <31208112.post@...1379...> <201103250012.37615.gambas@...1...> Message-ID: <201103250021.52462.gambas@...1...> > > Bit short of time... but quickly looking at this. > > I'm not sure but I think this problem has something to do with fact that > > you are starting two process with shell command. > > And I'm not sure how Gambas2 handles these... does it try to kill the > > shell itself, or process started with command shell. > > > > So, you can try retrieve separated process pids (for get_iplayer and for > > mplayer) with pgrep, and use them to kill those processes. > > > > Maybe this is bug, Benoit? > > > > Jussi > > Gambas kills the shell process by sending it the SIGKILL signal. He is not > aware of the processes run by the shell itself, and I don't know if the > shell kills its child processes automatically when being killed. Yes: I have just tested inside a terminal. If I run a shell, then run mplayer inside the shell, sending SIGKILL to the shell will kills it, but not mplayer. BUT: if you send the SIGHUP signal to the shell, it will quit correctly by closing all its children first. So you can try that. In Gambas 2, you have to use the shell command "kill", so you have to run SHELL again to kill the first one! Regards, -- Beno?t Minisini From bill-lancaster at ...2231... Fri Mar 25 09:20:25 2011 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Fri, 25 Mar 2011 01:20:25 -0700 (PDT) Subject: [Gambas-user] help with EXEC usage In-Reply-To: <201103250021.52462.gambas@...1...> References: <31208112.post@...1379...> <31217709.post@...1379...> <31221079.post@...1379...> <31226463.post@...1379...> <201103250012.37615.gambas@...1...> <201103250021.52462.gambas@...1...> Message-ID: <31235898.post@...1379...> Beno?t, what do you mean by "run shell again" ? I tried:- IF hProc THEN hProc.Kill SHELL "" ENDIF with no effect Bill -- View this message in context: http://old.nabble.com/help-with-EXEC-usage-tp31208112p31235898.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Fri Mar 25 18:56:05 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 25 Mar 2011 19:56:05 +0200 Subject: [Gambas-user] help with EXEC usage In-Reply-To: <31235898.post@...1379...> References: <31208112.post@...1379...> <31217709.post@...1379...> <31221079.post@...1379...> <31226463.post@...1379...> <201103250012.37615.gambas@...1...> <201103250021.52462.gambas@...1...> <31235898.post@...1379...> Message-ID: I think this is what Benoit means; PUBLIC hProc AS Process PUBLIC SUB btnPlay_Click() hProc = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072 -") FOR WRITE END PUBLIC SUB btnStop_Click() IF hProc.State = Process.Running THEN DEBUG hProc.Handle SHELL "kill -s HUP " & CStr(hProc.Handle) ENDIF END However it doesn't work with me, differences between distributions? But maybe with different signal... or then with pgrep as I described earlier. Gambas 2.22 rev 3527 @ Ubuntu 10.10 64bit Jussi On Fri, Mar 25, 2011 at 10:20, Bill-Lancaster wrote: > > Beno?t, what do you mean by "run shell again" ? > I tried:- > IF hProc THEN > hProc.Kill > SHELL "" > ENDIF > with no effect > Bill > -- > View this message in context: > http://old.nabble.com/help-with-EXEC-usage-tp31208112p31235898.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Mar 25 19:00:29 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 25 Mar 2011 19:00:29 +0100 Subject: [Gambas-user] help with EXEC usage In-Reply-To: References: <31208112.post@...1379...> <31235898.post@...1379...> Message-ID: <201103251900.29214.gambas@...1...> > I think this is what Benoit means; > > PUBLIC hProc AS Process > > PUBLIC SUB btnPlay_Click() > hProc = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072 -") > FOR WRITE > END > > PUBLIC SUB btnStop_Click() > > IF hProc.State = Process.Running THEN > DEBUG hProc.Handle > SHELL "kill -s HUP " & CStr(hProc.Handle) > ENDIF > > END > > > However it doesn't work with me, differences between distributions? > But maybe with different signal... or then with pgrep as I described > earlier. > > Gambas 2.22 rev 3527 @ Ubuntu 10.10 64bit > Jussi > I tried with just mplayer, and "kill -SIGHUP". Don't know if that makes a difference... -- Beno?t Minisini From jussi.lahtinen at ...626... Fri Mar 25 19:21:11 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 25 Mar 2011 20:21:11 +0200 Subject: [Gambas-user] help with EXEC usage In-Reply-To: <201103251900.29214.gambas@...1...> References: <31208112.post@...1379...> <31235898.post@...1379...> <201103251900.29214.gambas@...1...> Message-ID: This seems to work... but it is not very nice code, as it doesn't make distinction of what instance of "get_iplayer" or "mplayer you are dealing with... Also it leaves some trash (get_iplayer doesn't take care of it's trashes!) to ~/.get_iplayer. Maybe get_iplayer should be killed with some other signal. PUBLIC SUB btnStop_Click() DIM pid1 AS String DIM pid2 AS String IF hProc.State = Process.Running THEN SHELL ("pidof get_iplayer") TO pid1 SHELL ("pidof mplayer") TO pid2 DEBUG pid1;; pid2 SHELL "kill " & pid1 & " " & pid2 hProc.Kill() ENDIF END Jussi 2011/3/25 Beno?t Minisini > > I think this is what Benoit means; > > > > PUBLIC hProc AS Process > > > > PUBLIC SUB btnPlay_Click() > > hProc = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072 -") > > FOR WRITE > > END > > > > PUBLIC SUB btnStop_Click() > > > > IF hProc.State = Process.Running THEN > > DEBUG hProc.Handle > > SHELL "kill -s HUP " & CStr(hProc.Handle) > > ENDIF > > > > END > > > > > > However it doesn't work with me, differences between distributions? > > But maybe with different signal... or then with pgrep as I described > > earlier. > > > > Gambas 2.22 rev 3527 @ Ubuntu 10.10 64bit > > Jussi > > > > I tried with just mplayer, and "kill -SIGHUP". Don't know if that makes a > difference... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Sat Mar 26 04:08:19 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 25 Mar 2011 23:08:19 -0400 Subject: [Gambas-user] the math behind full screen rotation In-Reply-To: <1300939552.1846.23.camel@...2530...> References: <4D88174E.8080100@...1887...> <201103231413.40889.gambas@...1...> <4D8AB478.6060009@...1887...> <1300939552.1846.23.camel@...2530...> Message-ID: <4D8D58A3.6000907@...1887...> On 03/24/2011 12:05 AM, John Spikowski wrote: > On Wed, 2011-03-23 at 23:03 -0400, Kevin Fishburne wrote: > >> That will probably work, but there should be a mathematical way to >> compensate for not cropping the image twice, or even once. As long as >> the entire image is preserved by the rotation function (it is) and it >> behaves in a predictable manner (it does), the camera's coordinates >> should be able to be translated and rotated so that they are in the same >> position in the rotated image as they were in the non-rotated image. For >> the sake of efficiency that is what I'm trying to accomplish. > This thread might help. (or not) > > http://forums.libsdl.org/viewtopic.php?t=2983&sid=1d2c6a94470c0fd56f3f542cd702ec37 No go, but thanks for trying to help. Right now my code looks something like this: ' Convert camera coordinates to their distance from the center of the tile grid. newcx = newcx - (bworkspace.Width / 2) newcy = newcy - (bworkspace.Height / 2) ' Rotate camera. newcx = Cos(Rad(- Client.orientation)) * newcx - Sin(Rad(- Client.orientation)) * newcy newcy = Sin(Rad(- Client.orientation)) * newcx + Cos(Rad(- Client.orientation)) * newcy ' Adjust the camera coordinates to fit the rotated tile grid. newcx = newcx + (brotated.Width / 2) newcy = newcy + (brotated.Height / 2) ' Draw the rotated workspace centered on the camera and cropped by the render window size. Draw.Image(brotated, 0, 0, swidth, sheight, newcx - swidth / 2, newcy - sheight / 2, swidth, sheight) First I figure out the distance of the camera from the center of the non-rotated image. Then I rotate the camera using those distance values as the camera's coordinates. That should in effect make the center of the non-rotated image the origin of rotation. I then take the rotated camera values and add them to the center point of the rotated image to determine the camera's position in the rotated image. Maybe my logic is wrong, maybe it's my math. Maybe demons are hovering over my shoulder casting black magic. I'm about to hit up Facebook for an old math whiz I knew in high school, as gamedev.net has failed me as well. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From doriano.blengino at ...1909... Sat Mar 26 08:49:55 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 26 Mar 2011 08:49:55 +0100 Subject: [Gambas-user] the math behind full screen rotation In-Reply-To: <4D8D58A3.6000907@...1887...> References: <4D88174E.8080100@...1887...> <201103231413.40889.gambas@...1...> <4D8AB478.6060009@...1887...> <1300939552.1846.23.camel@...2530...> <4D8D58A3.6000907@...1887...> Message-ID: <4D8D9AA3.5050306@...1909...> Il 26/03/2011 04:08, Kevin Fishburne ha scritto: > On 03/24/2011 12:05 AM, John Spikowski wrote: > >> On Wed, 2011-03-23 at 23:03 -0400, Kevin Fishburne wrote: >> >> >>> That will probably work, but there should be a mathematical way to >>> compensate for not cropping the image twice, or even once. As long as >>> the entire image is preserved by the rotation function (it is) and it >>> behaves in a predictable manner (it does), the camera's coordinates >>> should be able to be translated and rotated so that they are in the same >>> position in the rotated image as they were in the non-rotated image. For >>> the sake of efficiency that is what I'm trying to accomplish. >>> >> This thread might help. (or not) >> >> http://forums.libsdl.org/viewtopic.php?t=2983&sid=1d2c6a94470c0fd56f3f542cd702ec37 >> > No go, but thanks for trying to help. Right now my code looks something > like this: > > ' Convert camera coordinates to their distance from the center of the > tile grid. > newcx = newcx - (bworkspace.Width / 2) > newcy = newcy - (bworkspace.Height / 2) > > ' Rotate camera. > newcx = Cos(Rad(- Client.orientation)) * newcx - Sin(Rad(- > Client.orientation)) * newcy > newcy = Sin(Rad(- Client.orientation)) * newcx + Cos(Rad(- > Client.orientation)) * newcy > > ' Adjust the camera coordinates to fit the rotated tile grid. > newcx = newcx + (brotated.Width / 2) > newcy = newcy + (brotated.Height / 2) > > ' Draw the rotated workspace centered on the camera and cropped by > the render window size. > Draw.Image(brotated, 0, 0, swidth, sheight, newcx - swidth / 2, newcy > - sheight / 2, swidth, sheight) > > First I figure out the distance of the camera from the center of the > non-rotated image. Then I rotate the camera using those distance values > as the camera's coordinates. That should in effect make the center of > the non-rotated image the origin of rotation. I then take the rotated > camera values and add them to the center point of the rotated image to > determine the camera's position in the rotated image. > > Maybe my logic is wrong, maybe it's my math. Maybe demons are hovering > over my shoulder casting black magic. I'm about to hit up Facebook for > an old math whiz I knew in high school, as gamedev.net has failed me as > well. > > Dear Kevin, if I well understand, you have to rotate your world around the player. To rotate a point around another arbitrary point (different from the origin), you must first translate the point, then rotate it, then translate it again in the original position. If you want I can give you a working routine to do so. Your code seems to do something similar, but... should not the player always stay in the middle of the screen? If so, you need not to translate anything, but just rotate the original image. Or, perhaps, you want to reduce scrolling, so the player is not always in the middle? If there is not a true motivation, due to some game concept, to have different x/y positions of the player inside the screen, then it is much simpler to always keep the player in the middle. I try to explain in other words. Suppose that you can't get enough framerate when you rotate the world, so you try to minimize this, and let the player move around the screen. When the player reaches the boundary of the screen, you update the whole screen. Doing so, you speed up considerably. Nevertheless, when the player reaches a boundary, you must invoke anyway the "slow" routines to update the world. The net result is a stiffy game, which alternates fast movements with slow ones. I am also confused by our previous thread, where you rotated the player instead of the world. Not knowing enough, I can only say that you can, perhaps, gain some speed by doing calculations in the dead times (delays, if you have/use them). I have read that you reach speeds as high as 200 FPS or similar... if you reduce FPS to 25, you gain a lot of spare time to calculate ahead the new scenes (or perhaps not). If you explain better your ideas, may be I can try to give some advice. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sat Mar 26 10:13:46 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 26 Mar 2011 10:13:46 +0100 Subject: [Gambas-user] help with EXEC usage In-Reply-To: References: <31208112.post@...1379...> <201103251900.29214.gambas@...1...> Message-ID: <201103261013.46519.gambas@...1...> > This seems to work... but it is not very nice code, as it doesn't make > distinction of what instance of "get_iplayer" or "mplayer > you are dealing with... > Also it leaves some trash (get_iplayer doesn't take care of it's trashes!) > to ~/.get_iplayer. > Maybe get_iplayer should be killed with some other signal. > > PUBLIC SUB btnStop_Click() > DIM pid1 AS String > DIM pid2 AS String > > IF hProc.State = Process.Running THEN > SHELL ("pidof get_iplayer") TO pid1 > SHELL ("pidof mplayer") TO pid2 > DEBUG pid1;; pid2 > SHELL "kill " & pid1 & " " & pid2 > hProc.Kill() > ENDIF > > END > > Jussi > Hi, I have made the following change for Gambas 3: When running a process with SHELL, a process group is created for that shell, and when the Kill() method is called, the entire process group is killed instead of just the shell process. I tried with Bill's shell command, and it works. All the bunch run by "get_iplayer ... | mplayer ..." is killed as expected. Regards, -- Beno?t Minisini From bill-lancaster at ...2231... Sat Mar 26 15:47:46 2011 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Sat, 26 Mar 2011 07:47:46 -0700 (PDT) Subject: [Gambas-user] help with EXEC usage In-Reply-To: <201103261013.46519.gambas@...1...> References: <31208112.post@...1379...> <31217709.post@...1379...> <31221079.post@...1379...> <31226463.post@...1379...> <201103250012.37615.gambas@...1...> <201103250021.52462.gambas@...1...> <31235898.post@...1379...> <201103251900.29214.gambas@...1...> <201103261013.46519.gambas@...1...> Message-ID: <31245811.post@...1379...> Thank you, IF hProc.State = Process.Running THEN SHELL ("pidof get_iplayer") TO pid1 SHELL ("pidof mplayer") TO pid2 DEBUG pid1;; pid2 SHELL "kill " & pid1 & " " & pid2 hProc.Kill() ENDIF To me this is nice code - it works! Bill -- View this message in context: http://old.nabble.com/help-with-EXEC-usage-tp31208112p31245811.html Sent from the gambas-user mailing list archive at Nabble.com. From demosthenesk at ...626... Sat Mar 26 17:44:39 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 26 Mar 2011 18:44:39 +0200 Subject: [Gambas-user] Can not draw outside of draw enent handler Message-ID: <1301157879.30774.4.camel@...2493...> Hi i have just installed gambas3-svn3688 and my project stopped working. with gambas3-svn3620 was working fine -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Project99.tar.gz Type: application/x-compressed-tar Size: 8532 bytes Desc: not available URL: From demosthenesk at ...626... Sat Mar 26 18:03:20 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 26 Mar 2011 19:03:20 +0200 Subject: [Gambas-user] Bug in Draw.Clear() Message-ID: <1301159000.30774.11.camel@...2493...> hi i use gambas3-svn3620 the Draw.Clear() clears the Drawing area but also disappears the border style of drawing area. I use Border = Plain for DrawingArea and after Draw.Clear() it is disappears. -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Project99.tar.gz Type: application/x-compressed-tar Size: 8660 bytes Desc: not available URL: From gambas at ...1... Sat Mar 26 21:07:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 26 Mar 2011 21:07:51 +0100 Subject: [Gambas-user] Can not draw outside of draw enent handler In-Reply-To: <1301157879.30774.4.camel@...2493...> References: <1301157879.30774.4.camel@...2493...> Message-ID: <201103262107.51232.gambas@...1...> > Hi i have just installed gambas3-svn3688 > > and my project stopped working. > > with gambas3-svn3620 was working fine Are you talking about the error message "cannot draw outside of event handler"? Your program is buggy, but the drawing component forgot to raise the error. Now the drawing component has been fixed, and you get the error message. Now you have to fix your project! Regards, -- Beno?t Minisini From linuxos at ...1896... Sat Mar 26 21:36:59 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Sat, 26 Mar 2011 21:36:59 +0100 Subject: [Gambas-user] Gambas RC1 - Problem Message-ID: <6FF56261-A929-4914-A357-EF081FF38669@...1896...> Hi Benoit, I have a problem with the toolbar object and the property 'Orientation' In Vertical mode of the ToolBar, all the Button inside stay in horizontal orientation. May be it's a bug ? Olivier Cruilles Mail: linuxos at ...1896... From linuxos at ...1896... Sat Mar 26 21:39:44 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Sat, 26 Mar 2011 21:39:44 +0100 Subject: [Gambas-user] Gambas RC1 - Problem References: <6FF56261-A929-4914-A357-EF081FF38669@...1896...> Message-ID: <6E8E0189-2DE5-4274-8C69-8DECC8B49206@...1896...> Hi Benoit, I have a problem with the toolbar object and the property 'Orientation' In Vertical mode of the ToolBar, all the Button inside stay in horizontal orientation. May be it's a bug ? Fedora 14 - Gambas 2.99 RC1 Olivier Cruilles Mail: linuxos at ...1896... From lordheavym at ...626... Sat Mar 26 21:50:17 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 26 Mar 2011 21:50:17 +0100 Subject: [Gambas-user] Gambas RC1 - Problem In-Reply-To: <6E8E0189-2DE5-4274-8C69-8DECC8B49206@...1896...> References: <6FF56261-A929-4914-A357-EF081FF38669@...1896...> <6E8E0189-2DE5-4274-8C69-8DECC8B49206@...1896...> Message-ID: <201103262150.17757.lordheavym@...626...> Le samedi 26 mars 2011 21:39:44, Olivier Cruilles a ?crit : > Hi Benoit, > > I have a problem with the toolbar object and the property 'Orientation' > > In Vertical mode of the ToolBar, all the Button inside stay in horizontal > orientation. May be it's a bug ? > > Fedora 14 - Gambas 2.99 RC1 > > > Olivier Cruilles > Mail: linuxos at ...1896... > > Can you post a small project that expose that bug ? ++ From linuxos at ...1896... Sat Mar 26 23:19:28 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Sat, 26 Mar 2011 23:19:28 +0100 Subject: [Gambas-user] Gambas RC1 - Problem In-Reply-To: <201103262150.17757.lordheavym@...626...> References: <6FF56261-A929-4914-A357-EF081FF38669@...1896...> <6E8E0189-2DE5-4274-8C69-8DECC8B49206@...1896...> <201103262150.17757.lordheavym@...626...> Message-ID: <56ED8E7E-4A60-48B9-BFB2-EE23D09AAA1D@...1896...> Joined into this email, an project: ToolBar-0.0.1.tar.gz -------------- next part -------------- A non-text attachment was scrubbed... Name: ToolBar-0.0.1.tar.gz Type: application/x-gzip Size: 4879 bytes Desc: not available URL: -------------- next part -------------- Olivier Cruilles Mail: linuxos at ...1896... Le 26 mars 2011 ? 21:50, Laurent Carlier a ?crit : > > Le samedi 26 mars 2011 21:39:44, Olivier Cruilles a ?crit : >> Hi Benoit, >> >> I have a problem with the toolbar object and the property 'Orientation' >> >> In Vertical mode of the ToolBar, all the Button inside stay in horizontal >> orientation. May be it's a bug ? >> >> Fedora 14 - Gambas 2.99 RC1 >> >> >> Olivier Cruilles >> Mail: linuxos at ...1896... >> >> > > Can you post a small project that expose that bug ? > > ++ > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Sun Mar 27 11:16:03 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 27 Mar 2011 12:16:03 +0300 Subject: [Gambas-user] Can not draw outside of draw enent handler In-Reply-To: <201103262107.51232.gambas@...1...> References: <1301157879.30774.4.camel@...2493...> <201103262107.51232.gambas@...1...> Message-ID: <1301217364.5317.10.camel@...2493...> On Sat, 2011-03-26 at 21:07 +0100, Beno?t Minisini wrote: > > Hi i have just installed gambas3-svn3688 > > > > and my project stopped working. > > > > with gambas3-svn3620 was working fine > > Are you talking about the error message "cannot draw outside of event > handler"? > Yes that is the message i am talking. > Your program is buggy, but the drawing component forgot to raise the error. > Now the drawing component has been fixed, and you get the error message. Now > you have to fix your project! > ok, i try to find the bug but i cant. i try to make a similar example from this page http://gambasdoc.org/help/comp/gb.qt4/draw/line?v3 in this page it says Draw.Begin(ME) where ME is a form. i get this error in my project for Draw.Begin(drawArea) where drawArea is the name of a DrawingArea object. Where is the bug? The name "drawArea" ? i attach again the project. > Regards, > -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Project99.tar.gz Type: application/x-compressed-tar Size: 9451 bytes Desc: not available URL: From gambas at ...1... Sun Mar 27 17:00:19 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 27 Mar 2011 17:00:19 +0200 Subject: [Gambas-user] Can not draw outside of draw enent handler In-Reply-To: <1301217364.5317.10.camel@...2493...> References: <1301157879.30774.4.camel@...2493...> <201103262107.51232.gambas@...1...> <1301217364.5317.10.camel@...2493...> Message-ID: <201103271700.19947.gambas@...1...> > > i try to make a similar example from this page > http://gambasdoc.org/help/comp/gb.qt4/draw/line?v3 > > in this page it says > > Draw.Begin(ME) where ME is a form. > > i get this error in my project for > > Draw.Begin(drawArea) where drawArea is the name of a DrawingArea object. > > Where is the bug? The name "drawArea" ? > Now, in Gambas 3, you just cannot draw outside of the Draw event handler anymore. That's all. Consequently, you cannot draw on a form too, as a form has no Draw event handler. Regards, -- Beno?t Minisini From demosthenesk at ...626... Sun Mar 27 19:06:04 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 27 Mar 2011 20:06:04 +0300 Subject: [Gambas-user] Can not draw outside of draw enent handler In-Reply-To: <201103271700.19947.gambas@...1...> References: <1301157879.30774.4.camel@...2493...> <201103262107.51232.gambas@...1...> <1301217364.5317.10.camel@...2493...> <201103271700.19947.gambas@...1...> Message-ID: <1301245564.5678.28.camel@...2493...> On Sun, 2011-03-27 at 17:00 +0200, Beno?t Minisini wrote: > > > > i try to make a similar example from this page > > http://gambasdoc.org/help/comp/gb.qt4/draw/line?v3 > > > > in this page it says > > > > Draw.Begin(ME) where ME is a form. > > > > i get this error in my project for > > > > Draw.Begin(drawArea) where drawArea is the name of a DrawingArea object. > > > > Where is the bug? The name "drawArea" ? > > > > Now, in Gambas 3, you just cannot draw outside of the Draw event handler > anymore. That's all. Consequently, you cannot draw on a form too, as a form > has no Draw event handler. > > Regards, > 1) The previous page has the next example: ' This example will draw a red line on the form. To try out this example, ' start a new graphics project and place a Button on the Form. PUBLIC SUB Button1_Click() Draw.Begin(ME) Draw.LineWidth = 20 Draw.ForeColor = Color.Red Draw.Line(50, 100, 200, 150) Draw.End END And as i understand does not work, so the page is outdated? 2) ok, i try to change the code. Old method ----------------------------- Public Sub btnLine_Click() Draw.Begin(drawArea) SetValues() Draw.Line(55, 47, 289, 367) Draw.End End ----------------------------- New method i try... ----------------------------- Public iAct As Integer Public Sub btnLine_Click() iAct = 1 drawArea_Draw() End Public Sub drawArea_Draw() Select Case iAct Case 1 'draw line Draw.Begin(drawArea) SetValues() Draw.Line(55, 47, 289, 367) Draw.End Case 2 End Select End ----------------------------- it continues to refuses. "Cannot draw outside of draw event handler" now it is in draw event. What is happening? i attach again the project Thanks for any help! -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Project99.tar.gz Type: application/x-compressed-tar Size: 9688 bytes Desc: not available URL: From kevinfishburne at ...1887... Sun Mar 27 21:22:10 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 27 Mar 2011 15:22:10 -0400 Subject: [Gambas-user] the math behind full screen rotation In-Reply-To: <4D8D9AA3.5050306@...1909...> References: <4D88174E.8080100@...1887...> <201103231413.40889.gambas@...1...> <4D8AB478.6060009@...1887...> <1300939552.1846.23.camel@...2530...> <4D8D58A3.6000907@...1887...> <4D8D9AA3.5050306@...1909...> Message-ID: <4D8F8E62.10106@...1887...> On 03/26/2011 03:49 AM, Doriano Blengino wrote: > Il 26/03/2011 04:08, Kevin Fishburne ha scritto: >> On 03/24/2011 12:05 AM, John Spikowski wrote: >> >>> On Wed, 2011-03-23 at 23:03 -0400, Kevin Fishburne wrote: >>> >>> >>>> That will probably work, but there should be a mathematical way to >>>> compensate for not cropping the image twice, or even once. As long as >>>> the entire image is preserved by the rotation function (it is) and it >>>> behaves in a predictable manner (it does), the camera's coordinates >>>> should be able to be translated and rotated so that they are in the same >>>> position in the rotated image as they were in the non-rotated image. For >>>> the sake of efficiency that is what I'm trying to accomplish. >>>> >>> This thread might help. (or not) >>> >>> http://forums.libsdl.org/viewtopic.php?t=2983&sid=1d2c6a94470c0fd56f3f542cd702ec37 >>> >> No go, but thanks for trying to help. Right now my code looks something >> like this: >> >> ' Convert camera coordinates to their distance from the center of the >> tile grid. >> newcx = newcx - (bworkspace.Width / 2) >> newcy = newcy - (bworkspace.Height / 2) >> >> ' Rotate camera. >> newcx = Cos(Rad(- Client.orientation)) * newcx - Sin(Rad(- >> Client.orientation)) * newcy >> newcy = Sin(Rad(- Client.orientation)) * newcx + Cos(Rad(- >> Client.orientation)) * newcy >> >> ' Adjust the camera coordinates to fit the rotated tile grid. >> newcx = newcx + (brotated.Width / 2) >> newcy = newcy + (brotated.Height / 2) >> >> ' Draw the rotated workspace centered on the camera and cropped by >> the render window size. >> Draw.Image(brotated, 0, 0, swidth, sheight, newcx - swidth / 2, newcy >> - sheight / 2, swidth, sheight) >> >> First I figure out the distance of the camera from the center of the >> non-rotated image. Then I rotate the camera using those distance values >> as the camera's coordinates. That should in effect make the center of >> the non-rotated image the origin of rotation. I then take the rotated >> camera values and add them to the center point of the rotated image to >> determine the camera's position in the rotated image. >> >> Maybe my logic is wrong, maybe it's my math. Maybe demons are hovering >> over my shoulder casting black magic. I'm about to hit up Facebook for >> an old math whiz I knew in high school, as gamedev.net has failed me as >> well. >> >> Hi Doriano, thanks for helping. You're definitely getting your name in the game credits when it's done. :) > Dear Kevin, > > if I well understand, you have to rotate your world around the player. > To rotate a point around another arbitrary point (different from the > origin), you must first translate the point, then rotate it, then > translate it again in the original position. If you want I can give you > a working routine to do so. Your code seems to do something similar, Yes, I hope that's what my code is doing. Basically I find the distance of the camera from the center of the non-rotated image, whether negative or positive. That should mean that when I rotate those new coordinates, then add them to the center point of the rotated image, that they've effectively been rotated about the center of the rotated image. For example, if the camera in the non-rotated image is at (10,10) and the center of the non-rotated image is at (11,11), I'd do (10,10) - (11,11) = (-1,-1), rotate (-1,-1), then add the rotated values to the center point of the rotated image. Maybe that's all wrong, I don't know. > but... should not the player always stay in the middle of the screen? If > so, you need not to translate anything, but just rotate the original > image. Or, perhaps, you want to reduce scrolling, so the player is not > always in the middle? If there is not a true motivation, due to some > game concept, to have different x/y positions of the player inside the > screen, then it is much simpler to always keep the player in the middle. > I try to explain in other words. Suppose that you can't get enough > framerate when you rotate the world, so you try to minimize this, and > let the player move around the screen. When the player reaches the > boundary of the screen, you update the whole screen. Doing so, you speed > up considerably. Nevertheless, when the player reaches a boundary, you > must invoke anyway the "slow" routines to update the world. The net > result is a stiffy game, which alternates fast movements with slow ones. That is exactly what I'm doing because this is a tile-based game that uses a complex method of drawing and blending the tiles. Here's how it works, using real numbers this time. First the camera is detached from the player, so the player's position for the sake of this discussion isn't important. The camera loosely follows the player using an algorithm to simulate natural camera movement. So the camera position is all that matters. The landscape is broken into three progressively smaller chunks: the game world (data on server), the cell grid (data on client) and the tile grid (image on client). The world for testing purposes is currently 4096x4096 tiles. The cell grid is a block of 96x96 tiles (3x3 cells of 32x32 tiles), and is all the game client is aware of at any given time. Finally the tile grid is an image containing the rendered tile data of a subset of the cell grid, with the camera always being in the center tile. At 1280x720 the tile grid is 13x13 tiles, or 1664x1664 pixels, with the camera always being somewhere in tile (7,7). When the camera moves out of the center tile of the tile grid, the tile grid is shifted one tile (128 pixels) in any of eight directions and a new row and/or column of tiles are drawn into it. The tile grid image is what's being rotated, and the camera never is farther than 64 pixels in any direction from the center of the tile grid image. I've attached the relevant, abbreviated code. The function CellGrid2TileGrid() is being called to convert the camera's cell grid coordinates to tile grid coordinates. I believe the conversion function is working properly (scrolling works fine until the screen is rotated), but it may be worth a look. I've also recorded a video showing what is currently happening when the screen is rotated: http://www.youtube.com/watch?v=iw64jcdNJY4 > I am also confused by our previous thread, where you rotated the player > instead of the world. Not knowing enough, I can only say that you can, > perhaps, gain some speed by doing calculations in the dead times > (delays, if you have/use them). I have read that you reach speeds as > high as 200 FPS or similar... if you reduce FPS to 25, you gain a lot of > spare time to calculate ahead the new scenes (or perhaps not). If you > explain better your ideas, may be I can try to give some advice. That's a good idea, I will definitely consider doing that. -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: rotation_failure URL: From math.eber at ...221... Sun Mar 27 21:24:40 2011 From: math.eber at ...221... (Matti) Date: Sun, 27 Mar 2011 21:24:40 +0200 Subject: [Gambas-user] Image.Copy raises signal #11 Message-ID: <4D8F8EF8.4000909@...221...> When an image is copied to its original X, Y, width and height, mostly signal #11 is raised. See the attatched little project. Of course, when rotating an image by 0?, copying could be avoided. But I think it would be better if there was no signal #11. Regards Matti -------------- next part -------------- A non-text attachment was scrubbed... Name: ImageCopy-0.0.1.tar.gz Type: application/x-gzip Size: 9403 bytes Desc: not available URL: From math.eber at ...221... Sun Mar 27 21:27:06 2011 From: math.eber at ...221... (Matti) Date: Sun, 27 Mar 2011 21:27:06 +0200 Subject: [Gambas-user] Image.Copy: forgot Message-ID: <4D8F8F8A.4030903@...221...> Gambas 3 preRC openSUSE 11.2 KDE From lordheavym at ...626... Sun Mar 27 21:46:47 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 27 Mar 2011 21:46:47 +0200 Subject: [Gambas-user] Image.Copy raises signal #11 In-Reply-To: <4D8F8EF8.4000909@...221...> References: <4D8F8EF8.4000909@...221...> Message-ID: <201103272146.47448.lordheavym@...626...> Le dimanche 27 mars 2011 21:24:40, Matti a ?crit : > When an image is copied to its original X, Y, width and height, mostly > signal #11 is raised. > See the attatched little project. > > Of course, when rotating an image by 0?, copying could be avoided. But I > think it would be better if there was no signal #11. > > Regards > Matti I cannot reproduce the problem, sorry ++ From math.eber at ...221... Sun Mar 27 21:58:48 2011 From: math.eber at ...221... (Matti) Date: Sun, 27 Mar 2011 21:58:48 +0200 Subject: [Gambas-user] Image.Copy raises signal #11 In-Reply-To: <201103272146.47448.lordheavym@...626...> References: <4D8F8EF8.4000909@...221...> <201103272146.47448.lordheavym@...626...> Message-ID: <4D8F96F8.7050808@...221...> Strange. What environment do you have? Am 27.03.2011 21:46, schrieb Laurent Carlier: > Le dimanche 27 mars 2011 21:24:40, Matti a ?crit : >> When an image is copied to its original X, Y, width and height, mostly >> signal #11 is raised. >> See the attatched little project. >> >> Of course, when rotating an image by 0?, copying could be avoided. But I >> think it would be better if there was no signal #11. >> >> Regards >> Matti > > I cannot reproduce the problem, sorry > > ++ > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Mar 27 22:56:08 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 27 Mar 2011 22:56:08 +0200 Subject: [Gambas-user] Image.Copy raises signal #11 In-Reply-To: <4D8F8EF8.4000909@...221...> References: <4D8F8EF8.4000909@...221...> Message-ID: <201103272256.08104.gambas@...1...> > When an image is copied to its original X, Y, width and height, mostly > signal #11 is raised. > See the attatched little project. > > Of course, when rotating an image by 0?, copying could be avoided. But I > think it would be better if there was no signal #11. > > Regards > Matti It should be fixed in revision #3692. Regards, -- Beno?t Minisini From gambas at ...1... Sun Mar 27 22:58:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 27 Mar 2011 22:58:40 +0200 Subject: [Gambas-user] Gambas RC1 - Problem In-Reply-To: <6E8E0189-2DE5-4274-8C69-8DECC8B49206@...1896...> References: <6FF56261-A929-4914-A357-EF081FF38669@...1896...> <6E8E0189-2DE5-4274-8C69-8DECC8B49206@...1896...> Message-ID: <201103272258.40379.gambas@...1...> > Hi Benoit, > > I have a problem with the toolbar object and the property 'Orientation' > > In Vertical mode of the ToolBar, all the Button inside stay in horizontal > orientation. May be it's a bug ? > > Fedora 14 - Gambas 2.99 RC1 > > > Olivier Cruilles > Mail: linuxos at ...1896... > > Yes. The toolbar code seems to be completely broken for vertical orientation... I have to redesign it. Pfouh... -- Beno?t Minisini From math.eber at ...221... Sun Mar 27 23:28:28 2011 From: math.eber at ...221... (Matti) Date: Sun, 27 Mar 2011 23:28:28 +0200 Subject: [Gambas-user] Image.Copy raises signal #11 In-Reply-To: <201103272256.08104.gambas@...1...> References: <4D8F8EF8.4000909@...221...> <201103272256.08104.gambas@...1...> Message-ID: <4D8FABFC.2010708@...221...> Yes, it is fixed now. Works like expected! Am 27.03.2011 22:56, schrieb Beno?t Minisini: >> When an image is copied to its original X, Y, width and height, mostly >> signal #11 is raised. >> See the attatched little project. >> >> Of course, when rotating an image by 0?, copying could be avoided. But I >> think it would be better if there was no signal #11. >> >> Regards >> Matti > > It should be fixed in revision #3692. > > Regards, > From gambas at ...1... Mon Mar 28 03:56:15 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 28 Mar 2011 03:56:15 +0200 Subject: [Gambas-user] Gambas RC1 - Problem In-Reply-To: <201103272258.40379.gambas@...1...> References: <6FF56261-A929-4914-A357-EF081FF38669@...1896...> <6E8E0189-2DE5-4274-8C69-8DECC8B49206@...1896...> <201103272258.40379.gambas@...1...> Message-ID: <201103280356.15349.gambas@...1...> > > Hi Benoit, > > > > I have a problem with the toolbar object and the property 'Orientation' > > > > In Vertical mode of the ToolBar, all the Button inside stay in horizontal > > orientation. May be it's a bug ? > > > > Fedora 14 - Gambas 2.99 RC1 > > > > > > Olivier Cruilles > > Mail: linuxos at ...1896... > > Yes. The toolbar code seems to be completely broken for vertical > orientation... I have to redesign it. Pfouh... I tried to make things better in revision #3693. But setting AutoResize to False seems to have no effect anymore. Regards, -- Beno?t Minisini From linuxos at ...1896... Mon Mar 28 08:19:44 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Mon, 28 Mar 2011 08:19:44 +0200 Subject: [Gambas-user] Gambas RC1 - Problem In-Reply-To: <201103280356.15349.gambas@...1...> References: <6FF56261-A929-4914-A357-EF081FF38669@...1896...> <6E8E0189-2DE5-4274-8C69-8DECC8B49206@...1896...> <201103272258.40379.gambas@...1...> <201103280356.15349.gambas@...1...> Message-ID: <90A3C599-3E44-4F6F-84FB-5175139DC07B@...1896...> Thanks Benoit, I try it as soon is possible today. Olivier Cruilles Mail: linuxos at ...1896... Le 28 mars 2011 ? 03:56, Beno?t Minisini a ?crit : >>> Hi Benoit, >>> >>> I have a problem with the toolbar object and the property 'Orientation' >>> >>> In Vertical mode of the ToolBar, all the Button inside stay in horizontal >>> orientation. May be it's a bug ? >>> >>> Fedora 14 - Gambas 2.99 RC1 >>> >>> >>> Olivier Cruilles >>> Mail: linuxos at ...1896... >> >> Yes. The toolbar code seems to be completely broken for vertical >> orientation... I have to redesign it. Pfouh... > > I tried to make things better in revision #3693. But setting AutoResize to > False seems to have no effect anymore. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Mon Mar 28 09:11:09 2011 From: ron at ...1740... (Ron) Date: Mon, 28 Mar 2011 09:11:09 +0200 Subject: [Gambas-user] Gambas 3 RC1 CSng project conversion bug Message-ID: <4D90348D.7090704@...1740...> Testing RC1 with code revision 3693 Converting a project to Gambas3 doesn't work 100% correct. It seems '+ CSingle' becomes 'CSingleSng' If (RecBuf[6] And &H8) = 0 Then ' [GB2:CSNG] sCelsius = CSng(Hex(RecBuf[5])) + CSng(Hex(Lsr(RecBuf[4], 4))) / 10 sCelsius = CSingle(Hex(RecBuf[5]))CSingleSng(Hex(Lsr(RecBuf[4], 4))) / 10 Else ' [GB2:CSNG] sCelsius = 0 - (CSng(Hex(RecBuf[5])) + CSng(Hex(Lsr(RecBuf[4], 4))) / 10) sCelsius = 0 - (CSingle(Hex(RecBuf[5]))CSingleSng(Hex(Lsr(RecBuf[4], 4))) / 10) End If Here it seems a 2 step process where the Hex ()is lost: ' [GB2:CSNG] sTrain = (CSng(Hex(RecBuf[8] And &HF)) * 1000 + CSng(Hex(RecBuf[7])) * 10 + CSng(Hex(Lsr(RecBuf[6], 4)))) ' [GB2:CSNG] sTrain = (CSingle(Hex(RecBuf[8] And &HF)) * 1000CSingleSng(Hex(RecBuf[7])) *CSingle+ CSng(Hex(Lsr(RecBuf[6], 4)))) sTrain = (CSingle(Hex(RecBuf[8] And &HF)) * 1000 CSingleSng(Hex(RecBuf[7])) * CSingle + CSnCSinglex(Lsr(RecBuf[6], 4)))) Regards, Ron_2nd. From ron at ...1740... Mon Mar 28 09:28:07 2011 From: ron at ...1740... (Ron) Date: Mon, 28 Mar 2011 09:28:07 +0200 Subject: [Gambas-user] Gambas 3 RC1 CLng not converted Message-ID: <4D903887.2070905@...1740...> CLng's are not converted to CLong. lCt4 = Lsl(CLng(RecBuf[10]), 36) I remember I reported this earlier, and was fixed? Regards, Ron_2nd. From ron at ...1740... Mon Mar 28 13:21:29 2011 From: ron at ...1740... (Ron) Date: Mon, 28 Mar 2011 13:21:29 +0200 Subject: [Gambas-user] Gambas3 RC1 Internal error all of a sudden Message-ID: <4D906F39.5060501@...1740...> Project runs ok, but every now and then I get this: ** INTERNAL ERROR ** ** Cannot read from SIGCHLD pipe Main.BroadcastEvent.4731: #5: Too many arguments 0: Main.BroadcastEvent.4731 1: Main.RefreshDeviceList.4848 2: Devices.ValueUpdate.823 3: Main.SetGlobalVar.4447 4: RRDTool.GetRRDPath.60 5: RRDTool.UpdateRRDs.269 6: ServerStats.tServerStats_Timer.40 ** Program aborting. Sorry! :-( Ok the program/author said Sorry.... ;-) But it doesn't look right... A few minutes later... Ok, it was due to a catch without content that the wrong syntax wasn't reported. ' sent it to all computers on this network hBroadcastEvent = New UdpSocket As "BroadcastUDP" hBroadcastEvent.Broadcast = True hBroadcastEvent.Bind(0) hBroadcastEvent.TargetPort = iXMLRPCHTTPPort + 10000 For Each sIp In aBroadcastAddrs hBroadcastEvent.TargetHost = sIp Write #hBroadcastEvent, sMessage, Len(sMessage) Next Catch ' Main.WriteLog(("ERROR: Cannot broadcast UDP message! ") & ERROR.Text & (" at ") & ERROR.Where) But why didn't the Gambas converter convert this: ? hBroadcastEvent.Bind(0) <------------------------------------- I get the idea that the project converter code is much older or has bugs which weren't there when I first tested it. Revision 3693 on Ubuntu Maverick 64 Bits. Regards. Ron_2nd. From linuxos at ...1896... Mon Mar 28 13:35:53 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Mon, 28 Mar 2011 13:35:53 +0200 Subject: [Gambas-user] Gambas RC1 - Problem In-Reply-To: <201103280356.15349.gambas@...1...> References: <6FF56261-A929-4914-A357-EF081FF38669@...1896...> <6E8E0189-2DE5-4274-8C69-8DECC8B49206@...1896...> <201103272258.40379.gambas@...1...> <201103280356.15349.gambas@...1...> Message-ID: <64802323-F200-4D2E-A832-A9AFDD14F0EE@...1896...> Benoit, I checked the ToolBar in revision #3694 and now the orientation of the toolbar is ok, same with the position of the ToolButton inside but the width of the toolbar is not respected and all buttons are not displayed completely. Olivier Cruilles Mail: linuxos at ...1896... Le 28 mars 2011 ? 03:56, Beno?t Minisini a ?crit : >>> Hi Benoit, >>> >>> I have a problem with the toolbar object and the property 'Orientation' >>> >>> In Vertical mode of the ToolBar, all the Button inside stay in horizontal >>> orientation. May be it's a bug ? >>> >>> Fedora 14 - Gambas 2.99 RC1 >>> >>> >>> Olivier Cruilles >>> Mail: linuxos at ...1896... >> >> Yes. The toolbar code seems to be completely broken for vertical >> orientation... I have to redesign it. Pfouh... > > I tried to make things better in revision #3693. But setting AutoResize to > False seems to have no effect anymore. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Mon Mar 28 14:12:21 2011 From: ron at ...1740... (Ron) Date: Mon, 28 Mar 2011 14:12:21 +0200 Subject: [Gambas-user] Gambas3 RC1 Internal error all of a sudden In-Reply-To: <4D906F39.5060501@...1740...> References: <4D906F39.5060501@...1740...> Message-ID: <4D907B25.1070709@...1740...> Hmmm, another one in a different part of my project: ** INTERNAL ERROR ** ** Cannot read from SIGCHLD pipe CSqueezeServer.ReceiveData.204: #39: End of file 0: CSqueezeServer.ReceiveData.204 1: RRDTool.GetRRDPath.60 2: RRDTool.UpdateRRDs.269 3: ServerStats.tServerStats_Timer.40 ** Program aborting. Sorry! :-( This is the routine: m iTries As Integer = 30 Dim sData As String ' see if we got some data While iTries > 0 Try Line Input #hSqueezeServer, sData <---------------------- Line # 204 If Error Then ' not yet Sleep 0.01 Else ' got it Break End If Dec iTries Wend If bSqueezeServerDebug Then Main.WriteDebugLog("[SqueezeServer] < " & URLDecode(sData)) Return URLDecode(sData) End Have to change that ugly code, and syntax. But still Internal Errors shouldn't be there... Regards, Ron. > Project runs ok, but every now and then I get this: > > ** INTERNAL ERROR ** > ** Cannot read from SIGCHLD pipe > Main.BroadcastEvent.4731: #5: Too many arguments > 0: Main.BroadcastEvent.4731 > 1: Main.RefreshDeviceList.4848 > 2: Devices.ValueUpdate.823 > 3: Main.SetGlobalVar.4447 > 4: RRDTool.GetRRDPath.60 > 5: RRDTool.UpdateRRDs.269 > 6: ServerStats.tServerStats_Timer.40 > ** Program aborting. Sorry! :-( > > Ok the program/author said Sorry.... ;-) > But it doesn't look right... > > A few minutes later... > > Ok, it was due to a catch without content that the wrong syntax wasn't > reported. > > ' sent it to all computers on this network > hBroadcastEvent = New UdpSocket As "BroadcastUDP" > hBroadcastEvent.Broadcast = True > hBroadcastEvent.Bind(0) > hBroadcastEvent.TargetPort = iXMLRPCHTTPPort + 10000 > > For Each sIp In aBroadcastAddrs > hBroadcastEvent.TargetHost = sIp > Write #hBroadcastEvent, sMessage, Len(sMessage) > Next > > Catch > ' Main.WriteLog(("ERROR: Cannot broadcast UDP message! ") & > ERROR.Text & (" at ") & ERROR.Where) > > But why didn't the Gambas converter convert this: ? > > hBroadcastEvent.Bind(0) <------------------------------------- > > I get the idea that the project converter code is much older or has > bugs which weren't there when I first tested it. > > Revision 3693 on Ubuntu Maverick 64 Bits. > > Regards. > Ron_2nd. From gambas at ...1... Mon Mar 28 14:24:56 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 28 Mar 2011 14:24:56 +0200 Subject: [Gambas-user] Gambas3 RC1 Internal error all of a sudden In-Reply-To: <4D907B25.1070709@...1740...> References: <4D906F39.5060501@...1740...> <4D907B25.1070709@...1740...> Message-ID: <201103281424.57047.gambas@...1...> > Hmmm, another one in a different part of my project: > > ** INTERNAL ERROR ** > ** Cannot read from SIGCHLD pipe > CSqueezeServer.ReceiveData.204: #39: End of file > 0: CSqueezeServer.ReceiveData.204 > 1: RRDTool.GetRRDPath.60 > 2: RRDTool.UpdateRRDs.269 > 3: ServerStats.tServerStats_Timer.40 > ** Program aborting. Sorry! :-( > Can you try the latest revision? The interpreter will print more information on the internal error. Regards, -- Beno?t Minisini From ron at ...1740... Mon Mar 28 15:07:18 2011 From: ron at ...1740... (Ron) Date: Mon, 28 Mar 2011 15:07:18 +0200 Subject: [Gambas-user] Gambas3 RC1 Internal error all of a sudden In-Reply-To: <201103281424.57047.gambas@...1...> References: <4D906F39.5060501@...1740...> <4D907B25.1070709@...1740...> <201103281424.57047.gambas@...1...> Message-ID: <4D908806.8080000@...1740...> On 28-3-2011 14:24, Beno?t Minisini wrote: >> Hmmm, another one in a different part of my project: >> >> ** INTERNAL ERROR ** >> ** Cannot read from SIGCHLD pipe >> CSqueezeServer.ReceiveData.204: #39: End of file >> 0: CSqueezeServer.ReceiveData.204 >> 1: RRDTool.GetRRDPath.60 >> 2: RRDTool.UpdateRRDs.269 >> 3: ServerStats.tServerStats_Timer.40 >> ** Program aborting. Sorry! :-( >> > Can you try the latest revision? The interpreter will print more information > on the internal error. > > Regards, > It prints nothing more... ** INTERNAL ERROR ** ** Cannot read from SIGCHLD pipe -> CSqueezeServer.ReceiveData.204: #39: End of file 0: CSqueezeServer.ReceiveData.204 1: RRDTool.GetRRDPath.60 2: RRDTool.UpdateRRDs.269 3: ServerStats.tServerStats_Timer.40 ** Program aborting. Sorry! :-( I have added the -> at the end of the line 'Cannot read from SIGCHLD pipe' in my source code to make sure I was using the modified code. Regards, Ron_2nd. From gambas at ...1... Mon Mar 28 15:14:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 28 Mar 2011 15:14:50 +0200 Subject: [Gambas-user] Gambas3 RC1 Internal error all of a sudden In-Reply-To: <4D908806.8080000@...1740...> References: <4D906F39.5060501@...1740...> <201103281424.57047.gambas@...1...> <4D908806.8080000@...1740...> Message-ID: <201103281514.50666.gambas@...1...> > On 28-3-2011 14:24, Beno?t Minisini wrote: > >> Hmmm, another one in a different part of my project: > >> > >> ** INTERNAL ERROR ** > >> ** Cannot read from SIGCHLD pipe > >> CSqueezeServer.ReceiveData.204: #39: End of file > >> 0: CSqueezeServer.ReceiveData.204 > >> 1: RRDTool.GetRRDPath.60 > >> 2: RRDTool.UpdateRRDs.269 > >> 3: ServerStats.tServerStats_Timer.40 > >> ** Program aborting. Sorry! :-( > > > > Can you try the latest revision? The interpreter will print more > > information on the internal error. > > > > Regards, > > It prints nothing more... > I forgot a "%s". Try again with the revision #3696! -- Beno?t Minisini From ron at ...1740... Mon Mar 28 15:32:46 2011 From: ron at ...1740... (Ron) Date: Mon, 28 Mar 2011 15:32:46 +0200 Subject: [Gambas-user] Gambas3 RC1 Internal error all of a sudden In-Reply-To: <201103281514.50666.gambas@...1...> References: <4D906F39.5060501@...1740...> <201103281424.57047.gambas@...1...> <4D908806.8080000@...1740...> <201103281514.50666.gambas@...1...> Message-ID: <4D908DFE.4030206@...1740...> On 28-3-2011 15:14, Beno?t Minisini wrote: >> On 28-3-2011 14:24, Beno?t Minisini wrote: >>>> Hmmm, another one in a different part of my project: >>>> >>>> ** INTERNAL ERROR ** >>>> ** Cannot read from SIGCHLD pipe >>>> CSqueezeServer.ReceiveData.204: #39: End of file >>>> 0: CSqueezeServer.ReceiveData.204 >>>> 1: RRDTool.GetRRDPath.60 >>>> 2: RRDTool.UpdateRRDs.269 >>>> 3: ServerStats.tServerStats_Timer.40 >>>> ** Program aborting. Sorry! :-( >>> Can you try the latest revision? The interpreter will print more >>> information on the internal error. >>> >>> Regards, >> It prints nothing more... >> > I forgot a "%s". Try again with the revision #3696! > Silly, I didn't notice the missing %s either... We have an error msg: ** INTERNAL ERROR ** ** Cannot read from SIGCHLD pipe: Interrupted system call CSqueezeServer.ReceiveData.204: #39: End of file 0: CSqueezeServer.ReceiveData.204 1: RRDTool.GetRRDPath.60 2: RRDTool.UpdateRRDs.269 3: ServerStats.tServerStats_Timer.40 ** Program aborting. Sorry! :-( Regards, Ron_2nd. From ron at ...1740... Mon Mar 28 15:51:29 2011 From: ron at ...1740... (Ron) Date: Mon, 28 Mar 2011 15:51:29 +0200 Subject: [Gambas-user] HttpClient question Message-ID: <4D909261.4080000@...1740...> It seems that if you call HttpClient twice after each other with different urls in async mode, like in example below the _finished event is only called once (with the last call/url) So they are not really async/background, or is this a bug? Or are they overwritten, due to false usage/code? This happens in Gambas2 and 3... ' Gambas module Public hPachubeFetch As HttpClient Public Sub Main() Dim rFeeds As String[] = ["21017", "3711"] Dim sUrl, sFeed As String For Each sFeed In rFeeds Debug sfeed hPachubeFetch = New HttpClient As "hPachubeFetch" hPachubeFetch.URL = sUrl hPachubeFetch.TimeOut = 8 hPachubeFetch.Tag = sFeed & "|0|12" ' feed | datastream | device id hPachubeFetch.Auth = 1 hPachubeFetch.User = "user" hPachubeFetch.Password = "password" hPachubeFetch.Async = True hPachubeFetch.Get() Next End Public Sub hPachubeFetch_Finished() 'do stuff End Regards, Ron_2nd. From ron at ...1740... Mon Mar 28 16:38:24 2011 From: ron at ...1740... (Ron) Date: Mon, 28 Mar 2011 16:38:24 +0200 Subject: [Gambas-user] Gambas3 RC1 Internal error all of a sudden In-Reply-To: <4D908DFE.4030206@...1740...> References: <4D906F39.5060501@...1740...> <201103281424.57047.gambas@...1...> <4D908806.8080000@...1740...> <201103281514.50666.gambas@...1...> <4D908DFE.4030206@...1740...> Message-ID: <4D909D60.4070305@...1740...> On 28-3-2011 15:32, Ron wrote: > On 28-3-2011 15:14, Beno?t Minisini wrote: >>> On 28-3-2011 14:24, Beno?t Minisini wrote: >>>>> Hmmm, another one in a different part of my project: >>>>> >>>>> ** INTERNAL ERROR ** >>>>> ** Cannot read from SIGCHLD pipe >>>>> CSqueezeServer.ReceiveData.204: #39: End of file >>>>> 0: CSqueezeServer.ReceiveData.204 >>>>> 1: RRDTool.GetRRDPath.60 >>>>> 2: RRDTool.UpdateRRDs.269 >>>>> 3: ServerStats.tServerStats_Timer.40 >>>>> ** Program aborting. Sorry! :-( >>>> Can you try the latest revision? The interpreter will print more >>>> information on the internal error. >>>> >>>> Regards, >>> It prints nothing more... >>> >> I forgot a "%s". Try again with the revision #3696! >> > > Silly, I didn't notice the missing %s either... > > We have an error msg: > > ** INTERNAL ERROR ** > ** Cannot read from SIGCHLD pipe: Interrupted system call > CSqueezeServer.ReceiveData.204: #39: End of file > 0: CSqueezeServer.ReceiveData.204 > 1: RRDTool.GetRRDPath.60 > 2: RRDTool.UpdateRRDs.269 > 3: ServerStats.tServerStats_Timer.40 > ** Program aborting. Sorry! :-( > > Regards, > Ron_2nd. Disabled the SqueezeServer module above, and let it run, got this one: ** INTERNAL ERROR ** ** Cannot read from SIGCHLD pipe: Interrupted system call Main.Setup_TemperaturNu.3277: #13: Null object 0: Main.Setup_TemperaturNu.3277 1: RRDTool.UpdateRRDs.269 2: ServerStats.tServerStats_Timer.40 ** Program aborting. Sorry! :-( Main.Setup_TemperaturNu.3277: #13: Null object Contains: Try TemperaturNu.tTemperaturNu.Stop It looks like these calls and line numbers have nothing to do with the internal error above it, and/or are bogus. It just seem to display the last error covered by a TRY statement, correct? Because the line above is run long before the Internal error comes up (like 5 minutes in between) Regards, Ron_2nd. From gambas at ...1... Mon Mar 28 16:51:54 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 28 Mar 2011 16:51:54 +0200 Subject: [Gambas-user] Gambas3 RC1 Internal error all of a sudden In-Reply-To: <4D909D60.4070305@...1740...> References: <4D906F39.5060501@...1740...> <4D908DFE.4030206@...1740...> <4D909D60.4070305@...1740...> Message-ID: <201103281651.54046.gambas@...1...> > > Disabled the SqueezeServer module above, and let it run, got this one: > > ** INTERNAL ERROR ** > ** Cannot read from SIGCHLD pipe: Interrupted system call > Main.Setup_TemperaturNu.3277: #13: Null object > 0: Main.Setup_TemperaturNu.3277 > 1: RRDTool.UpdateRRDs.269 > 2: ServerStats.tServerStats_Timer.40 > ** Program aborting. Sorry! :-( > > Main.Setup_TemperaturNu.3277: #13: Null object > Contains: > > Try TemperaturNu.tTemperaturNu.Stop > > It looks like these calls and line numbers have nothing to do with the > internal error above it, and/or are bogus. > It just seem to display the last error covered by a TRY statement, correct? > > Because the line above is run long before the Internal error comes up > (like 5 minutes in between) > > Regards, > Ron_2nd. > Yes, it displays the last error (it may be useful). Can you try the latest revision? Interrupted system calls should be handled correctly when reading from the SIGCHLD pipe now. Regards, -- Beno?t Minisini From gambas at ...1... Mon Mar 28 16:55:21 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 28 Mar 2011 16:55:21 +0200 Subject: [Gambas-user] Gambas 3 RC1 CLng not converted In-Reply-To: <4D903887.2070905@...1740...> References: <4D903887.2070905@...1740...> Message-ID: <201103281655.21250.gambas@...1...> > CLng's are not converted to CLong. > > lCt4 = Lsl(CLng(RecBuf[10]), 36) > > I remember I reported this earlier, and was fixed? > > Regards, > Ron_2nd. > Can you try the latest revision? -- Beno?t Minisini From gambas at ...1... Mon Mar 28 16:55:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 28 Mar 2011 16:55:39 +0200 Subject: [Gambas-user] Gambas 3 RC1 CSng project conversion bug In-Reply-To: <4D90348D.7090704@...1740...> References: <4D90348D.7090704@...1740...> Message-ID: <201103281655.39134.gambas@...1...> > Testing RC1 with code revision 3693 > > Converting a project to Gambas3 doesn't work 100% correct. > > It seems '+ CSingle' becomes 'CSingleSng' > > If (RecBuf[6] And &H8) = 0 Then > ' [GB2:CSNG] sCelsius = CSng(Hex(RecBuf[5])) + > CSng(Hex(Lsr(RecBuf[4], 4))) / 10 > sCelsius = CSingle(Hex(RecBuf[5]))CSingleSng(Hex(Lsr(RecBuf[4], > 4))) / 10 > Else > ' [GB2:CSNG] sCelsius = 0 - (CSng(Hex(RecBuf[5])) + > CSng(Hex(Lsr(RecBuf[4], 4))) / 10) > sCelsius = 0 - > (CSingle(Hex(RecBuf[5]))CSingleSng(Hex(Lsr(RecBuf[4], 4))) / 10) > End If > > Here it seems a 2 step process where the Hex ()is lost: > > ' [GB2:CSNG] sTrain = (CSng(Hex(RecBuf[8] And &HF)) * 1000 + > CSng(Hex(RecBuf[7])) * 10 + CSng(Hex(Lsr(RecBuf[6], 4)))) > ' [GB2:CSNG] sTrain = (CSingle(Hex(RecBuf[8] And &HF)) * > 1000CSingleSng(Hex(RecBuf[7])) *CSingle+ CSng(Hex(Lsr(RecBuf[6], 4)))) > sTrain = (CSingle(Hex(RecBuf[8] And &HF)) * 1000 > CSingleSng(Hex(RecBuf[7])) * CSingle + CSnCSinglex(Lsr(RecBuf[6], 4)))) > > Regards, > Ron_2nd. > It should be fixed in the last revision. Can you try? -- Beno?t Minisini From ron at ...1740... Mon Mar 28 17:08:38 2011 From: ron at ...1740... (Ron) Date: Mon, 28 Mar 2011 17:08:38 +0200 Subject: [Gambas-user] Gambas 3 RC1 CLng not converted In-Reply-To: <201103281655.21250.gambas@...1...> References: <4D903887.2070905@...1740...> <201103281655.21250.gambas@...1...> Message-ID: <4D90A476.8020708@...1740...> On 28-3-2011 16:55, Beno?t Minisini wrote: >> CLng's are not converted to CLong. >> >> lCt4 = Lsl(CLng(RecBuf[10]), 36) >> >> I remember I reported this earlier, and was fixed? >> >> Regards, >> Ron_2nd. >> > Can you try the latest revision? > Yes this is fixed. Thanks. From ron at ...1740... Mon Mar 28 17:09:16 2011 From: ron at ...1740... (Ron) Date: Mon, 28 Mar 2011 17:09:16 +0200 Subject: [Gambas-user] Gambas 3 RC1 CSng project conversion bug In-Reply-To: <201103281655.39134.gambas@...1...> References: <4D90348D.7090704@...1740...> <201103281655.39134.gambas@...1...> Message-ID: <4D90A49C.3060705@...1740...> On 28-3-2011 16:55, Beno?t Minisini wrote: >> Testing RC1 with code revision 3693 >> >> Converting a project to Gambas3 doesn't work 100% correct. >> >> It seems '+ CSingle' becomes 'CSingleSng' >> >> If (RecBuf[6] And&H8) = 0 Then >> ' [GB2:CSNG] sCelsius = CSng(Hex(RecBuf[5])) + >> CSng(Hex(Lsr(RecBuf[4], 4))) / 10 >> sCelsius = CSingle(Hex(RecBuf[5]))CSingleSng(Hex(Lsr(RecBuf[4], >> 4))) / 10 >> Else >> ' [GB2:CSNG] sCelsius = 0 - (CSng(Hex(RecBuf[5])) + >> CSng(Hex(Lsr(RecBuf[4], 4))) / 10) >> sCelsius = 0 - >> (CSingle(Hex(RecBuf[5]))CSingleSng(Hex(Lsr(RecBuf[4], 4))) / 10) >> End If >> >> Here it seems a 2 step process where the Hex ()is lost: >> >> ' [GB2:CSNG] sTrain = (CSng(Hex(RecBuf[8] And&HF)) * 1000 + >> CSng(Hex(RecBuf[7])) * 10 + CSng(Hex(Lsr(RecBuf[6], 4)))) >> ' [GB2:CSNG] sTrain = (CSingle(Hex(RecBuf[8] And&HF)) * >> 1000CSingleSng(Hex(RecBuf[7])) *CSingle+ CSng(Hex(Lsr(RecBuf[6], 4)))) >> sTrain = (CSingle(Hex(RecBuf[8] And&HF)) * 1000 >> CSingleSng(Hex(RecBuf[7])) * CSingle + CSnCSinglex(Lsr(RecBuf[6], 4)))) >> >> Regards, >> Ron_2nd. >> > It should be fixed in the last revision. Can you try? > Yes, this is fixed too. Thanks. From ron at ...1740... Mon Mar 28 18:49:35 2011 From: ron at ...1740... (Ron) Date: Mon, 28 Mar 2011 18:49:35 +0200 Subject: [Gambas-user] Gambas3 RC1 Bind conversion Message-ID: Referring to this page http://www.gambasdoc.org/help/doc/gb2togb3?v3 It looks like Bind(0) calls should be converted by the IDE, but it doesn't seem to be implemented. No Bind related code in app/src/gambas3/.src/Project/MConvert.module Regards, Ron_2nd. From ron at ...1740... Mon Mar 28 18:45:35 2011 From: ron at ...1740... (Ron) Date: Mon, 28 Mar 2011 18:45:35 +0200 Subject: [Gambas-user] Gambas3 RC1 Internal error all of a sudden In-Reply-To: <201103281651.54046.gambas@...1...> References: <4D906F39.5060501@...1740...> <4D908DFE.4030206@...1740...> <4D909D60.4070305@...1740...> <201103281651.54046.gambas@...1...> Message-ID: It still runs without errors, so seems fixed to, otherwise it stopped after a few minutes. I wonder where those interrupted systems calls referred too btw. Are those processes stopped or pipes closed, are they normal? Thanks! 2011/3/28 Beno?t Minisini : >> >> Disabled the SqueezeServer module above, and let it run, got this one: >> >> ** INTERNAL ERROR ** >> ** Cannot read from SIGCHLD pipe: Interrupted system call >> Main.Setup_TemperaturNu.3277: #13: Null object >> 0: Main.Setup_TemperaturNu.3277 >> 1: RRDTool.UpdateRRDs.269 >> 2: ServerStats.tServerStats_Timer.40 >> ** Program aborting. Sorry! :-( >> >> Main.Setup_TemperaturNu.3277: #13: Null object >> Contains: >> >> ? ? ?Try TemperaturNu.tTemperaturNu.Stop >> >> It looks like these calls and line numbers have nothing to do with the >> internal error above it, and/or are bogus. >> It just seem to display the last error covered by a TRY statement, correct? >> >> Because the line above is run long before the Internal error comes up >> (like 5 minutes in between) >> >> Regards, >> Ron_2nd. >> > > Yes, it displays the last error (it may be useful). > > Can you try the latest revision? Interrupted system calls should be handled > correctly when reading from the SIGCHLD pipe now. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Mar 28 18:59:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 28 Mar 2011 18:59:31 +0200 Subject: [Gambas-user] Gambas3 RC1 Internal error all of a sudden In-Reply-To: References: <4D906F39.5060501@...1740...> <201103281651.54046.gambas@...1...> Message-ID: <201103281859.31416.gambas@...1...> > It still runs without errors, so seems fixed to, otherwise it stopped > after a few minutes. > > I wonder where those interrupted systems calls referred too btw. > Are those processes stopped or pipes closed, are they normal? > > Thanks! > Interrupted system calls are a Unix thing that I don't handle correctly everywhere. If a process receives a signal while running a system call, then that system call may be aborted and return a special error code (EINTR). Then it's up to the user process to restart the system call. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Mon Mar 28 19:26:44 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 28 Mar 2011 19:26:44 +0200 Subject: [Gambas-user] Pointer to Datatypes Message-ID: <4D90C4D4.9020605@...20...> good evening all, i've been having some trouble for a time with pointers in gambas 2. i mainly wrote programs in c the last year but now i mainly deal with gambas again because my class mates want some gui in the programs at school... it would be the greatest thing if i can pass some pointers to variables (strings and ints) to a function in a module because a huge amount of data has to be written to them directly. i could use a collection, too, but if i fill and return it, i have to worry about filling the local variables in the calling function. i haven't found anything to get the address of a variable or something similar and i also don't know if this could mess up some memory management of gambas and is therefore not implemented in gb2? regards, tobi From math.eber at ...221... Mon Mar 28 20:24:55 2011 From: math.eber at ...221... (Matti) Date: Mon, 28 Mar 2011 20:24:55 +0200 Subject: [Gambas-user] ScrollArea (gb3) Message-ID: <4D90D277.7080805@...221...> When you define a custom cursor for a ScrollArea, this cursor is also applied to the ScrollBars. Looks strange. I think, the ScrollBars should keep the standard cursor, and the custom cursor should show only inside the client window of ScrollArea. It is done correctly with ScrollView. Regards Matti From gambas at ...1... Tue Mar 29 00:08:08 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 29 Mar 2011 00:08:08 +0200 Subject: [Gambas-user] Gambas3 RC1 Bind conversion In-Reply-To: References: Message-ID: <201103290008.08574.gambas@...1...> > Referring to this page http://www.gambasdoc.org/help/doc/gb2togb3?v3 > It looks like Bind(0) calls should be converted by the IDE, but it > doesn't seem to be implemented. > > No Bind related code in app/src/gambas3/.src/Project/MConvert.module > > Regards, > Ron_2nd. > Implemented in revision #3699. Regards, -- Beno?t Minisini From gambas at ...1... Tue Mar 29 02:41:15 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 29 Mar 2011 02:41:15 +0200 Subject: [Gambas-user] ScrollArea (gb3) In-Reply-To: <4D90D277.7080805@...221...> References: <4D90D277.7080805@...221...> Message-ID: <201103290241.15491.gambas@...1...> > When you define a custom cursor for a ScrollArea, this cursor is also > applied to the ScrollBars. Looks strange. > > I think, the ScrollBars should keep the standard cursor, and the custom > cursor should show only inside the client window of ScrollArea. It is done > correctly with ScrollView. > > Regards > Matti > It should be fixed in revision #3703. Regards, -- Beno?t Minisini From gambas at ...1... Tue Mar 29 02:45:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 29 Mar 2011 02:45:31 +0200 Subject: [Gambas-user] Gambas RC1 - Problem In-Reply-To: <64802323-F200-4D2E-A832-A9AFDD14F0EE@...1896...> References: <6FF56261-A929-4914-A357-EF081FF38669@...1896...> <201103280356.15349.gambas@...1...> <64802323-F200-4D2E-A832-A9AFDD14F0EE@...1896...> Message-ID: <201103290245.31978.gambas@...1...> > Benoit, > > I checked the ToolBar in revision #3694 and now the orientation of the > toolbar is ok, same with the position of the ToolButton inside but the > width of the toolbar is not respected and all buttons are not displayed > completely. > > > Olivier Cruilles > Mail: linuxos at ...1896... > Toolbar elements can have only three possible sizes: small (4 x Desktop.Scale), medium (5x) and large (7x). They normally correspond to small, medium and large icon sizes. I don't think I will have time to have a more clever toolbar before the release of Gambas 3. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Tue Mar 29 03:38:16 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 28 Mar 2011 21:38:16 -0400 Subject: [Gambas-user] the math behind full screen rotation In-Reply-To: <4D8F8E62.10106@...1887...> References: <4D88174E.8080100@...1887...> <201103231413.40889.gambas@...1...> <4D8AB478.6060009@...1887...> <1300939552.1846.23.camel@...2530...> <4D8D58A3.6000907@...1887...> <4D8D9AA3.5050306@...1909...> <4D8F8E62.10106@...1887...> Message-ID: <4D913808.50703@...1887...> On 03/27/2011 03:22 PM, Kevin Fishburne wrote: > On 03/26/2011 03:49 AM, Doriano Blengino wrote: >> Il 26/03/2011 04:08, Kevin Fishburne ha scritto: >>> On 03/24/2011 12:05 AM, John Spikowski wrote: >>> >>>> On Wed, 2011-03-23 at 23:03 -0400, Kevin Fishburne wrote: >>>> >>>> >>>>> That will probably work, but there should be a mathematical way to >>>>> compensate for not cropping the image twice, or even once. As long as >>>>> the entire image is preserved by the rotation function (it is) and it >>>>> behaves in a predictable manner (it does), the camera's coordinates >>>>> should be able to be translated and rotated so that they are in >>>>> the same >>>>> position in the rotated image as they were in the non-rotated >>>>> image. For >>>>> the sake of efficiency that is what I'm trying to accomplish. >>>>> >>>> This thread might help. (or not) >>>> >>>> http://forums.libsdl.org/viewtopic.php?t=2983&sid=1d2c6a94470c0fd56f3f542cd702ec37 >>>> >>>> >>> No go, but thanks for trying to help. Right now my code looks something >>> like this: >>> >>> ' Convert camera coordinates to their distance from the center >>> of the >>> tile grid. >>> newcx = newcx - (bworkspace.Width / 2) >>> newcy = newcy - (bworkspace.Height / 2) >>> >>> ' Rotate camera. >>> newcx = Cos(Rad(- Client.orientation)) * newcx - Sin(Rad(- >>> Client.orientation)) * newcy >>> newcy = Sin(Rad(- Client.orientation)) * newcx + Cos(Rad(- >>> Client.orientation)) * newcy >>> >>> ' Adjust the camera coordinates to fit the rotated tile grid. >>> newcx = newcx + (brotated.Width / 2) >>> newcy = newcy + (brotated.Height / 2) >>> >>> ' Draw the rotated workspace centered on the camera and cropped by >>> the render window size. >>> Draw.Image(brotated, 0, 0, swidth, sheight, newcx - swidth / 2, >>> newcy >>> - sheight / 2, swidth, sheight) >>> >>> First I figure out the distance of the camera from the center of the >>> non-rotated image. Then I rotate the camera using those distance values >>> as the camera's coordinates. That should in effect make the center of >>> the non-rotated image the origin of rotation. I then take the rotated >>> camera values and add them to the center point of the rotated image to >>> determine the camera's position in the rotated image. >>> >>> Maybe my logic is wrong, maybe it's my math. Maybe demons are hovering >>> over my shoulder casting black magic. I'm about to hit up Facebook for >>> an old math whiz I knew in high school, as gamedev.net has failed me as >>> well. >>> >>> > > Hi Doriano, thanks for helping. You're definitely getting your name in > the game credits when it's done. :) > >> Dear Kevin, >> >> if I well understand, you have to rotate your world around the player. >> To rotate a point around another arbitrary point (different from the >> origin), you must first translate the point, then rotate it, then >> translate it again in the original position. If you want I can give you >> a working routine to do so. Your code seems to do something similar, > > Yes, I hope that's what my code is doing. Basically I find the > distance of the camera from the center of the non-rotated image, > whether negative or positive. That should mean that when I rotate > those new coordinates, then add them to the center point of the > rotated image, that they've effectively been rotated about the center > of the rotated image. For example, if the camera in the non-rotated > image is at (10,10) and the center of the non-rotated image is at > (11,11), I'd do (10,10) - (11,11) = (-1,-1), rotate (-1,-1), then add > the rotated values to the center point of the rotated image. Maybe > that's all wrong, I don't know. > >> but... should not the player always stay in the middle of the screen? If >> so, you need not to translate anything, but just rotate the original >> image. Or, perhaps, you want to reduce scrolling, so the player is not >> always in the middle? If there is not a true motivation, due to some >> game concept, to have different x/y positions of the player inside the >> screen, then it is much simpler to always keep the player in the middle. >> I try to explain in other words. Suppose that you can't get enough >> framerate when you rotate the world, so you try to minimize this, and >> let the player move around the screen. When the player reaches the >> boundary of the screen, you update the whole screen. Doing so, you speed >> up considerably. Nevertheless, when the player reaches a boundary, you >> must invoke anyway the "slow" routines to update the world. The net >> result is a stiffy game, which alternates fast movements with slow ones. > > That is exactly what I'm doing because this is a tile-based game that > uses a complex method of drawing and blending the tiles. Here's how it > works, using real numbers this time. > > First the camera is detached from the player, so the player's position > for the sake of this discussion isn't important. The camera loosely > follows the player using an algorithm to simulate natural camera > movement. So the camera position is all that matters. > > The landscape is broken into three progressively smaller chunks: the > game world (data on server), the cell grid (data on client) and the > tile grid (image on client). The world for testing purposes is > currently 4096x4096 tiles. The cell grid is a block of 96x96 tiles > (3x3 cells of 32x32 tiles), and is all the game client is aware of at > any given time. Finally the tile grid is an image containing the > rendered tile data of a subset of the cell grid, with the camera > always being in the center tile. At 1280x720 the tile grid is 13x13 > tiles, or 1664x1664 pixels, with the camera always being somewhere in > tile (7,7). > > When the camera moves out of the center tile of the tile grid, the > tile grid is shifted one tile (128 pixels) in any of eight directions > and a new row and/or column of tiles are drawn into it. The tile grid > image is what's being rotated, and the camera never is farther than 64 > pixels in any direction from the center of the tile grid image. > > I've attached the relevant, abbreviated code. The function > CellGrid2TileGrid() is being called to convert the camera's cell grid > coordinates to tile grid coordinates. I believe the conversion > function is working properly (scrolling works fine until the screen is > rotated), but it may be worth a look. I've also recorded a video > showing what is currently happening when the screen is rotated: > > http://www.youtube.com/watch?v=iw64jcdNJY4 > >> I am also confused by our previous thread, where you rotated the player >> instead of the world. Not knowing enough, I can only say that you can, >> perhaps, gain some speed by doing calculations in the dead times >> (delays, if you have/use them). I have read that you reach speeds as >> high as 200 FPS or similar... if you reduce FPS to 25, you gain a lot of >> spare time to calculate ahead the new scenes (or perhaps not). If you >> explain better your ideas, may be I can try to give some advice. > > That's a good idea, I will definitely consider doing that. In a half-drunken stupor I managed to correct the issue by trial and error. Hell of a miracle. Here's the abbreviated working code: Public Sub Screen_Client() ' Main client loop. ' General declarations. Dim newcx As Single ' Translated and rotated camera coordinates in the rotated tile grid. Dim newcy As Single ' Translated and rotated camera coordinates in the rotated tile grid. Dim cxoffset As Single ' Distance of the camera from the center of the tile grid. Dim cyoffset As Single ' Distance of the camera from the center of the tile grid. ' Update the camera. Camera ' Composite the landscape layer. bworkspace.Draw(blandscape, 0, 0) ' Rotate the workspace. brotated = bworkspace.Rotate(Rad(- Client.orientation)) ' Convert camera coordinates to tile grid pixel coordinates. newcx = Convert.CellGrid2TileGrid(cx, cx) * 128 newcy = Convert.CellGrid2TileGrid(cy, cy) * 128 ' Calculate camera distance from the center of the tile grid. cxoffset = newcx - (bworkspace.Width / 2) cyoffset = newcy - (bworkspace.Height / 2) ' Rotate camera about the center of the tile grid using its offset values. newcx = Cos(Rad(- Client.orientation)) * cxoffset - Sin(Rad(- Client.orientation)) * cyoffset newcy = Sin(Rad(- Client.orientation)) * cxoffset + Cos(Rad(- Client.orientation)) * cyoffset ' Draw the rotated workspace centered on the camera and cropped by the render window size. Draw.Image(brotated, 0, 0, swidth, sheight, (brotated.Width / 2) - (swidth / 2) + newcx, (brotated.Height / 2) - (sheight / 2) + newcy, swidth, sheight) End I tried about 100 things before it started working, so I don't really know what I did wrong (or right), but at least it's working now. :) Too bad my frame rate is at 6 FPS due to the rotation function. I think I may need to follow Benoit's advice about cropping the image first. Thanks Doriano. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Tue Mar 29 04:33:21 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 28 Mar 2011 22:33:21 -0400 Subject: [Gambas-user] how to flush a process stream Message-ID: <4D9144F1.709@...1887...> I'm reading input from a gamepad by using code such as: pad_device = Exec ["cat", "/dev/input/js0"] For Read As "Gamepad" Public Sub Gamepad_READ() ' Process the gamepad input. End The problem is that analog stick movements create a LOT of read events which are generated far faster than the frame rate of the application. How can I clear the events queued by the Gamepad stream? Also, how can I continuously read events from the stream until it is empty? I might want to clear it like that so I can ignore some events and process others. Thanks! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From rterry at ...1946... Tue Mar 29 05:02:26 2011 From: rterry at ...1946... (richard terry) Date: Tue, 29 Mar 2011 14:02:26 +1100 Subject: [Gambas-user] ?screenshot property of control gone missing Message-ID: <201103291402.26773.rterry@...1946...> Hi Benoit, The ability of capture a screen shot of a control seems to have gone ?? I use this in a number of places in my program. Regards Richard From leandrosansilva at ...626... Tue Mar 29 05:16:00 2011 From: leandrosansilva at ...626... (Leandro Santiago) Date: Tue, 29 Mar 2011 00:16:00 -0300 Subject: [Gambas-user] Global menu doesn't work with global-menu plasmoid in KDE Message-ID: Hello to all. I use kde5.x with the global menu plasmoid (like mac os x), but, although it's compatible with all qt4 applications I use, it doesn't work with gambas3 IDE. There's no difference between when the menu bar is set do hide (the only difference is a line between title bar and toolbar in non-hide mode). The behavior in both cases is: the menu isn't showed in the IDE main window. But if I create an application with gambas which uses a menubar, it works fine with global menu, which is very strange. First screenshot: normal mode: set to show menubar: http://dl.dropbox.com/u/3550969/gambas3-globalmenu1.png Second: don't show menubar (Ctrl+Alt+M): http://dl.dropbox.com/u/3550969/gambas3-globalmenu2.png Third: a small application which uses menubar: http://dl.dropbox.com/u/3550969/gambas3-globalmenu3.png This plasmoid is the default global menu for kde, but I alsp tested xbar (from bespin theme engine) and it doesn't work too. I'm using gambas from svn rev. 3689, but this problem happen a long time ago. Thx for developing gambas. From leandrosansilva at ...626... Tue Mar 29 05:16:31 2011 From: leandrosansilva at ...626... (Leandro Santiago) Date: Tue, 29 Mar 2011 00:16:31 -0300 Subject: [Gambas-user] Global menu doesn't work with global-menu plasmoid in KDE In-Reply-To: References: Message-ID: kde5? kde4.x, I'd like to say :-) 2011/3/29 Leandro Santiago : > Hello to all. > > I use kde5.x with the global menu plasmoid (like mac os x), but, > although it's compatible with all qt4 applications I use, it doesn't > work with gambas3 IDE. There's no difference between when the menu bar > is set do hide (the only difference is a line between title bar and > toolbar in non-hide mode). The behavior in both cases is: the menu > isn't showed in the IDE main window. > > But if I create an application with gambas which uses a menubar, it > works fine with global menu, which is very strange. > > First screenshot: normal mode: set to show menubar: > http://dl.dropbox.com/u/3550969/gambas3-globalmenu1.png > > Second: don't show menubar (Ctrl+Alt+M): > http://dl.dropbox.com/u/3550969/gambas3-globalmenu2.png > > Third: a small application which uses menubar: > http://dl.dropbox.com/u/3550969/gambas3-globalmenu3.png > > This plasmoid is the default global menu for kde, but I alsp tested > xbar (from bespin theme engine) and it doesn't work too. > > I'm using gambas from svn rev. 3689, but this problem happen a long time ago. > > Thx for developing gambas. > From gambas.fr at ...626... Tue Mar 29 06:53:59 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 29 Mar 2011 06:53:59 +0200 Subject: [Gambas-user] ?screenshot property of control gone missing In-Reply-To: <201103291402.26773.rterry@...1946...> References: <201103291402.26773.rterry@...1946...> Message-ID: 2011/3/29 richard terry : > Hi Benoit, > > The ability of capture a screen shot of a control seems to have gone ?? I use > this in a number of places in my program. > > Regards > > Richard grab too ? > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From rterry at ...1946... Tue Mar 29 08:48:13 2011 From: rterry at ...1946... (richard terry) Date: Tue, 29 Mar 2011 17:48:13 +1100 Subject: [Gambas-user] ?screenshot property of control gone missing In-Reply-To: References: <201103291402.26773.rterry@...1946...> Message-ID: <201103291748.13715.rterry@...1946...> On Tuesday 29 March 2011 15:53:59 Fabien Bodard wrote: > 2011/3/29 richard terry : > > Hi Benoit, > > > > The ability of capture a screen shot of a control seems to have gone ?? I > > use this in a number of places in my program. > > > > Regards > > > > Richard > > grab too ? ?documentation for this, it just stopped on that line, maybe syntax is wrong, and pressing f2 for help was non informative. Regards richard > > > ------------------------------------------------------------------------- > >----- Enable your software for Intel(R) Active Management Technology to > > meet the growing manageability and security demands of your customers. > > Businesses are taking advantage of Intel(R) vPro (TM) technology - will > > your software be a part of the solution? Download the Intel(R) > > Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Tue Mar 29 10:29:43 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 29 Mar 2011 11:29:43 +0300 Subject: [Gambas-user] Can not draw outside of draw enent handler In-Reply-To: <201103271700.19947.gambas@...1...> References: <1301157879.30774.4.camel@...2493...> <201103262107.51232.gambas@...1...> <1301217364.5317.10.camel@...2493...> <201103271700.19947.gambas@...1...> Message-ID: <1301387383.4586.28.camel@...2493...> On Sun, 2011-03-27 at 17:00 +0200, Beno?t Minisini wrote: > > > > i try to make a similar example from this page > > http://gambasdoc.org/help/comp/gb.qt4/draw/line?v3 > > > > in this page it says > > > > Draw.Begin(ME) where ME is a form. > > > > i get this error in my project for > > > > Draw.Begin(drawArea) where drawArea is the name of a DrawingArea object. > > > > Where is the bug? The name "drawArea" ? > > > > Now, in Gambas 3, you just cannot draw outside of the Draw event handler > anymore. That's all. Consequently, you cannot draw on a form too, as a form > has no Draw event handler. > > Regards, > ok i found the bug in my app. i had to set Cached property to TRUE. after that i can write code as: ---------------------- Public Sub btnLine_Click() iAct = 1 Draw.Begin(drawArea) drawArea_Draw() Draw.End End Public Sub btnPolygon_Click() iAct = 2 Draw.Begin(drawArea) drawArea_Draw() Draw.End End Public Sub drawArea_Draw() Select Case iAct Case 1 'draw line SetValues() Draw.Line(55, 47, 289, 367) Case 2 SetValues() Draw.Polygon(aPolygon) End Select End -------------------------- -- Regards, Demosthenes Koptsis. From gambas at ...1... Tue Mar 29 10:48:59 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 29 Mar 2011 10:48:59 +0200 Subject: [Gambas-user] ?screenshot property of control gone missing In-Reply-To: <201103291402.26773.rterry@...1946...> References: <201103291402.26773.rterry@...1946...> Message-ID: <201103291048.59617.gambas@...1...> > Hi Benoit, > > The ability of capture a screen shot of a control seems to have gone ?? I > use this in a number of places in my program. > > Regards > > Richard > It has been removed, because it is not reliable at all. Why do you need that? -- Beno?t Minisini From gambas at ...1... Tue Mar 29 10:56:24 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 29 Mar 2011 10:56:24 +0200 Subject: [Gambas-user] Global menu doesn't work with global-menu plasmoid in KDE In-Reply-To: References: Message-ID: <201103291056.24926.gambas@...1...> > Hello to all. > > I use kde5.x with the global menu plasmoid (like mac os x), but, > although it's compatible with all qt4 applications I use, it doesn't > work with gambas3 IDE. There's no difference between when the menu bar > is set do hide (the only difference is a line between title bar and > toolbar in non-hide mode). The behavior in both cases is: the menu > isn't showed in the IDE main window. > > But if I create an application with gambas which uses a menubar, it > works fine with global menu, which is very strange. > Gambas IDE is made with Gambas, and its menu has nothing special as far as I remember. So I don't know why the global menu plasmoid does not work... -- Beno?t Minisini From ron at ...1740... Tue Mar 29 13:34:06 2011 From: ron at ...1740... (Ron) Date: Tue, 29 Mar 2011 13:34:06 +0200 Subject: [Gambas-user] Gambas3 RC1 Bind conversion In-Reply-To: <201103290008.08574.gambas@...1...> References: <201103290008.08574.gambas@...1...> Message-ID: Yes, converting .Bind() works ok now too! Thanks. 2011/3/29 Beno?t Minisini : >> Referring to this page http://www.gambasdoc.org/help/doc/gb2togb3?v3 >> It looks like Bind(0) calls should be converted by the IDE, but it >> doesn't seem to be implemented. >> >> No Bind related code in ?app/src/gambas3/.src/Project/MConvert.module >> >> Regards, >> Ron_2nd. >> > > Implemented in revision #3699. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and publish > your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leo_senpao at ...1541... Tue Mar 29 16:37:45 2011 From: leo_senpao at ...1541... (Leo Sendra) Date: Tue, 29 Mar 2011 22:37:45 +0800 (SGT) Subject: [Gambas-user] (no subject) Message-ID: <314605.93136.qm@...2060...> http://lbuchta.com/drugstore.html From math.eber at ...221... Tue Mar 29 17:21:01 2011 From: math.eber at ...221... (Matti) Date: Tue, 29 Mar 2011 17:21:01 +0200 Subject: [Gambas-user] Can not draw outside of draw event handler In-Reply-To: <1301387383.4586.28.camel@...2493...> References: <1301157879.30774.4.camel@...2493...> <201103262107.51232.gambas@...1...> <1301217364.5317.10.camel@...2493...> <201103271700.19947.gambas@...1...> <1301387383.4586.28.camel@...2493...> Message-ID: <4D91F8DD.6040703@...221...> You don't need all those Draw.Begin and Draw.End: "A Draw.Begin on the drawing area is automatically called before raising the event, and the drawing is clipped to the area to be redrawn. Draw.End will be automatically called after the event." (Wiki) So, just do iAct = 1 drawArea.Refresh Am 29.03.2011 10:29, schrieb Demosthenes Koptsis: > ---------------------- > Public Sub btnLine_Click() > > iAct = 1 > Draw.Begin(drawArea) > drawArea_Draw() > Draw.End > > End > > > Public Sub btnPolygon_Click() > > iAct = 2 > Draw.Begin(drawArea) > drawArea_Draw() > Draw.End > > > End > > > Public Sub drawArea_Draw() > > Select Case iAct > Case 1 'draw line > > SetValues() > > Draw.Line(55, 47, 289, 367) > > > Case 2 > > SetValues() > > Draw.Polygon(aPolygon) > > > End Select > > End > -------------------------- > > From tamegajr at ...626... Tue Mar 29 17:39:45 2011 From: tamegajr at ...626... (Wilson Pedro Tamega Junior) Date: Tue, 29 Mar 2011 12:39:45 -0300 Subject: [Gambas-user] How can I print my Gambas program code? Message-ID: Dear members of Gambas-user at lists.sourceforge.net, I need to print out the code of my program to keep a hard copy of it, but, when I searched all the menus I did not find a Print command. Therefore, I ask: "How can I print my Gambas program code?". I'm using Gambas 2 at Ubuntu 10.04 and 10.10. Best Regards, Wilson P. Tamega Jr. From tobiasboe1 at ...20... Tue Mar 29 17:44:34 2011 From: tobiasboe1 at ...20... (tobias) Date: Tue, 29 Mar 2011 17:44:34 +0200 Subject: [Gambas-user] How can I print my Gambas program code? In-Reply-To: References: Message-ID: <4D91FE62.2050900@...20...> hi, hum, i would consider open your files in a program that can print texts? regards, tobi From eilert-sprachen at ...221... Tue Mar 29 18:11:55 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 29 Mar 2011 18:11:55 +0200 Subject: [Gambas-user] How can I print my Gambas program code? In-Reply-To: <4D91FE62.2050900@...20...> References: <4D91FE62.2050900@...20...> Message-ID: <4D9204CB.1030205@...221...> Am 29.03.2011 17:44, schrieb tobias: > hi, > hum, i would consider open your files in a program that can print texts? > > regards, > tobi > It would be nice, however, to have an inbuilt printing tool for Gambas which would be able to print "more nicely" than a raw text printer. Such a function could print keywords in colors, for instance, which is easier to read... And it could print certain parts of the code, such as single functions, one class/module, or "everything, but collapsed" etc. Just a matter of phantasy ;-) Someone here who would like to code such a thing? Maybe I could be of some help there... Regards Rolf From gambas at ...1... Tue Mar 29 18:20:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 29 Mar 2011 18:20:14 +0200 Subject: [Gambas-user] Can not draw outside of draw event handler In-Reply-To: <4D91F8DD.6040703@...221...> References: <1301157879.30774.4.camel@...2493...> <1301387383.4586.28.camel@...2493...> <4D91F8DD.6040703@...221...> Message-ID: <201103291820.14985.gambas@...1...> > You don't need all those Draw.Begin and Draw.End: > > "A Draw.Begin on the drawing area is automatically called before raising > the event, and the drawing is clipped to the area to be redrawn. > Draw.End will be automatically called after the event." (Wiki) > > So, just do > > iAct = 1 > drawArea.Refresh > Not for Cached drawing areas! They act like Pictures. Regards, -- Beno?t Minisini From demosthenesk at ...626... Tue Mar 29 19:36:28 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 29 Mar 2011 20:36:28 +0300 Subject: [Gambas-user] Can not draw outside of draw event handler In-Reply-To: <4D91F8DD.6040703@...221...> References: <1301157879.30774.4.camel@...2493...> <201103262107.51232.gambas@...1...> <1301217364.5317.10.camel@...2493...> <201103271700.19947.gambas@...1...> <1301387383.4586.28.camel@...2493...> <4D91F8DD.6040703@...221...> Message-ID: <1301420188.3567.8.camel@...2493...> well actually before send the previous email i used that you say Matti. But drawArea.Refresh it Redraws the control. This may be call automatic the Draw.Begin and Draw.End but clears totally all the area and i cannot draw one rectangle and after a circle and then something else. So the solution i found was to set TRUE the Cache property. i attach the project if anyone like to see it. it is an example as Image example. It tries to demostrate the Draw and DrawingArea objects. It has some of the drawings methods, not all of them as Image example. Now i am wondering what is the code to make the same example with Cache property be set to FALSE. What you say is it possible? Until now i could not find something. On Tue, 2011-03-29 at 17:21 +0200, Matti wrote: > You don't need all those Draw.Begin and Draw.End: > > "A Draw.Begin on the drawing area is automatically called before raising the > event, and the drawing is clipped to the area to be redrawn. > Draw.End will be automatically called after the event." (Wiki) > > So, just do > > iAct = 1 > drawArea.Refresh > > > > Am 29.03.2011 10:29, schrieb Demosthenes Koptsis: > > > ---------------------- > > Public Sub btnLine_Click() > > > > iAct = 1 > > Draw.Begin(drawArea) > > drawArea_Draw() > > Draw.End > > > > End > > > > > > Public Sub btnPolygon_Click() > > > > iAct = 2 > > Draw.Begin(drawArea) > > drawArea_Draw() > > Draw.End > > > > > > End > > > > > > Public Sub drawArea_Draw() > > > > Select Case iAct > > Case 1 'draw line > > > > SetValues() > > > > Draw.Line(55, 47, 289, 367) > > > > > > Case 2 > > > > SetValues() > > > > Draw.Polygon(aPolygon) > > > > > > End Select > > > > End > > -------------------------- > > > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Project99.tar.gz Type: application/x-compressed-tar Size: 9753 bytes Desc: not available URL: From demosthenesk at ...626... Tue Mar 29 19:47:02 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 29 Mar 2011 20:47:02 +0300 Subject: [Gambas-user] Can not draw outside of draw event handler In-Reply-To: <201103291820.14985.gambas@...1...> References: <1301157879.30774.4.camel@...2493...> <1301387383.4586.28.camel@...2493...> <4D91F8DD.6040703@...221...> <201103291820.14985.gambas@...1...> Message-ID: <1301420822.4260.2.camel@...2493...> Please check that the Draw.FillRect uses the Background property and not the FillColor property. is this ok? See from previous email project99. -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: image_074.png Type: image/png Size: 48098 bytes Desc: not available URL: From soleilpqd at ...626... Tue Mar 29 21:36:31 2011 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Wed, 30 Mar 2011 02:36:31 +0700 Subject: [Gambas-user] Read array of string return from external libraries function Message-ID: Hi, I have an EXTERN function which returns an array of strings (char**). How to get this array? I just can only get the first string: EXTERN theFunction(params AS ...) As Pointer ..... Dim p as Pointer, s as String p = theFunction(...) s = String@(Pointer@(p)) What to do next? Thank you. From lordheavym at ...626... Wed Mar 30 00:13:25 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 30 Mar 2011 00:13:25 +0200 Subject: [Gambas-user] how to flush a process stream In-Reply-To: <4D9144F1.709@...1887...> References: <4D9144F1.709@...1887...> Message-ID: <201103300013.26216.lordheavym@...626...> Le mardi 29 mars 2011 04:33:21, Kevin Fishburne a ?crit : > I'm reading input from a gamepad by using code such as: > > pad_device = Exec ["cat", "/dev/input/js0"] For Read As "Gamepad" > > Public Sub Gamepad_READ() > ' Process the gamepad input. > End > > The problem is that analog stick movements create a LOT of read events > which are generated far faster than the frame rate of the application. > How can I clear the events queued by the Gamepad stream? > > Also, how can I continuously read events from the stream until it is > empty? I might want to clear it like that so I can ignore some events > and process others. Thanks! Did you try to use a gamepad with sdl component ? because i'm currently designing such api for gambas3, i guess it will not be too long before i can commit the code. ++ From gambas at ...1... Wed Mar 30 01:06:01 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Mar 2011 01:06:01 +0200 Subject: [Gambas-user] Can not draw outside of draw event handler In-Reply-To: <1301420188.3567.8.camel@...2493...> References: <1301157879.30774.4.camel@...2493...> <4D91F8DD.6040703@...221...> <1301420188.3567.8.camel@...2493...> Message-ID: <201103300106.01210.gambas@...1...> > well actually before send the previous email i used that you say Matti. > > But drawArea.Refresh it Redraws the control. > > This may be call automatic the Draw.Begin and Draw.End but clears > totally all the area and i cannot draw one rectangle and after a circle > and then something else. > > So the solution i found was to set TRUE the Cache property. > > i attach the project if anyone like to see it. > > it is an example as Image example. It tries to demostrate the Draw and > DrawingArea objects. It has some of the drawings methods, not all of > them as Image example. > > Now i am wondering what is the code to make the same example with Cache > property be set to FALSE. What you say is it possible? Until now i could > not find something. > Why don't you take a look at any drawing example (except OnScreenDisplay) ? -- Beno?t Minisini From gambas at ...1... Wed Mar 30 01:12:41 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Mar 2011 01:12:41 +0200 Subject: [Gambas-user] Can not draw outside of draw event handler In-Reply-To: <1301420822.4260.2.camel@...2493...> References: <1301157879.30774.4.camel@...2493...> <201103291820.14985.gambas@...1...> <1301420822.4260.2.camel@...2493...> Message-ID: <201103300112.41326.gambas@...1...> > Please check that the Draw.FillRect uses the Background property and not > the FillColor property. > > is this ok? > > > See from previous email project99. Normally, Draw.FillRect() takes the color as its fifth argument. When not specified, it actually uses the Background color. Do you think that it should use the FillColor by default instead? -- Beno?t Minisini From gambas at ...1... Wed Mar 30 01:14:46 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Mar 2011 01:14:46 +0200 Subject: [Gambas-user] Read array of string return from external libraries function In-Reply-To: References: Message-ID: <201103300114.46041.gambas@...1...> > Hi, > > I have an EXTERN function which returns an array of strings (char**). How > to get this array? > > I just can only get the first string: > EXTERN theFunction(params AS ...) As Pointer > ..... > Dim p as Pointer, s as String > > p = theFunction(...) > s = String@(Pointer@(p)) > > What to do next? > Thank you. s = String@(Pointer@(p + SizeOf(gb.Pointer)) s = String@(Pointer@(p + SizeOf(gb.Pointer) * 2) s = String@(Pointer@(p + SizeOf(gb.Pointer) * 3) ... -- Beno?t Minisini From gambas at ...1... Wed Mar 30 01:54:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Mar 2011 01:54:12 +0200 Subject: [Gambas-user] HttpClient question In-Reply-To: <4D909261.4080000@...1740...> References: <4D909261.4080000@...1740...> Message-ID: <201103300154.12997.gambas@...1...> > It seems that if you call HttpClient twice after each other with > different urls in async mode, like in example below the _finished event > is only called once (with the last call/url) > > So they are not really async/background, or is this a bug? > Or are they overwritten, due to false usage/code? > > This happens in Gambas2 and 3... > > ' Gambas module > > Public hPachubeFetch As HttpClient > > Public Sub Main() > > Dim rFeeds As String[] = ["21017", "3711"] > Dim sUrl, sFeed As String > > For Each sFeed In rFeeds > Debug sfeed > hPachubeFetch = New HttpClient As "hPachubeFetch" > hPachubeFetch.URL = sUrl > hPachubeFetch.TimeOut = 8 > hPachubeFetch.Tag = sFeed & "|0|12" ' feed | datastream | device id > hPachubeFetch.Auth = 1 > hPachubeFetch.User = "user" > hPachubeFetch.Password = "password" > hPachubeFetch.Async = True > hPachubeFetch.Get() > Next > > End > > Public Sub hPachubeFetch_Finished() > > 'do stuff > > End > > Regards, > Ron_2nd. > I think you have to keep reference on the HttpClient object until the Get() is finished. Otherwise the Finished event will be lost. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Wed Mar 30 04:57:46 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 29 Mar 2011 22:57:46 -0400 Subject: [Gambas-user] how to flush a process stream In-Reply-To: <201103300013.26216.lordheavym@...626...> References: <4D9144F1.709@...1887...> <201103300013.26216.lordheavym@...626...> Message-ID: <4D929C2A.6040508@...1887...> On 03/29/2011 06:13 PM, Laurent Carlier wrote: > Le mardi 29 mars 2011 04:33:21, Kevin Fishburne a ?crit : >> I'm reading input from a gamepad by using code such as: >> >> pad_device = Exec ["cat", "/dev/input/js0"] For Read As "Gamepad" >> >> Public Sub Gamepad_READ() >> ' Process the gamepad input. >> End >> >> The problem is that analog stick movements create a LOT of read events >> which are generated far faster than the frame rate of the application. >> How can I clear the events queued by the Gamepad stream? >> >> Also, how can I continuously read events from the stream until it is >> empty? I might want to clear it like that so I can ignore some events >> and process others. Thanks! > > Did you try to use a gamepad with sdl component ? because i'm currently > designing such api for gambas3, i guess it will not be too long before i can > commit the code. That is very cool... I'm looking forward to seeing it, and yes I'm currently using the SDL component. I switched the game over a couple of months ago. What I did to relieve the problem for now was to call the WAIT statement a bunch of times using a FOR...NEXT loop. That way even if my frame rate is low, the gamepad's READ event is allowed to trigger multiple times per frame. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From demosthenesk at ...626... Wed Mar 30 07:57:43 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 30 Mar 2011 08:57:43 +0300 Subject: [Gambas-user] Can not draw outside of draw event handler In-Reply-To: <201103300112.41326.gambas@...1...> References: <1301157879.30774.4.camel@...2493...> <201103291820.14985.gambas@...1...> <1301420822.4260.2.camel@...2493...> <201103300112.41326.gambas@...1...> Message-ID: <1301464663.15182.4.camel@...2493...> On Wed, 2011-03-30 at 01:12 +0200, Beno?t Minisini wrote: > > Please check that the Draw.FillRect uses the Background property and not > > the FillColor property. > > > > is this ok? > > > > > > See from previous email project99. > > Normally, Draw.FillRect() takes the color as its fifth argument. When not > specified, it actually uses the Background color. Do you think that it should > use the FillColor by default instead? > yes my thought says, that i expected it should use the fillcolor property. -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Wed Mar 30 08:18:56 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 30 Mar 2011 09:18:56 +0300 Subject: [Gambas-user] Can not draw outside of draw event handler In-Reply-To: <201103300106.01210.gambas@...1...> References: <1301157879.30774.4.camel@...2493...> <4D91F8DD.6040703@...221...> <1301420188.3567.8.camel@...2493...> <201103300106.01210.gambas@...1...> Message-ID: <1301465936.15182.10.camel@...2493...> oh... until now i tried to find examples in wiki and i had forgot the examples of Gambas3 code... i will see them -- Regards, Demosthenes Koptsis. From doriano.blengino at ...1909... Wed Mar 30 08:53:05 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 30 Mar 2011 08:53:05 +0200 Subject: [Gambas-user] the math behind full screen rotation In-Reply-To: <4D913808.50703@...1887...> References: <4D88174E.8080100@...1887...> <201103231413.40889.gambas@...1...> <4D8AB478.6060009@...1887...> <1300939552.1846.23.camel@...2530...> <4D8D58A3.6000907@...1887...> <4D8D9AA3.5050306@...1909...> <4D8F8E62.10106@...1887...> <4D913808.50703@...1887...> Message-ID: <4D92D351.5050109@...1909...> Kevin Fishburne ha scritto: > > In a half-drunken stupor I managed to correct the issue by trial and > error. Hell of a miracle. Here's the abbreviated working code: > I think it is more dangerous to not understand why some code works, instead of don't understanding why some code does not work... :-) > Public Sub Screen_Client() > ... > ... > ... > End > > I tried about 100 things before it started working, so I don't really > know what I did wrong (or right), but at least it's working now. :) Too > bad my frame rate is at 6 FPS due to the rotation function. I think I > may need to follow Benoit's advice about cropping the image first. > Thanks Doriano. > I'm happy to know that lastly it works, but the thanksgiving is a little too much, I think. Is there a place where one can see something of this game? Just some screenshot? Good wishes for the program, and cheers, Doriano From demosthenesk at ...626... Wed Mar 30 09:05:09 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 30 Mar 2011 10:05:09 +0300 Subject: [Gambas-user] Can not draw outside of draw event handler In-Reply-To: <201103300106.01210.gambas@...1...> References: <1301157879.30774.4.camel@...2493...> <4D91F8DD.6040703@...221...> <1301420188.3567.8.camel@...2493...> <201103300106.01210.gambas@...1...> Message-ID: <1301468709.17050.6.camel@...2493...> ok, i have looked the drawing examples. i saw that the AnalogWatch is more near to what i want to implement. But in this example it is used the Drawing.Refresh() which redesign the clock form the beginning in each second. As i learn now the Draw and Drawing classes i see that i have to use the cache property in order to add shapes in drawingarea. On Wed, 2011-03-30 at 01:06 +0200, Beno?t Minisini wrote: > > well actually before send the previous email i used that you say Matti. > > > > But drawArea.Refresh it Redraws the control. > > > > This may be call automatic the Draw.Begin and Draw.End but clears > > totally all the area and i cannot draw one rectangle and after a circle > > and then something else. > > > > So the solution i found was to set TRUE the Cache property. > > > > i attach the project if anyone like to see it. > > > > it is an example as Image example. It tries to demostrate the Draw and > > DrawingArea objects. It has some of the drawings methods, not all of > > them as Image example. > > > > Now i am wondering what is the code to make the same example with Cache > > property be set to FALSE. What you say is it possible? Until now i could > > not find something. > > > > Why don't you take a look at any drawing example (except OnScreenDisplay) ? > -- Regards, Demosthenes Koptsis. From kevinfishburne at ...1887... Wed Mar 30 09:26:05 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 30 Mar 2011 03:26:05 -0400 Subject: [Gambas-user] the math behind full screen rotation In-Reply-To: <4D92D351.5050109@...1909...> References: <4D88174E.8080100@...1887...> <201103231413.40889.gambas@...1...> <4D8AB478.6060009@...1887...> <1300939552.1846.23.camel@...2530...> <4D8D58A3.6000907@...1887...> <4D8D9AA3.5050306@...1909...> <4D8F8E62.10106@...1887...> <4D913808.50703@...1887...> <4D92D351.5050109@...1909...> Message-ID: <4D92DB0D.4000107@...1887...> On 03/30/2011 02:53 AM, Doriano Blengino wrote: > Kevin Fishburne ha scritto: >> >> In a half-drunken stupor I managed to correct the issue by trial and >> error. Hell of a miracle. Here's the abbreviated working code: >> > I think it is more dangerous to not understand why some code works, > instead of don't understanding why some code does not work... :-) Yes, I agree completely. I'm pretty strong in creativity and program logic, but applied mathematics usually messes me up unless it's pretty straightforward. I'm an artistic hacker, but no scientist. Also programming while half-drunk is a skill all in its own. :) >> Public Sub Screen_Client() >> ... >> ... >> ... >> End >> >> I tried about 100 things before it started working, so I don't really >> know what I did wrong (or right), but at least it's working now. :) Too >> bad my frame rate is at 6 FPS due to the rotation function. I think I >> may need to follow Benoit's advice about cropping the image first. >> Thanks Doriano. >> > I'm happy to know that lastly it works, but the thanksgiving is a little > too much, I think. I give credit when it's due. Too many in the forums and mailing lists don't care enough to even post their solution. They take, but don't give. I try to reward anyone who helps, in whatever way I can. > Is there a place where one can see something of this game? Just some > screenshot? > > Good wishes for the program, and cheers, > Doriano Most definitely. My project site is here: http://www.eightvirtues.com/sanctimonia It's not very updated. There are some updates here, which is where I really try to publicize my work: http://www.ultimaaiera.com/tag/sanctimonia/ My YouTube channel is here: http://www.youtube.com/user/VasCorpBetMani My weekly updates to my recent financier are here, which are a little tedious: http://www.eightvirtues.com/sanctimonia/progress/ -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From Gambas at ...1950... Wed Mar 30 09:37:09 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 30 Mar 2011 09:37:09 +0200 Subject: [Gambas-user] How can I print my Gambas program code? In-Reply-To: <4D9204CB.1030205@...221...> References: <4D91FE62.2050900@...20...> <4D9204CB.1030205@...221...> Message-ID: <1301470629.3293.17.camel@...2479...> Hi Rolf, It may be worth taking a look at: http://pygments.org/ To try the demo, choose VB.Net in the absence of any other more appropriate option. We could certainly think about making a Gambas 'language pack' for pygments...probably using the VB.Net one as a starting point. Windoze fanboys might want to look at Notepad++ Regards, Caveat On Tue, 2011-03-29 at 18:11 +0200, Rolf-Werner Eilert wrote: > Am 29.03.2011 17:44, schrieb tobias: > > hi, > > hum, i would consider open your files in a program that can print texts? > > > > regards, > > tobi > > > > It would be nice, however, to have an inbuilt printing tool for Gambas > which would be able to print "more nicely" than a raw text printer. > > Such a function could print keywords in colors, for instance, which is > easier to read... And it could print certain parts of the code, such as > single functions, one class/module, or "everything, but collapsed" etc. > Just a matter of phantasy ;-) > > Someone here who would like to code such a thing? Maybe I could be of > some help there... > > Regards > > Rolf > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From kevinfishburne at ...1887... Wed Mar 30 10:59:13 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 30 Mar 2011 04:59:13 -0400 Subject: [Gambas-user] How can I print my Gambas program code? In-Reply-To: <1301470629.3293.17.camel@...2479...> References: <4D91FE62.2050900@...20...> <4D9204CB.1030205@...221...> <1301470629.3293.17.camel@...2479...> Message-ID: <4D92F0E1.4040107@...1887...> On 03/30/2011 03:37 AM, Caveat wrote: > Hi Rolf, > > It may be worth taking a look at: http://pygments.org/ > > To try the demo, choose VB.Net in the absence of any other more > appropriate option. > > We could certainly think about making a Gambas 'language pack' for > pygments...probably using the VB.Net one as a starting point. > > Windoze fanboys might want to look at Notepad++ As the late Royal Marshall might say, "Just, damn." It should be added as a bug/feature request and put on low priority. Feature bloat, sure. Shouldn't exist, maybe. If implemented it could just be a "render text to image" tool that someone could print as an entirely separate operation. Personally, I think printing code is a bad idea in modern times. Also GAMBAS is under deeper development than brand new features warrant time for. It's getting solid and ready for production. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From eilert-sprachen at ...221... Wed Mar 30 11:30:09 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 30 Mar 2011 11:30:09 +0200 Subject: [Gambas-user] How can I print my Gambas program code? In-Reply-To: <1301470629.3293.17.camel@...2479...> References: <4D91FE62.2050900@...20...> <4D9204CB.1030205@...221...> <1301470629.3293.17.camel@...2479...> Message-ID: <4D92F821.1010801@...221...> Thanks for that hint, it certainly performed well with a Gambas2 code snippet. Actually, the only thing it did not understand was [] instead of (). In order to make it match Gambas syntax, you would have to rewrite a piece of code (filter) for adaptation and compile it into the project, did I get that right? My original idea, however, was to include some kind of library (made in Gambas) into the Gambas IDE with direct access to the other Gambas parts (editor, maybe even form editor), specialized to Gambas and offering some easy ways of printing this and that... directly out of the project, such as "currently selected text". The menu point I'd put it in would either be "File" or "Tools". Regards Rolf Am 30.03.2011 09:37, schrieb Caveat: > Hi Rolf, > > It may be worth taking a look at: http://pygments.org/ > > To try the demo, choose VB.Net in the absence of any other more > appropriate option. > > We could certainly think about making a Gambas 'language pack' for > pygments...probably using the VB.Net one as a starting point. > > Windoze fanboys might want to look at Notepad++ > > Regards, > Caveat > > > On Tue, 2011-03-29 at 18:11 +0200, Rolf-Werner Eilert wrote: >> Am 29.03.2011 17:44, schrieb tobias: >>> hi, >>> hum, i would consider open your files in a program that can print texts? >>> >>> regards, >>> tobi >>> >> >> It would be nice, however, to have an inbuilt printing tool for Gambas >> which would be able to print "more nicely" than a raw text printer. >> >> Such a function could print keywords in colors, for instance, which is >> easier to read... And it could print certain parts of the code, such as >> single functions, one class/module, or "everything, but collapsed" etc. >> Just a matter of phantasy ;-) >> >> Someone here who would like to code such a thing? Maybe I could be of >> some help there... >> >> Regards >> >> Rolf >> >> ------------------------------------------------------------------------------ >> Enable your software for Intel(R) Active Management Technology to meet the >> growing manageability and security demands of your customers. Businesses >> are taking advantage of Intel(R) vPro (TM) technology - will your software >> be a part of the solution? Download the Intel(R) Manageability Checker >> today! http://p.sf.net/sfu/intel-dev2devmar >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Gambas at ...1950... Wed Mar 30 11:54:20 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 30 Mar 2011 11:54:20 +0200 Subject: [Gambas-user] How can I print my Gambas program code? In-Reply-To: <4D92F0E1.4040107@...1887...> References: <4D91FE62.2050900@...20...> <4D9204CB.1030205@...221...> <1301470629.3293.17.camel@...2479...> <4D92F0E1.4040107@...1887...> Message-ID: <1301478860.3293.41.camel@...2479...> Hi Kevin I wasn't suggesting we add pretty printing as a feature to Gambas, and most certainly not right now while v3 is in active development (although, I dunno, Benoit...are you busy at night or are you just wasting the time sleeping? :-D :-D ). Rolf asked a question... I found a way he may be able to work with Gambas and print his code out in a pretty way. It's not for me to pass judgment on whether or not we should still use hard-copy when coding. Having said that, it's been a long time since I printed any code myself, but the last time I did I *really* needed to do it (and would have saved quite some time messing with a marker pen if I'd've had an appropriately high-lighted hard-copy!). Regards, Caveat P.S. On the full screen rotation, we're not all being quiet just because we're too lazy or can't be bothered to contribute. It looked like Doriano (or your beers!!! lol) was doing a fine job of leading you through your learning curve, so it seemed to me like jumping in too often would just have added noise to the conversation :-) P.P.S. I am no expert on transformations, but I just happen to know a guy who works in the NLE sphere... :-) On Wed, 2011-03-30 at 04:59 -0400, Kevin Fishburne wrote: > On 03/30/2011 03:37 AM, Caveat wrote: > > Hi Rolf, > > > > It may be worth taking a look at: http://pygments.org/ > > > > To try the demo, choose VB.Net in the absence of any other more > > appropriate option. > > > > We could certainly think about making a Gambas 'language pack' for > > pygments...probably using the VB.Net one as a starting point. > > > > Windoze fanboys might want to look at Notepad++ > > As the late Royal Marshall might say, "Just, damn." > > It should be added as a bug/feature request and put on low priority. > Feature bloat, sure. Shouldn't exist, maybe. If implemented it could > just be a "render text to image" tool that someone could print as an > entirely separate operation. Personally, I think printing code is a bad > idea in modern times. Also GAMBAS is under deeper development than brand > new features warrant time for. It's getting solid and ready for production. > From lordheavym at ...626... Wed Mar 30 12:15:48 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 30 Mar 2011 12:15:48 +0200 Subject: [Gambas-user] how to flush a process stream In-Reply-To: <4D929C2A.6040508@...1887...> References: <4D9144F1.709@...1887...> <201103300013.26216.lordheavym@...626...> <4D929C2A.6040508@...1887...> Message-ID: <201103301215.48502.lordheavym@...626...> Le mercredi 30 mars 2011 04:57:46, Kevin Fishburne a ?crit : > > That is very cool... I'm looking forward to seeing it, and yes I'm > currently using the SDL component. I switched the game over a couple of > months ago. > > What I did to relieve the problem for now was to call the WAIT statement > a bunch of times using a FOR...NEXT loop. That way even if my frame rate > is low, the gamepad's READ event is allowed to trigger multiple times > per frame. You can find a preliminary support of joysticks in gb.sdl in rev #3705, and a small example joined here. ++ -------------- next part -------------- A non-text attachment was scrubbed... Name: joytest-0.0.1.tar.gz Type: application/x-compressed-tar Size: 4852 bytes Desc: not available URL: From bbruen at ...2308... Wed Mar 30 12:41:11 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 30 Mar 2011 21:11:11 +1030 Subject: [Gambas-user] How can I print my Gambas program code? In-Reply-To: <4D92F821.1010801@...221...> References: <1301470629.3293.17.camel@...2479...> <4D92F821.1010801@...221...> Message-ID: <201103302111.12608.bbruen@...2308...> On Wednesday, March 30, 2011 08:00:09 PM Rolf-Werner Eilert wrote: > Thanks for that hint, it certainly performed well with a Gambas2 code > snippet. Actually, the only thing it did not understand was [] instead > of (). > > In order to make it match Gambas syntax, you would have to rewrite a > piece of code (filter) for adaptation and compile it into the project, > did I get that right? > > My original idea, however, was to include some kind of library (made in > Gambas) into the Gambas IDE with direct access to the other Gambas parts > (editor, maybe even form editor), specialized to Gambas and offering > some easy ways of printing this and that... directly out of the project, > such as "currently selected text". > > The menu point I'd put it in would either be "File" or "Tools". > > Regards > > Rolf But why re-invent the wheel? There are many utilities out there already for syntax highlighting and printing. It is even fairly simple to write the syntax config files for Kate ( I know I have :-) ) to handle Gambas source files. What I would really like is an "add-in" handler for the Gambas IDE that would allow us to access our own gambas based, or even other language based add-ins from within the IDE. For example, I have two prototype business object class generators, written in Gambas that I use extensively to generate and regenerate business class source files based on a class prototype file and a template file. These, I have to run externally to the active gambas session, and every time I regen a class I have to close and re-open the active project to get the new files loaded. It would be really nice to be able to access the generator from within the IDE and then have it automatically reload the project .... but I digress. Regarding the printing issue, it would be fairly simple to write a little utility that would allow the use to select one, some or all of the source files in the current project and shell the printing out to an exiting tool that has all the mentioned capabilities and probably many others (page headers/footers, dating, etc etc). In fact we could choose the syntax highlighter each of us preferred, rather than a single embedded option. Remember that one of the principal precepts in the whole Unix system (n.b. intentional use of the word Unix) is that there are small contained utilities that do a single job well! The gambas IDE has a single job, to provide a means to edit, run and debug Gambas source code. IMO, adding a means to take advantage of the miriad of existing and yet to be developed additional things that the IDE could do, by providing an "add-in" mechanism, could be the best wish list item for the next Gambas 3 release. That is after the current one, within its current scope, is released. regards Bruce -- best regards Bruce Bruen From eilert-sprachen at ...221... Wed Mar 30 13:10:02 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 30 Mar 2011 13:10:02 +0200 Subject: [Gambas-user] How can I print my Gambas program code? In-Reply-To: <201103302111.12608.bbruen@...2308...> References: <1301470629.3293.17.camel@...2479...> <4D92F821.1010801@...221...> <201103302111.12608.bbruen@...2308...> Message-ID: <4D930F8A.3050205@...221...> Am 30.03.2011 12:41, schrieb Bruce Bruen: > On Wednesday, March 30, 2011 08:00:09 PM Rolf-Werner Eilert wrote: >> Thanks for that hint, it certainly performed well with a Gambas2 code >> snippet. Actually, the only thing it did not understand was [] instead >> of (). >> >> In order to make it match Gambas syntax, you would have to rewrite a >> piece of code (filter) for adaptation and compile it into the project, >> did I get that right? >> >> My original idea, however, was to include some kind of library (made in >> Gambas) into the Gambas IDE with direct access to the other Gambas parts >> (editor, maybe even form editor), specialized to Gambas and offering >> some easy ways of printing this and that... directly out of the project, >> such as "currently selected text". >> >> The menu point I'd put it in would either be "File" or "Tools". >> >> Regards >> >> Rolf > > But why re-invent the wheel? There are many utilities out there already for > syntax highlighting and printing. It is even fairly simple to write the > syntax config files for Kate ( I know I have :-) ) to handle Gambas source files. > > What I would really like is an "add-in" handler for the Gambas IDE that would > allow us to access our own gambas based, or even other language based add-ins > from within the IDE. > > For example, I have two prototype business object class generators, written in > Gambas that I use extensively to generate and regenerate business class source > files based on a class prototype file and a template file. These, I have to run > externally to the active gambas session, and every time I regen a class I have > to close and re-open the active project to get the new files loaded. It would > be really nice to be able to access the generator from within the IDE and then > have it automatically reload the project .... but I digress. > > Regarding the printing issue, it would be fairly simple to write a little > utility that would allow the use to select one, some or all of the source files > in the current project and shell the printing out to an exiting tool that has > all the mentioned capabilities and probably many others (page headers/footers, > dating, etc etc). In fact we could choose the syntax highlighter each of us > preferred, rather than a single embedded option. > > Remember that one of the principal precepts in the whole Unix system (n.b. > intentional use of the word Unix) is that there are small contained utilities > that do a single job well! > > The gambas IDE has a single job, to provide a means to edit, run and debug > Gambas source code. IMO, adding a means to take advantage of the miriad of > existing and yet to be developed additional things that the IDE could do, by > providing an "add-in" mechanism, could be the best wish list item for the next > Gambas 3 release. That is after the current one, within its current scope, is > released. > > regards > Bruce > Probably you both are right, and I can save my time to spend in a more sensible project :-) The other day I had to print a little project of mine to re-code it in vb.net. As it is on a separate computer without a second monitor, I preferred it being printed as it is much easier to type in when you have the original text constantly before your eyes. This thread reminded me it was somewhat bad to read the original code because it wasn't higlighted or sorted in some way, line wraps etc. Such thing can be done by external tools, you're right. But then I thought it might be nice to just print what is selected in the IDE editor, or even more special, you click on an element of some form and it prints just what has to do with that element... or whatever. But if nobody really needs that, it's clearly featurism... Regards Rolf From girardhenri at ...67... Wed Mar 30 13:28:16 2011 From: girardhenri at ...67... (Girard Henri) Date: Wed, 30 Mar 2011 13:28:16 +0200 Subject: [Gambas-user] natty gambas3 Message-ID: Hi, I got this error looks like before maverick was out : libtool: install: /usr/bin/install -c .libs/gb.sdl.so.0.0.0 /usr/local/lib/gambas3/gb.sdl.so.0.0.0 libtool: install: (cd /usr/local/lib/gambas3 && { ln -s -f gb.sdl.so.0.0.0 gb.sdl.so.0 || { rm -f gb.sdl.so.0 && ln -s gb.sdl.so.0.0.0 gb.sdl.so.0; }; }) libtool: install: (cd /usr/local/lib/gambas3 && { ln -s -f gb.sdl.so.0.0.0 gb.sdl.so || { rm -f gb.sdl.so && ln -s gb.sdl.so.0.0.0 gb.sdl.so; }; }) libtool: install: /usr/bin/install -c .libs/gb.sdl.lai /usr/local/lib/gambas3/gb.sdl.la /usr/bin/install: cannot stat `.libs/gb.sdl.lai': No such file or directory make[3]: *** [install-gblibLTLIBRARIES] Erreur 1 make[3]: quittant le r?pertoire ? /root/gb/trunk/gb.sdl/src ? make[2]: *** [install-am] Erreur 2 make[2]: quittant le r?pertoire ? /root/gb/trunk/gb.sdl/src ? make[1]: *** [install-recursive] Erreur 1 make[1]: quittant le r?pertoire ? /root/gb/trunk/gb.sdl ? make: *** [install-recursive] Erreur 1 It didn't find v4l when i configured ? regards Henri From Gambas at ...1950... Wed Mar 30 13:36:38 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 30 Mar 2011 13:36:38 +0200 Subject: [Gambas-user] HttpClient question, now massively parallel! In-Reply-To: <201103300154.12997.gambas@...1...> References: <4D909261.4080000@...1740...> <201103300154.12997.gambas@...1...> Message-ID: <1301484998.3293.53.camel@...2479...> Hi Ron_2nd, Benoit is (need I say it!) 100% correct. But I figured out a kind of simplistic way to allow you to do your gets in a MASSIVELY PARALLEL fashion... :-D http://pastebin.com/LiY3g4Lt Oh and Rolf, I notice PasteBin has a specific Gambas syntax highlighter already :-D Regards, Caveat On Wed, 2011-03-30 at 01:54 +0200, Beno?t Minisini wrote: > > It seems that if you call HttpClient twice after each other with > > different urls in async mode, like in example below the _finished event > > is only called once (with the last call/url) > > > > So they are not really async/background, or is this a bug? > > Or are they overwritten, due to false usage/code? > > > > This happens in Gambas2 and 3... > > > > ' Gambas module > > > > Public hPachubeFetch As HttpClient > > > > Public Sub Main() > > > > Dim rFeeds As String[] = ["21017", "3711"] > > Dim sUrl, sFeed As String > > > > For Each sFeed In rFeeds > > Debug sfeed > > hPachubeFetch = New HttpClient As "hPachubeFetch" > > hPachubeFetch.URL = sUrl > > hPachubeFetch.TimeOut = 8 > > hPachubeFetch.Tag = sFeed & "|0|12" ' feed | datastream | device id > > hPachubeFetch.Auth = 1 > > hPachubeFetch.User = "user" > > hPachubeFetch.Password = "password" > > hPachubeFetch.Async = True > > hPachubeFetch.Get() > > Next > > > > End > > > > Public Sub hPachubeFetch_Finished() > > > > 'do stuff > > > > End > > > > Regards, > > Ron_2nd. > > > > I think you have to keep reference on the HttpClient object until the Get() is > finished. Otherwise the Finished event will be lost. > > Regards, > > From ron at ...1740... Wed Mar 30 13:54:35 2011 From: ron at ...1740... (Ron) Date: Wed, 30 Mar 2011 13:54:35 +0200 Subject: [Gambas-user] HttpClient question, now massively parallel! In-Reply-To: <1301484998.3293.53.camel@...2479...> References: <4D909261.4080000@...1740...> <201103300154.12997.gambas@...1...> <1301484998.3293.53.camel@...2479...> Message-ID: <4D9319FB.7090105@...1740...> Hi Caveat, I wanted to create a module for my software so I can fetches sensor data from public pachubes sensors in japen, to get nuclear radiation values. I will adapt your code, thanks! Regards, Ron_2nd. > Hi Ron_2nd, > > Benoit is (need I say it!) 100% correct. > > But I figured out a kind of simplistic way to allow you to do your gets > in a MASSIVELY PARALLEL fashion... :-D > > http://pastebin.com/LiY3g4Lt > > > Oh and Rolf, I notice PasteBin has a specific Gambas syntax highlighter > already :-D > > Regards, > Caveat > > > On Wed, 2011-03-30 at 01:54 +0200, Beno?t Minisini wrote: >>> It seems that if you call HttpClient twice after each other with >>> different urls in async mode, like in example below the _finished event >>> is only called once (with the last call/url) >>> >>> So they are not really async/background, or is this a bug? >>> Or are they overwritten, due to false usage/code? >>> >>> This happens in Gambas2 and 3... >>> >>> ' Gambas module >>> >>> Public hPachubeFetch As HttpClient >>> >>> Public Sub Main() >>> >>> Dim rFeeds As String[] = ["21017", "3711"] >>> Dim sUrl, sFeed As String >>> >>> For Each sFeed In rFeeds >>> Debug sfeed >>> hPachubeFetch = New HttpClient As "hPachubeFetch" >>> hPachubeFetch.URL = sUrl >>> hPachubeFetch.TimeOut = 8 >>> hPachubeFetch.Tag = sFeed& "|0|12" ' feed | datastream | device id >>> hPachubeFetch.Auth = 1 >>> hPachubeFetch.User = "user" >>> hPachubeFetch.Password = "password" >>> hPachubeFetch.Async = True >>> hPachubeFetch.Get() >>> Next >>> >>> End >>> >>> Public Sub hPachubeFetch_Finished() >>> >>> 'do stuff >>> >>> End >>> >>> Regards, >>> Ron_2nd. >>> >> I think you have to keep reference on the HttpClient object until the Get() is >> finished. Otherwise the Finished event will be lost. >> >> Regards, >> >> > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From lordheavym at ...626... Wed Mar 30 14:30:08 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 30 Mar 2011 14:30:08 +0200 Subject: [Gambas-user] how to flush a process stream In-Reply-To: <4D929C2A.6040508@...1887...> References: <4D9144F1.709@...1887...> <201103300013.26216.lordheavym@...626...> <4D929C2A.6040508@...1887...> Message-ID: <201103301430.08377.lordheavym@...626...> Le mercredi 30 mars 2011 04:57:46, Kevin Fishburne a ?crit : > > What I did to relieve the problem for now was to call the WAIT statement > a bunch of times using a FOR...NEXT loop. That way even if my frame rate > is low, the gamepad's READ event is allowed to trigger multiple times > per frame. Now Joystick API should be complete in rev #3707 ++ -------------- next part -------------- A non-text attachment was scrubbed... Name: joytest-0.0.2.tar.gz Type: application/x-compressed-tar Size: 4869 bytes Desc: not available URL: From demosthenesk at ...626... Wed Mar 30 15:14:43 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 30 Mar 2011 16:14:43 +0300 Subject: [Gambas-user] HttpClient question, now massively parallel! In-Reply-To: <1301484998.3293.53.camel@...2479...> References: <4D909261.4080000@...1740...> <201103300154.12997.gambas@...1...> <1301484998.3293.53.camel@...2479...> Message-ID: <1301490883.3763.12.camel@...2494...> As we speak about highlighters there is GeSHi http://qbnz.com/highlighter/ and it supports GAMBAS! Also i found an addon for OO for highlighting COOder http://extensions.services.openoffice.org/node/940 it supports vb and some other. it is based on GeSHi and i hope soon to be updated including Gambas highlighting! On Wed, 2011-03-30 at 13:36 +0200, Caveat wrote: > Hi Ron_2nd, > > Benoit is (need I say it!) 100% correct. > > But I figured out a kind of simplistic way to allow you to do your gets > in a MASSIVELY PARALLEL fashion... :-D > > http://pastebin.com/LiY3g4Lt > > > Oh and Rolf, I notice PasteBin has a specific Gambas syntax highlighter > already :-D > > Regards, > Caveat > > > On Wed, 2011-03-30 at 01:54 +0200, Beno?t Minisini wrote: > > > It seems that if you call HttpClient twice after each other with > > > different urls in async mode, like in example below the _finished event > > > is only called once (with the last call/url) > > > > > > So they are not really async/background, or is this a bug? > > > Or are they overwritten, due to false usage/code? > > > > > > This happens in Gambas2 and 3... > > > > > > ' Gambas module > > > > > > Public hPachubeFetch As HttpClient > > > > > > Public Sub Main() > > > > > > Dim rFeeds As String[] = ["21017", "3711"] > > > Dim sUrl, sFeed As String > > > > > > For Each sFeed In rFeeds > > > Debug sfeed > > > hPachubeFetch = New HttpClient As "hPachubeFetch" > > > hPachubeFetch.URL = sUrl > > > hPachubeFetch.TimeOut = 8 > > > hPachubeFetch.Tag = sFeed & "|0|12" ' feed | datastream | device id > > > hPachubeFetch.Auth = 1 > > > hPachubeFetch.User = "user" > > > hPachubeFetch.Password = "password" > > > hPachubeFetch.Async = True > > > hPachubeFetch.Get() > > > Next > > > > > > End > > > > > > Public Sub hPachubeFetch_Finished() > > > > > > 'do stuff > > > > > > End > > > > > > Regards, > > > Ron_2nd. > > > > > > > I think you have to keep reference on the HttpClient object until the Get() is > > finished. Otherwise the Finished event will be lost. > > > > Regards, > > > > > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From Gambas at ...1950... Wed Mar 30 16:55:39 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 30 Mar 2011 16:55:39 +0200 Subject: [Gambas-user] HttpClient question, now massively parallel! In-Reply-To: <4D9319FB.7090105@...1740...> References: <4D909261.4080000@...1740...> <201103300154.12997.gambas@...1...> <1301484998.3293.53.camel@...2479...> <4D9319FB.7090105@...1740...> Message-ID: <1301496939.3293.217.camel@...2479...> Hi Ron_2nd You're welcome! I made a couple of improvements while I thought of them. It's probably better not to add the leading zero to the name of the HttpClient, so just do something simple like NEW HttpClient AS "tube" & freeSlot, then your event handling routines can be simply tube0_Finished(), tube1_Finished()... tube200_Finished() etc. You'll probably need to take account of other events too like Connect, Error, and Read (I presume in Read you'll actually be getting your data, so you'll need to handle a collection of buffers or something...). You'll most likely also need to allow for timeouts. I'd also suggest to make the numbered event handlers simple one-liners that call back to a real handler... so for the Finished event: ' This is the real handler for Finished, it takes a param of the index ' of the httpClient that raised the Finished event PUBLIC SUB tube_Finished(clientIndex as Integer) ' indicate that the slot has come free slots[clientIndex] = FALSE PRINT "Slot " & clientIndex & " finished" PRINT "Processed GET: " & getters[clientIndex].URL ... do some real work! END ' Each of the Finished event handlers is now super-simple and ' should never need to change, as the real event handler (above) does ' the work PUBLIC SUB tube0_Finished() tube_Finished(0) END PUBLIC SUB tube1_Finished() tube_Finished(1) END ... PUBLIC SUB tube200_Finished() tube_Finished(200) END I'm wondering if there isn't a way to programmatically generate the event handlers, and have them know which event fired... freeing you from the pain of copy-pasting a bunch of one-line SUBs. You may want to get real fancy and start queuing requests once all your slots are used up, or maybe just deny requests (note I return -1 if there's no free slot) until something comes free again... Have fun, let me know if anything is not clear. Regards, Caveat P.S. Should I have added a disclaimer that my code is not certified for use in real-time radiation monitoring systems upon which the fate of the world may depend? ;-) On Wed, 2011-03-30 at 13:54 +0200, Ron wrote: > Hi Caveat, > > I wanted to create a module for my software so I can fetches sensor data > from public pachubes sensors in japen, to get nuclear radiation values. > > I will adapt your code, thanks! > > Regards, > Ron_2nd. > > Hi Ron_2nd, > > > > Benoit is (need I say it!) 100% correct. > > > > But I figured out a kind of simplistic way to allow you to do your gets > > in a MASSIVELY PARALLEL fashion... :-D > > > > http://pastebin.com/LiY3g4Lt > > > > > > Oh and Rolf, I notice PasteBin has a specific Gambas syntax highlighter > > already :-D > > > > Regards, > > Caveat > > > > > > On Wed, 2011-03-30 at 01:54 +0200, Beno?t Minisini wrote: > >>> It seems that if you call HttpClient twice after each other with > >>> different urls in async mode, like in example below the _finished event > >>> is only called once (with the last call/url) > >>> > >>> So they are not really async/background, or is this a bug? > >>> Or are they overwritten, due to false usage/code? > >>> > >>> This happens in Gambas2 and 3... > >>> > >>> ' Gambas module > >>> > >>> Public hPachubeFetch As HttpClient > >>> > >>> Public Sub Main() > >>> > >>> Dim rFeeds As String[] = ["21017", "3711"] > >>> Dim sUrl, sFeed As String > >>> > >>> For Each sFeed In rFeeds > >>> Debug sfeed > >>> hPachubeFetch = New HttpClient As "hPachubeFetch" > >>> hPachubeFetch.URL = sUrl > >>> hPachubeFetch.TimeOut = 8 > >>> hPachubeFetch.Tag = sFeed& "|0|12" ' feed | datastream | device id > >>> hPachubeFetch.Auth = 1 > >>> hPachubeFetch.User = "user" > >>> hPachubeFetch.Password = "password" > >>> hPachubeFetch.Async = True > >>> hPachubeFetch.Get() > >>> Next > >>> > >>> End > >>> > >>> Public Sub hPachubeFetch_Finished() > >>> > >>> 'do stuff > >>> > >>> End > >>> > >>> Regards, > >>> Ron_2nd. > >>> > >> I think you have to keep reference on the HttpClient object until the Get() is > >> finished. Otherwise the Finished event will be lost. > >> > >> Regards, > >> > >> > > > > > > ------------------------------------------------------------------------------ > > Enable your software for Intel(R) Active Management Technology to meet the > > growing manageability and security demands of your customers. Businesses > > are taking advantage of Intel(R) vPro (TM) technology - will your software > > be a part of the solution? Download the Intel(R) Manageability Checker > > today! http://p.sf.net/sfu/intel-dev2devmar > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Mar 30 17:08:02 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Mar 2011 17:08:02 +0200 Subject: [Gambas-user] HttpClient question, now massively parallel! In-Reply-To: <1301496939.3293.217.camel@...2479...> References: <4D909261.4080000@...1740...> <4D9319FB.7090105@...1740...> <1301496939.3293.217.camel@...2479...> Message-ID: <201103301708.02222.gambas@...1...> > Hi Ron_2nd > > You're welcome! I made a couple of improvements while I thought of > them. It's probably better not to add the leading zero to the name of > the HttpClient, so just do something simple like NEW HttpClient AS > "tube" & freeSlot, then your event handling routines can be simply > tube0_Finished(), tube1_Finished()... tube200_Finished() etc. You'll > probably need to take account of other events too like Connect, Error, > and Read (I presume in Read you'll actually be getting your data, so > you'll need to handle a collection of buffers or something...). You'll > most likely also need to allow for timeouts. > > I'd also suggest to make the numbered event handlers simple one-liners > that call back to a real handler... so for the Finished event: > > ' This is the real handler for Finished, it takes a param of the index > ' of the httpClient that raised the Finished event > PUBLIC SUB tube_Finished(clientIndex as Integer) > ' indicate that the slot has come free > slots[clientIndex] = FALSE > PRINT "Slot " & clientIndex & " finished" > PRINT "Processed GET: " & getters[clientIndex].URL > ... do some real work! > END > > ' Each of the Finished event handlers is now super-simple and > ' should never need to change, as the real event handler (above) does > ' the work > PUBLIC SUB tube0_Finished() > tube_Finished(0) > END > > PUBLIC SUB tube1_Finished() > tube_Finished(1) > END > > ... > PUBLIC SUB tube200_Finished() > tube_Finished(200) > END > > I'm wondering if there isn't a way to programmatically generate the > event handlers, and have them know which event fired... freeing you from > the pain of copy-pasting a bunch of one-line SUBs. > > You may want to get real fancy and start queuing requests once all your > slots are used up, or maybe just deny requests (note I return -1 if > there's no free slot) until something comes free again... > > Have fun, let me know if anything is not clear. > > Regards, > Caveat > > P.S. Should I have added a disclaimer that my code is not certified for > use in real-time radiation monitoring systems upon which the fate of the > world may depend? ;-) > You don't have to create one event handler for each HttpClient of course! Just use the same event handler. Then how to make the difference between all HttpClient object? 1) Use the LAST keyword to find the HttpClient inside the array where it is stored. 2) Or store the index inside the HttpClient.Tag property. That way you get it directly without having to do a search. Regards, -- Beno?t Minisini From gambas at ...1... Wed Mar 30 17:25:19 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Mar 2011 17:25:19 +0200 Subject: [Gambas-user] HttpClient question In-Reply-To: <4D909261.4080000@...1740...> References: <4D909261.4080000@...1740...> Message-ID: <201103301725.19691.gambas@...1...> > It seems that if you call HttpClient twice after each other with > different urls in async mode, like in example below the _finished event > is only called once (with the last call/url) > > So they are not really async/background, or is this a bug? > Or are they overwritten, due to false usage/code? > > This happens in Gambas2 and 3... > > ' Gambas module > > Public hPachubeFetch As HttpClient > > Public Sub Main() > > Dim rFeeds As String[] = ["21017", "3711"] > Dim sUrl, sFeed As String > > For Each sFeed In rFeeds > Debug sfeed > hPachubeFetch = New HttpClient As "hPachubeFetch" > hPachubeFetch.URL = sUrl > hPachubeFetch.TimeOut = 8 > hPachubeFetch.Tag = sFeed & "|0|12" ' feed | datastream | device id > hPachubeFetch.Auth = 1 > hPachubeFetch.User = "user" > hPachubeFetch.Password = "password" > hPachubeFetch.Async = True > hPachubeFetch.Get() > Next > > End > > Public Sub hPachubeFetch_Finished() > > 'do stuff > > End > > Regards, > Ron_2nd. > Hi, In revision #3708, I have committed a change so that asynchronous HttpClient object are automatically kept alive until they are finished. So that previous code should work as expected now. Can you test that for me please? Thanks in advance. Regards, -- Beno?t Minisini From ron at ...1740... Wed Mar 30 18:06:06 2011 From: ron at ...1740... (Ron) Date: Wed, 30 Mar 2011 18:06:06 +0200 Subject: [Gambas-user] HttpClient question In-Reply-To: <201103301725.19691.gambas@...1...> References: <4D909261.4080000@...1740...> <201103301725.19691.gambas@...1...> Message-ID: I got a curl pipe error, and sent you my test project privately in a sec. So you can test with my user account. Regards, Ron. 2011/3/30 Beno?t Minisini : >> It seems that if you call HttpClient twice after each other with >> different urls in async mode, like in example below the _finished event >> is only called once (with the last call/url) >> >> So they are not really async/background, or is this a bug? >> Or are they overwritten, due to false usage/code? >> >> This happens in Gambas2 and 3... >> >> ' Gambas module >> >> Public hPachubeFetch As HttpClient >> >> Public Sub Main() >> >> ? ?Dim rFeeds As String[] = ["21017", "3711"] >> ? ?Dim sUrl, sFeed As String >> >> ? ?For Each sFeed In rFeeds >> ? ? ?Debug sfeed >> ? ? ?hPachubeFetch = New HttpClient As "hPachubeFetch" >> ? ? ?hPachubeFetch.URL = sUrl >> ? ? ?hPachubeFetch.TimeOut = 8 >> ? ? ?hPachubeFetch.Tag = sFeed & "|0|12" ' feed | datastream | device id >> ? ? ?hPachubeFetch.Auth = 1 >> ? ? ?hPachubeFetch.User = "user" >> ? ? ?hPachubeFetch.Password = "password" >> ? ? ?hPachubeFetch.Async = True >> ? ? ?hPachubeFetch.Get() >> ? Next >> >> End >> >> Public Sub hPachubeFetch_Finished() >> >> ? ? 'do stuff >> >> End >> >> Regards, >> Ron_2nd. >> > > Hi, > > In revision #3708, I have committed a change so that asynchronous HttpClient > object are automatically kept alive until they are finished. > > So that previous code should work as expected now. Can you test that for me > please? > > Thanks in advance. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Mar 30 18:11:23 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Mar 2011 18:11:23 +0200 Subject: [Gambas-user] HttpClient question In-Reply-To: References: <4D909261.4080000@...1740...> <201103301725.19691.gambas@...1...> Message-ID: <201103301811.24006.gambas@...1...> > I got a curl pipe error, and sent you my test project privately in a sec. > So you can test with my user account. > > Regards, > Ron. > Which error exactly? -- Beno?t Minisini From nino at ...2569... Wed Mar 30 18:21:23 2011 From: nino at ...2569... (Antonio Cassidy) Date: Wed, 30 Mar 2011 17:21:23 +0100 Subject: [Gambas-user] Reading XML Attributes. Message-ID: Hi All I am trying to write a gambas application to parse kismet XML logs. I am able to parse elements and also sub elements but not the attributes. My code is here: http://pastebin.com/QiX2BsHH The sample XML is here, i specifically want to get the "type" attribute from the "wireless-network" element http://pastebin.com/4DGwdzYD Many thanks From Gambas at ...1950... Wed Mar 30 19:02:49 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 30 Mar 2011 19:02:49 +0200 Subject: [Gambas-user] HttpClient question, now massively parallel! In-Reply-To: <201103301708.02222.gambas@...1...> References: <4D909261.4080000@...1740...> <4D9319FB.7090105@...1740...> <1301496939.3293.217.camel@...2479...> <201103301708.02222.gambas@...1...> Message-ID: <1301504569.3293.219.camel@...2479...> Thanks Benoit, I knew there had to be a simpler way :-D On Wed, 2011-03-30 at 17:08 +0200, Beno?t Minisini wrote: > > Hi Ron_2nd > > > > You're welcome! I made a couple of improvements while I thought of > > them. It's probably better not to add the leading zero to the name of > > the HttpClient, so just do something simple like NEW HttpClient AS > > "tube" & freeSlot, then your event handling routines can be simply > > tube0_Finished(), tube1_Finished()... tube200_Finished() etc. You'll > > probably need to take account of other events too like Connect, Error, > > and Read (I presume in Read you'll actually be getting your data, so > > you'll need to handle a collection of buffers or something...). You'll > > most likely also need to allow for timeouts. > > > > I'd also suggest to make the numbered event handlers simple one-liners > > that call back to a real handler... so for the Finished event: > > > > ' This is the real handler for Finished, it takes a param of the index > > ' of the httpClient that raised the Finished event > > PUBLIC SUB tube_Finished(clientIndex as Integer) > > ' indicate that the slot has come free > > slots[clientIndex] = FALSE > > PRINT "Slot " & clientIndex & " finished" > > PRINT "Processed GET: " & getters[clientIndex].URL > > ... do some real work! > > END > > > > ' Each of the Finished event handlers is now super-simple and > > ' should never need to change, as the real event handler (above) does > > ' the work > > PUBLIC SUB tube0_Finished() > > tube_Finished(0) > > END > > > > PUBLIC SUB tube1_Finished() > > tube_Finished(1) > > END > > > > ... > > PUBLIC SUB tube200_Finished() > > tube_Finished(200) > > END > > > > I'm wondering if there isn't a way to programmatically generate the > > event handlers, and have them know which event fired... freeing you from > > the pain of copy-pasting a bunch of one-line SUBs. > > > > You may want to get real fancy and start queuing requests once all your > > slots are used up, or maybe just deny requests (note I return -1 if > > there's no free slot) until something comes free again... > > > > Have fun, let me know if anything is not clear. > > > > Regards, > > Caveat > > > > P.S. Should I have added a disclaimer that my code is not certified for > > use in real-time radiation monitoring systems upon which the fate of the > > world may depend? ;-) > > > > You don't have to create one event handler for each HttpClient of course! Just > use the same event handler. > > Then how to make the difference between all HttpClient object? > > 1) Use the LAST keyword to find the HttpClient inside the array where it is > stored. > > 2) Or store the index inside the HttpClient.Tag property. That way you get it > directly without having to do a search. > > Regards, > From Gambas at ...1950... Wed Mar 30 19:44:26 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 30 Mar 2011 19:44:26 +0200 Subject: [Gambas-user] Reading XML Attributes. In-Reply-To: References: Message-ID: <1301507066.3293.235.camel@...2479...> Hi Antonio I think this is the result you're looking for: ******************************************************************************************* Get the Attribute "type" from the path wireless-network Using full path: /wireless-network Attribute key: number Attribute key: type infrastructure **************************************************************************************** Using the general purpose xml editor I'm developing, you only need 3 lines of code to get your type attribute: parserToModel.parseInputFile("wireless-network.xml")n rewriter = NEW XMLRewriter(parserToModel.getModel()) PRINT rewriter.getAttribute("/wireless-network", "type") I posted the project on this mailing list a while back. The code you need would appear to be something like this (last 3 or 4 lines get the attributes): IF reader.Node.Type = XmlReaderNodeType.Element THEN 'Logger.logMessage("Got a start element for: " & reader.Node.Name, FALSE) newBucket = NEW XMLContainer newBucket.setNodeName(reader.Node.Name) IF currentBucket = NULL THEN newBucket.setPathToNode("/") ELSE newBucket.setPathToNode(currentBucket.getFullPath()) END IF 'Logger.logMessage("[NODE: " & newBucket.getFullPath() & "]" " node name: " & newBucket.getNodeName(), FALSE) FOR EACH reader.Node.Attributes newBucket.setAttribute(reader.Node.Name, reader.Node.Value) NEXT The reader object is a standard XmlReader. Let me know if I need to repost the project. Regards, Caveat On Wed, 2011-03-30 at 17:21 +0100, Antonio Cassidy wrote: > Hi All > > I am trying to write a gambas application to parse kismet XML logs. > > I am able to parse elements and also sub elements but not the attributes. > > My code is here: > http://pastebin.com/QiX2BsHH > > The sample XML is here, i specifically want to get the "type" attribute from > the "wireless-network" element > http://pastebin.com/4DGwdzYD > > Many thanks > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From charles at ...1784... Wed Mar 30 20:20:03 2011 From: charles at ...1784... (charlesg) Date: Wed, 30 Mar 2011 11:20:03 -0700 (PDT) Subject: [Gambas-user] How can I print my Gambas program code? In-Reply-To: References: Message-ID: <31279996.post@...1379...> Wilson Pedro Tamega Junior wrote: > > I need to print out the code of my program to keep a hard copy of it, > Here is a little Gambas2 program that I wrote a few years ago to print Gambas files. I did intend to colour code the output but never got around to it. It produces A5 folded booklets like Clickbook and Fineprint (and so saves paper :>) ) It needs two other utilites: (sudo apt-get install) htmldoc and psutils from Ubuntu repository. http://old.nabble.com/file/p31279996/booklet.zip booklet.zip -- View this message in context: http://old.nabble.com/How-can-I-print-my-Gambas-program-code--tp31268990p31279996.html Sent from the gambas-user mailing list archive at Nabble.com. From nino at ...2569... Wed Mar 30 20:23:40 2011 From: nino at ...2569... (Antonio Cassidy) Date: Wed, 30 Mar 2011 19:23:40 +0100 Subject: [Gambas-user] Reading XML Attributes. In-Reply-To: <1301507066.3293.235.camel@...2479...> References: <1301507066.3293.235.camel@...2479...> Message-ID: Hi Caveat Would it be possible to nab a copy of the project. The following looks to be what i need to use with my current code: http://64.128.110.55/help/comp/gb.xml/.xmlnodeattributes?v3&en the high level explanation makes sense however im having issues actually using .xmlnodeattributes im a little out of my depth! On Wed, Mar 30, 2011 at 6:44 PM, Caveat wrote: > Hi Antonio > > I think this is the result you're looking for: > > > ******************************************************************************************* > Get the Attribute "type" from the path wireless-network > Using full path: /wireless-network > Attribute key: number > Attribute key: type > infrastructure > > **************************************************************************************** > > > Using the general purpose xml editor I'm developing, you only need 3 > lines of code to get your type attribute: > > parserToModel.parseInputFile("wireless-network.xml")n > rewriter = NEW XMLRewriter(parserToModel.getModel()) > PRINT rewriter.getAttribute("/wireless-network", "type") > > I posted the project on this mailing list a while back. The code you > need would appear to be something like this (last 3 or 4 lines get the > attributes): > > IF reader.Node.Type = XmlReaderNodeType.Element THEN > 'Logger.logMessage("Got a start element for: " & reader.Node.Name, > FALSE) > newBucket = NEW XMLContainer > newBucket.setNodeName(reader.Node.Name) > IF currentBucket = NULL THEN > newBucket.setPathToNode("/") > ELSE > newBucket.setPathToNode(currentBucket.getFullPath()) > END IF > 'Logger.logMessage("[NODE: " & newBucket.getFullPath() & "]" " node > name: " & newBucket.getNodeName(), FALSE) > FOR EACH reader.Node.Attributes > newBucket.setAttribute(reader.Node.Name, reader.Node.Value) > NEXT > > The reader object is a standard XmlReader. > > Let me know if I need to repost the project. > > Regards, > Caveat > > On Wed, 2011-03-30 at 17:21 +0100, Antonio Cassidy wrote: > > Hi All > > > > I am trying to write a gambas application to parse kismet XML logs. > > > > I am able to parse elements and also sub elements but not the attributes. > > > > My code is here: > > http://pastebin.com/QiX2BsHH > > > > The sample XML is here, i specifically want to get the "type" attribute > from > > the "wireless-network" element > > http://pastebin.com/4DGwdzYD > > > > Many thanks > > > ------------------------------------------------------------------------------ > > Create and publish websites with WebMatrix > > Use the most popular FREE web apps or write code yourself; > > WebMatrix provides all the features you need to develop and > > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Wed Mar 30 20:27:24 2011 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 30 Mar 2011 14:27:24 -0400 Subject: [Gambas-user] Gambasdoc.org hosting (wiki) Message-ID: <201103301427.24980.sourceforge-raindog2@...94...> Hi, my name is Rob Kudla. I've been providing hosting for the Gambas wiki at gambasdoc.org for about 6 years. The wiki needs a new host. The Gambas wiki is currently running on a pre-2.0 release of Gambas, because the operating system on which our host runs is too old for anything newer to compile. Benoit has been hamstrung by this limitation for a couple of years now. My company has had a new server ready to be put online with a new local colocation provider for several years, but said provider has been dragging their feet. Even the replacement server may be out of date by the time we finally get it online. (Not looking for any business advice here. If all we wanted was web and mail hosting, we could get that right now from a thousand different places. We have additional requirements.) I myself haven't used Gambas for a project in several years. Nearly all the code I write is for web or mobile applications now. My clients are more interested in mobile and web apps than desktop apps, and I've done more in Java than Gambas recently. Until someone recently asked a question about the Regexp component I wrote long ago, I didn't even have gambas2 installed on my main machine. Given all that, is there anyone with web space on a host on which Benoit can have shell access, capable of running current Gambas releases, and would be willing to work with Benoit to get a copy of the wiki running under Apache? Once everything is working well, I'd transfer ownership of the gambasdoc.org/.com domain names to Benoit. Currently it takes about 300MB of disk space, mysql access and 2.4 million hits per month totaling 15GB of transfer (based on Apache logs; actual transfer should be less than that). While I can't speak for Benoit, I would prefer that it continue to be ad-free, as it's always been. If anyone can take this over, please let me and/or Benoit know. Thanks Rob From nino at ...2569... Wed Mar 30 21:27:01 2011 From: nino at ...2569... (Antonio Cassidy) Date: Wed, 30 Mar 2011 20:27:01 +0100 Subject: [Gambas-user] Reading XML Attributes. In-Reply-To: References: <1301507066.3293.235.camel@...2479...> Message-ID: Im getting a step closer, if i use the following: FOR EACH node1.Attributes PRINT node1.name NEXT I get the following: -78,F8:DB:7F:78:34:61,PJ-WIRELESS5,None,0 wireless-network wireless-network wireless-network wireless-network -79,F8:DB:7F:79:27:36,PJ-WIRELESS5,None,0 There are 4 attributes in the node so i know its enumerating properly i just cant seem to print out the attributes names, and values. On Wed, Mar 30, 2011 at 7:23 PM, Antonio Cassidy wrote: > Hi Caveat > > Would it be possible to nab a copy of the project. > > The following looks to be what i need to use with my current code: > > http://64.128.110.55/help/comp/gb.xml/.xmlnodeattributes?v3&en > > the high level explanation makes sense however im having issues actually > using .xmlnodeattributes im a little out of my depth! > > > On Wed, Mar 30, 2011 at 6:44 PM, Caveat wrote: > >> Hi Antonio >> >> I think this is the result you're looking for: >> >> >> ******************************************************************************************* >> Get the Attribute "type" from the path wireless-network >> Using full path: /wireless-network >> Attribute key: number >> Attribute key: type >> infrastructure >> >> **************************************************************************************** >> >> >> Using the general purpose xml editor I'm developing, you only need 3 >> lines of code to get your type attribute: >> >> parserToModel.parseInputFile("wireless-network.xml")n >> rewriter = NEW XMLRewriter(parserToModel.getModel()) >> PRINT rewriter.getAttribute("/wireless-network", "type") >> >> I posted the project on this mailing list a while back. The code you >> need would appear to be something like this (last 3 or 4 lines get the >> attributes): >> >> IF reader.Node.Type = XmlReaderNodeType.Element THEN >> 'Logger.logMessage("Got a start element for: " & reader.Node.Name, >> FALSE) >> newBucket = NEW XMLContainer >> newBucket.setNodeName(reader.Node.Name) >> IF currentBucket = NULL THEN >> newBucket.setPathToNode("/") >> ELSE >> newBucket.setPathToNode(currentBucket.getFullPath()) >> END IF >> 'Logger.logMessage("[NODE: " & newBucket.getFullPath() & "]" " node >> name: " & newBucket.getNodeName(), FALSE) >> FOR EACH reader.Node.Attributes >> newBucket.setAttribute(reader.Node.Name, reader.Node.Value) >> NEXT >> >> The reader object is a standard XmlReader. >> >> Let me know if I need to repost the project. >> >> Regards, >> Caveat >> >> On Wed, 2011-03-30 at 17:21 +0100, Antonio Cassidy wrote: >> > Hi All >> > >> > I am trying to write a gambas application to parse kismet XML logs. >> > >> > I am able to parse elements and also sub elements but not the >> attributes. >> > >> > My code is here: >> > http://pastebin.com/QiX2BsHH >> > >> > The sample XML is here, i specifically want to get the "type" attribute >> from >> > the "wireless-network" element >> > http://pastebin.com/4DGwdzYD >> > >> > Many thanks >> > >> ------------------------------------------------------------------------------ >> > Create and publish websites with WebMatrix >> > Use the most popular FREE web apps or write code yourself; >> > WebMatrix provides all the features you need to develop and >> > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> ------------------------------------------------------------------------------ >> Create and publish websites with WebMatrix >> Use the most popular FREE web apps or write code yourself; >> WebMatrix provides all the features you need to develop and >> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From nino at ...2569... Wed Mar 30 21:43:38 2011 From: nino at ...2569... (Antonio Cassidy) Date: Wed, 30 Mar 2011 20:43:38 +0100 Subject: [Gambas-user] Reading XML Attributes. In-Reply-To: References: <1301507066.3293.235.camel@...2479...> Message-ID: Managed to solve it with: DIM node3 AS XmlNode ..... FOR EACH node3 IN node1.Attributes IF node3.Name = "type" THEN PRINT node3.Value END IF NEXT think i was having a mental block! On Wed, Mar 30, 2011 at 8:27 PM, Antonio Cassidy wrote: > Im getting a step closer, if i use the following: > > FOR EACH node1.Attributes > PRINT node1.name > NEXT > > I get the following: > > -78,F8:DB:7F:78:34:61,PJ-WIRELESS5,None,0 > wireless-network > wireless-network > wireless-network > wireless-network > -79,F8:DB:7F:79:27:36,PJ-WIRELESS5,None,0 > > There are 4 attributes in the node so i know its enumerating properly i > just cant seem to print out the attributes names, and values. > > > On Wed, Mar 30, 2011 at 7:23 PM, Antonio Cassidy wrote: > >> Hi Caveat >> >> Would it be possible to nab a copy of the project. >> >> The following looks to be what i need to use with my current code: >> >> http://64.128.110.55/help/comp/gb.xml/.xmlnodeattributes?v3&en >> >> the high level explanation makes sense however im having issues actually >> using .xmlnodeattributes im a little out of my depth! >> >> >> On Wed, Mar 30, 2011 at 6:44 PM, Caveat wrote: >> >>> Hi Antonio >>> >>> I think this is the result you're looking for: >>> >>> >>> ******************************************************************************************* >>> Get the Attribute "type" from the path wireless-network >>> Using full path: /wireless-network >>> Attribute key: number >>> Attribute key: type >>> infrastructure >>> >>> **************************************************************************************** >>> >>> >>> Using the general purpose xml editor I'm developing, you only need 3 >>> lines of code to get your type attribute: >>> >>> parserToModel.parseInputFile("wireless-network.xml")n >>> rewriter = NEW XMLRewriter(parserToModel.getModel()) >>> PRINT rewriter.getAttribute("/wireless-network", "type") >>> >>> I posted the project on this mailing list a while back. The code you >>> need would appear to be something like this (last 3 or 4 lines get the >>> attributes): >>> >>> IF reader.Node.Type = XmlReaderNodeType.Element THEN >>> 'Logger.logMessage("Got a start element for: " & reader.Node.Name, >>> FALSE) >>> newBucket = NEW XMLContainer >>> newBucket.setNodeName(reader.Node.Name) >>> IF currentBucket = NULL THEN >>> newBucket.setPathToNode("/") >>> ELSE >>> newBucket.setPathToNode(currentBucket.getFullPath()) >>> END IF >>> 'Logger.logMessage("[NODE: " & newBucket.getFullPath() & "]" " node >>> name: " & newBucket.getNodeName(), FALSE) >>> FOR EACH reader.Node.Attributes >>> newBucket.setAttribute(reader.Node.Name, reader.Node.Value) >>> NEXT >>> >>> The reader object is a standard XmlReader. >>> >>> Let me know if I need to repost the project. >>> >>> Regards, >>> Caveat >>> >>> On Wed, 2011-03-30 at 17:21 +0100, Antonio Cassidy wrote: >>> > Hi All >>> > >>> > I am trying to write a gambas application to parse kismet XML logs. >>> > >>> > I am able to parse elements and also sub elements but not the >>> attributes. >>> > >>> > My code is here: >>> > http://pastebin.com/QiX2BsHH >>> > >>> > The sample XML is here, i specifically want to get the "type" attribute >>> from >>> > the "wireless-network" element >>> > http://pastebin.com/4DGwdzYD >>> > >>> > Many thanks >>> > >>> ------------------------------------------------------------------------------ >>> > Create and publish websites with WebMatrix >>> > Use the most popular FREE web apps or write code yourself; >>> > WebMatrix provides all the features you need to develop and >>> > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Create and publish websites with WebMatrix >>> Use the most popular FREE web apps or write code yourself; >>> WebMatrix provides all the features you need to develop and >>> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > From Karl.Reinl at ...2345... Wed Mar 30 23:42:45 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 30 Mar 2011 23:42:45 +0200 Subject: [Gambas-user] How can I print my Gambas program code? In-Reply-To: <31279996.post@...1379...> References: <31279996.post@...1379...> Message-ID: <1301521365.6400.8.camel@...40...> Salut, I found that in my archive, It is gambas1 code who printed the open source and was called like this > PUBLIC SUB mnuSourcePrinter_Click() > lp AS NEW CPrintSource > lp.LPrint(Name, Path, edtEditor) > END the code came original from a guy called Carsten Olsen and that was in end 2004. So look if you can use. -- Amicalement Charlie -------------- next part -------------- ' Gambas class file PRIVATE sName AS String PRIVATE sPath AS String PRIVATE edtSource AS GambasEditor PRIVATE sTimestamp AS String PRIVATE iPosX AS Integer PRIVATE iPosY AS Integer PRIVATE iPageNo AS Integer PRIVATE iLineNo AS Integer PRIVATE iMaxString AS Integer PRIVATE iColors AS NEW Integer[] PRIVATE fntPrintFont AS NEW Font PRIVATE bPrintLineNo AS Boolean PRIVATE bPrintColor AS Boolean PRIVATE bPrintUseRelief AS Boolean CONST iRightMargin AS Integer = 200 CONST iLeftMargin AS Integer = 200 CONST iTopMargin AS Integer = 200 CONST iBottomMargin AS Integer = 200 CONST placeCenter AS String = "C" CONST placeRight AS String = "R" CONST placeLeft AS String = "L" PUBLIC SUB _new() DIM n AS Integer iPageNo = 0 iLineNo = 0 FOR n = 0 TO 15 iColors.Add(Val(Settings["/PrintSource/Color[" & Str(n) & "]", "-1"])) NEXT fntPrintFont = Font[Settings["/PrintSource/Font", Project.DEFAULT_FONT]] bPrintLineNo = Settings["/PrintSource/PrintLineNo", FALSE] bPrintColor = Settings["/PrintSource/PrintColor", FALSE] bPrintUseRelief = Settings["/PrintSource/PrintUseRelief", FALSE] sTimestamp = Format$(Now, "yyyy-mm-dd hh.nn.ss") END PUBLIC SUB _free() END PUBLIC SUB LPrint(Name AS String, Path AS String, Source AS GambasEditor) DIM iLine AS Integer sName = Name sPath = Path edtSource = Source IF printer.Setup() THEN ' nothing ELSE BeginPrinter() Draw.Font = fntPrintFont iMaxString = (Printer.Width - iLeftMargin - iRightMargin) / Draw.TextWidth(" ") PrntHeader(fntPrintFont) FOR iLine = 0 TO edtSource.Lines.Count LinePrint(edtSource.Lines[iLine], fntPrintFont, bPrintLineNo) NEXT PrntFooter(fntPrintFont) ClosePrinter() ENDIF END PRIVATE PROCEDURE BeginPrinter() WAIT 0 iPosX = iLeftMargin iPosY = iTopMargin Draw.Begin(Printer) END PRIVATE SUB ClosePrinter() WAIT 0 Draw.End() END PRIVATE SUB LinePrint(Text AS String, Fnt AS font, PrintLineNo AS Boolean) DIM sText AS String DIM sSymbols AS String[] DIM iTypes AS Integer[] DIM iPositionss AS Integer[] DIM sSubText AS String[] DIM sWord AS String DIM sSymbol AS String DIM iType AS Integer DIM iLength AS Integer DIM iNoOfSpaces AS Integer DIM iPositions AS Integer DIM n AS Integer DIM m AS Integer INC iLineNo IF PrintLineNo THEN Prnt(Format(iLineNo, "0000: "), -1, Fnt) ENDIF sText = Text GambasEditor.Analyze(sText) sSymbols = GambasEditor.Symbols iTypes = GambasEditor.Types iPositionss = GambasEditor.Positions iLength = 0 FOR n = 0 TO sSymbols.Count - 1 sSymbol = sSymbols[n] iType = iTypes[n] iPositions = iPositionss[n] iNoOfSpaces = iPositions - iLength - 1 IF iNoOfSpaces > 0 THEN Prnt(Space(iNoOfSpaces), -1, Fnt) ENDIF iLength = iPositions + Len(sSymbol) - 1 IF OutofPage(sSymbol) THEN sSubText = Split(sSymbol, " ") FOR EACH sWord IN sSubText IF Len(sWord) <= iMaxString THEN Prnt(sWord, iType, Fnt) ELSE FOR m = 1 TO Len(sWord) prnt(Mid(sWord, m, 1), iType, Fnt) NEXT ENDIF Prnt(" ", iType, Fnt) NEXT ELSE Prnt(sSymbol, iType, Fnt) ENDIF NEXT IF EndOfPage() THEN PrntFooter(Fnt) NewPage() PrntHeader(Fnt) ELSE NewLine("") ' IF PrintLineNo THEN ' Prnt(Space(6), -1, Fnt) ' ENDIF ENDIF END PRIVATE SUB Prnt(Text AS String, Type AS Integer, Fnt AS font) Draw.Font = Fnt IF Type >= 0 AND bPrintColor THEN Draw.ForeColor = iColors[Type] 'SetColor(Type) ELSE Draw.ForeColor = color.Black ENDIF Draw.Font.Bold = SetBold(Type) IF iPosY = iTopMargin THEN iPosY = iTopMargin + Draw.TextHeight(Text) ENDIF IF OutOfPage(Text) THEN NewLine(Text) ENDIF Draw.Text(Text, iPosX, iPosY) iPosX = iPosX + Draw.TextWidth(Text) END PRIVATE SUB PrntAtX(X AS Integer, Text AS String, Place AS String, Fnt AS font) DIM iX AS Integer Draw.Font = Fnt Draw.ForeColor = color.Black SELECT Place CASE "C" iX = X - (Draw.TextWidth(Text) / 2) CASE "R" iX = X - Draw.TextWidth(Text) CASE ELSE iX = X END SELECT IF iPosY = 0 THEN iPosY = Draw.TextHeight(Text) ENDIF Draw.Text(Text, iX, iPosY) END PRIVATE SUB PrntHeader(Fnt AS Font) INC iPageNo Rect(iLeftMargin, iTopMargin, Printer.Width - iLeftMargin - iRightMargin, Draw.TextHeight(" ")) Fnt.Bold = TRUE Draw.ForeColor = color.Black PrntAtX(iLeftMargin, sTimestamp, PlaceLeft, Fnt) PrntAtX(Printer.Width / 2, sName, PlaceCenter, Fnt) PrntAtX(Printer.Width - iRightMargin, "Page: " & iPageNo, PlaceRight, Fnt) NewLine(" ") NewLine(" ") Fnt.Bold = FALSE END PRIVATE SUB PrntFooter(Fnt AS Font) iPosY = Printer.Height - iBottomMargin '+ Draw.TextHeight(" ") Rect(iLeftMargin, iPosY, Printer.Width - iLeftMargin - iRightMargin, Draw.TextHeight(" ")) Fnt.Bold = TRUE PrntAtX(Printer.Width - iRightMargin, "file:" & sPath, PlaceRight, Fnt) PrntAtX(iLeftMargin, "Gambas", PlaceLeft, Fnt) Fnt.Bold = FALSE END PRIVATE FUNCTION EndOfPage(OPTIONAL printHeight AS Integer) AS Boolean IF printHeight <= 0 THEN printHeight = Printer.Height ENDIF IF iPosY > (printHeight - iBottomMargin - (Draw.TextHeight(" ") * 3)) THEN RETURN TRUE ELSE RETURN FALSE ENDIF END PRIVATE FUNCTION OutOfPage(Text AS String) AS Boolean IF (iPosX > Printer.Width - iRightMargin OR (iPosX + Draw.TextWidth(Text)) > Printer.Width - iRightMargin) THEN RETURN TRUE ELSE RETURN FALSE ENDIF END PRIVATE SUB NewPage() iPosX = iLeftMargin iPosY = iTopMargin Printer.NewPage() END PRIVATE SUB NewLine(Text AS String) iPosX = iLeftMargin iPosY = iPosY + Draw.TextHeight(Text) END PRIVATE SUB Line(X1 AS Integer, Y1 AS Integer, X2 AS Integer, Y2 AS Integer) Draw.Line(X1, Y1, X2, Y2) END PRIVATE SUB Rect(X1 AS Integer, Y1 AS Integer, X2 AS Integer, Y2 AS Integer) Draw.Rect(X1, Y1, X2, Y2) END PRIVATE FUNCTION SetBold(Type AS Integer) AS Boolean DIM bReturn AS Boolean IF bPrintUseRelief THEN SELECT Type CASE 2 bReturn = TRUE CASE ELSE bReturn = FALSE END SELECT ELSE bReturn = FALSE ENDIF RETURN bReturn END From bugcy013 at ...626... Thu Mar 31 08:07:54 2011 From: bugcy013 at ...626... (Ganesh Kumar) Date: Thu, 31 Mar 2011 11:37:54 +0530 Subject: [Gambas-user] Forms Pixel Size Controls Message-ID: Hi Guys, I am new to gambas , how to forms size controls I have fixed size 800 x 600 => output will be 1024 x 695 I want required size 800 X 600. How to set forms size in correct manner. please help me.. -Ganesh. -- Did I learn something today? If not, I wasted it. From Gambas at ...1950... Thu Mar 31 09:45:14 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 31 Mar 2011 09:45:14 +0200 Subject: [Gambas-user] Forms Pixel Size Controls In-Reply-To: References: Message-ID: <1301557514.3293.245.camel@...2479...> It's not very clear to me what you're asking...if you just want to set the form size in code, use: PUBLIC SUB Form_Open() ME.Width = 600 ME.Height = 800 But if this is really all you need then even simpler is to set the Width and Height attributes in the designer... ...or are you looking for something more, like detecting the size of the user's display? I don't get your "800 x 600 => output will be 1024 x 695" line. What do you mean by output? The form size?? What is 800 x 600, the screen? If you make the form 800 x 600, why would you want anything ('output'??) on the form to be bigger? Regards, Caveat On Thu, 2011-03-31 at 11:37 +0530, Ganesh Kumar wrote: > Hi Guys, > > I am new to gambas , how to forms size controls I have fixed size > > 800 x 600 => output will be 1024 x 695 > > I want required size 800 X 600. How to set forms size in correct manner. > please help me.. > > -Ganesh. > From demosthenesk at ...626... Thu Mar 31 17:15:29 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 31 Mar 2011 18:15:29 +0300 Subject: [Gambas-user] About syntax highlighting and copy/paste to OpenOffice Message-ID: <1301584529.15150.32.camel@...2493...> These days i tried some ways to make the Gambas3 code in an OO3 document be highlighted as in Gambas3 editor. 1) For this, i used many online web syntax highlighters such as http://pygments.org/ http://pastebin.com/ http://qbnz.com/highlighter/ but when i copy the code from webpage OO does not make it "Paste Special" in document, i dont know why...! 2) also i found an addon for OO named COOoder the old page is http://extensions.services.openoffice.org/node/940 but has no gambas support and the developer has no plans for any update recently. Although the COOoder addon is easily configurable. Someone can take the GeSHi gambas.php file and feed it at cli to script http://cgit.freedesktop.org/libreoffice/build/tree/extensions/coooder/php/from-geshi.php this will make a gambas.xml file which is the highlight for COOoder addon. (i edited the GeSHi gambas.php to gambas3.php for anyone who want it, although it is not complete yet) The gambas.xml then must be copied to path /home/user/.openoffice.org/3/user/uno_packages/cache/uno_packages/o36C8H_/coooder-1.1.2.oxt/config/org/openoffice/langs or similar... where OO addons exist. But unfortunately the COOoder may be has a bug. When reach a line with gambas3 comment stops the process of highlighting. (see screenshot) i sent an email to COOoder writer and i hope to help me or to fix the bug. ----------- Do you know any other way to make highlight the code in OO for gambas code? Is it possible when i copy the code from gambas editor to keep meta-data for OO, so i can make a "Paste Special" ? of course the simple paste must keep use raw text. -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas3.php Type: application/x-php Size: 11492 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image_077.png Type: image/png Size: 70636 bytes Desc: not available URL: