Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
On Thu, 19 Feb 2015 18:40:22 +0100 Giuliano Colla wrote: > Il 19/02/2015 14:10, Mattias Gaertner ha scritto: > > > The "Clean All" is calling "make clean". That only works in the > > Lazarus source directory. > > There is a "clean up" for the project and its packages, but not yet for > > the IDE and its packages. > > Missing feature. > > Is there a reason why a procedure CleanLazarusDestDir similar to > CleanLazarusSrcDir could not be used to perform the cleanup when > isRedirected is true? > All that is required, in a user path, is to clean up compiler generated > files, without all the other stuff which cleanide or cleanlaz do. Trunk now cleans up the fallback directories, when the user selects the clean option. Please test. If it works it can be merged to fixes_1_4. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugger error when end application
On 20/02/2015 19:42, FreeMan wrote: I have not debug problem, I can debug and everythink is okey. just when application end, then message popup. The message is a bug in gdb. But it should disappear with "DisableLoadSymbolsForLibraries" to "True" You wrote, after go to the debugger options and set the field "DisableLoadSymbolsForLibraries" to "True" the debug project did no longer start? If yes, I need more info. Otherwise just ignore the error at the end. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugger error when end application
I have not debug problem, I can debug and everythink is okey. just when application end, then message popup. On 20.02.2015 18:56, Martin Frb wrote: In this case please provide a log: http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session And: Is your project a GUI app (with forms)? Or a console app? (console app does not work in debugger on Mac) Also ensure correct setup: http://wiki.lazarus.freepascal.org/Debugger_Setup On Mac you MUST use "type of debug info" = "dwarf (with enum)" -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
On Fri, 20 Feb 2015 18:29:15 +0100 Giuliano Colla wrote: > Il 20/02/2015 17:30, Mattias Gaertner ha scritto: > > On Fri, 20 Feb 2015 17:04:22 +0100 > > Giuliano Colla wrote: > > > >> Il 20/02/2015 01:32, Mattias Gaertner ha scritto: > >> [...] > >>> Do you mean line 3237? > > That was fixes_1_4. > > > > > >> I rather mean line 3206. > > I guess this line is in 1.4RC1. Please refer to fixes_1_4. > > No it was in trunk. trunk: 3205: if APackage.AutoUpdate=pupManually then 3206:exit(mrNo); ? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] very small addition to multilog package
I've been using for long the great multilog package to do selective logging to file and an IPC listener.Recently I needed to setup a little more complicate IPC based system, for which I took advantage of all of that good work. In order to have a multiple agent bi-directional communication was to be able to give a different name to each server. So, if anyone is interested in it or you want to include it in the "standard" multilog package, I am attaching ipcnamedchannel.pas It is nothing more than a copy of the standard ipcchannel.pas with a change in the constructor a little else. This possibility could be very well integrated in the standard TIPCChannel class with a second constructor, but I simply preferred not to touch the original file. Bye, R# ipcnamedchannel.pas Description: Binary data -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
Il 20/02/2015 17:30, Mattias Gaertner ha scritto: On Fri, 20 Feb 2015 17:04:22 +0100 Giuliano Colla wrote: Il 20/02/2015 01:32, Mattias Gaertner ha scritto: [...] Do you mean line 3237? That was fixes_1_4. I rather mean line 3206. I guess this line is in 1.4RC1. Please refer to fixes_1_4. No it was in trunk. In fixes_1_4 it's line 3214. No compile needed on current package output dir => exit. If normal output directory (i.e. the not writeable one, in our case) doesn't need compile, no check is made on the fall back directory. If the fall back directory is empty (as it would be on a first time build) , a useless compilation is avoided, and this is Ok, but if it contains old ppu's (as it may happen after an update) the old ppu's are left in place, and will cause linking to abort. In this case the linker should only see the normal output directory of the package. How can the linker see the fallback directory of the package? I'll make some more precise tests, sending al messages to a log file, to detect exactly what goes wrong. For testing 1.4, I just tried to put myself in the shoes of someone not too expert installing 1.4 as an upgrade of 1.2.6, and I stumbled in this problem. Giuliano -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugger error when end application
On 20/02/2015 14:05, FreeMan wrote: I have svn fpc & lazarus on osx. This solution not work for me, Lazarus 1.2.4 and higher go to the debugger options and set the field "DisableLoadSymbolsForLibraries" to "True" When run my project, a few second wait then, icon just jumping on dock :) I added icon to my appication, its not showing, main IDE caption show (Debuging) but project not starting, no any error comes. I click to reset debugger button, project not working, turn to IDE In this case please provide a log: http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session And: Is your project a GUI app (with forms)? Or a console app? (console app does not work in debugger on Mac) Also ensure correct setup: http://wiki.lazarus.freepascal.org/Debugger_Setup On Mac you MUST use "type of debug info" = "dwarf (with enum)" -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
On Fri, 20 Feb 2015 17:04:22 +0100 Giuliano Colla wrote: > Il 20/02/2015 01:32, Mattias Gaertner ha scritto: >[...] > > Do you mean line 3237? That was fixes_1_4. > I rather mean line 3206. I guess this line is in 1.4RC1. Please refer to fixes_1_4. > If normal output directory (i.e. the not writeable one, in our case) > doesn't need compile, no check is made on the fall back directory. > If the fall back directory is empty (as it would be on a first time > build) , a useless compilation is avoided, and this is Ok, but if it > contains old ppu's (as it may happen after an update) the old ppu's are > left in place, and will cause linking to abort. In this case the linker should only see the normal output directory of the package. How can the linker see the fallback directory of the package? > I'll make some tests on the transition from 1.2.6 to 1.4RC1 which shows > the problem, to see if some smarter checks on PackageSytem can help, or > if, after all, a clean all is the only viable solution. > > Are there cases where a package units directory contains units from more > than one package? Yes, some people do that. It is not recommended. The packages in the Lazarus sources do not share directories - neither source, nor output. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
Il 20/02/2015 01:32, Mattias Gaertner ha scritto: On Fri, 20 Feb 2015 00:23:57 +0100 Giuliano Colla wrote: [...] After some further analysis, I'm becoming convinced that clean all would be unnecessary, There are always cases when a clean all is needed. For example when an unit is moved to another package. The compiler options are exactly the same, but you have to delete the old ppu files. Let's say, would be less necessary. it clean auto didn't have a flaw in how package compilation is handled in TLazPackageGraph. In a situation where lazarus tree is not writeable, and a different user path must be used, what happens currently is: 1. TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile checks from lazarus tree if the compilation is required. 2. If yes, it verifies if normal output dir is writeable. The check fails, and it uses the FallBackOutputDir with SetDirectoryOverride. Compilation output goes in the user path, and overwrites possible old ppu's and resources. That's OK. 3. If no compilation is required, compilation is skipped, and anything leftover in the user path remains untouched. That's the flaw. What exactly is flawed? 4. When linking user path takes precedence over lazarus tree path (newly compiled must take precedence over old ones), and invalid leftovers abort the linking. The issue can be solved by brute force, always forcing the compile when normal output dir is not writeable, or with more elegance, by checking also the fall back output dir before deciding if a new compilation is required. Do you mean line 3237? I rather mean line 3206. If normal output directory (i.e. the not writeable one, in our case) doesn't need compile, no check is made on the fall back directory. If the fall back directory is empty (as it would be on a first time build) , a useless compilation is avoided, and this is Ok, but if it contains old ppu's (as it may happen after an update) the old ppu's are left in place, and will cause linking to abort. I'll make some tests on the transition from 1.2.6 to 1.4RC1 which shows the problem, to see if some smarter checks on PackageSytem can help, or if, after all, a clean all is the only viable solution. Are there cases where a package units directory contains units from more than one package? Giuliano -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugger error when end application
I have svn fpc & lazarus on osx. This solution not work for me, Lazarus 1.2.4 and higher go to the debugger options and set the field "DisableLoadSymbolsForLibraries" to "True" When run my project, a few second wait then, icon just jumping on dock :) I added icon to my appication, its not showing, main IDE caption show (Debuging) but project not starting, no any error comes. I click to reset debugger button, project not working, turn to IDE On 19.02.2015 15:51, Martin Frb wrote: This is a bug in gdb. It happens with a number of different messages. (I have plans to suppress those errors (during debugger shutdown)), but not yet the time) Please change the "DisableLoadSymbolsForLibraries" option: http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#internal-error:_clear_dangling_display_expressions Out of interest, which version of gdb? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] [Pol] Stream video and save in client
Hi, I want to know your opinions about this situation: I want to make an app that let user to stream video and also cache them so another time when he/she wants to play there is no need to stream it again. For this I read all sources that I found and still Its not clear for me: 1-What is the best file format for streaming and saving to user device for lather use,flv,mp4 or ...? 2-Can I use rtmp or other stream protocol or its need a custom stream system? Regards, Ara -- http://www.fastmail.com - mmm... Fastmail... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] -FcUTF8,-dEnableUTF8 create problem
Sorry I been late. var wProgram :string; params: -dUseCThreads -FcUTF8 -dEnableUTF8 -al result: # [634] wFileStr.Read(ar, 4); leaq-24(%rbp),%r14 movq-16(%rbp),%r13 movl$4,%r12d movq-16(%rbp),%rbx testq%rbx,%rbx jneLj2643 movl$210,%edi callfpc_handleerror Lj2643: movq(%rbx),%rbx movq%rbx,%rdi callfpc_check_object movl%r12d,%edx movq%r13,%rdi movq%r14,%rsi call*256(%rbx) Lj2634: callFPC_POPADDRSTACK # [637] wFileStr.Free params: -dUseCThreads -al results:# [634] wFileStr.Read(ar, 4); leaq-24(%rbp),%r14 movq-16(%rbp),%r13 movl$4,%r12d movq-16(%rbp),%rbx testq%rbx,%rbx jneLj2515 movl$210,%edi callfpc_handleerror Lj2515: movq(%rbx),%rbx movq%rbx,%rdi callfpc_check_object movl%r12d,%edx movq%r13,%rdi movq%r14,%rsi call*256(%rbx) Lj2506: callFPC_POPADDRSTACK # [637] wFileStr.Free; On 19.02.2015 13:59, luiz americo pereira camara wrote: I have two more tips to try to see where the problem is: What is the type of wProgram? Compile with the option -al (without debug info to get smaller files) and look to the generated asm file (has .s extension and lives the same dir the units are store) look at the generated code for wFileStr := TFileStream.Create(wProgram, fmOpenRead); and wFileStr.Read(ar, 4); BTW: the compiler are being recompiled with those options "-FcUTF8 , -dEnableUTF8" or only LCL? Luiz -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Play video files in a row without delay
Thank you Graeme, I tested PasLibVLC but opening second file after first file play finished is cause of delay and I need a way to read file before first file finished and I done that with VLC with creating 2 player)but problem is I could not to play both player in one handle. I will this example too and if you have idea about that problem please let me know. Regards, Ara On Fri, Feb 20, 2015, at 03:50 AM, Graeme Geldenhuys wrote: > On 2015-02-19 09:33, aradeonas wrote: > > Graeme can you give me an example?In any wrapper or way. > > I believe /packages/libvlc/example/testvlc.pp should give you what > you want. > > I've also got a GUI VLC video player included with fpGUI in > /examples/gui/video_vlc/ which uses the same libvlc code, but > just included as part of fpGUI in the /src/3rdparty/libvlc/ > directory. > > > Regards, > - Graeme - > > -- > fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal > http://fpgui.sourceforge.net/ > > -- > ___ > 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 files in a row without delay
On 2015-02-19 09:33, aradeonas wrote: > Graeme can you give me an example?In any wrapper or way. I believe /packages/libvlc/example/testvlc.pp should give you what you want. I've also got a GUI VLC video player included with fpGUI in /examples/gui/video_vlc/ which uses the same libvlc code, but just included as part of fpGUI in the /src/3rdparty/libvlc/ directory. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [OT] HTTP/2 is Done!
On 02/19/2015 03:51 PM, silvioprog wrote: Just sharing: https://www.mnot.net/blog/2015/02/18/http2 " HTTP/2 enables a more efficient use of network resources and a reduced perception of latency by introducing header field compression and allowing multiple concurrent exchanges on the same connection. It also introduces unsolicited push of representations from servers to clients. " In former time (before the IT departments began to run wild) this was called "TCP/IP" or "Telnet" :-) :-) :-) -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
On Thu, Feb 19, 2015 at 6:55 PM, m...@rpzdesign.com wrote: > Do these XML files also have the keystroke assignments? > Where are the XML files located. Yes, key mappings are in editoroptions.xml, section . On *nix systems the default location for config files is ~/.lazarus. It can be overridden by --pcp=xxx parameter when strarting Lazarus. On Windows I can never remember the path by hart but you can see it in View -> IDE internals -> About IDE -> Primary config directory. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Embedded/small database
leledumbo wrote: Not changing anything doesn't mean nothing supplied. You still have to distribute it. No, you don't *need* to distribute one. But that wasn't your original argument. Your original argument was that you needed to *specify* a config file and *set* some environment variable before program start. And that's not necessary. So it should be: sqlite: - just supply a single dll/so (or nothing if you statically linked it). firebird: - supply a bunch of dll/so (firebird doesn't consist of just one) For *both* there is no need to do *any* setup. So, yes, Firebird Embedded does need more files but not all of the supplied files are necessary to distribute. If, with that, you get a complete portable embedded RDBMS which is 1:1 compatible with it's big server-brother my choice is easy. Interesting. I don't know how firebird works without its .conf file, perhaps it has default value for everything. The config file supplied doesn't have *any* settings in it. They are all commented out because they are all default in the .dll itself. The file is only supplied as an example to what you can change in the rare instance you need to. (Where are those settings for sqlite?) I don't even bother removing unneeded files from the supplied/downloaded firebird_embedded.zip. I just unpack everything to my program directory and my program is ready to go. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Play video files in a row without delay
Thank you Mike and John. But I test playlists with VLC,mplayer and ffplay and problem is after first file finish thery is a 0.5 second delay for opening second file and its not good for project because files are tiny videos(less than 5mb and 4 seconds) and this delay is not good at all.I need to read second file before first one or pass every frame at a time to player. Regards, Ara On Thu, Feb 19, 2015, at 07:28 PM, John Briggs wrote: > As mentioned by Mike earlier generate a plaaylist of the videos you want > to > watch and vlc/mplayer will play them for you with little or no delay > between videos. > > John > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- http://www.fastmail.com - A fast, anti-spam email service. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus