Re: [Lazarus] Linux and Threads
Matt Shaffer wrote: I'm really not quite sure what the problem is. Here's a quick rundown: 1. I'm running Ubuntu 9.04 2. Lazarus .9.26 3. Using Andorra 2D To be honest, I'm not sure if this is an andorra 2d specific problem (Andorra is an openGL engine for FPC if you didn't know), but as it works flawlessly under Windows and do to my observation below, I thought it might not be a problem with Andorra. The error I'm getting is Run time Error 232 SYSTEM_NOTHREADERROR. As threading sounds more like a FPC/Lazarus issue and not specific to andorra, I thought I'd try my luck here. Is there a unit I have to include to use threading? First thing that came to my mind was cthreads as I've seen that used before, but including that file only created a different error (I'm assuming, because cthreads is unix and unix != linux?) Section of code where it has a problem: constructor TAdParticleCalculationThread.Create(AParticleList: TAdParticleList; AEffectSize: integer); begin inherited Create(false); // Compiler auto highlights this line, for some reason FParticleList := AParticleList; FParticleClass := nil; ResizeData(AEffectSize); FStartedCalculation := true; end; I'd love to actually be able to create some apps for linux ;) Game development seems especially hard, however. (PS: Nice job on .9.28 developers! Haven't had a chance (and don't want to risk) upgrading to the latest lazarus yet) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Hi, Maybe you could read up here: http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial#Units_needed_for_a_multi-threaded_application HTH, Funky Beast -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Installing Lazarus 0.9.29 trunk on fpc 2.5.1 trunk: can't make clean all?
So I installed lazarus trunk on FPC 2.4.0 (RC1). Apart from a few issues (debian script does not recognize patch version 0, lazarus and fpc installed in /usr/share instead of /usr/lib), it now works. There seems to be an issue between FPC 2.5.1 and Lazarus. Thierry. Thierry Coq wrote: FPC svn : 13949 Lazarus svn : 22279 Ubuntu 8.04 Installing FPC and Lazarus from the trunk seems fine. But... the units directories in Lazarus are not created. So when I do a make clean all to recompile lazarus, I get: lclmemmanager.pas(100,37) Error: Cannot access a private field of an object here lclmemmanager.pas(100,53) Error: Cannot access a private field of an object here lclmemmanager.pas(104,1) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Erreur 1 make[1]: quittant le répertoire « /usr/lib/lazarus/0.9.28/lcl » make: *** [lcl] Erreur 2 Has somebody seen this before? Is it reproducible? Can I make it a bug? Thierry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build graph application (like uml design)
Hi, The EXACT same code compiles and (mostly) works on Linux (Ubuntu 8.04, Lazarus 0.9.29, FPC 2.4.0 (RC1)). I had to change a few paths. This is nice! Thierry Thierry Coq wrote: Hi, I did a first port of DrawObjects to Lazarus on Windows. I'm now working on the Linux version. The source code, test code, UML model and screen shots are downloadable here: http://tcoq.free.fr/composants.html Some UML design and screenshots are available here: http://tcoq.free.fr/DrawObjectsExtended/DrawObjectsExtendedDesign.html The TODO list records what still has to be done. I hope to write a testimonial on how this graphical component was ported to Lazarus, what were the issues and how they were resolved (or not). The original contributor is Angus Johnson. I've added a composite component that could be very useful to answer Osvaldo's needs for UML drawing. The licence is MPL 1.1. All comments are welcome. Best regards, Thierry. stop...@muenster.de wrote: Hi, maybe this one is a good starting point if you want to do it in pascal. http://www.angusj.com/delphi/ There is a library called drawing objects, licence is MPL 1.1. bye, Stefan -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Installing Lazarus 0.9.29 trunk on fpc 2.5.1 trunk: can't make clean all?
On Sun, 25 Oct 2009 05:58:32 +0100 Thierry Coq t...@free.fr wrote: FPC svn : 13949 Lazarus svn : 22279 Ubuntu 8.04 Installing FPC and Lazarus from the trunk seems fine. But... the units directories in Lazarus are not created. So when I do a make clean all to recompile lazarus, I get: lclmemmanager.pas(100,37) Error: Cannot access a private field of an object here lclmemmanager.pas(100,53) Error: Cannot access a private field of an object here lclmemmanager.pas(104,1) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Erreur 1 make[1]: quittant le répertoire « /usr/lib/lazarus/0.9.28/lcl » make: *** [lcl] Erreur 2 Has somebody seen this before? Is it reproducible? Can I make it a bug? Looks like something I fixed a few weeks ago. Make sure your svn does not have local modifications. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Installing Lazarus 0.9.29 trunk on fpc 2.5.1 trunk: can't make clean all?
Thierry Coq wrote: I wasn't able to install FPC trunk and lazarus trunk using the procedure described for lazarus. I was able to do it for FPC 2.4.0 and lazarus trunk. I described the issue with the private fields not accessible. I'm just reporting what I did, and what were the results. If somebody can check that, that'll be fine. It is seems to me that you are using not the trunk but 0.9.28 branch. Or maybe your trunk is not uptodate? Best regards, Paul Ishenin. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Unsubscribing myself
Aleš Katona schrieb: I've slowed down a bit on the OSS side (mainly due to girlfriend It seems women are a Microsoft invention to hurt OSS development ;) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Installing Lazarus 0.9.29 trunk on fpc 2.5.1 trunk: can't make clean all?
I did this at around 4 o'clock this morning... svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus Is this OK? Paul Ishenin wrote: Thierry Coq wrote: I wasn't able to install FPC trunk and lazarus trunk using the procedure described for lazarus. I was able to do it for FPC 2.4.0 and lazarus trunk. I described the issue with the private fields not accessible. I'm just reporting what I did, and what were the results. If somebody can check that, that'll be fine. It is seems to me that you are using not the trunk but 0.9.28 branch. Or maybe your trunk is not uptodate? Best regards, Paul Ishenin. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Installing Lazarus 0.9.29 trunk on fpc 2.5.1 trunk: can't make clean all?
Thierry Coq schreef: I did this at around 4 o'clock this morning... svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus Is this OK? That seems ok. Is that also your lazarus directory in the environment options? Maybe you are compiling other sources. This is the file you are supposed to have: http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/lclmemmanager.pas?view=annotateroot=lazarus Note that line 100 doesn't contain any private Fields. Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build graph application (like uml design)
A screen copy can be found here: http://tcoq.free.fr/DrawObjectsExtended/DrawObjectsExtendedDesign.html Thierry Coq wrote: Hi, The EXACT same code compiles and (mostly) works on Linux (Ubuntu 8.04, Lazarus 0.9.29, FPC 2.4.0 (RC1)). I had to change a few paths. This is nice! Thierry Thierry Coq wrote: Hi, I did a first port of DrawObjects to Lazarus on Windows. I'm now working on the Linux version. The source code, test code, UML model and screen shots are downloadable here: http://tcoq.free.fr/composants.html Some UML design and screenshots are available here: http://tcoq.free.fr/DrawObjectsExtended/DrawObjectsExtendedDesign.html The TODO list records what still has to be done. I hope to write a testimonial on how this graphical component was ported to Lazarus, what were the issues and how they were resolved (or not). The original contributor is Angus Johnson. I've added a composite component that could be very useful to answer Osvaldo's needs for UML drawing. The licence is MPL 1.1. All comments are welcome. Best regards, Thierry. stop...@muenster.de wrote: Hi, maybe this one is a good starting point if you want to do it in pascal. http://www.angusj.com/delphi/ There is a library called drawing objects, licence is MPL 1.1. bye, Stefan -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Linux and Threads
Good stuff! It's compiled and running happily now. On Sun, Oct 25, 2009 at 2:29 AM, Funky Beast funkybe...@pacific.net.sgwrote: Matt Shaffer wrote: I'm really not quite sure what the problem is. Here's a quick rundown: 1. I'm running Ubuntu 9.04 2. Lazarus .9.26 3. Using Andorra 2D To be honest, I'm not sure if this is an andorra 2d specific problem (Andorra is an openGL engine for FPC if you didn't know), but as it works flawlessly under Windows and do to my observation below, I thought it might not be a problem with Andorra. The error I'm getting is Run time Error 232 SYSTEM_NOTHREADERROR. As threading sounds more like a FPC/Lazarus issue and not specific to andorra, I thought I'd try my luck here. Is there a unit I have to include to use threading? First thing that came to my mind was cthreads as I've seen that used before, but including that file only created a different error (I'm assuming, because cthreads is unix and unix != linux?) Section of code where it has a problem: constructor TAdParticleCalculationThread.Create(AParticleList: TAdParticleList; AEffectSize: integer); begin inherited Create(false); // Compiler auto highlights this line, for some reason FParticleList := AParticleList; FParticleClass := nil; ResizeData(AEffectSize); FStartedCalculation := true; end; I'd love to actually be able to create some apps for linux ;) Game development seems especially hard, however. (PS: Nice job on .9.28 developers! Haven't had a chance (and don't want to risk) upgrading to the latest lazarus yet) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Hi, Maybe you could read up here: http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial#Units_needed_for_a_multi-threaded_application HTH, Funky Beast -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac OS X : Zoom Image function...
You can try to switch off AntialiasingMode: Canvas.AntialiasingMode:=amOff; thanks, dmitry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac OS X : Zoom Image function...
Using AntialiasingMode:=amOff; did not make any difference. I should have mentioned that in my original post. Dominique. On Sun, 25 Oct 2009 19:01:23 +0300, dmitry boyarintsev skalogryz.li...@gmail.com wrote: You can try to switch off AntialiasingMode: Canvas.AntialiasingMode:=amOff; thanks, dmitry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] StateImages support in TListView
Any hope of this patch being applied? This functionality is extremely critical for us. I am working to release Lazarus version OpenWire www.openwire.org ASAP, and this is a must have functionality. I am finishing the port of the design time packages and then the project will be ready for Lazarus release if the StateImages are available in Lazarus. With best regards, Boian Mitov --- Mitov Software www.mitov.com --- - Original Message - From: Boian Mitov mi...@mitov.com To: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Sent: Thursday, October 22, 2009 11:07 PM Subject: Re: [Lazarus] StateImages support in TListView Hi Paul, Just did: report: 0014881 I hope I have not screwed it ;-) . The patch file seems about right, but we will see. With best regards, Boian Mitov --- Mitov Software www.mitov.com --- - Original Message - If it is a command line tool then: 1. cd to the lazarus folder 2. execute: svn diff mypatch.patch 3. create a bug report with it -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] StateImages support in TListView
BTW: I have also posted the current version of OpenWire on SourceForge - https://sourceforge.net/projects/openwireproject/ , and if anybody is interested in working on the support for other operating systems than Windows, is welcome to join the project :-) . I am already working on a Linux port, but any help there will surely be also appreciated. With best regards, Boian Mitov --- Mitov Software www.mitov.com --- - Original Message - From: Boian Mitov mi...@mitov.com To: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Sent: Thursday, October 22, 2009 11:07 PM Subject: Re: [Lazarus] StateImages support in TListView Hi Paul, Just did: report: 0014881 I hope I have not screwed it ;-) . The patch file seems about right, but we will see. With best regards, Boian Mitov --- Mitov Software www.mitov.com --- - Original Message - If it is a command line tool then: 1. cd to the lazarus folder 2. execute: svn diff mypatch.patch 3. create a bug report with it -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Code signing for Windows deployment...
How does one sign an application built with FPC/Lazarus to avoid the Unknown Publisher warning when the binary is executed? Cheers, Bruce. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] OpenWire for lazarus available at SourceForge
Hi folks, I have added a Lazarus under Windows compatible OpenWire version at SourceForge. https://sourceforge.net/projects/openwireproject/ It requires the 0014881 patch in order to work. Hopefully the patch will be applied to Lazarus sometime soon. This version is tested only under Windows at the moment, and only limited testing has been done, but all the basic functionality appears to work. I will be working on Linux version next. I have it rebuilding there, but there are some threading issues that need to be resolved. With best regards, Boian Mitov --- Mitov Software www.mitov.com - ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus