Re: [Lazarus] What can be wrong,so this errors create?

2015-01-31 Thread FreeMan
2-) After update fpc to R29590, now lazarus IDE widgetset macro works 
correct. $(LCLWidgetType)


On 31.01.2015 13:26, FreeMan wrote:

fpc  lazarus svn, osx, QT x64

1-) in lcl.lpk. all issues.xml node's has a ' exclamation mark' 
glyph, all files is there

2-) widgetset is QT x64, why looking for carbon files working?

Messages, Warnings: 2
Warning: other sources path of package lnetbase 0.6.6 contains 
directory ../lib, which is already in the unit search path.

Compiling package LCL 1.5: Exit code 256, Errors: 12, Warnings: 1
carbonproc.pp(511,13) Error: Identifier not found ATSUFindFontFromName
carbonproc.pp(534,14) Error: Identifier not found ATSUFindFontName
carbonproc.pp(541,14) Error: Identifier not found ATSUFindFontName
carbonproc.pp(562,11) Error: Identifier not found 
FMGetFontFamilyFromName

carbonproc.pp(669,5) Error: Identifier not found HIViewChangeFeatures
carbonproc.pp(672,11) Error: Identifier not found HIViewSetVisible
carbonproc.pp(673,11) Error: Identifier not found HIViewSetFrame
carbonproc.pp(696,3) Error: Identifier not found GetControlBounds
carbonproc.pp(706,3) Error: Identifier not found SetControlData
carbonproc.pp(731,36) Error: Identifier not found GetControlEventTarget
carbonproc.pp(1345,12) Error: Identifier not found GetThemeFont
carbonproc.pp(1345,43) Error: Identifier not found GetApplicationScript
carbonproc.pp(1347,28) Warning: Local variable sz does not seem to 
be initialized




--
___
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] Lazarus project compile flags

2015-01-31 Thread Michael Van Canneyt



On Sat, 31 Jan 2015, Mehmet Erol Sanliturk wrote:




On Sat, Jan 31, 2015 at 12:26 AM, Michael Van Canneyt mich...@freepascal.org 
wrote:


  On Fri, 30 Jan 2015, Mehmet Erol Sanliturk wrote:

      Why do you think so ?

      I have a fully automated build environment that uses 
lazbuild, guided by a custom written program and a
shell script.
      It works transparantly on linux and windows. It results in an 
installer on both platforms: inno setup on
windows,
      self-extracting shell script on linux, built from the same 
.iss file.

  [snip]

Are these ( program sources and shell script ) open to public ?
If Yes , would you please supply link(s) to download ?


  They are not available for public.

  I can supply the '.iss - zip file' code for linux, if that is of any use.

  Michael.

  --



Dear Michael ,

My main interest is to learn to generate install files for FreeBSD similar to 
Linux .
Therefore , I do not know whether I can use the '.iss - zip file' code for 
linux for such work .
You know better than me .


.iss is the source file for an Inno Setup installer, an installer for Windows.

I have FPC code that converts the [Files] section to a Zip file, which is then
bundled with a custom setup.sh shell script to create a self-extracting installer. 
This is done with makeself (check internet for makeself).


The self-extracting installer works on any linux system that has unzip 
installed.
Even that can probably be reduced to simply tar and compress, given some work.

According to the author, the makeself self-extractor should work on any unix 
compatible system.


If this is an acceptable procedure for you, then I can send the sources 
and the setup.sh script.


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


Re: [Lazarus] HEADS UP: FPC 3.0.1 stable branched off.

2015-01-31 Thread Mark Morgan Lloyd

