Re: [Lazarus] how to keep out focus in a button
Dear Sandro: thanks very much. Something more learned. Yours Ing. Héctor F. Fiandor Rosario -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Access violation r.51977
Hi, I got "Access Violation" window whenever I try to compile any (even an empty) project or package. It comes from r.51977, while r.51976 works well. Commit description (by Bart): LazUtf8: firts attempt to rewrite Utf8CompareStr and Utf8CompareText so that it's results will be more consistent with AnsiCompareStr/WideCompareStr and AnsiCompareTex/WideCompareText. http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/lazutils/lazutf8.pas?root=lazarus=51977=51976=51977 Lazarus 1.7 r51976M FPC 3.0.0 x86_64-linux-qt Qt 4.8.7, Plasma 5.5 @Bart: Should I report it or do you still work on it? Will you need some more info (stack trace or whatever)? Thanks, Blaazen. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Having multiple Lazarus like GetLazarus version
> Put a "lazarus.cfg" into the folder with lazarus.exe and write exactly > this line into this file. Thanks but it seems not a good way. Lazarus will lose all the setting ans installed package and also GetLazarus version doesn't use a cfg file as I searched so it can has a better answer. Regards, Ara -- http://www.fastmail.com - Does exactly what it says on the tin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LCL exports CC-licensed icons to every LCL application
The issue is solved. Now LCL includes only public domain images or images under the LCL license. No attribution is needed. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SVN - SIGSEGV in external C lib when Lazarus in Debug mode (Qt)
Tried with style plastique - same result. QPixmap log output is not from my code but from Qt Widgetset, I'm not using Qt API directly, I'm just assigning TLabel.Caption := Title in thread safe Application.QueueAsyncCall. Tried also prepare demo but when copy pasted to the empty project, everything is working fine. Different stack or something? I still don't understand why I get this error even when I comment Application.QueueAsyncCall line in bass callback SyncMetaProc. It is on top place where external Bass callback function call my FPC routine. It worked fine for several months, stopped after svn update and Lazarus rebuild. Weird -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LCL exports CC-licensed icons to every LCL application
On 23.03.2016 10:22, Graeme Geldenhuys wrote: On 2016-03-23 08:30, Ondrej Pokorny wrote: There are still some icons with unknown origin. I created the following icons for the IDE: Source -> Comment Selection Source -> Uncomment Selection Source -> Toggle Comment in Selection Edit -> Uppercase Selection Edit -> Lowercase Selection Edit -> Swap case in selection Edit -> Sort Selection Apply whatever licensing you see fit for those. Thanks Graeme. I'll create a copyright file for Lazarus images as well and will place it there. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Having multiple Lazarus like GetLazarus version
Put a "lazarus.cfg" into the folder with lazarus.exe and write exactly this line into this file. Am 23.03.2016 um 18:25 schrieb Aradeonas: Hi, As Wiki said here http://wiki.freepascal.org/Multiple_Lazarus I should make a shortcut for second Lazarus like this : --primary-config-path=lazarusconf But I dont want to make a shortcut like this and like GetLazarus version I want to somehow set this config without making a new shortcut. Any one or @Anthony can tell me how? Regards, Ara -- http://www.fastmail.com - IMAP accessible web-mail -- ___ 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] SDL2 - win64
Hi! Using Lasarus 1.4.4 I'm following the SDL tutorial at http://www.freepascal-meets-sdl.net/ and get problems very fast. looking at http://www.freepascal-meets-sdl.net/chapter-5-drawing-primitives/ I have the code starting like this program Chapter5_SDL2; uses SDL2; var i : integer; sdlWindow1 : PSDL_Window; sdlRenderer : PSDL_Renderer; sdlRect1 : PSDL_Rect; sdlPoints1 : array[0..499] of PSDL_Point; begin //initilization of video subsystem if SDL_Init( SDL_INIT_VIDEO ) < 0 then HALT; sdlWindow1 := SDL_CreateWindow( 'Window1', 50, 50, 500, 500, SDL_WINDOW_SHOWN ); if sdlWindow1 = nil then HALT; writeln('1'); sdlRenderer := SDL_CreateRenderer( sdlWindow1, -1, 0 ); writeln('2'); if sdlRenderer = nil then HALT; and so on However it crashes with runtime error 217 on line sdlRenderer := SDL_CreateRenderer( sdlWindow1, -1, 0 ); I get '1' on the screen but not '2' C:\bnl\svn\trunk\pascal\sdl-stuff>chapter5_sdl2.exe 1 Runtime error 217 at $07FEFD28ADAD $07FEFD28ADAD $07FEF9417F69 $2D6E if run from Lazarus, I get some assembler listing . RaiseException 07FEFD28AD70 4881ecc800 sub$0xc8,%rsp 07FEFD28AD77 83e201 and$0x1,%edx 07FEFD28AD7A 488d05efff lea-0x11(%rip),%rax# 0x7fefd28ad70 07FEFD28AD81 894c2420 mov%ecx,0x20(%rsp) 07FEFD28AD85 33c9 xor%ecx,%ecx 07FEFD28AD87 4889442430 mov%rax,0x30(%rsp) 07FEFD28AD8C 89542424 mov%edx,0x24(%rsp) 07FEFD28AD90 48894c2428 mov%rcx,0x28(%rsp) 07FEFD28AD95 4d85c9 test %r9,%r9 07FEFD28AD98 0f859a080100 jne0x7fefd29b63807FEFD28AD9E 894c2438 mov%ecx,0x38(%rsp) 07FEFD28ADA2 488d4c2420 lea0x20(%rsp),%rcx 07FEFD28ADA7 ff15f3040400 callq *0x404f3(%rip)# 0x7fefd2cb2a0 07FEFD28ADAD 4881c4c800 add$0xc8,%rsp and I have no clue where i crashes, but I presume it is in sdl2.dll somewhere. Downloaded the latest 64 bit for win at sdl.org (2.0.4) searching throught the disk gives exactly 1 sdl2.dll C:\>dir /s sdl2.dll Directory of C:\bnl\bin 2016-01-02 11:59 1 230 336 SDL2.dll 1 File(s) 1 230 336 bytes Total Files Listed: 1 File(s) 1 230 336 bytes 0 Dir(s) 122 686 066 688 bytes free Anyone has some ideas what to do. Needless to say, google runtime error 217 gives no clear indication on why it is complaining. I had Lazarus 1.6 before, but downgraded because of bug in databse interface reagrding floats. (thread with subject "TPQConnection and float") -- /Björn -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Raspberry Pi 3 build issues
Seeing as how SD CARD space is a premium on the Pi you should probably clean up after you build and install. This include doing things like this after make install: cd $HOME/fpc rm -rf .svn find packages -name units | xargs rm -rf {0} find rtl -name units | xargs rm -rf {0} find packages -iname "*make*" -delete find rtl -iname "*make*" -delete rm -rf compiler rm -rf installer rm -rf share Which will free up A LOT of SD CARD space. Also an addition note, there is no real reason (IMO) to install trunk or test revisions to root owned folders. Usually PREFIX=$HOME/fpc or something thereof will suffice. Oh and the complete command to generation a valid fpc.cfg (assuming install path is $HOME/fpc) is: $HOME/fpc/fpcmkcfg -d basepath=$HOME/fpc/lib/fpc/\$FPCVERSION -o $HOME/fpc/bin/fpc.cfg It should be noted that the default swap file size of Raspbian is only 100MB which combined with a possible GPU memory settings will occasionally cause Lazarus builds to fail mysteriously. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Raspberry Pi 3 build issues
Hi, Bo, great script. Worked excellently. Thank You - Hans Am 21.03.2016 um 17:28 schrieb Bo Berglund: On Mon, 21 Mar 2016 05:53:05 +, Anthony Walterwrote: Has anyone here built Lazarus from SVN sources on the Raspberry Pi 3 yet? I keep running into various issues. This my latest issue from: I have done so multiple times and to facilitate installation on a bare newly installed RPi3 with Raspbian Jessie I created a shellscript file that does all the work: http://blog.boberglund.com/install_laz_pi.sh - Download the file to your RPi3 home directory. I guess you can use wget for that... - Then change the permissions of the file: chmod +x install_laz_pi.sh - Finally start the script as user pi: ./install_laz_pi.sh It will run for quite a while installing all of the build required modules and downloading both the seed compiler, the svn sources for fpc 3.0.0 and lazarus 1.6 releases. Then it installs fpc seed compiler and builds the fpc 3.0.0 release and finally uses that to build the lazarus ide. It also creates a start menu entry for Lazarus at the end. HTH -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Having multiple Lazarus like GetLazarus version
Hi, As Wiki said here http://wiki.freepascal.org/Multiple_Lazarus I should make a shortcut for second Lazarus like this : > --primary-config-path=lazarusconf But I dont want to make a shortcut like this and like GetLazarus version I want to somehow set this config without making a new shortcut. Any one or @Anthony can tell me how? Regards, Ara -- http://www.fastmail.com - IMAP accessible web-mail -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LCL exports CC-licensed icons to every LCL application
On 23 March 2016 at 23:18,wrote: > thanks for that! will it work for non-GUI console only apps? Hmm. In order to get the LCL information, I needed to include some LCL files... Shouldn't be too hard to modify though and build a version that doesn't report the LCL info... The code was released entirely into the public domain, so feel free to hack away :-) hummm... "almost no change" implies that there is a change of some kind... > can you update your original post or post another with the change or newer > unit? > Sure. I've updated that post now :-) Changes are: Minor re-ordering of code, some additional comments and GetCPU. I'm away from SourceForge access right now, so I'm not entirely sure when I made those changes... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LCL exports CC-licensed icons to every LCL application
On 03/23/2016 08:07 AM, Michael Thompson wrote: Here's everything I found when I first went looking for this kind of info http://forum.lazarus.freepascal.org/index.php/topic,13957.msg155398.html thanks for that! will it work for non-GUI console only apps? i did see where someone asked about a built-in dialogue and was told one does not exist which seems to indicate that it will work for non-GUI apps... (And I've been using the VersionSupport unit with almost no change since I posted it ..) hummm... "almost no change" implies that there is a change of some kind... can you update your original post or post another with the change or newer unit? -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list* unless private contact is specifically requested and granted. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Testing Rapberry Pi 3 performance
On 03/23/2016 03:32 PM, David Taylor wrote: But with "only" 1 GB of memory, 64-bit may be no better than 32-bit. The hardware, though, is 64-bit with the advantages that brings in memory access speeds. I've seen nothing of the Raspberry Pi cards which I use which would benefit from a 64-bit version. I do know that with X86 the memory efficiency with 64 is a lot worse than with X32 and might result in speed degradation due to worse cache usage. I have no knowledge if this is similar with aarch64. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Testing Rapberry Pi 3 performance
On 23/03/2016 14:18, Michael Schnell wrote: On 03/23/2016 03:00 PM, David Taylor wrote: Using the RPi-3 is a significantly more pleasant experience than the RPi-2, even just headless when compiling things. Highly recommended. I did have some minor issues with Jessie, with the serial port on the RPi-3, and with gpsd not suto-starting. But still no "official" 64 bit OS, yet :-( -Michael -- But with "only" 1 GB of memory, 64-bit may be no better than 32-bit. The hardware, though, is 64-bit with the advantages that brings in memory access speeds. I've seen nothing of the Raspberry Pi cards which I use which would benefit from a 64-bit version. -- David Web: http://www.satsignal.eu -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Testing Rapberry Pi 3 performance
On 03/23/2016 03:00 PM, David Taylor wrote: Using the RPi-3 is a significantly more pleasant experience than the RPi-2, even just headless when compiling things. Highly recommended. I did have some minor issues with Jessie, with the serial port on the RPi-3, and with gpsd not suto-starting. But still no "official" 64 bit OS, yet :-( -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Testing Rapberry Pi 3 performance
On 23/03/2016 10:22, Mark Morgan Lloyd wrote: Graeme Geldenhuys wrote: On 2016-03-23 04:56, Anthony Walter wrote:> I recorded a very brief video of the performance of Raspberry Pi and> Lazarus is quite usable. For a computer priced at £22, that is incredible value for money! Istill have the original RPi - maybe it's time for an upgrade. The workawesome as little micro-servers too. :) The RPi2 is superior in almost every way. I've got an RPi3 here but won't have time to exercise it for at least a few days. [] The RPI-2 is superior to what? Using the RPi-3 is a significantly more pleasant experience than the RPi-2, even just headless when compiling things. Highly recommended. I did have some minor issues with Jessie, with the serial port on the RPi-3, and with gpsd not suto-starting. I detailed those towards the end of this page: http://www.satsignal.eu/ntp/Raspberry-Pi-quickstart.html I've not had chance to try Lazarus, though. -- David Web: http://www.satsignal.eu -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LCL exports CC-licensed icons to every LCL application
Bart wrote: On 3/23/16, Mark Morgan Lloydwrote: Wandering slightly: I wonder if it would also be possible for the app to get hold of things like the Lazarus and FPC version numbers and SVN revisions? Lazarus version and fpc version is no problem. From my standard AboutDlg: if LazVersion = '' then LazVersion := 'Lazarus '+ LCLVersion; if FpcVersion = '' then FpcVersion := 'FPC ' + {$I %FPCVERSION%}; Agreed. Getting the SVN revision number- useful in particular if you're looking at a binary built with trunk- rather more of a problem. I've hacked together various stuff to retrieve e.g. the build number (optionally) stored by ld which I'd happily contribute if anybody were interested. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LCL exports CC-licensed icons to every LCL application
On 23 March 2016 at 19:33, Mark Morgan Lloyd < markmll.laza...@telemetry.co.uk> wrote: > > Wandering slightly: I wonder if it would also be possible for the app to > get hold of things like the Lazarus and FPC version numbers and SVN > revisions? I'm currently doing this by fudging paths, but it has the > unfortunate side effect that the LCL gets rebuilt on occasion as part of > the app project. Here's everything I found when I first went looking for this kind of info http://forum.lazarus.freepascal.org/index.php/topic,13957.msg155398.html (And I've been using the VersionSupport unit with almost no change since I posted it ..) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LCL exports CC-licensed icons to every LCL application
On 3/23/16, Mark Morgan Lloydwrote: > Wandering slightly: I wonder if it would also be possible for the app to > get hold of things like the Lazarus and FPC version numbers and SVN > revisions? Lazarus version and fpc version is no problem. >From my standard AboutDlg: if LazVersion = '' then LazVersion := 'Lazarus '+ LCLVersion; if FpcVersion = '' then FpcVersion := 'FPC ' + {$I %FPCVERSION%}; Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LCL exports CC-licensed icons to every LCL application
wkitt...@windstream.net wrote: On 03/23/2016 06:11 AM, Mark Morgan Lloyd wrote: Looking at this a different way, could the TApplication object have provision (not necessarily enabled by default) for displaying a splash form which either had a default set of acknowledgements embedded or could gather them from packages etc.? that's what i was wondering... especially since i'm likely not going to try to track down all icons and other similar code that is bundled in code that i got from somewhere (eg: lazarus) and then try to write some acknowledgement of them in some about screen that i generally don't create... if the code comes from a set of libraries that is included by default, there should also be some sort of automatic acknowledgement included as well... silk icons? tango icons? WFT? is this as bad as all those fonts that no one uses??? :sigh: Displaying a splash or clickthrough while an app is starting, or an about box in a uniform format as part of a help menu, is rather an FAQ, and since the IDE doe it well hopefully it would be easy to implement. Wandering slightly: I wonder if it would also be possible for the app to get hold of things like the Lazarus and FPC version numbers and SVN revisions? I'm currently doing this by fudging paths, but it has the unfortunate side effect that the LCL gets rebuilt on occasion as part of the app project. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LCL exports CC-licensed icons to every LCL application
On 23.03.2016 11:11, Mark Morgan Lloyd wrote: Looking at this a different way, could the TApplication object have provision (not necessarily enabled by default) for displaying a splash form which either had a default set of acknowledgements embedded or could gather them from packages etc.? It's a good idea! IMO: it doesn't belong into LCL. There are packages that don't depend on the LCL and should take use of it. Also, what about console applications? 1.) It belongs into FPC sources. 2.) It should be a generic list of acknowledgments (licenses). No GUI whatsoever. Another thing is if package maintainers (e.g. CCR) will take this extra work and really implement it. Anyway, the goal is to have and keep LCL acknowledgment-free. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Testing Rapberry Pi 3 performance
Graeme Geldenhuys wrote: On 2016-03-23 10:22, Mark Morgan Lloyd wrote: The RPi2 is superior in almost every way. I've got an RPi3 here but won't have time to exercise it for at least a few days. My RPi 1 Model B (the original) is still ticking nicely even after so many years of usage. At one stage I used used it as a web server, then as a media player for over two years, running 24/7. Now I use it to test FPC+fpGUI builds for the ARM target. The RPi1 I've got here wasn't reliable, but it could have been a thermal runaway and I'm supposed to be testing it on a battery. From what I've read online, the RPi2 and RPi3 have way more memory and processing speed than mine. So that should be a nice welcome as a lite desktop / development environment. If we continue this it would be better in -other, but I've got a spare 2 and 3 here and would quite like to explore xdmx as we've already discussed. Potentially, a cluster of those could replace my desktop systems: I think they're entirely adequate for development. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LCL exports CC-licensed icons to every LCL application
On 03/23/2016 06:11 AM, Mark Morgan Lloyd wrote: Looking at this a different way, could the TApplication object have provision (not necessarily enabled by default) for displaying a splash form which either had a default set of acknowledgements embedded or could gather them from packages etc.? that's what i was wondering... especially since i'm likely not going to try to track down all icons and other similar code that is bundled in code that i got from somewhere (eg: lazarus) and then try to write some acknowledgement of them in some about screen that i generally don't create... if the code comes from a set of libraries that is included by default, there should also be some sort of automatic acknowledgement included as well... silk icons? tango icons? WFT? is this as bad as all those fonts that no one uses??? :sigh: -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list* unless private contact is specifically requested and granted. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Testing Rapberry Pi 3 performance
On 2016-03-23 10:22, Mark Morgan Lloyd wrote: > The RPi2 is superior in almost every way. I've got an RPi3 here but > won't have time to exercise it for at least a few days. My RPi 1 Model B (the original) is still ticking nicely even after so many years of usage. At one stage I used used it as a web server, then as a media player for over two years, running 24/7. Now I use it to test FPC+fpGUI builds for the ARM target. >From what I've read online, the RPi2 and RPi3 have way more memory and processing speed than mine. So that should be a nice welcome as a lite desktop / development environment. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Testing Rapberry Pi 3 performance
Graeme Geldenhuys wrote: On 2016-03-23 04:56, Anthony Walter wrote:> I recorded a very brief video of the performance of Raspberry Pi and> Lazarus is quite usable. For a computer priced at £22, that is incredible value for money! Istill have the original RPi - maybe it's time for an upgrade. The workawesome as little micro-servers too. :) The RPi2 is superior in almost every way. I've got an RPi3 here but won't have time to exercise it for at least a few days. The Raspberry Pi Zero can, I believe, be run as a USB slave (specifically, USB OTG can be enabled by a kernel patch). That opens the possibility of using it to implement special-purpose input peripherals: has anybody used FPC etc. to play with USB Gadget programming? http://hackaday.com/2016/03/02/hack-a-ps2-keyboard-onto-your-pi-zero/ http://isticktoit.net/?p=1383 -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LCL exports CC-licensed icons to every LCL application
Ondrej Pokorny wrote: Corresponding issue report: http://mantis.freepascal.org/view.php?id=29869 Every LCL application includes icons (at least) from the famfamfam (Silk icon set) that are licensed under Creative Commons Attribution 2.5/3.0 license. As a result every LCL application that does not acknowledge them, breaks the CC license. LCL is advertised as "(L)GPL licensed with static linking exception", which is not true because the LCL includes CC-licensed icons. The Lazarus team will solve the issue for 1.6.2. We'll try to get a license exception for LCL applications. If we don't get this exception all CC-licensed icons will be removed from the LCL and will be replaced by public-domain icons. For now, please take into consideration that your LCL application must acknowledge the Silk Icon Set http://www.famfamfam.com/lab/icons/silk/ . Looking at this a different way, could the TApplication object have provision (not necessarily enabled by default) for displaying a splash form which either had a default set of acknowledgements embedded or could gather them from packages etc.? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpspreadsheet - automatic column width
TOP !! Thanks, Roberto 2016-03-22 17:24 GMT+01:00 Werner Pamler: > > Am 22.03.2016 um 16:16 schrieb Roberto P.: > >> To make it work well enough, I am still missing one point: is there a way >> to detect which is the last used row in a column or the last used column in >> a row? >> A single cell is "not enough". >> > TsWorksheet.GetLastOcccupiedRowIndex, GetLastOccupiedColIndex determine > the indexes of the last cell of the worksheet. > > There's also a TsWorksheet.GetLastRowIndex, GetLastColIndex which > consider also Row and Column records (needed for predefined row heights and > column widths) beyond the last occupied cell. Both have an optional > parameter "ForceCalculation" which you should set to true in your first > call in order to initialize the cached value. > > > -- > ___ > 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] LCL exports CC-licensed icons to every LCL application
On 2016-03-23 08:30, Ondrej Pokorny wrote: > There are still some icons with unknown origin. I created the following icons for the IDE: Source -> Comment Selection Source -> Uncomment Selection Source -> Toggle Comment in Selection Edit -> Uppercase Selection Edit -> Lowercase Selection Edit -> Swap case in selection Edit -> Sort Selection Apply whatever licensing you see fit for those. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LCL exports CC-licensed icons to every LCL application
On 21.03.2016 9:54, Ondrej Pokorny wrote: For now, please take into consideration that your LCL application must acknowledge the Silk Icon Set http://www.famfamfam.com/lab/icons/silk/ I replaced all Silk icons with icons from Tango in r52023. The biggest advantage is that the tango icons are SVG and nice PNG versions exist for different resolutions. So if we want to make these LCL icons high-DPI aware in the future, we can easily use the same icons in higher resultion. This wasn't possible with the Silk icons. There are still some icons with unknown origin. I am waiting for Paul's answer where he got the icons from. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Testing Rapberry Pi 3 performance
On 2016-03-23 04:56, Anthony Walter wrote: > I recorded a very brief video of the performance of Raspberry Pi and > Lazarus is quite usable. For a computer priced at £22, that is incredible value for money! I still have the original RPi - maybe it's time for an upgrade. The work awesome as little micro-servers too. :) Regards, - Graeme - -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SVN - SIGSEGV in external C lib when Lazarus in Debug mode (Qt)
On 03/22/2016 09:58 PM, Krzysztof wrote: Hi, I have music player based on Bass library. It can play online radio and signal (metadata) if song in radio has changed. Code is quite old and Bass binary is not changed. Recently I updated SVN source (I need to use it because it has important bug fixes), rebuild Lazarus and receive metadata stopped worked but only in Debug mode, Release is working fine. This is output in debug mode: TApplication.HandleException Unknown Run-Time error : 202 Stack trace: $00437E5F $7F38A2AF6634 QObject: Cannot create children for a parent that is in a different thread. (Parent is Oxygen::WidgetStateEngine(0x2812a90), parent's thread is QThread(0x272ddb0), current thread is QThread(0x7f387d20) QObject: Cannot create children for a parent that is in a different thread. (Parent is Oxygen::WidgetStateEngine(0x28161e0), parent's thread is QThread(0x272ddb0), current thread is QThread(0x7f387d20) QObject: Cannot create children for a parent that is in a different thread. (Parent is Oxygen::WidgetStateEngine(0x28161e0), parent's thread is QThread(0x272ddb0), current thread is QThread(0x7f387d20) QObject: Cannot create children for a parent that is in a different thread. (Parent is Oxygen::WidgetStateEngine(0x2812a90), parent's thread is QThread(0x272ddb0), current thread is QThread(0x7f387d20) QObject: Cannot create children for a parent that is in a different thread. (Parent is Oxygen::WidgetStateEngine(0x28161e0), parent's thread is QThread(0x272ddb0), current thread is QThread(0x7f387d20) QObject: Cannot create children for a parent that is in a different thread. (Parent is Oxygen::WidgetStateEngine(0x28161e0), parent's thread is QThread(0x272ddb0), current thread is QThread(0x7f387d20) QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPainter::begin: Paint device returned engine == 0, type: 2 QPixmap: It is not safe to use pixmaps outside the GUI thread 1. Try to run your application with another style. eg myapplication -styke plastique and see if you have same problem with children creation. 2.Using QPixmap outside of main thread is a big no-no, for that purpose you must use QImage. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus