Re: [Lazarus] Cannot compile EpikTimer

2014-09-05 Thread Marco van de Voort
On Fri, Sep 05, 2014 at 05:55:46PM +0100, Graeme Geldenhuys wrote:
> > OS. (e.g. freebSD MONOTONIC vs MONOTONIC_FAST, the latter I'd expect 
> > in a
> > gettickcount)
> 
> 
> Did you see my patch in FPC Mantis regarding this?  If it's not 100% 
> correct (I'm a total newbie when it comes to compiler development), 
> hopefully it is at least a good starting point to implement this in 
> FreeBSD. Any feedback would be appreciated.

I committed it, since the patch itself was ok. Maybe it should have been
attempted to come to one implementation for free/open/net in bsd.pas though.

What I was hinting above maybe the sysutils code should use MONOTONIC_FAST,
not MONOTONIC on FreeBSD. Granularity worsens, but performnace improves.

It depends on what the sysutils routine is supposed to favor.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fuzzy translations ignored

2014-09-05 Thread Giuliano Colla


Il 05/09/2014 09:35, Reinier Olislagers ha scritto:

On 04/09/2014 23:34, Giuliano Colla wrote:

But in that case it would be an advantage for developers (few) and a
disadvantage for users (many).

No, it would be an advantage for the users because they don't get
inferior quality or incorrect translations...
Rather, it makes it painfully clear that the translator has not finished
100% of the translation.
A change from "Exit" to "Quit" (it happened) marks the translation 
fuzzy, and this may go unnoticed by many translators. Is it a good 
reason not to show the old translation?
I'm afraid that users unfamiliar with Latin alphabet (such as Chinese, 
Russians, arabs, etc.) will hardly agree with your opinion.

