Re: [Lazarus] Cross-compiling - MIPS

2012-10-22 Thread Mark Morgan Lloyd

SkyDiablo wrote:

hiho!

i search a solution to build my hello world source from my windows x64 
system to a openWRT (linux) with a MIPS CPU system - cross-compiling?


i do not find a working solution :( now i'm trying to build with a 
debian system, but is dosnt work for now :(


First, this is the Lazarus conf and while FPC now works (subject to some 
potential code generation issues) targeting little-endian MIPS it's 
probably some while before Lazarus will. The issue here is that building 
Lazarus requires the current stable version of FPC (2.6.0), while MIPS 
is only available for trunk (2.7.1 from svn).


I suggest that this is better-discussed in the fpc-pascal mailing list, 
but you'll find notes on building MIPS binutils etc. at 
http://wiki.lazarus.freepascal.org/Native_MIPS_Systems (these are 
applicable to Linux). I suggest that you could usefully review the 
thread at 
http://lists.freepascal.org/lists/fpc-devel/2012-October/030071.html 
which might be a better place to discuss things if you have problems 
building the compiler.


Note that I'm a long way down the list as far as skill is concerned, and 
make no claim to understand what I'm doing.


--
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] Cross-compiling - MIPS

2012-10-22 Thread Michael Schnell

Hi,
I suggest first seeking for help to do a command line Hello World for 
your MIPS system in the fpc developer's mailing ( 
fpc-de...@lists.freepascal.org ) list and when this works, try to do a 
Lazarus application, as same involves  compiling the LCL for MIPS which 
I suppose is a decent challenge.


-Michael

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


Re: [Lazarus] Cross-compiling - MIPS

2012-10-22 Thread Henry Vermaak
On 22/10/12 09:20, Mark Morgan Lloyd wrote:
 SkyDiablo wrote:
 hiho!

 i search a solution to build my hello world source from my windows
 x64 system to a openWRT (linux) with a MIPS CPU system -
 cross-compiling?

 i do not find a working solution :( now i'm trying to build with a
 debian system, but is dosnt work for now :(
 
 First, this is the Lazarus conf and while FPC now works (subject to some
 potential code generation issues) targeting little-endian MIPS it's
 probably some while before Lazarus will. The issue here is that building
 Lazarus requires the current stable version of FPC (2.6.0), while MIPS
 is only available for trunk (2.7.1 from svn).

I built lazarus with fpc 2.7.1 for armhf this weekend.  Why do you say
2.6.0 is needed?

Henry

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


Re: [Lazarus] Cross-compiling - MIPS

2012-10-22 Thread Mark Morgan Lloyd

Michael Schnell wrote:

Hi,
I suggest first seeking for help to do a command line Hello World for 
your MIPS system in the fpc developer's mailing ( 
fpc-de...@lists.freepascal.org ) list and when this works, try to do a 
Lazarus application, as same involves  compiling the LCL for MIPS which 
I suppose is a decent challenge.


I've not attempted compiling Lazarus for MIPS yet because of the FPC 
version issue and because at present I'm only running MIPS as a Qemu 
guest and performance is poor (in fact, I suspect is worse than when I 
first installed it). It runs well on SPARC which is one of the more 
demanding platforms in terms of alignment requirements etc.


Much of the performance issue could be sidestepped by doing a 
cross-build, but that's something that I've always managed to avoid. 
Note that for non-x86 targets there are a couple of IDE issues relating 
to the target processor type, opcode formats and so on (just leave these 
set to the default).


http://mantis.freepascal.org/view.php?id=20310
http://mantis.freepascal.org/view.php?id=20311

--
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] Cross-compiling - MIPS

2012-10-22 Thread Mark Morgan Lloyd

Henry Vermaak wrote:


First, this is the Lazarus conf and while FPC now works (subject to some
potential code generation issues) targeting little-endian MIPS it's
probably some while before Lazarus will. The issue here is that building
Lazarus requires the current stable version of FPC (2.6.0), while MIPS
is only available for trunk (2.7.1 from svn).


I built lazarus with fpc 2.7.1 for armhf this weekend.  Why do you say
2.6.0 is needed?


Because of the feeling with which most developers insist that 2.6.0 is 
the one true way :-)


OK, I'll try it for MIPS in a couple of days. I presume you were using 
Lazarus trunk.


--
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] What's going on with GTK on lazarus 1.0.2 from SVN?

2012-10-22 Thread Torsten Bonde Christiansen

On 2012-10-19 20:55, Krzysztof wrote:

Hi,

Are some serious changes implementing in GTK interface right now? I'm
the author and maintainer of BGRA Controls package which are using
BGRA Bitmap package for drawing. Issues:

1. First, I can't compile BGRA Bitmap package without comment line:

{ifdef LCL_GTK2}
type TGtkDeviceContext = TGtk2DeviceContext;
{$endif}

What happened with TGtk2DeviceContext? This same with other non-BGRA
controls like VirtualTreeView (but there is more GTK errors than only
TGtk2DeviceContext )

2. BGRA Controls are using simple BGRA Bitmap api for drawing:
BGRABitmap.Draw(Canvas, 0,0,false). This code worked from a several
years, but now seems that GTK coordinates are different. If I drag (or
in runtime) some BGRA Control on center of the form, I don't see what
is drawed, just transparent frame, but If I move control to left-top
corner then I see control body. Seems that GTK is starting drawing
from form canvas, not control.

I notified this a few days ago, I thought that this is some temporary
issue, but with today trunk is the same problem.

Regards, Dibo

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
This also affects LCLExtension (v0.5) from 
http://code.google.com/p/luipack/downloads/list

which cannot compile due to this.

Regards,
Torsten.

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


Re: [Lazarus] Cross-compiling - MIPS

2012-10-22 Thread Henry Vermaak
On 22/10/12 10:02, Mark Morgan Lloyd wrote:
 Henry Vermaak wrote:
 I built lazarus with fpc 2.7.1 for armhf this weekend.  Why do you say
 2.6.0 is needed?
 
 Because of the feeling with which most developers insist that 2.6.0 is
 the one true way :-)

Yes, I tend to use 2.6.0, too, but armhf port doesn't exist in 2.6.0
(afaik) :)

 OK, I'll try it for MIPS in a couple of days. I presume you were using
 Lazarus trunk.

Yes.  I remember a rule that lazarus trunk is supposed to compile with
both the latest fpc release and fpc trunk.  Don't know if that's still
the case, though.

Henry

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


Re: [Lazarus] Cross-compiling - MIPS

2012-10-22 Thread Vincent Snijders
2012/10/22 Henry Vermaak henry.verm...@gmail.com:
 Yes.  I remember a rule that lazarus trunk is supposed to compile with
 both the latest fpc release and fpc trunk.  Don't know if that's still
 the case, though.

And with fixes head, because that is likely to be used by the next FPC release.

Vincent

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


Re: [Lazarus] What's going on with GTK on lazarus 1.0.2 from SVN?

2012-10-22 Thread Krzysztof
I have posted report for this issue:
http://bugs.freepascal.org/view.php?id=23168

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


Re: [Lazarus] Synchronize scrollposition of two stringgrids

2012-10-22 Thread Rimmert Ooink
On Tue, Oct 16, 2012 at 8:55 AM, Rimmert Ooink laza...@ooink.net wrote:
 On Tue, Oct 16, 2012 at 1:54 AM, Jesus Reyes jesus...@yahoo.com.mx wrote:

 Does anybody have an idea how to change the scrollposition of a stringgrid 
 depending on the scrollpos of the other?
 sg1.LeftCol := sg2.LeftCol;

 For pixel granularity, without messing with grids internals, could be done 
 using GetScrollInfo for both scrollbars on source grid and using 
 SetScrollInfo for both scrollbars on target grid.

Anybody an idea why the code below doesn't work?
GetScrollBarPosition does seem to return the correct value, but the
call to ScrollbarPosition doesn't seem to work.
On windows it actually cals SetScrollInfo as mentioned, but doesn't
seem to do anything.

Thanks!

type
  TGridHack = class(TStringGrid)
  public
procedure SyncTo(grd: TStringGrid);
  end;

implementation

{ TGridHack }

procedure TGridHack.SyncTo(grd: TStringGrid);
begin
  //LeftCol := grd.LeftCol;
  ScrollBarPosition(SB_Horz, TGridHack(grd).GetScrollBarPosition(SB_Horz));
  //ScrollBarPosition(SB_Vert, TGridHack(grd).GetScrollBarPosition(SB_Vert));
end;

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


[Lazarus] sysenvapis.inc is missing few web browsers patch to solve it

2012-10-22 Thread ik
Hello,

sysenvapis.inc is missing few browsers, including debian/ubuntu way of
general execution.

I'm attaching a patch to add them.
I wrote also text based browsers, but commented them, because I'm not
sure if it's a good idea to add them.

Ido


sysenvapis.inc.patch.gz
Description: GNU Zip compressed data
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus