Re: [Lazarus] Working on big units
If I don't want to split it in different units I split it in "logical" parts in files and use {$I ...} but with several classes .. it looks like splitting classes in different units should be a way to make it easier! De: AradeonasEnviado: quarta-feira, 21 de outubro de 2015 16:45 Para: lazarus@lists.lazarus.freepascal.org Assunto: [Lazarus] Working on big units Hi, I Just work on one of my units with about 10,000 line of code that have 7 class and it makes me crazy moving in it and adding procedure or editing and sometimes I get lost that where am I. Just want to ask you how you work with big units? how you move,browse and edit? Regards, Ara -- http://www.fastmail.com - Same, same, but different... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Play video from memory
xwininfo ... linux ! ... I need a solution for windows ... I tried whndl := WindowFromDC(wglGetCurrentDC()) but MPLAYER does not seem to like it, either in decimal format or hex format ... and I do not know how to check if I get the resquested value ... the handle of the window launched by glutCreateWindow ... De: aradeonas aradeo...@operamail.com Enviado: sexta-feira, 6 de março de 2015 12:58 Para: lazarus@lists.lazarus.freepascal.org Assunto: Re: [Lazarus] Play video from memory Leonardo, Im not familiar with Mplayer but take a look at here: http://wiki.freepascal.org/TMPlayerControl And in MPlayerCtrl unit line 665 it just pass handle. Do you have opinion about how to pass memory stream? Regards, Ara On Fri, Mar 6, 2015, at 07:41 AM, Leonardo M. Ramé wrote: To embed mplayer into a window you must know its ID. Window IDs have a relation with the WindowHandle, but that value must be somehow translated to be understood by X11 (or Windows). I don't know how to translate it :(. For example, If I use Format('%x', [Self.WindowHandle]) I get the Hex value BB5380, then, using the wininfo tool I can get the ID. Just run xwininfo and click on the window you want to embed mplayer into. In my example I got: xwininfo: Window id: 0x2800048 BB5380 Absolute upper-left X: 662 Absolute upper-left Y: 270 Relative upper-left X: 1 Relative upper-left Y: 24 Width: 320 Height: 240 Depth: 24 Visual: 0x20 Visual Class: TrueColor Border width: 0 Class: InputOutput Colormap: 0x22 (installed) Bit Gravity State: NorthWestGravity Window Gravity State: NorthWestGravity Backing Store State: NotUseful Save Under State: no Map State: IsViewable Override Redirect State: no Corners: +662+270 -1744+270 -1744-258 +662-258 -geometry 320x240+661+246 As you can see, the first line displays the same Hex number I get from Lazarus, and 0x2800048, this is the value mplayer expects. So, to embed a movie into a window, when you know the window Id, you just launch mplayer using this options: mplayer -wid 0x2800048 /home/leonardo/Imágenes/Fotos/2009/11/21/mvi_0260.avi Please, if any you know how to translate BB5380 to 0x2800048 I'll be glad to learn. El 05/03/15 a las 18:51, Philippe Lévi escibió: and you know how to tell MPLAYER to show the video in a specific window? (using WINDOWS, and glutCreateWindow). thanks Philippe De: Leonardo M. Ramé l.r...@griensu.com Enviado: quinta-feira, 5 de março de 2015 17:44 Para: lazarus@lists.lazarus.freepascal.org Assunto: Re: [Lazarus] Play video from memory Yes, you can!. 1) Load your Video to a TStream (TMemoryStream for example). 2) Use TProcess to execute mplayer -, the - is the parameter. 3) Send your stream to the standard input of the process. El 05/03/15 a las 16:45, aradeonas escibió: Thank you Leonardo, I saw it before but it doesn't seem there is a way to pass memory to it or I couldn't find out how. Do you know? Regards, Ara On Thu, Mar 5, 2015, at 11:40 AM, Leonardo M. Ramé wrote: It looks like MPlayer can do this: http://www.mplayerhq.hu/DOCS/HTML/en/streaming.html El 04/03/15 a las 13:29, aradeonas escibió: Hi, Any one know a library or way to buffer video file into memory and then pass it to player? Any simple player do the job but it should support a way to open file from memory. Regards, Ara -- ___ 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- http://www.fastmail.com - Email service worth paying for. Try it for free -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Play video from memory
and you know how to tell MPLAYER to show the video in a specific window? (using WINDOWS, and glutCreateWindow). thanks Philippe De: Leonardo M. Ramé l.r...@griensu.com Enviado: quinta-feira, 5 de março de 2015 17:44 Para: lazarus@lists.lazarus.freepascal.org Assunto: Re: [Lazarus] Play video from memory Yes, you can!. 1) Load your Video to a TStream (TMemoryStream for example). 2) Use TProcess to execute mplayer -, the - is the parameter. 3) Send your stream to the standard input of the process. El 05/03/15 a las 16:45, aradeonas escibió: Thank you Leonardo, I saw it before but it doesn't seem there is a way to pass memory to it or I couldn't find out how. Do you know? Regards, Ara On Thu, Mar 5, 2015, at 11:40 AM, Leonardo M. Ramé wrote: It looks like MPlayer can do this: http://www.mplayerhq.hu/DOCS/HTML/en/streaming.html El 04/03/15 a las 13:29, aradeonas escibió: Hi, Any one know a library or way to buffer video file into memory and then pass it to player? Any simple player do the job but it should support a way to open file from memory. Regards, Ara -- ___ 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
[Lazarus] android
I am trying to follow http://wiki.freepascal.org/Android_tutorial Which seems to be a bit obsolete ... but should work! in Compile the demo androidlcl when doing Now Run Compile this will generate this library : C:\Android\Projects\androidlcl\android\libs\armeabi\liblclapp.so [5.073 kb] I get C:\android\laz4android\fpc\2.7.1\bin\i386-win32\arm-linux-androideabi-ld.exe: C:\Android\android-ndk-r9\platforms\android-8\arch-arm\usr\lib\crtbegin_so.o: Unknown mandatory EABI object attribute 44 C:\android\laz4android\fpc\2.7.1\bin\i386-win32\arm-linux-androideabi-ld.exe: failed to merge target specific data of file C:\Android\android-ndk-r9\platforms\android-8\arch-arm\usr\lib\crtbegin_so.o C:\android\laz4android\fpc\2.7.1\bin\i386-win32\arm-linux-androideabi-ld.exe: C:\Android\android-ndk-r9\platforms\android-8\arch-arm\usr\lib\crtend_so.o: Unknown mandatory EABI object attribute 44 C:\android\laz4android\fpc\2.7.1\bin\i386-win32\arm-linux-androideabi-ld.exe: failed to merge target specific data of file C:\Android\android-ndk-r9\platforms\android-8\arch-arm\usr\lib\crtend_so.o androidlcltest.lpr(24,36) Error: Error while linking I'll appreciate any suggestion Philippe -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Guide: Making Free Pascal and Lazarus from sources
that is something I was looking for ! ... and the way I like it ... as it is the way need!!! may be need some adjustment here (missing word): Download the and unpack the required tools listed below. You can place them wherever you want, but for this guide we'll be using Thanks a lot! Philippe De: Anthony Walter sys...@gmail.com Enviado: domingo, 8 de fevereiro de 2015 07:15 Para: Lazarus mailing list Assunto: [Lazarus] Guide: Making Free Pascal and Lazarus from sources In an effort to be as open as possible, I've written up a Making it Yourself guide for to help anyone make test versions of Free Pascal 3.0 and Lazarus 1.4. The guide is available for those who want to use the most current versions of Free Pascal and Lazarus, but would prefer to obtain copies from the official subversion repository code, rather than trust pre-bundled binaries provided by third parties. http://www.getlazarus.org/setup/making/ Enjoy -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus