From sumangalaknair at ...255... Wed Feb 2 17:33:42 2011 From: sumangalaknair at ...255... (sumangala nair) Date: Wed, 2 Feb 2011 22:03:42 +0530 Subject: [Gambas-devel] (no subject) Message-ID: http://maison-lorraine-a-vendre.com/NewYear.php?page=7013 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumangalaknair at ...255... Sun Feb 6 05:53:50 2011 From: sumangalaknair at ...255... (sumangala nair) Date: Sun, 6 Feb 2011 10:23:50 +0530 Subject: [Gambas-devel] (no subject) Message-ID: http://reginapaper.ro/NewYear.php?id=1690 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumangalaknair at ...255... Sun Feb 6 09:19:50 2011 From: sumangalaknair at ...255... (sumangala nair) Date: Sun, 6 Feb 2011 13:49:50 +0530 Subject: [Gambas-devel] (no subject) Message-ID: http://www.matrix-resolution.ch/gift.php ?page=7219 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumangalaknair at ...255... Mon Feb 7 00:18:17 2011 From: sumangalaknair at ...255... (sumangala nair) Date: Mon, 7 Feb 2011 04:48:17 +0530 Subject: [Gambas-devel] (no subject) Message-ID: http://captain.bololo.free.fr/gift.php ?page=2008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Feb 8 02:35:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 8 Feb 2011 02:35:34 +0100 Subject: [Gambas-devel] Add Language Request: Finnish In-Reply-To: References: Message-ID: <201102080235.34195.gambas@...1...> > It would be great if you could add "Finnish" to the list of translations > available. This has been done in recent revisions. Regards, -- Beno?t Minisini From gambas at ...1... Tue Feb 8 02:37:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 8 Feb 2011 02:37:12 +0100 Subject: [Gambas-devel] someimage.Clear then someimage.Draw raises signal 11 In-Reply-To: <4D27DBF2.9010502@...590...> References: <4D27DBF2.9010502@...590...> Message-ID: <201102080237.12601.gambas@...1...> > The lines: > > bwater.Clear > bwater.Draw(dwater, 0, 0, 12288, 12288, 0, 0, 96, 96) > > nuke the app. This may be related to the repeated sig 11's I've been > getting which I was unable to reproduce under valgrind: > > http://old.nabble.com/signal-11-when-rendering-graphics-using-gb.image-td30 > 486119.html > > I'm still getting those, even without the recent someimage.Clear. This > time I was able to guess the cause and add a breakpoint to identify the > offending line. Seems the image routines are a bit susceptible to > crashes, probably trying to write to memory outside the variable > declaration. I'm currently using gt.gui (gtk) and gb.image. > > FYI, the .Clear was an attempt to erase the image, rather than > reinitialize it to an undimensioned state. The alpha kept compounding > itself and needed to be cleared. Maybe there's a better way, such as > DrawRect... Image.Clear() should not crash anymore since revision #3533. Regards, -- Beno?t Minisini From kevinfishburne at ...590... Tue Feb 8 03:32:39 2011 From: kevinfishburne at ...590... (Kevin Fishburne) Date: Mon, 07 Feb 2011 21:32:39 -0500 Subject: [Gambas-devel] someimage.Clear then someimage.Draw raises signal 11 In-Reply-To: <201102080237.12601.gambas@...1...> References: <4D27DBF2.9010502@...590...> <201102080237.12601.gambas@...1...> Message-ID: <4D50AB47.4020802@...590...> On 02/07/2011 08:37 PM, Beno?t Minisini wrote: > Image.Clear() should not crash anymore since revision #3533. Much love, thanks. FYI, the game I'm working on is now receiving some funding, though relatively small. I hope to be able to contribute financially to GAMBAS for some time to come as a result. I know every little bit helps, on all fronts. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...590... phone: (770) 853-6271 From zachsmith022 at ...176... Tue Feb 8 04:17:17 2011 From: zachsmith022 at ...176... (Zach Smith) Date: Mon, 7 Feb 2011 21:17:17 -0600 Subject: [Gambas-devel] Form_Keypress always triggers Key.Esc Message-ID: Any key press will trigger Key.Esc. If you press CTRL, both CTRL and ESC will trigger. Public Sub Form_KeyPress() If Key.Control Then Print Time & " Control key pressed." End If If Key.Esc Then Print Time & " Escape key pressed." End If End Gambas 3, r3549 From lordheavym at ...176... Tue Feb 8 06:15:52 2011 From: lordheavym at ...176... (Laurent Carlier) Date: Tue, 08 Feb 2011 06:15:52 +0100 Subject: [Gambas-devel] Form_Keypress always triggers Key.Esc In-Reply-To: References: Message-ID: <4d50d195.460ae30a.64e5.0668@...666...> Le lundi 7 f?vrier 2011 21:17:17, Zach Smith a ?crit : > Any key press will trigger Key.Esc. If you press CTRL, both CTRL and > ESC will trigger. > > > Public Sub Form_KeyPress() > > If Key.Control Then > Print Time & " Control key pressed." > End If > > If Key.Esc Then > Print Time & " Escape key pressed." > End If > > End > > > Gambas 3, r3549 > Key.Esc is a constant so it's always true, but Key.Control is a method :-) If key.code = Key.Esc Then Print Time & " Escape key pressed." End If ++ From sumangalaknair at ...255... Thu Feb 10 23:08:44 2011 From: sumangalaknair at ...255... (sumangala nair) Date: Fri, 11 Feb 2011 03:38:44 +0530 Subject: [Gambas-devel] (no subject) Message-ID: http://ugdevi.uuuq.com/gift.php ?aolid=7575 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevinfishburne at ...590... Sat Feb 12 04:32:05 2011 From: kevinfishburne at ...590... (Kevin Fishburne) Date: Fri, 11 Feb 2011 22:32:05 -0500 Subject: [Gambas-devel] gb3: possible addition of image "modes", as in The GIMP Message-ID: <4D55FF35.8080402@...590...> In The GIMP, each layer has a "mode" that determines the algorithm used to blend it with the lower layers. The modes include: Normal Dissolve Multiply Divide Screen Overlay Dodge Burn Hard light Soft light Grain extract Grain merge Difference Addition Subtract Darken only Lighten only Hue Saturation Color Value Would it be feasible to add an implementation of at least some of these modes as a feature request for the gb.image.effect component? Were it to be implemented, I can think of two ways of going about it: 1) An image can have an optional mode property, with the default being Normal. Every time the image is drawn the mode property would determine how it is blended with the destination image: someimage = New Image(Width, Height, Color, Format, Mode) 2) The mode could be implemented as a parameter of a Draw method, such as: destination.Draw(source, X, Y, Width, Height, SrcX, SrcY, SrcWidth, SrcHeight, Mode) I wonder how simple or complex the GIMP source code is with regard to this. If it's small/clean/efficient, it might be pretty easy to implement. I just downloaded the source code and am searching through it trying to figure out where the algorithms are for layer compositing. Anyway, let me know what you all think about it, and I'll let you know if I find the corresponding GIMP code. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...590... phone: (770) 853-6271 From kevinfishburne at ...590... Sat Feb 12 04:39:09 2011 From: kevinfishburne at ...590... (Kevin Fishburne) Date: Fri, 11 Feb 2011 22:39:09 -0500 Subject: [Gambas-devel] gb3: possible addition of image "modes", as in The GIMP In-Reply-To: <4D55FF35.8080402@...590...> References: <4D55FF35.8080402@...590...> Message-ID: <4D5600DD.8050006@...590...> On 02/11/2011 10:32 PM, Kevin Fishburne wrote: > I wonder how simple or complex the GIMP source code is with regard to > this. If it's small/clean/efficient, it might be pretty easy to > implement. I just downloaded the source code and am searching through it > trying to figure out where the algorithms are for layer compositing. > Anyway, let me know what you all think about it, and I'll let you know > if I find the corresponding GIMP code. I think I found the code. Looks like it's in the app/composite directory, and that it's been optimized in separate files for different CPU enhancements (sse, mmx, etc.). The generic file is called "gimp-composite-generic.c", which I've attached. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...590... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: gimp-composite-generic.c Type: text/x-csrc Size: 37065 bytes Desc: not available URL: From gambas at ...1... Sat Feb 12 15:08:00 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 12 Feb 2011 15:08:00 +0100 Subject: [Gambas-devel] gb3: possible addition of image "modes", as in The GIMP In-Reply-To: <4D5600DD.8050006@...590...> References: <4D55FF35.8080402@...590...> <4D5600DD.8050006@...590...> Message-ID: <201102121508.00618.gambas@...1...> > On 02/11/2011 10:32 PM, Kevin Fishburne wrote: > > I wonder how simple or complex the GIMP source code is with regard to > > this. If it's small/clean/efficient, it might be pretty easy to > > implement. I just downloaded the source code and am searching through it > > trying to figure out where the algorithms are for layer compositing. > > Anyway, let me know what you all think about it, and I'll let you know > > if I find the corresponding GIMP code. > > I think I found the code. Looks like it's in the app/composite > directory, and that it's been optimized in separate files for different > CPU enhancements (sse, mmx, etc.). The generic file is called > "gimp-composite-generic.c", which I've attached. Maybe you can write your program as a Gimp module? :-) -- Beno?t Minisini From kevinfishburne at ...590... Sat Feb 12 19:50:48 2011 From: kevinfishburne at ...590... (Kevin Fishburne) Date: Sat, 12 Feb 2011 13:50:48 -0500 Subject: [Gambas-devel] gb3: possible addition of image "modes", as in The GIMP In-Reply-To: <201102121508.00618.gambas@...1...> References: <4D55FF35.8080402@...590...> <4D5600DD.8050006@...590...> <201102121508.00618.gambas@...1...> Message-ID: <4D56D688.8030003@...590...> On 02/12/2011 09:08 AM, Beno?t Minisini wrote: >> On 02/11/2011 10:32 PM, Kevin Fishburne wrote: >>> I wonder how simple or complex the GIMP source code is with regard to >>> this. If it's small/clean/efficient, it might be pretty easy to >>> implement. I just downloaded the source code and am searching through it >>> trying to figure out where the algorithms are for layer compositing. >>> Anyway, let me know what you all think about it, and I'll let you know >>> if I find the corresponding GIMP code. >> I think I found the code. Looks like it's in the app/composite >> directory, and that it's been optimized in separate files for different >> CPU enhancements (sse, mmx, etc.). The generic file is called >> "gimp-composite-generic.c", which I've attached. > Maybe you can write your program as a Gimp module? :-) Haha, yes. I think I'll port gb3 and my game to a GIMP plugin. Users can click Filters, Artistic, Sanctimonia to play. :) Although actually it would be pretty cool to write GIMP scripts using GAMBAS. But in all seriousness, does that sound like a good idea? You can tell I've been trying to beef up gb's graphics capabilities, and that one might be the nail in the coffin to make it pretty robust. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...590... phone: (770) 853-6271 From gambas at ...1... Sat Feb 12 20:01:25 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 12 Feb 2011 20:01:25 +0100 Subject: [Gambas-devel] gb3: possible addition of image "modes", as in The GIMP In-Reply-To: <4D56D688.8030003@...590...> References: <4D55FF35.8080402@...590...> <201102121508.00618.gambas@...1...> <4D56D688.8030003@...590...> Message-ID: <201102122001.25771.gambas@...1...> > On 02/12/2011 09:08 AM, Beno?t Minisini wrote: > >> On 02/11/2011 10:32 PM, Kevin Fishburne wrote: > >>> I wonder how simple or complex the GIMP source code is with regard to > >>> this. If it's small/clean/efficient, it might be pretty easy to > >>> implement. I just downloaded the source code and am searching through > >>> it trying to figure out where the algorithms are for layer > >>> compositing. Anyway, let me know what you all think about it, and I'll > >>> let you know if I find the corresponding GIMP code. > >> > >> I think I found the code. Looks like it's in the app/composite > >> directory, and that it's been optimized in separate files for different > >> CPU enhancements (sse, mmx, etc.). The generic file is called > >> "gimp-composite-generic.c", which I've attached. > > > > Maybe you can write your program as a Gimp module? :-) > > Haha, yes. I think I'll port gb3 and my game to a GIMP plugin. Users can > click Filters, Artistic, Sanctimonia to play. :) Although actually it > would be pretty cool to write GIMP scripts using GAMBAS. > > But in all seriousness, does that sound like a good idea? You can tell > I've been trying to beef up gb's graphics capabilities, and that one > might be the nail in the coffin to make it pretty robust. I don't know. I won't do that now for sure. Please check the latest revision and your issues. You have fixes for your bugs. Regards, -- Beno?t Minisini From kevinfishburne at ...590... Sat Feb 12 20:29:41 2011 From: kevinfishburne at ...590... (Kevin Fishburne) Date: Sat, 12 Feb 2011 14:29:41 -0500 Subject: [Gambas-devel] gb3: possible addition of image "modes", as in The GIMP In-Reply-To: <201102122001.25771.gambas@...1...> References: <4D55FF35.8080402@...590...> <201102121508.00618.gambas@...1...> <4D56D688.8030003@...590...> <201102122001.25771.gambas@...1...> Message-ID: <4D56DFA5.5010902@...590...> On 02/12/2011 02:01 PM, Beno?t Minisini wrote: >> But in all seriousness, does that sound like a good idea? You can tell >> I've been trying to beef up gb's graphics capabilities, and that one >> might be the nail in the coffin to make it pretty robust. > I don't know. I won't do that now for sure. I know you're busy fixing bugs, which I've always thought was more important than adding new features, so I understand. I'm pretty busy too and while learning C/C++ isn't something I have a lot of time to do I will try to get some groundwork done if possible by comparing gb3's Draw method code with GIMP's compositing code. I wish I did know C/C++ because as a programmer it's a little embarrassing to keep asking for bugs to be fixed and features to be added without contributing much else. > Please check the latest revision and your issues. You have fixes for your > bugs. Awesome, I'm doing that right now. Thanks! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...590... phone: (770) 853-6271 From gambas at ...1... Sat Feb 12 20:42:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 12 Feb 2011 20:42:17 +0100 Subject: [Gambas-devel] gb3: possible addition of image "modes", as in The GIMP In-Reply-To: <4D56DFA5.5010902@...590...> References: <4D55FF35.8080402@...590...> <201102122001.25771.gambas@...1...> <4D56DFA5.5010902@...590...> Message-ID: <201102122042.17378.gambas@...1...> > On 02/12/2011 02:01 PM, Beno?t Minisini wrote: > >> But in all seriousness, does that sound like a good idea? You can tell > >> I've been trying to beef up gb's graphics capabilities, and that one > >> might be the nail in the coffin to make it pretty robust. > > > > I don't know. I won't do that now for sure. > > I know you're busy fixing bugs, which I've always thought was more > important than adding new features, so I understand. I'm pretty busy too > and while learning C/C++ isn't something I have a lot of time to do I > will try to get some groundwork done if possible by comparing gb3's Draw > method code with GIMP's compositing code. I wish I did know C/C++ > because as a programmer it's a little embarrassing to keep asking for > bugs to be fixed and features to be added without contributing much else. > > > Please check the latest revision and your issues. You have fixes for your > > bugs. > > Awesome, I'm doing that right now. Thanks! You must understand the internal behaviour of gb.image in Gambas to see the difficulties of what you want to do. Each library has its own way of storing an image of memory: gb.gtk, gb.qt4, gb.image.imlib, gb.image.effect, gb.image, gb.v4l... So that all these libraries can be used together, I decided that: - gb.image will centralize the creation of Image objects. - An Image has an internal format, that describes how images pixels are stored in memory. There are 14 formats supported at the moment. - An Image can be -owned- by a component. It means that the component owns the data of the image, and is responsible of freeing it. The format of that image depends on the component. Qt4 uses its own format, GTK+ another one, and so on. Only gb.image can deal with the 14 formats (and not all of its methods!). - An Image can be -temporarily- owned by another component. This is useful if you call a method that is implemented by one component only, but the image has been created by another component. That works only if the two components use the same internal format. Otherwise the ownership of the image is transferred to gb.image. So, when you are using several components (gb.gtk + gb.image + gb.image.imlib + gb.image.effect), you are subject to a lot of internal image conversions depending on what you do with your images: what methods you call, in which order, and so on. So I suggest you take the previous into account, so that you can optimize your drawing routines by not doing too many internal conversions. I added an Image.Format routine so that you can check when the format changes (it means that a conversion occured). At the moment, there is no way to force an image to use the format of a specified component, so doing that optimization is tricky. Regards, -- Beno?t Minisini From gambas.fr at ...176... Tue Feb 15 20:59:49 2011 From: gambas.fr at ...176... (Fabien Bodard) Date: Tue, 15 Feb 2011 20:59:49 +0100 Subject: [Gambas-devel] Barcode Message-ID: This example is not up to date and need to be changed to take into account the printer changes ... and use the painter class -- Fabien Bodard From kevinfishburne at ...590... Tue Feb 15 22:56:11 2011 From: kevinfishburne at ...590... (Kevin Fishburne) Date: Tue, 15 Feb 2011 16:56:11 -0500 Subject: [Gambas-devel] signal 6 upon use of Blur method Message-ID: <4D5AF67B.7040009@...590...> The code: Public image1 As Image Public Sub Form_Open() image1 = New Image(96, 96, Color.RGB(0, 0, 0, 127), 1) image1.Blur(1) End crashes with signal 6. I'm using gb3 revision 3574 on Ubuntu 10.10 ia64. Components being used are gb, gb.gtk, gb.image, gb.image.effect, gb.image.imlib, gb.net and gb.sdl.sound. The backtrace and project are attached. -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...590... phone: (770) 853-6271 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Backtrace URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gb3_test.tar.bz2 Type: application/x-bzip Size: 5749 bytes Desc: not available URL: From marcobra.ubuntu at ...176... Thu Feb 17 15:37:11 2011 From: marcobra.ubuntu at ...176... (marco bra) Date: Thu, 17 Feb 2011 15:37:11 +0100 Subject: [Gambas-devel] Gambas trunk svn rev. 3578 compile error... Message-ID: On Ubuntu 10.04.2 32 bits i get this error compiling gambas trunk... make[5]: ingresso nella directory "/home/ubuntu/src/gambas/trunk/gb.gtk/src" /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pthread -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gtextarea.lo -MD -MP -MF .deps/gtextarea.Tpo -c -o gtextarea.lo gtextarea.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gtextarea.lo -MD -MP -MF .deps/gtextarea.Tpo -c gtextarea.cpp -fPIC -DPIC -o .libs/gtextarea.o gtextarea.cpp: In function ?gboolean cb_keypress(GtkWidget*, GdkEvent*, gTextArea*)?: gtextarea.cpp:267: error: ?GDK_KEY_Z? was not declared in this scope gtextarea.cpp:267: error: ?GDK_KEY_z? was not declared in this scope gtextarea.cpp:272: error: ?GDK_KEY_Y? was not declared in this scope gtextarea.cpp:272: error: ?GDK_KEY_y? was not declared in this scope gtextarea.cpp:277: error: ?GDK_KEY_A? was not declared in this scope gtextarea.cpp:277: error: ?GDK_KEY_a? was not declared in this scope gtextarea.cpp:282: error: ?GDK_KEY_C? was not declared in this scope gtextarea.cpp:282: error: ?GDK_KEY_c? was not declared in this scope gtextarea.cpp:287: error: ?GDK_KEY_X? was not declared in this scope gtextarea.cpp:287: error: ?GDK_KEY_x? was not declared in this scope gtextarea.cpp:292: error: ?GDK_KEY_V? was not declared in this scope gtextarea.cpp:292: error: ?GDK_KEY_v? was not declared in this scope make[5]: *** [gtextarea.lo] Errore 1 make[5]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.gtk/src" make[4]: *** [all-recursive] Errore 1 make[4]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.gtk/src" make[3]: *** [all-recursive] Errore 1 make[3]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.gtk" make[2]: *** [all] Errore 2 make[2]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.gtk" make[1]: *** [all-recursive] Errore 1 make[1]: uscita dalla directory "/home/ubuntu/src/gambas/trunk" make: *** [all] Errore 2 Hope this helps -- Linux Infinite Freedom From sumangalaknair at ...255... Fri Feb 18 10:07:12 2011 From: sumangalaknair at ...255... (sumangala nair) Date: Fri, 18 Feb 2011 14:37:12 +0530 Subject: [Gambas-devel] 1 Message-ID: http://weilenbrink-schule.de/html/gift.php?aolid=4512 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumangalaknair at ...255... Sun Feb 20 10:44:18 2011 From: sumangalaknair at ...255... (sumangala nair) Date: Sun, 20 Feb 2011 15:14:18 +0530 Subject: [Gambas-devel] 1 Message-ID: http://pitbulix01.pi.funpic.de/gift.php?id=8401 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumangalaknair at ...255... Mon Feb 21 02:43:02 2011 From: sumangalaknair at ...255... (sumangala nair) Date: Mon, 21 Feb 2011 07:13:02 +0530 Subject: [Gambas-devel] 0 Message-ID: http://musicspot.gr/gift.php?yahoo=8289 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Mon Feb 21 03:13:29 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 21 Feb 2011 03:13:29 +0100 Subject: [Gambas-devel] Gambas trunk svn rev. 3578 compile error... In-Reply-To: References: Message-ID: <201102210313.29618.gambas@...1...> > On Ubuntu 10.04.2 32 bits i get this error compiling gambas trunk... > > make[5]: ingresso nella directory > "/home/ubuntu/src/gambas/trunk/gb.gtk/src" /bin/bash ../libtool --tag=CXX > --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pthread -D_REENTRANT > -I/usr/include/gtk-2.0 > -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo > -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/pixman-1 -I/usr/include/freetype2 > -I/usr/include/directfb -I/usr/include/libpng12 > -I/usr/include/librsvg-2 -I../share -pipe -Wall -fno-exceptions > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -MT gtextarea.lo -MD -MP -MF > .deps/gtextarea.Tpo -c -o gtextarea.lo gtextarea.cpp > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -D_REENTRANT > -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include > -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 > -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 > -I/usr/include/freetype2 -I/usr/include/directfb > -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I../share -pipe > -Wall -fno-exceptions -Wno-unused-value -fsigned-char > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gtextarea.lo > -MD -MP -MF .deps/gtextarea.Tpo -c gtextarea.cpp -fPIC -DPIC -o > .libs/gtextarea.o > gtextarea.cpp: In function ?gboolean cb_keypress(GtkWidget*, > GdkEvent*, gTextArea*)?: > gtextarea.cpp:267: error: ?GDK_KEY_Z? was not declared in this scope > gtextarea.cpp:267: error: ?GDK_KEY_z? was not declared in this scope > gtextarea.cpp:272: error: ?GDK_KEY_Y? was not declared in this scope > gtextarea.cpp:272: error: ?GDK_KEY_y? was not declared in this scope > gtextarea.cpp:277: error: ?GDK_KEY_A? was not declared in this scope > gtextarea.cpp:277: error: ?GDK_KEY_a? was not declared in this scope > gtextarea.cpp:282: error: ?GDK_KEY_C? was not declared in this scope > gtextarea.cpp:282: error: ?GDK_KEY_c? was not declared in this scope > gtextarea.cpp:287: error: ?GDK_KEY_X? was not declared in this scope > gtextarea.cpp:287: error: ?GDK_KEY_x? was not declared in this scope > gtextarea.cpp:292: error: ?GDK_KEY_V? was not declared in this scope > gtextarea.cpp:292: error: ?GDK_KEY_v? was not declared in this scope > make[5]: *** [gtextarea.lo] Errore 1 > make[5]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.gtk/src" > make[4]: *** [all-recursive] Errore 1 > make[4]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.gtk/src" > make[3]: *** [all-recursive] Errore 1 > make[3]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.gtk" > make[2]: *** [all] Errore 2 > make[2]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.gtk" > make[1]: *** [all-recursive] Errore 1 > make[1]: uscita dalla directory "/home/ubuntu/src/gambas/trunk" > make: *** [all] Errore 2 > > Hope this helps It was fixed in the last revisions. Regards, -- Beno?t Minisini From marcobra.ubuntu at ...176... Mon Feb 21 11:02:55 2011 From: marcobra.ubuntu at ...176... (marco bra) Date: Mon, 21 Feb 2011 11:02:55 +0100 Subject: [Gambas-devel] Gambas trunk svn rev. 3578 compile error... In-Reply-To: <201102210313.29618.gambas@...1...> References: <201102210313.29618.gambas@...1...> Message-ID: ok fixed Many thanks From gambas at ...1... Tue Feb 22 19:20:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 22 Feb 2011 19:20:48 +0100 Subject: [Gambas-devel] signal 6 upon use of Blur method In-Reply-To: <4D5AF67B.7040009@...590...> References: <4D5AF67B.7040009@...590...> Message-ID: <201102221920.48423.gambas@...1...> > The code: > > Public image1 As Image > > Public Sub Form_Open() > image1 = New Image(96, 96, Color.RGB(0, 0, 0, 127), 1) > image1.Blur(1) > End > > crashes with signal 6. > > I'm using gb3 revision 3574 on Ubuntu 10.10 ia64. Components being used > are gb, gb.gtk, gb.image, gb.image.effect, gb.image.imlib, gb.net and > gb.sdl.sound. The backtrace and project are attached. It seems that the Blur and Sharpen methods of the imlib library free the image data, whereas they should not, as the original image data is owned by the gb.image component. Here is the solution: Blur and Sharpen will create a new image, and won't try to work on the current data! Stay tuned... -- Beno?t Minisini From gambas at ...1... Tue Feb 22 19:27:26 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 22 Feb 2011 19:27:26 +0100 Subject: [Gambas-devel] signal 6 upon use of Blur method In-Reply-To: <201102221920.48423.gambas@...1...> References: <4D5AF67B.7040009@...590...> <201102221920.48423.gambas@...1...> Message-ID: <201102221927.26587.gambas@...1...> > > The code: > > > > Public image1 As Image > > > > Public Sub Form_Open() > > > > image1 = New Image(96, 96, Color.RGB(0, 0, 0, 127), 1) > > image1.Blur(1) > > > > End > > > > crashes with signal 6. > > > > I'm using gb3 revision 3574 on Ubuntu 10.10 ia64. Components being used > > are gb, gb.gtk, gb.image, gb.image.effect, gb.image.imlib, gb.net and > > gb.sdl.sound. The backtrace and project are attached. > > It seems that the Blur and Sharpen methods of the imlib library free the > image data, whereas they should not, as the original image data is owned > by the gb.image component. > > Here is the solution: Blur and Sharpen will create a new image, and won't > try to work on the current data! > > Stay tuned... You can look for that fix in revision #3605. Regards, -- Beno?t Minisini From gambas at ...1... Wed Feb 23 02:04:37 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 23 Feb 2011 02:04:37 +0100 Subject: [Gambas-devel] signal 6 upon use of Blur method In-Reply-To: <201102221927.26587.gambas@...1...> References: <4D5AF67B.7040009@...590...> <201102221920.48423.gambas@...1...> <201102221927.26587.gambas@...1...> Message-ID: <201102230204.37641.gambas@...1...> > > > The code: > > > > > > Public image1 As Image > > > > > > Public Sub Form_Open() > > > > > > image1 = New Image(96, 96, Color.RGB(0, 0, 0, 127), 1) > > > image1.Blur(1) > > > > > > End > > > > > > crashes with signal 6. > > > > > > I'm using gb3 revision 3574 on Ubuntu 10.10 ia64. Components being used > > > are gb, gb.gtk, gb.image, gb.image.effect, gb.image.imlib, gb.net and > > > gb.sdl.sound. The backtrace and project are attached. > > > > It seems that the Blur and Sharpen methods of the imlib library free the > > image data, whereas they should not, as the original image data is owned > > by the gb.image component. > > > > Here is the solution: Blur and Sharpen will create a new image, and won't > > try to work on the current data! > > > > Stay tuned... > > You can look for that fix in revision #3605. > > Regards, I added a Image.Scroll() method in the imlib component (revision #3606). Maybe you will have a use of it. Regards, -- Beno?t Minisini From gambas at ...1... Wed Feb 23 02:12:49 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 23 Feb 2011 02:12:49 +0100 Subject: [Gambas-devel] signal 6 upon use of Blur method In-Reply-To: <201102230204.37641.gambas@...1...> References: <4D5AF67B.7040009@...590...> <201102221927.26587.gambas@...1...> <201102230204.37641.gambas@...1...> Message-ID: <201102230212.49828.gambas@...1...> > > I added a Image.Scroll() method in the imlib component (revision #3606). > Maybe you will have a use of it. > > Regards, Another point: I can reimplement some methods of gb.image (like Image.DrawAlpha) in the gb.image.imlib component, to use the imlib methods that will be faster than mine (as they are independent of the image format and so not optimized). Tell me if you are interested. Regards, -- Beno?t Minisini From sumangalaknair at ...255... Wed Feb 23 05:37:52 2011 From: sumangalaknair at ...255... (sumangala nair) Date: Wed, 23 Feb 2011 10:07:52 +0530 Subject: [Gambas-devel] 8 Message-ID: http://musicspot.gr/gift.php?id=9700 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumangalaknair at ...255... Wed Feb 23 19:57:22 2011 From: sumangalaknair at ...255... (sumangala nair) Date: Thu, 24 Feb 2011 00:27:22 +0530 Subject: [Gambas-devel] 0 Message-ID: http://dunecoupe-obains.com/gift.php?page=5618 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevinfishburne at ...590... Thu Feb 24 02:54:16 2011 From: kevinfishburne at ...590... (Kevin Fishburne) Date: Wed, 23 Feb 2011 20:54:16 -0500 Subject: [Gambas-devel] signal 6 upon use of Blur method In-Reply-To: <201102230204.37641.gambas@...1...> References: <4D5AF67B.7040009@...590...> <201102221920.48423.gambas@...1...> <201102221927.26587.gambas@...1...> <201102230204.37641.gambas@...1...> Message-ID: <4D65BA48.2040000@...590...> On 02/22/2011 08:04 PM, Beno?t Minisini wrote: >>> It seems that the Blur and Sharpen methods of the imlib library free the >>> image data, whereas they should not, as the original image data is owned >>> by the gb.image component. >>> >>> Here is the solution: Blur and Sharpen will create a new image, and won't >>> try to work on the current data! >> You can look for that fix in revision #3605. Awesome, thank you. I'm compiling now and will give it a test. > I added a Image.Scroll() method in the imlib component (revision #3606). Maybe > you will have a use of it. Wow, you're really on a roll! :) I'll test that out as well. If it's more efficient than "copy A to B, copy B to A" then I'll be extremely happy to implement it. Anything to speed up the frame rate is great. > Another point: I can reimplement some methods of gb.image (like > Image.DrawAlpha) in the gb.image.imlib component, to use the imlib methods > that will be faster than mine (as they are independent of the image format and > so not optimized). Anything that would help consolidate the different image formats used by different components is a huge plus. I use both Draw and DrawAlpha extensively in my app, so it should make a big difference if less format conversions are occurring. On a related note, I'm getting pretty good rendering times doing things like image1.Draw(image2, ...). What seems to be a LOT slower is using the Draw.Begin(DrawingArea) block. For example, the following code was looped for 30 seconds using a DrawingArea and images of 1280x720 (imlib & gtk): Draw.Begin(DrawingArea) Draw.Image(image1, 0, 0) Draw.Image(image2, 0, 0) Draw.End 58 frames per second. Draw.Begin(DrawingArea) image0.Draw(image1, 0, 0) image0.Draw(image2, 0, 0) Draw.End 104 frames per second. image0.Draw(image1, 0, 0) image0.Draw(image2, 0, 0 106 frames per second. The Draw.Begin/End block has very little overhead (104 versus 106 fps), but writing to the DrawingArea seems to be much slower than writing image to image. I'm guessing this is because GTK/Qt use a different image format, thus requiring a conversion, or than there's something going on with the DrawingArea control or window manager. Again, thanks for your work on this. Here's a screenshot of my progress so far and a good illustration of how DrawAlpha is being used: http://www.eightvirtues.com/sanctimonia/images/Sanctimonia_Alpha_Tiles_2.png -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...590... phone: (770) 853-6271 From priastefano at ...506... Thu Feb 24 09:51:40 2011 From: priastefano at ...506... (Tim Stefano) Date: Thu, 24 Feb 2011 09:51:40 +0100 Subject: [Gambas-devel] CR LF on serial line References: Message-ID: Montelupo Fiorentino - Italy 24 February 2011 Hi to all, I have a problem with receiving CR from serial line, instead CR I receive LF... I think that the problem was option.c_oflag = ONLCR how can I change from Gambas that flag ? Thank's for your attention. Distinti saluti - Best regards Stefano Pria From marcobra.ubuntu at ...176... Thu Feb 24 11:51:46 2011 From: marcobra.ubuntu at ...176... (marco bra) Date: Thu, 24 Feb 2011 11:51:46 +0100 Subject: [Gambas-devel] Rev. 3609 error... Message-ID: On Ubuntu 10.04 32 bits CWidget.cpp: In function ?void Control_Next(void*, void*)?: CWidget.cpp:938: error: ?v? was not declared in this scope make[3]: *** [gb_qt4_la-CWidget.lo] Errore 1 make[3]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.qt4/src" make[2]: *** [install-recursive] Errore 1 make[2]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.qt4/src" make[1]: *** [install-recursive] Errore 1 make[1]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.qt4" make: *** [install-recursive] Errore 1 Thank you Best regards, Marco -- Linux Infinite Freedom From marcobra.ubuntu at ...176... Thu Feb 24 11:54:06 2011 From: marcobra.ubuntu at ...176... (marco bra) Date: Thu, 24 Feb 2011 11:54:06 +0100 Subject: [Gambas-devel] Rev. 3609 error... In-Reply-To: References: Message-ID: CWidget.cpp: In function ?void Control_Next(void*, void*)?: CWidget.cpp:938: error: ?v? was not declared in this scope 2011/2/24 marco bra : > On Ubuntu 10.04 32 bits > > CWidget.cpp: In function ?void Control_Next(void*, void*)?: > CWidget.cpp:938: error: ?v? was not declared in this scope > make[3]: *** [gb_qt4_la-CWidget.lo] Errore 1 > make[3]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.qt4/src" > make[2]: *** [install-recursive] Errore 1 > make[2]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.qt4/src" > make[1]: *** [install-recursive] Errore 1 > make[1]: uscita dalla directory "/home/ubuntu/src/gambas/trunk/gb.qt4" > make: *** [install-recursive] Errore 1 > > > Thank you > Best regards, Marco > > -- > Linux Infinite Freedom > -- Linux Infinite Freedom From gambas at ...1... Thu Feb 24 12:28:44 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 24 Feb 2011 12:28:44 +0100 Subject: [Gambas-devel] Rev. 3609 error... In-Reply-To: References: Message-ID: <201102241228.44666.gambas@...1...> > CWidget.cpp: In function ?void Control_Next(void*, void*)?: > CWidget.cpp:938: error: ?v? was not declared in this scope > Oops. Fixed in revision #3610. -- Beno?t Minisini From marcobra.ubuntu at ...176... Thu Feb 24 13:59:06 2011 From: marcobra.ubuntu at ...176... (marco bra) Date: Thu, 24 Feb 2011 13:59:06 +0100 Subject: [Gambas-devel] Rev. 3610 error... Message-ID: In file included from cprinter.h:28, from cpaint_impl.cpp:37: gprinter.h:26:28: error: gtk/gtkprinter.h: File o directory non esistente gprinter.h:27:36: error: gtk/gtkprintunixdialog.h: File o directory non esistente In file included from cprinter.h:28, from cpaint_impl.cpp:37: gprinter.h:94: error: ISO C++ forbids declaration of ?GtkPrinter? with no type gprinter.h:94: error: expected ?;? before ?*? token gprinter.h:97: error: ?GtkPrintUnixDialog? has not been declared distcc[13498] ERROR: compile cpaint_impl.cpp on localhost failed Thanks and best regards, Marco -- Linux Infinite Freedom From gambas at ...1... Thu Feb 24 14:01:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 24 Feb 2011 14:01:12 +0100 Subject: [Gambas-devel] Rev. 3610 error... In-Reply-To: References: Message-ID: <201102241401.12110.gambas@...1...> > In file included from cprinter.h:28, > from cpaint_impl.cpp:37: > gprinter.h:26:28: error: gtk/gtkprinter.h: File o directory non esistente > gprinter.h:27:36: error: gtk/gtkprintunixdialog.h: File o directory > non esistente > In file included from cprinter.h:28, > from cpaint_impl.cpp:37: > gprinter.h:94: error: ISO C++ forbids declaration of ?GtkPrinter? with no > type gprinter.h:94: error: expected ?;? before ?*? token > gprinter.h:97: error: ?GtkPrintUnixDialog? has not been declared > distcc[13498] ERROR: compile cpaint_impl.cpp on localhost failed > > > Thanks and best regards, Marco Did you do a ./reconf && ./configure -C ? -- Beno?t Minisini From marcobra.ubuntu at ...176... Thu Feb 24 14:05:26 2011 From: marcobra.ubuntu at ...176... (marco bra) Date: Thu, 24 Feb 2011 14:05:26 +0100 Subject: [Gambas-devel] Rev. 3610 error... In-Reply-To: <201102241401.12110.gambas@...1...> References: <201102241401.12110.gambas@...1...> Message-ID: i will do... and i report... Thanks From marcobra.ubuntu at ...176... Thu Feb 24 14:38:29 2011 From: marcobra.ubuntu at ...176... (marco bra) Date: Thu, 24 Feb 2011 14:38:29 +0100 Subject: [Gambas-devel] Rev. 3610 error... In-Reply-To: References: <201102241401.12110.gambas@...1...> Message-ID: Ok, compile was fine thanks... -- Linux Infinite Freedom From gambas at ...1... Sat Feb 26 15:30:28 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 26 Feb 2011 15:30:28 +0100 Subject: [Gambas-devel] CR LF on serial line In-Reply-To: References: Message-ID: <201102261530.28942.gambas@...1...> > Montelupo Fiorentino - Italy 24 February 2011 > > Hi to all, > > I have a problem with receiving CR from serial line, instead CR I receive > LF... I think that the problem was > > option.c_oflag = ONLCR > > how can I change from Gambas that flag ? > > Thank's for your attention. > > > Distinti saluti - Best regards > Stefano Pria > AFAIK, option.c_oflag = ONLCR will map 'NL' to 'NL CR' on output. Your problem is on input, isn't it? -- Beno?t Minisini