Apparently not showing fuzzy translations is the standard way in other
open source projects. I remember a bug report that probably kicked off
the change referring to that (but don't know the mantis number).
msgfmt provides the flag -f to accommodate the need to show fuzzy 
translations.

Regardless of the setting, fuzzy strings will have to be dealt with and
(as both a developer and translator) I'm happy that Laz now aligns with
general practice.
On this point I fully agree with you. It would be nice if the steps 
before any release did include a quick check to the po files just to 
verify the amount of fuzzy and untranslated strings, in order to alert 
translators accordingly.
Pochecker might be improved to provide a more user friendly quick full 
view of the status of all the translations in a folder, sort of what 
KBabel provided in the past. I'll look into it.


Giuliano


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cannot compile EpikTimer

2014-09-05 Thread Graeme Geldenhuys



On Friday 05/09/2014 at 14:17, Marco van de Voort  wrote:


Trouble is that monotonic clock support is an optional part of the 
standard,
AND the cheapness/accurancy tradeoffs of the same constants may vary 
with
OS. (e.g. freebSD MONOTONIC vs MONOTONIC_FAST, the latter I'd expect 
in a

gettickcount)



Did you see my patch in FPC Mantis regarding this?  If it's not 100% 
correct (I'm a total newbie when it comes to compiler development), 
hopefully it is at least a good starting point to implement this in 
FreeBSD. Any feedback would be appreciated.


Regards,
 Graeme
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Script to install set of libraries after compiling a new build of Lazarus?

2014-09-05 Thread vfclists .
On 5 September 2014 13:59, . fox  wrote:

> It might not be the best answer you were looking for but when I recompile
> lazarus I issue this command
>
> make clean lazbuild useride starter
>
> It install the packages that I previously added.
>
> -
> goldenfox
>
> --
> Date: Fri, 5 Sep 2014 10:58:31 +0100
> From: vfcli...@gmail.com
> To: lazarus@lists.lazarus.freepascal.org
> Subject: [Lazarus] Script to install set of libraries after compiling a
> new build of Lazarus?
>
>
>
> Is there a standard script that you can a list of libraries that you want
> compiled and installed if necessary after you create a new Lazarus build?
>
> I find myself having to add my preferred libraries manually and it gets
> tedious.
>
>
> --
> Frank Church
>
> ===
> http://devblog.brahmancreations.com
>
> -- ___ 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
>
>


I am referring to the instance when you download a new version of Lazarus
and FPC to compile, rather than rebuilding the existing IDE.

-- 
Frank Church

===
http://devblog.brahmancreations.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cannot compile EpikTimer

2014-09-05 Thread Marco van de Voort
On Tue, Sep 02, 2014 at 07:00:49PM +0100, Graeme Geldenhuys wrote:
> It seems FPC it out of date then. Because clock_gettime is a POSIX.1 
> standard, and FreeBSD has support for it.

Trouble is that monotonic clock support is an optional part of the standard,
AND the cheapness/accurancy tradeoffs of the same constants may vary with
OS. (e.g. freebSD MONOTONIC vs MONOTONIC_FAST, the latter I'd expect in a
gettickcount)
 

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Script to install set of libraries after compiling a new build of Lazarus?

2014-09-05 Thread . fox
It might not be the best answer you were looking for but when I recompile 
lazarus I issue this command
make clean lazbuild useride starter
It install the packages that I previously added.
-goldenfox

Date: Fri, 5 Sep 2014 10:58:31 +0100
From: vfcli...@gmail.com
To: lazarus@lists.lazarus.freepascal.org
Subject: [Lazarus] Script to install set of libraries after compiling a new 
build of Lazarus?


Is there a standard script that you can a list of libraries that you want 
compiled and installed if necessary after you create a new Lazarus build?
I find myself having to add my preferred libraries manually and it gets tedious.
-- 
Frank Church

===
http://devblog.brahmancreations.com


--
___
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] Help needed with bug 22485 ContextHelpDemo doesn't show proper help page & shows errors

2014-09-05 Thread Reinier Olislagers
With Lazarus trunk x86, FPC trunk, Windows, the CHM help demo
Starting lhelp (using F1 in the Tedits or the button) gives "Help Viewer
Error", lhelp does not respond.

1. Is this reproducible on other OSes/FPC combinations?
2. I've tried to investigate the cause but I'm stuck. My notes below -
help/hints would be appreciated.
Thanks.

The error message shown is:
Dialog:
caption:
Help Viewer Error
text:
lhelp does not respond

lclconstants:
rsHelpViewerError = 'Help Viewer Error';
lazhelpintf.pas
procedure THelpDatabases.ShowError(ShowResult: TShowHelpResult;
  const ErrMsg: string);
//if ShowResult is
shrViewerError: ErrorCaption:=rsHelpViewerError;
...
MessageDlg(ErrorCaption,ErrMsg,mtError,[mbCancel],0);

So apparently we get an shrViewerError somewhere but I cannot find where
THelpDatabases.ShowError is called?
lazhelpchm.pas does have
function TLHelpConnector.ShowNode(Node: THelpNode; var ErrMsg: string
  ): TShowHelpResult;
//fallback/default
Result:=shrViewerError;
//later on:
Response:=Connection.OpenURL(CHMFilename,SubPath);
  case Response of
..
  srNoAnswer: ErrMsg:='lhelp does not respond';

So apparently we get an srNoAnswer in our OpenURL call??

At the lhelp end:
In lhelpcore.pas with debugging enabled, I see entries like
got rturl, filename C:\development\lazarus\tools\chmmaker\example.chm,
url /MainPage.html
and the function sends srSuccess
so we get proper handling in THelpForm.ServerMessage?!?
(The OpenURL function CANNOT return srNoAnswer - default result is
srInvalidURL; srNoAnswer is never assigned??)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Script to install set of libraries after compiling a new build of Lazarus?

2014-09-05 Thread vfclists .
Is there a standard script that you can a list of libraries that you want
compiled and installed if necessary after you create a new Lazarus build?

I find myself having to add my preferred libraries manually and it gets
tedious.


-- 
Frank Church

===
http://devblog.brahmancreations.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [FEATURE REQUEST] Tip of the day

2014-09-05 Thread Mattias Gaertner
On Fri, 05 Sep 2014 08:06:57 +
Mark Morgan Lloyd  wrote:

> Mattias Gaertner wrote:
> > On Thu, 4 Sep 2014 18:22:18 -0300
> > silvioprog  wrote:
> > 
> >> [...]
> >> Well, it was just a feature request based in an useful idea, but it can be
> >> discarded without problem. :-)
> > 
> > Feel free to create a package that adds the TOTD.
> > If it is nice, we can add it by default.
> 
> A dialogue at startup that could warn of any known major problems or 
> otherwise display a tip or season's greeting might be attractive,

That would be nice.

>[..]
> Something like RSS might have a place here, but in any event startup 
> shouldn't be delayed if connection can't be made.

That's not nice.

Mattias


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [FEATURE REQUEST] Tip of the day

2014-09-05 Thread Mark Morgan Lloyd

Mattias Gaertner wrote:

On Thu, 4 Sep 2014 18:22:18 -0300
silvioprog  wrote:


[...]
Well, it was just a feature request based in an useful idea, but it can be
discarded without problem. :-)


Feel free to create a package that adds the TOTD.
If it is nice, we can add it by default.


A dialogue at startup that could warn of any known major problems or 
otherwise display a tip or season's greeting might be attractive, but it 
should definitely not be enabled by default since it could be 
interpreted as a "phone home" that enabled the project to monitor 
Lazarus users.


Something like RSS might have a place here, but in any event startup 
shouldn't be delayed if connection can't be made.


--
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] Fuzzy translations ignored

2014-09-05 Thread Reinier Olislagers
On 04/09/2014 23:34, Giuliano Colla wrote:
> But in that case it would be an advantage for developers (few) and a
> disadvantage for users (many).

No, it would be an advantage for the users because they don't get
inferior quality or incorrect translations...
Rather, it makes it painfully clear that the translator has not finished
100% of the translation.

Apparently not showing fuzzy translations is the standard way in other
open source projects. I remember a bug report that probably kicked off
the change referring to that (but don't know the mantis number).

Regardless of the setting, fuzzy strings will have to be dealt with and
(as both a developer and translator) I'm happy that Laz now aligns with
general practice.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus