Re: [lazarus] TOpenGLContext (Author: Mattias Gaertner)

2007-11-25 Thread Marco Alvarado
Oh, that's great. Thanks! 2007/11/25, Lord Satan [EMAIL PROTECTED]: On Sun, 25 Nov 2007 08:17:46 -0600 Marco Alvarado [EMAIL PROTECTED] wrote: Hello guys! I found this component, TOpenGLContext, and it seems to be what I'm looking for. The problem is I got it from the personal files

[lazarus] Any unit like ScktComp?

2007-11-26 Thread Marco Alvarado
Is there a unit like ScktComp in Lazarus, with a class like TClientSocket for simple TCP communication? I think Indy is way too big and complex for what I need. Thanks! -Marco _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] Any unit like ScktComp?

2007-11-26 Thread Marco Alvarado
, 2007 at 09:33:23AM -0600, Marco Alvarado wrote: Is there a unit like ScktComp in Lazarus, with a class like TClientSocket for simple TCP communication? I think Indy is way too big and complex for what I need. Simple TCP Communication is not more difficult in Indy than in other suites

[lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)

2007-11-26 Thread Marco Alvarado
I need to create my forms dynamically. In Delphi I just remove the designed form from the main program, so it looks like this: ... begin Application.Initialize; Application.Run; end. Later on, I just create new instances of my forms and assign it's properties, i.e.: ... AForm :=

Re: [lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)

2007-11-26 Thread Marco Alvarado
Oh, forgot to tell, this part: ... begin Application.Initialize; Application.Run; end. is inside an unit's initilization section. So the main program still runs, creating the form. :D 2007/11/26, Vincent Snijders [EMAIL PROTECTED]: Marco Alvarado schreef: I need to create my forms

Re: [lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)

2007-11-26 Thread Marco Alvarado
should use some event of TApplication to make sure the code executes in the right order. :) 2007/11/26, Mattias Gaertner [EMAIL PROTECTED]: On Mon, 26 Nov 2007 12:05:27 -0600 Marco Alvarado [EMAIL PROTECTED] wrote: Oh, forgot to tell, this part: ... begin Application.Initialize

[lazarus] Contribution?

2007-11-27 Thread Marco Alvarado
The Lazarus project is really cool, and I'd like to contribute. Is there any area that needs help? Thanks! -Marco _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at

Re: [lazarus] Contribution?

2007-11-27 Thread Marco Alvarado
That's what I was looking for, thanks! :D 2007/11/27, Vincent Snijders [EMAIL PROTECTED]: Marco Alvarado schreef: The Lazarus project is really cool, and I'd like to contribute. Is there any area that needs help? There are a lot of areas. Did you read http://wiki.lazarus.freepascal.org

[lazarus] OpenGLContext doesn't recognize the widgetset

2007-11-27 Thread Marco Alvarado
I get the error at the bottom of this test in the OpenGLContext component: unit OpenGLContext; {$mode objfpc}{$H+} {$IFDEF LCLGTK} {$DEFINE UseGtkGLX} {$DEFINE OpenGLTargetDefined} {$ENDIF} {$IFDEF LCLGTK2} {$DEFINE UseGtk2GLX} {$DEFINE OpenGLTargetDefined} {$ENDIF} {$IFDEF LCLCarbon}

Re: [lazarus] OpenGLContext doesn't recognize the widgetset

2007-11-27 Thread Marco Alvarado
Hmm, there doesn't seem to exist an LCL unit, but there are several LCL units. I'm using win32 at the moment. Thanks :) 2007/11/27, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 27 Nov 2007 11:42:32 -0600 Marco Alvarado [EMAIL PROTECTED] wrote: I get the error at the bottom of this test

Re: [lazarus] OpenGLContext doesn't recognize the widgetset

2007-11-27 Thread Marco Alvarado
I just added all the template paths in the Compiler Options, and now it works :D Thanks! 2007/11/27, Vincent Snijders [EMAIL PROTECTED]: Marco Alvarado schreef: Hmm, there doesn't seem to exist an LCL unit, but there are several LCL units. I'm using win32 at the moment. Thanks

Re: [lazarus] OpenGLContext doesn't recognize the widgetset

2007-11-27 Thread Marco Alvarado
PROTECTED]: Marco Alvarado schreef: I just added all the template paths in the Compiler Options, and now it works :D Thanks! Huh, template paths? What are those? I opened the project inspector to edit the required packages. Vincent

[lazarus] cannot find -lGL (OpenGLContext application)

2007-11-27 Thread Marco Alvarado
The application is running correctly in Windows, now I want to compile it in Linux. I get just one error while linking: /usr/bin/ld: cannot find -lGL pruebabasicalinux.lpr(97,1) Error: Error while linking pruebabasicalinux.lpr(97,1) Fatal: There were 1 errors compiling module, stopping I created

Re: cannot find -lGL (OpenGLContext application)

2007-11-27 Thread Marco Alvarado
Oh look, I got the same error when compiling the TOpenGLContext example: Compiling package LazOpenGLContext 0.0 completed /usr/bin/ld: cannot find -lGL testopenglcontext1.lpr(14,1) Error: Error while linking testopenglcontext1.lpr(14,1) Fatal: There were 1 errors compiling module, stopping What

Re: [lazarus] Contribution?

2007-11-28 Thread Marco Alvarado
sources, have a look at those messages and see. R# 2007/11/27, Marco Alvarado [EMAIL PROTECTED]: That's what I was looking for, thanks! :D 2007/11/27, Vincent Snijders [EMAIL PROTECTED]: Marco Alvarado schreef: The Lazarus project is really cool, and I'd like to contribute

Re: [lazarus] some questions

2007-11-28 Thread Marco Alvarado
Hello! 1) I have solved all of my unit not found problems by adding all the Path templates. Just go to the main menu Project Compiler Options, and click the right [...] button for Other Unit Files and for Other Sources. At the bottom of the dialog, you will see the Path templates, just add all

Re: [lazarus] Re: Lazarus-0.9.24: SIGSEGV in TOpenDialog

2007-11-29 Thread Marco Alvarado
I'm getting a SIGSEV too in Linux, exactly when the application creates the TForm instance. The same application works ok in Windows. I'm looking for a way around this problem. Regards! 2007/11/29, Igor Zakhrebetkov [EMAIL PROTECTED]: Vincent Snijders пишет: Is this when you run the

Re: [lazarus] Re: Lazarus-0.9.24: SIGSEGV in TOpenDialog

2007-11-29 Thread Marco Alvarado
I'll once I get home to my linux box. Thanks! 2007/11/29, Mattias Gaertner [EMAIL PROTECTED]: On Thu, 29 Nov 2007 09:30:12 -0600 Marco Alvarado [EMAIL PROTECTED] wrote: I'm getting a SIGSEV too in Linux, exactly when the application creates the TForm instance. The same application works ok

Re: [lazarus] Re: Lazarus-0.9.24: SIGSEGV in TOpenDialog

2007-11-29 Thread Marco Alvarado
helpful. :) 2007/11/29, Marco Alvarado [EMAIL PROTECTED]: I'll once I get home to my linux box. Thanks! 2007/11/29, Mattias Gaertner [EMAIL PROTECTED]: On Thu, 29 Nov 2007 09:30:12 -0600 Marco Alvarado [EMAIL PROTECTED] wrote: I'm getting a SIGSEV too in Linux, exactly when

Re: [lazarus] Re: Lazarus-0.9.24: SIGSEGV in TOpenDialog

2007-11-30 Thread Marco Alvarado
I saw the backtraces for the first time when testing the application from GDB. And now that makes me remember something I wanted to ask: I activate the Debug output window, but it doesn't show the lines generated by DebugLn(). Nope, debugger output is the internal logging of the lazarus

Re: [lazarus] Re: Lazarus-0.9.24: SIGSEGV in TOpenDialog

2007-11-30 Thread Marco Alvarado
(). But when I ran the application from GDB, the output of DebugLn() was shown. Regards! 2007/11/30, Marc Weustink [EMAIL PROTECTED]: Marco Alvarado wrote: So we don't need GDB? At this moment the lazarus debugger uses GDB. I'm lost, what do you mean by: throwing backtraces from the Lazarus

Re: [lazarus] Re: Lazarus-0.9.24: SIGSEGV in TOpenDialog

2007-11-30 Thread Marco Alvarado
So we don't need GDB? 2007/11/30, Marc Weustink [EMAIL PROTECTED]: Marco Alvarado wrote: GDB is just wonderful!!! It just helped me to solve the last errors in my application and got the engine finally running in both Windows and Linux :_D Thanks a lot!!! PS. Have you ever thought

Re: [lazarus] Re: Lazarus-0.9.24: SIGSEGV in TOpenDialog

2007-12-01 Thread Marco Alvarado
, but no :( Hope someday DebugLn will be connected to the debbuger. Regards! 2007/11/30, Mattias Gaertner [EMAIL PROTECTED]: On Fri, 30 Nov 2007 10:27:43 -0600 Marco Alvarado [EMAIL PROTECTED] wrote: I saw the backtraces for the first time when testing the application from GDB. And now that makes me

Re: [lazarus] Re: Lazarus-0.9.24: SIGSEGV in TOpenDialog

2007-12-01 Thread Marco Alvarado
So, is there any other option appart from DebugLn(), that works? Regards! -Marco 2007/12/1, Marc Weustink [EMAIL PROTECTED]: Marco Alvarado wrote: It's a Win32 API function: http://msdn2.microsoft.com/en-us/library/aa363362.aspx Outputs a string to the debugger. Lazarus is able

[lazarus] Transparent and TransparentColor for TLazIntfImage?

2007-12-21 Thread Marco Alvarado
Which are the equivalents of TBitmap.Transparent and TBitmap.TransparentColor for TLazIntfImage? Thanks! -Marco _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at

Re: [lazarus] Transparent and TransparentColor for TLazIntfImage?

2007-12-21 Thread Marco Alvarado
Oh, ok. Thanks! -Marco 2007/12/21, Marc Weustink [EMAIL PROTECTED]: Marco Alvarado wrote: Which are the equivalents of TBitmap.Transparent and TBitmap.TransparentColor for TLazIntfImage? There is none. The mask for TBitmap.TransparentColor is created during loading in TLazReaderBMP

Re: [lazarus] Sound in Lazarus applications

2008-01-16 Thread Marco Alvarado
Their wiki is being attacked :P http://acs.ullihome.de/acs/index.php/Talk:Main_Page _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at

[lazarus] DOS platform conditional defines

2008-01-17 Thread Marco Alvarado
Hello! In Free Pascal Compiler 2.0.4, is there a conditional define I could check for DOS platform? I was looking around Google, but no luck. If anyone can give me a link for the whole list of conditional that will be even more appreciated! Thanks! -Marco

[lazarus] Reading keyboard releases with hardware interrupt

2008-01-19 Thread Marco Alvarado
Hello! There is an example on reading the keyboard hardware interrupt in the FPC's GO32 unit reference: http://www.math.uni-hamburg.de/it/software/fpk/units/node5.html#SECTION005212000 I tried to compile it, but throws so many errors, maybe it's not updated for the new compiler.

Re: [lazarus] How to load aRGBA data from a bitmap file using TLazIntfImage

2008-01-24 Thread Marco Alvarado
You could try using TLazIntfImage.GetDataLineStart() instead. I think you can modify your code this way: ... for y := 0 to IntfImg.DataDescription.Height-1 do DumpMem(PCardinal(IntfImg.GetDataLineStart(y)), IntfImg.DataDescription.Width); ... Regards! -Marco 2008/1/24, Luiz Americo Pereira

Re: [lazarus] Production quality crosss platform applications

2008-01-28 Thread Marco Alvarado
I have a 2D/3D game engine that I've tested in Windows, Linux and DOS. It works right, and probably will work right in other platforms as well (i.e. Mac OS X). I'm not using the Lazarus form designer, but the LCL works great from code. Saludos! -Marco 2008/1/28, Sergio Samayoa [EMAIL

Re: [lazarus] How many lazarus / FPC exists?

2008-01-28 Thread Marco Alvarado
I'm using it :D That's 1 2008/1/28, Sergio Samayoa [EMAIL PROTECTED]: Hi. I'm coming back to lazarus (again) because MacOSX and Linux raising and wondering how many users (developers) are using lazarus / FPC. Is some statistic somewhere? Regards.

Re: [lazarus] How many lazarus / FPC exists?

2008-01-28 Thread Marco Alvarado
I first learned about Lazarus at http://www.pascalgamedevelopment.com/ -Marco 2008/1/28, Marius [EMAIL PROTECTED]: This is not the only lazarus meeting point. There are a couple of odinary forums (via http://www.lazarus.freepascal.org) and there is also a french (and a russian?) forum. The

Re: [lazarus] I have a dream

2008-01-30 Thread Marco Alvarado
Isn't it lot easier to create an include file with all the defines, and include it everywhere you need it? If you need several sets of defines, just create higher level symbols that enable/disable those sets. Regards! -Marco 2008/1/30, Graeme Geldenhuys [EMAIL PROTECTED]: On 29/01/2008,

Re: [lazarus] may I get a demo?

2008-01-31 Thread Marco Alvarado
I just told a friend that has been programming in Turbo Pascal, about Lazarus. We simply downloaded the latest version, installed, and just took few seconds to show him how forms work, and how to create a console application. :D Regards! -Marco 2008/1/31, Brad Campbell [EMAIL PROTECTED]: Bee

[lazarus] Is GetAsyncKeyState exclusive of Windows?

2008-02-01 Thread Marco Alvarado
I want to read virtual keys with this function, but when trying to compile my code in Ubuntu, I can't find the unit where it is defined (if any) on Linux. Had the idea it was available in both platforms, indeed in read it in a forum. Also virtual key constants are defined in LCLType.pp.

[lazarus] Runtime error 232, when creating TThread in Ubuntu

2008-02-01 Thread Marco Alvarado
I have this class that inherits TThread. I compile and execute successfully an application that instantiates it with Delphi and Lazarus, on Windows. But when I execute the same Lazarus project in Ubuntu, I get the following error dialog: Project raised exception class 'RunError(232)'. When I

Re: Runtime error 232, when creating TThread in Ubuntu

2008-02-01 Thread Marco Alvarado
Oh, never mind, cthreads was missing :P Found at http://bugs.freepascal.org/view.php?id=9597 Well, I'm happy! :D 2008/2/1, Marco Alvarado [EMAIL PROTECTED]: I have this class that inherits TThread. I compile and execute successfully an application that instantiates it with Delphi and Lazarus

Re: [lazarus] Runtime error 232, when creating TThread in Ubuntu

2008-02-01 Thread Marco Alvarado
Thanks! Just a note on that, I added cthreads as first in the unit that defines my TThread descendant and works! -Marco 2008/2/1, Vincent Snijders [EMAIL PROTECTED]: Marco Alvarado schreef: I have this class that inherits TThread. I compile and execute successfully an application

[lazarus] Something like SetThreadAffinityMask for Unix/Linux?

2008-02-02 Thread Marco Alvarado
I'm using SetThreadAffinityMask() on Windows to set the processor for a given TThread object. What can I use on Linux? Thanks! -Marco _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject

Re: [lazarus] Something like SetThreadAffinityMask for Unix/Linux?

2008-02-04 Thread Marco Alvarado
it being spread fairly evenly, so this is getting pretty specialist. Micha Nelissen wrote: Marco Alvarado wrote: I'm using SetThreadAffinityMask() on Windows to set the processor for a given TThread object. What can I use on Linux? On linux you could use sched_setaffinity, but I don't

[lazarus] Threads and OpenGLContext

2008-02-04 Thread Marco Alvarado
I'm having problems to make OpenGLContext work with threads. I have a game loop inside a thread, and it is wrapped with a Synchronize(). I know it's not an efficient way, but as a test this solved the weird problems in Delphi (no keyboard response, exceptions, etc). Now in Lazarus it doesn't work.

Re: [lazarus] Linux Journal Poll: Pascal does not exist

2008-02-06 Thread Marco Alvarado
Working with an underground language gives a cool feeling :D -Marco 2008/2/6, Felipe Monteiro de Carvalho [EMAIL PROTECTED]: Complain with whoever made the pool. Althougth that doesn't mean anything anyway. -- Felipe Monteiro de Carvalho

[lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
Is there a Pascal compiler for these virtual machines? Java Flash 8 (actionscript 2) Flash 9 (actionscript 3) Is the answer is no, can I build one? :-D I think it's a cool project I'd love to work on, just to have Pascal applications on mobile devices. Regards! -Marco

Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
But that would be .NET... what about Java and Flash? -Marco 2008/2/6, Marco van de Voort [EMAIL PROTECTED]: On Wed, Feb 06, 2008 at 03:26:48PM -0600, Marco Alvarado wrote: Is there a Pascal compiler for these virtual machines? Java Flash 8 (actionscript 2) Flash 9 (actionscript 3

Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
a pessimistic paragraph, what about it? :D 2008/2/6, Marco van de Voort [EMAIL PROTECTED]: On Wed, Feb 06, 2008 at 03:49:23PM -0600, Marco Alvarado wrote: But that would be .NET... what about Java and Flash? Read the last paragraph

Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
If it doesn't exist already, I would like to make an un-perfect, simplistic, full of missing features, Pascal compiler that allows me to write Pascal programs for those virtual machines that have penetrated interesting platforms like web embedded applications, mobile devices, PSP, Wii, etc. I

Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
2008/2/6, Wanderlan Santos dos Anjos [EMAIL PROTECTED]: Options for a Pascal compiler which targets Java: 1. http://www.mhccorp.com/pasjvm.shtml 2. http://en.wikipedia.org/wiki/MIDletPascal. Dead product? Download: http://www.softlookup.com/display.asp?id=157709 I know MIDletPascal, and it's

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco Alvarado
I've been investigating, and came to the conclussion that the best compiler I can do IS NOT a compiler, BUT an specialiced translator. I could use customizable templates to transform Pascal code into each VM's natural language, then take advantage of the command-line compilers for those VMs. There

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco Alvarado
The guys at mhccorp, did the same: http://www.mhccorp.com/java.shtml But, its a closed source project. In their pages, they said, they made an Object Pascal To Java translator, and later a Object Pascal to JVM assembler translator. Yes the idea is having it Open Source, and for at least

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco Alvarado
But, how knows ? Maybe the games you want to migrate to JVM-based phones, can be fun and even profit !!! ;-) Many games can be migrated to VM's that don't need a lot of processing power, think about the best selling Tetris ;D Also, what happens if a compiler maker or chipset builder finds out

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco Alvarado
I'm building right now a translator of Object Pascal to ECMAscript. I just need a common run-time library, which I'm building on top of FPC's RTL and the LCL. If someone wants to have a portable application, they just have to use the classes of the Virtual Machine Library (VML, not to confuse with

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco Alvarado
2008/2/7, Felipe Monteiro de Carvalho [EMAIL PROTECTED]: Unfortunately I don't have time to build that, but I would try to help if someone starts such a project. I'm doing it now!! Once I get a hello-world translated, I'll start releasing the source code. Regards! -Marco

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco Alvarado
2008/2/7, Sam Liddicott [EMAIL PROTECTED]: Can I suggest you also look at the Alma project on freshmeat.net Sam Yes, but it's not only about language translation, indeed this is the easiest part. The real problem is creating a virtual machine library that is common between the different

Re: [lazarus] Linux Journal Poll: Pascal does not exist

2008-02-07 Thread Marco Alvarado
Nice shirt heheh :D 2008/2/7, mramirez [EMAIL PROTECTED]: Quoting Alexsander Rosa [EMAIL PROTECTED]: http://www.linuxjournal.com/node/1006101 18. What is your favorite programming language? OBJECT Pascal. Not your parents' pascal ;-) Cheers. mramirez