Sergei Gorelkin wrote:
30.01.2015 17:39, Mark Morgan Lloyd ?: On mipsel running on Qemu 
compiling Lazarus fails with .. (9009) Assembling codecache (3104) 
Compiling customcodetool.pas (3104) Compiling codetree.pas 
/usr/local/share/lazarus-trunk-47318/components/codetools/codetree.pas(824,1) 
Fatal: Internal error 2013022101 Fatal: (1018) Compilation aborted 
make[1]: *** [codetools.ppu] Error 1 make[1]: Leaving directory 
`/usr/local/share/lazarus-trunk-47318/components/codetools' make: *** 
[codetools] Error 2I reproduced it, it's caused by combination of leaf 
function with open array parameter passed by value and 
{$implicitexceptions off} directive. Pretty rare stuff to meet in 
regular code. Will try to fix.

Regards,Sergei


Thanks Sergei, I'm glad I'm not imagining things :-)

I'd quite like to look at the same combination on a couple more 
architectures, when I'm done I'll raise some bug reports.


I know that I should be following trunk for testing, but particularly 
with some of the slower systems a compiler or Lazarus build takes long 
enough that it's more practical to call an arbitrary revision a testing 
checkpoint.


--
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] Lazarus project compile flags

2015-01-31 Thread Mehmet Erol Sanliturk
On Sat, Jan 31, 2015 at 6:42 AM, Michael Van Canneyt mich...@freepascal.org
 wrote:



 On Sat, 31 Jan 2015, Mehmet Erol Sanliturk wrote:



 On Sat, Jan 31, 2015 at 12:26 AM, Michael Van Canneyt 
 mich...@freepascal.org wrote:


   On Fri, 30 Jan 2015, Mehmet Erol Sanliturk wrote:

   Why do you think so ?

   I have a fully automated build environment that uses
 lazbuild, guided by a custom written program and a
 shell script.
   It works transparantly on linux and windows. It results
 in an installer on both platforms: inno setup on
 windows,
   self-extracting shell script on linux, built from the
 same .iss file.

   [snip]

 Are these ( program sources and shell script ) open to public
 ?
 If Yes , would you please supply link(s) to download ?


   They are not available for public.

   I can supply the '.iss - zip file' code for linux, if that is of
 any use.

   Michael.

   --



 Dear Michael ,

 My main interest is to learn to generate install files for FreeBSD
 similar to Linux .
 Therefore , I do not know whether I can use the '.iss - zip file' code
 for linux for such work .
 You know better than me .


 .iss is the source file for an Inno Setup installer, an installer for
 Windows.

 I have FPC code that converts the [Files] section to a Zip file, which is
 then
 bundled with a custom setup.sh shell script to create a self-extracting
 installer. This is done with makeself (check internet for makeself).

 The self-extracting installer works on any linux system that has unzip
 installed.
 Even that can probably be reduced to simply tar and compress, given some
 work.

 According to the author, the makeself self-extractor should work on any
 unix compatible system.

 If this is an acceptable procedure for you, then I can send the sources
 and the setup.sh script.

 Michael.
 --


Please do not worry fro me .



Thank you very much .

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


Re: [Lazarus] Lazarus project compile flags

2015-01-31 Thread Michael Van Canneyt



On Fri, 30 Jan 2015, Mehmet Erol Sanliturk wrote:


  Why do you think so ?

  I have a fully automated build environment that uses lazbuild, guided by 
a custom written program and a shell script.
  It works transparantly on linux and windows. It results in an installer 
on both platforms: inno setup on windows,
  self-extracting shell script on linux, built from the same .iss file.


[snip]


Are these ( program sources and shell script ) open to public ?
If Yes , would you please supply link(s) to download ?


They are not available for public.

I can supply the '.iss - zip file' code for linux, if that is of any use.

Michael.

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


Re: [Lazarus] Lazarus project compile flags

2015-01-31 Thread FreeMan

Hi Michael,
Is it possible share simple example or link for example? I'm interesting 
use iss for linux. If I'm not wrong that can work in osx too.

Thank you.

On 31.01.2015 10:26, Michael Van Canneyt wrote:

They are not available for public.

I can supply the '.iss - zip file' code for linux, if that is of any 
use.


Michael.



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


Re: [Lazarus] Is it posibble change cursor in source editor

2015-01-31 Thread Martin Frb

On 29/01/2015 14:59, Martin Frb wrote:

On 29/01/2015 14:41, FreeMan wrote:

On osx,
color set twilight, in source editor cursor not viewing, system color 
is black for cursor too. Can it be colored in source editor?


Not that I know.

The caret is drawn by the OS. At least on windows. Apparently GTK does 
not have it, and the code in the Lcl/widgetset emulates it (but has no 
property for color).

On Mac, I do not know what happens.

SynEdit can influence the shape of the caret. But the IDE has no 
setting to influence this, you would have to add your own change in 
the IDE code.


It might be now, but you need to do a couple of code changes, since no 
options exist.


unit:
components\synedit\syneditpointclasses.pas

line 2410
constructor TSynEditScreenCaret.Create(AHandleOwner: TWinControl);

change (old)
  FCaretPainter := TSynEditScreenCaretPainterSystem.Create(AHandleOwner);
into (new)
  FCaretPainter := TSynEditScreenCaretPainterInternal.Create(AHandleOwner);


Then find  (same unit),
procedure TSynEditScreenCaretPainterInternal.Paint;

and change the color
- black inverts
- white does nothing
- red inverts the blue and green, but leaves red untouched.
if you have some medium grey as background, try $808080




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


Re: [Lazarus] Is it posibble change cursor in source editor

2015-01-31 Thread FreeMan

thank you Martin, I can look next week.

On 31.01.2015 21:24, Martin Frb wrote:


It might be now, but you need to do a couple of code changes, since no 
options exist.


unit:
components\synedit\syneditpointclasses.pas

line 2410
constructor TSynEditScreenCaret.Create(AHandleOwner: TWinControl);

change (old)
  FCaretPainter := TSynEditScreenCaretPainterSystem.Create(AHandleOwner);
into (new)
  FCaretPainter := 
TSynEditScreenCaretPainterInternal.Create(AHandleOwner);



Then find  (same unit),
procedure TSynEditScreenCaretPainterInternal.Paint;

and change the color
- black inverts
- white does nothing
- red inverts the blue and green, but leaves red untouched.
if you have some medium grey as background, try $808080



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


[Lazarus] What can be wrong,so this errors create?

2015-01-31 Thread FreeMan

fpc  lazarus svn, osx, QT x64

1-) in lcl.lpk. all issues.xml node's has a ' exclamation mark' glyph, 
all files is there

2-) widgetset is QT x64, why looking for carbon files working?

Messages, Warnings: 2
Warning: other sources path of package lnetbase 0.6.6 contains 
directory ../lib, which is already in the unit search path.

Compiling package LCL 1.5: Exit code 256, Errors: 12, Warnings: 1
carbonproc.pp(511,13) Error: Identifier not found ATSUFindFontFromName
carbonproc.pp(534,14) Error: Identifier not found ATSUFindFontName
carbonproc.pp(541,14) Error: Identifier not found ATSUFindFontName
carbonproc.pp(562,11) Error: Identifier not found FMGetFontFamilyFromName
carbonproc.pp(669,5) Error: Identifier not found HIViewChangeFeatures
carbonproc.pp(672,11) Error: Identifier not found HIViewSetVisible
carbonproc.pp(673,11) Error: Identifier not found HIViewSetFrame
carbonproc.pp(696,3) Error: Identifier not found GetControlBounds
carbonproc.pp(706,3) Error: Identifier not found SetControlData
carbonproc.pp(731,36) Error: Identifier not found GetControlEventTarget
carbonproc.pp(1345,12) Error: Identifier not found GetThemeFont
carbonproc.pp(1345,43) Error: Identifier not found GetApplicationScript
carbonproc.pp(1347,28) Warning: Local variable sz does not seem to be 
initialized


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


Re: [Lazarus] HEADS UP: FPC 3.0.1 stable branched off.

2015-01-31 Thread Sergei Gorelkin

30.01.2015 17:39, Mark Morgan Lloyd пишет:


On mipsel running on Qemu compiling Lazarus fails with

..
(9009) Assembling codecache
(3104) Compiling customcodetool.pas
(3104) Compiling codetree.pas
/usr/local/share/lazarus-trunk-47318/components/codetools/codetree.pas(824,1) 
Fatal: Internal error
2013022101
Fatal: (1018) Compilation aborted
make[1]: *** [codetools.ppu] Error 1
make[1]: Leaving directory 
`/usr/local/share/lazarus-trunk-47318/components/codetools'
make: *** [codetools] Error 2

I reproduced it, it's caused by combination of leaf function with open array parameter passed by 
value and {$implicitexceptions off} directive. Pretty rare stuff to meet in regular code. Will try 
to fix.


Regards,
Sergei



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


Re: [Lazarus] Lazarus project compile flags

2015-01-31 Thread Mehmet Erol Sanliturk
On Sat, Jan 31, 2015 at 12:26 AM, Michael Van Canneyt 
mich...@freepascal.org wrote:



 On Fri, 30 Jan 2015, Mehmet Erol Sanliturk wrote:

Why do you think so ?

   I have a fully automated build environment that uses lazbuild,
 guided by a custom written program and a shell script.
   It works transparantly on linux and windows. It results in an
 installer on both platforms: inno setup on windows,
   self-extracting shell script on linux, built from the same .iss
 file.

  [snip]


 Are these ( program sources and shell script ) open to public ?
 If Yes , would you please supply link(s) to download ?


 They are not available for public.

 I can supply the '.iss - zip file' code for linux, if that is of any use.

 Michael.

 --



Dear Michael ,

My main interest is to learn to generate install files for FreeBSD similar
to Linux .
Therefore , I do not know whether I can use the '.iss - zip file' code for
linux for such work .
You know better than me .

Thank you very much .

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