Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Michael Schnell

On 01/21/2016 10:42 AM, Bo Berglund wrote:
I could probably rip out the APro component and replace it with a 
TCPIP socket one instead since the RS232 is not going to be used anymore.


The beauty of AsyncPro is that it provides the same user interface for 
serial and socket component. Hence a serial port could be local or done 
with a "ComServer" device without a problem


-Michael.



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


[Lazarus] How to install LNet package in Lazarus 1.6RC2?

2016-01-21 Thread Bo Berglund
Want to install LNet into the Lazarus component palette in order to
create a GUI program with TCPIP socket communications. I have already
installed the lnet package in FPC 3.0.0 using the fppkg command line
function. Then I could use lnet in a console program.
 
Now I need the visual components for lnet in Lazarus 1.6RC2, but I
could not find how to install them.
I have only found this on the Internet:
http://wiki.freepascal.org/lNet#Installation
and its description does not work...

1) I have extracted the lnet-0.6.5.zip file into components.
Contrary to directions there was no lnet- dir created, just a
lnet dir without any version number.

2) Next I am supposed to open the lnetvisual.lpk package file in
Lazarus "Component/Open", but there is no such "Component" menu
command in my Lazarus!
The closest I get is "Package/Open package file", so I tried that.

3) Next step is "Click on Install", but there exists no such button or
function!

Since already at the first step the instruction was incorrect I might
have wandered totally off track here.

Please supply a correct instruction to install lnet components in
Lazarus 1.6RC2 (maybe not possible?)
(And update the wiki page above.)

-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Michael Schnell

On 01/21/2016 01:25 PM, Mark Morgan Lloyd wrote:


I didn't say anything wouldn't work.

Sorry. I took "issue" for a potential problem


Copying data tends to introduce a significant performance hit, which 
is why many OSes try to avoid it by passing pointers. The typical 
result of passing pointers is to introduce the possibility of buffer 
overflows, because the lower-level (and more privileged) code doesn't 
(or can't) apply application-specific tests.


Right you are. That i why the second method - if carefully done - would 
create less overhead.


Nonetheless with any transfer to the main thread, a new buffer needs to 
be allocated.


-Michael


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


Re: [Lazarus] New menu designer

2016-01-21 Thread Mattias Gaertner
On Thu, 21 Jan 2016 13:21:57 +
Howard Page-Clark  wrote:

>[...]
> I don't know anything about the translation process, or at what stage in 
> the IDE initialization captions are replaced with translated 
> resourcestrings.
> Is there a standard notification, or other means to respond to a 
> different-length translated string and force a repaint?

It is not only translated strings, but other themes as well.
In general all labels should use AutoSize:=true.
See here:
http://wiki.lazarus.freepascal.org/LCL_AutoSizing

Mattias

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


Re: [Lazarus] New menu designer

2016-01-21 Thread Howard Page-Clark

On 20/01/16 17:30, Péter Gábor wrote:

Width of the designed menu must be calculated using the length of
captions including the lenght of actual translation of "Add menuitem"...
Otherwise if the menu captions are too short the command's caption will
not fit.
See the attached screenshot.
Yes, in the original code the minimum length was based on the (English) 
resourcestring length.
I don't know anything about the translation process, or at what stage in 
the IDE initialization captions are replaced with translated 
resourcestrings.
Is there a standard notification, or other means to respond to a 
different-length translated string and force a repaint?
Ondrej introduced an overridden TextChanged method, but this seems not 
to be called at the moment it is needed for the translated strings, 
because for this it clearly has no effect.


Howard

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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 10:13:23 +, Graeme Geldenhuys
 wrote:

>On 2016-01-21 09:42, Bo Berglund wrote:
>> I started testing LNet a few months ago but did not get so far then
>> and had to drop it for other tasks.
>
>I can also recommend Indy 10 (source code direct from their SVN
>repository). Indy 10 works very well these days with FPC 2.6.4 and FPC
>3.0 - personally tested under Linux, Windows and FreeBSD. I'm told from
>Remy that OSX is also supported (but I haven't personally tested that yet).

I tried to find the url for svn Indy10 but the closest I got was this:
https://svn.atozed.com:444/svn/Indy10/

It requires a user name: Indy-Public-RO but no password.

When drilling down into the tags dir I only see tags for Embarcadero
RAD Studio XE versions. And trunk is obviously a moving target.

What svn URL do you recommend?
And which tag?


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Michael Schnell

On 01/21/2016 11:38 AM, Mark Morgan Lloyd wrote:


That of course is a significant issue.


I don't see what could prevent this from working.

The simple method would be to create a new buffer for the data to be 
transferred to the main thread and copy the data already received in a 
"static buffer" there.


If you want to avoid copying you could transfer the data in the receive 
buffer (which later would be freed) and  allocate a new receive buffer 
for the next receive.


I don't understand  the "OS" issue, that you speak of .

-Michael

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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Mark Morgan Lloyd

Michael Schnell wrote:

On 01/21/2016 11:38 AM, Mark Morgan Lloyd wrote:


That of course is a significant issue.


I don't see what could prevent this from working.


I didn't say anything wouldn't work.

The simple method would be to create a new buffer for the data to be 
transferred to the main thread and copy the data already received in a 
"static buffer" there.


If you want to avoid copying you could transfer the data in the receive 
buffer (which later would be freed) and  allocate a new receive buffer 
for the next receive.


I don't understand  the "OS" issue, that you speak of .


Copying data tends to introduce a significant performance hit, which is 
why many OSes try to avoid it by passing pointers. The typical result of 
passing pointers is to introduce the possibility of buffer overflows, 
because the lower-level (and more privileged) code doesn't (or can't) 
apply application-specific tests.


--
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] Get Lazarus January 2016 Update

2016-01-21 Thread Marcos Douglas
On Wed, Jan 20, 2016 at 7:53 PM, Anthony Walter  wrote:
>
> I've posted new installer for Free Pascal and Lazarus at getlazarus.org. Here 
> is an overview of the what's new:
>
> Video:
>
> http://www.getlazarus.org/new/

WOW!
Very professional. Amazing job, congratulations.

Best regards,
Marcos Douglas

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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 12:24:51 +0100, Michael Schnell
 wrote:

>The beauty of AsyncPro is that it provides the same user interface for 
>serial and socket component. Hence a serial port could be local or done 
>with a "ComServer" device without a problem
>
That is why the AsyncPro component wound up in my software. This was
in a different piece of code for industrial automation where the
machine tool was available with both RS232 and TCP/IP comm.
But it used the exact same protocol! So the same software was able to
switch between the two ways just by setting a single property on the
component.

Then I used that later on in my own projects too

-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Michael Schnell

On 01/21/2016 10:09 AM, Bo Berglund wrote:

. which implements an *event driven* serial
comm port, which can switch between serial and sockets communications.
The incoming data are dealt with in the OnTriggerAvail event.
So these are the only specific items used by me, but obviously in the
background there are a whole lot of things going on...
I tried to trace the tree of used units starting from the
TApdWinsockPort and it just grows and grows. Seems like a project I
could not do on my own.

Has anyone here tried/succeeded?

Implementing Event triggered behavior (such as AsyncPro) no great 
problem. I did several test on that (in a *portable OS independent* way).


IMHO the best way to go is:

 - Do the receiving in a Worker Thread based on a blocking (serial or 
socket) receive function  (i.e. the thread always hangs in the receive 
and only does some work when (at least) a character has come in) .This 
is exactly how AsyncPro works.


 - The Thread collects the appropriate amount of data (based on 
dynamical settings provided to the class. This is exactly how AsyncPro 
works.


 - Once the appropriate data is collected you *create* a "transfer 
object" (an instance of a transfer class that allocates and includes 
buffer for the data (not just a pointer if the buffer could be reused by 
the thread ! - You also could use newly allocated managed buffers for 
data collection, avoiding doing a copy -).  This object provides a 
"APdataavailable" procedure that is to be called to extract the data and 
(of course) a destructor that frees the buffer.


 - You do TThread.Queue providing the transfer object's APdataavailable 
procedure. After that you don't need to store the pointer to that 
transfer object, as it will free itself (including the data buffer) 
later in the main thread.


 - The APdataavailable procedure will be executed as an event in the 
main thread. It will call the appropriate event handler defined as an 
AsynPro property.


 - The last statement of the APdataavailable procedure (after calling 
the user event handler) will be just "free".


have fun,
-Michael

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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Mark Morgan Lloyd

Michael Schnell wrote:

 - Once the appropriate data is collected you *create* a "transfer 
object" (an instance of a transfer class that allocates and includes 
buffer for the data (not just a pointer if the buffer could be reused by 
the thread !


That of course is a significant issue. I've written "bare metal" stuff 
which moved data around like that with lots of consistency checking 
which meant it was robust. OTOH "real" OSes tend to move pointers around 
with minimal hardware protection against overrun etc. when a pointer 
somehow gets moved outside its (ring) buffer.


I wonder whether using something reference counted would be a useful 
compromise here.


--
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


[Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
I have a device comm simulation program created in Delphi 7 (or maybe
2007), which uses TurboPower Async Pro components for the serial and
TCPIP communications. It is used for production testing and also for
development purposes. On Windows of course

Now I would like to port this to the Raspberry Pi environment so the
simulator could be placed in a small package and replicated easily.
Since it is Delphi I thought about FPC and Lazarus as the obvious
destination.
I have ported some other simple GUI programs using the tools built
into Lazarus with no real big problems, but those used only standard
Delphi components.

Now I am not sure if it is even possible to port the AsyncPro serial
components to fpc...

I use the TApdWinsockPort which implements an *event driven* serial
comm port, which can switch between serial and sockets communications.
The incoming data are dealt with in the OnTriggerAvail event.
So these are the only specific items used by me, but obviously in the
background there are a whole lot of things going on...
I tried to trace the tree of used units starting from the
TApdWinsockPort and it just grows and grows. Seems like a project I
could not do on my own.

Has anyone here tried/succeeded?
If so is there some web resource that describes how it is done?

Or is there some other way to accomplish the task?

-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Can I build a Lazarus GUI program only with fpc installed?

2016-01-21 Thread Bo Berglund
On Sun, 17 Jan 2016 09:09:37 +0100, Bo Berglund
 wrote:

Thanks for your comments!
After looking through them and a lot of web resources I came to the
conclusion that it is not worth the time. I decided to go with a
Lazarus installation instead and ditch the platforms that would not
allow me to install Lazarus...


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Raspberry Pi bundles now available

2016-01-21 Thread Bo Berglund
On Sun, 17 Jan 2016 23:21:00 +0800, Dennis 
wrote:

>> Hi,
>> I need a working lazarus on a RPi1B 256MB in order to compile a simple
>> program that I have converted from Delphi7 on an RPi2B. On the RPi2B
>> it works just fine but if I transfer it to the RPi1B it causes an
>> exception on start. I guess it is because some hardware option has
>> been compiled into it on the RPi2B. So I need to compile on the actual
>> hardware...
>>
>>
>>
>Are you running exactly the same OS on both RPi2b and RPi1b?  New 
>raspbian OS has something called device tree that was not present in old 
>raspbian.
>That could interact differently to your program.
>
I gave up on the RPi1B 256M device and bought another RPi2B instead.
Then I could just copy the already compiled program and get it running
directly.
I will scrap the old RPi1B now so I won't get tempted again


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Can I build a Lazarus GUI program only with fpc installed?

2016-01-21 Thread Michael Schnell

On 01/21/2016 09:51 AM, Bo Berglund wrote:

  ditch the platforms that would not
allow me to install Lazarus...


It should be possible to link a project against the LCL without 
completely installing Lazarus or  using Lazarus on that platform


This does not even require cross compiling.

The project is just source coed. You can develop it on an appropriate 
platform (best as similar to the final target as possible).


Then (provided you already do have a compiler and the RTL on the target 
system, plus the required Linux Widget Set stuff) you can copy the 
source codes of your project and the LCL sources  onto the target system 
and compile via command line.


So you will generate the fully featured GUI based program.

-Michael

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


Re: [Lazarus] Can I build a Lazarus GUI program only with fpc installed?

2016-01-21 Thread Mattias Gaertner
On Thu, 21 Jan 2016 10:14:33 +0100
Michael Schnell  wrote:

> On 01/21/2016 09:51 AM, Bo Berglund wrote:
> >   ditch the platforms that would not
> > allow me to install Lazarus...
> 
> It should be possible to link a project against the LCL without 
> completely installing Lazarus or  using Lazarus on that platform

If you want to build GUI programs the needed external libraries of the
IDE are the same as for any LCL application.
You don't need gdb, nor a working window manager to build a GUI
application though.

Mattias

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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Michael Schnell

On 01/21/2016 10:09 AM, Bo Berglund wrote:

I have a device comm simulation program created in Delphi 7 (or maybe
2007), which uses TurboPower Async Pro components for the serial and
TCPIP communications. It is used for production testing and also for
development purposes. On Windows of course

Now I would like to port this to the Raspberry Pi environment so the
simulator could be placed in a small package and replicated easily.


You would be my (and many others') hero if you port Async Pro to Linux and 
provide the result publicly. This has been requests already multiple times.

IMHO this is one of the greatest shortcomings with Lazarus/fpc (even though of 
course there are alternatives).

Let me know if I can be helpful on that behalf.

-Michael


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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 10:21:12 +0100, Michael Schnell
 wrote:

>On 01/21/2016 10:09 AM, Bo Berglund wrote:
>> I have a device comm simulation program created in Delphi 7 (or maybe
>> 2007), which uses TurboPower Async Pro components for the serial and
>> TCPIP communications. It is used for production testing and also for
>> development purposes. On Windows of course
>>
>> Now I would like to port this to the Raspberry Pi environment so the
>> simulator could be placed in a small package and replicated easily.
>
>You would be my (and many others') hero if you port Async Pro to Linux and 
>provide the result publicly. This has been requests already multiple times.
>
>IMHO this is one of the greatest shortcomings with Lazarus/fpc (even though of 
>course there are alternatives).
>
>Let me know if I can be helpful on that behalf.
>

I suspected as much...

AsyncPro in itself is MASSIVE with loads of component classes and
functions geared towards all kinds of modem communication.
And it is all very convoluted.
A few years back before I retired I wanted to see what the
dependencies looked like starting at the TApdComPort, so I could
minimize the number of APro units I needed to put into version
control.
But after some time I gave up. At that time I had traversed between 10
and 20 units, which just added more dependencies all the time.
So I put the complete AsyncPro into our version control and stopped
thinking about it.

Now it jumps back when I try to port to Linux on ARM...

Unfortunately I am not capable of doing such a full port.

I know I have asked here before about serial/tcpip communications
using event driven sockets and serial port components, but the
solutions seem to be far between

In fact for the simulator I want to port I could probably rip out the
APro component and replace it with a TCPIP socket one instead since
the RS232 is not going to be used anymore.
But agin the code is geared towards event driven comm and most of what
I see in FPC for Linux TCPIP is blocking and that would mean more
surgery in the existing code.

I started testing LNet a few months ago but did not get so far then
and had to drop it for other tasks.
(See also thread about packages in fpc where LNet is not automatically
installed, yet it is an fpc stock package.)

An LNet implementation which is tweaked to use events for the receive
would be a possible starting point..


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Can I build a Lazarus GUI program only with fpc installed?

2016-01-21 Thread Michael Van Canneyt



On Thu, 21 Jan 2016, Mattias Gaertner wrote:


On Thu, 21 Jan 2016 10:14:33 +0100
Michael Schnell  wrote:


On 01/21/2016 09:51 AM, Bo Berglund wrote:

  ditch the platforms that would not
allow me to install Lazarus...


It should be possible to link a project against the LCL without
completely installing Lazarus or  using Lazarus on that platform


If you want to build GUI programs the needed external libraries of the
IDE are the same as for any LCL application.
You don't need gdb, nor a working window manager to build a GUI
application though.


Indeed. 
I daily build GUI programs on a headless build machine, using lazbuild and FPC.


Michael.

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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Graeme Geldenhuys
On 2016-01-21 09:42, Bo Berglund wrote:
> I started testing LNet a few months ago but did not get so far then
> and had to drop it for other tasks.

I can also recommend Indy 10 (source code direct from their SVN
repository). Indy 10 works very well these days with FPC 2.6.4 and FPC
3.0 - personally tested under Linux, Windows and FreeBSD. I'm told from
Remy that OSX is also supported (but I haven't personally tested that yet).

Just yesterday I submitted a patch that fixes the indylaz.lpk package -
just some minor unit paths were wrong, and then it installed into
Lazarus IDE without error. That should hopefully be committed soon. But
I normally use Indy without the use of Lazarus Packages.

Work is also being done to bring the Indy Unit Test suite up to date, so
that should make it much easier to verify functionality with different
compilers and platforms.

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] Get Lazarus January 2016 Update

2016-01-21 Thread Petr Hložek
Excellent work! I'm looking forward to official version with this look &
feel.

Petr

2016-01-21 14:15 GMT+01:00 Marcos Douglas :

> On Wed, Jan 20, 2016 at 7:53 PM, Anthony Walter  wrote:
> >
> > I've posted new installer for Free Pascal and Lazarus at getlazarus.org.
> Here is an overview of the what's new:
> >
> > Video:
> >
> > http://www.getlazarus.org/new/
>
> WOW!
> Very professional. Amazing job, congratulations.
>
> Best regards,
> Marcos Douglas
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
web:   https://petrhlozek.cz
email: p...@petrhlozek.cz
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to install LNet package in Lazarus 1.6RC2?

2016-01-21 Thread Mattias Gaertner
On Thu, 21 Jan 2016 14:29:14 +0100
Bo Berglund  wrote:

>[...]
> 2) Next I am supposed to open the lnetvisual.lpk package file in
> Lazarus "Component/Open", but there is no such "Component" menu
> command in my Lazarus!
> The closest I get is "Package/Open package file", so I tried that.

Yes. It was renamed some years ago. I updated the wiki.

 
> 3) Next step is "Click on Install", but there exists no such button or
> function!

It's under "Use".

 
Mattias

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


Re: [Lazarus] How to install LNet package in Lazarus 1.6RC2?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 15:19:42 +0100, Mattias Gaertner
 wrote:

>On Thu, 21 Jan 2016 14:29:14 +0100
>Bo Berglund  wrote:
>
>>[...]
>> 2) Next I am supposed to open the lnetvisual.lpk package file in
>> Lazarus "Component/Open", but there is no such "Component" menu
>> command in my Lazarus!
>> The closest I get is "Package/Open package file", so I tried that.
>
>Yes. It was renamed some years ago. I updated the wiki.
>
> 
>> 3) Next step is "Click on Install", but there exists no such button or
>> function!
>
>It's under "Use".
>

Thanks,
what I did meanwhile was this:

- Clicked the Compile button
- Nothing seemed to happen so:
- I clicked the Use/Install function
- Then it said something about already busy or similar
- Still there appeared to be nothing going on, but I went for
afternoon tea
- Came back and saw nothing changed so I assumed the Compile part was
done and again activated Use/Install.
- But as before there is no indication that something is actually
going on
- It would be nice with a status message "Building package -
Rebuilding Lazarus - Done"

While writing this post I suddenly saw some blinkings happening on the
background window  where VNC shows my RPi2 desktop, so I had a look
and it looks exactly as when I left off.
However, I now have an lNet tab on my component palette!

Question:
Is there supposed to be some indication towards the user that
something is going on when a package is being compiled or installed?
If not then I suggest that it is added to Lazarus.

If thers is a message then I certainly saw nothing, so could it be
platform dependent (Raspberry Pi2/Raspbian Jessie in my case) or
display dependent (tightvnc server on RPi2 and VNC client on Win7
laptop)?

I installed FPC 3.0.0 and Lazarus 1.6RC2 from svn sources.

-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Graeme Geldenhuys
On 2016-01-21 16:48, Bo Berglund wrote:
> My earlier experience is that the Indy download is VERY big and when I
> analyzed what needed to be actually used I found that the only files
> needed (for Delphi) were those in subdirectories Core, Protocols and

I don't know the exact dependencies per Indy component. There are loads
of components. ;-)  But I would guess your assumption for Delphi applies
to Lazarus too.

Indy isn't too big though. I took a look at my copy. The source code
zipped is 7.5MB. Uncompressed that equates to 16MB.

I used Git to clone the whole SVN Trunk history, and that equated to
44MB.  Lazarus and FPC repositories are *much* larger. :)

Any further repository updates will be very small (normally only patch
deltas are copied) - compared to a whole new download. So I highly
recommend you do a 'svn co' or 'git svn clone' and it will save you lots
of bandwidth for future updates.


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] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 17:11:29 +, Graeme Geldenhuys
 wrote:

>On 2016-01-21 16:48, Bo Berglund wrote:
>> My earlier experience is that the Indy download is VERY big and when I
>> analyzed what needed to be actually used I found that the only files
>> needed (for Delphi) were those in subdirectories Core, Protocols and
>
>I don't know the exact dependencies per Indy component. There are loads
>of components. ;-)  But I would guess your assumption for Delphi applies
>to Lazarus too.
>
>Indy isn't too big though. I took a look at my copy. The source code
>zipped is 7.5MB. Uncompressed that equates to 16MB.
>
>I used Git to clone the whole SVN Trunk history, and that equated to
>44MB.  Lazarus and FPC repositories are *much* larger. :)
>
>Any further repository updates will be very small (normally only patch
>deltas are copied) - compared to a whole new download. So I highly
>recommend you do a 'svn co' or 'git svn clone' and it will save you lots
>of bandwidth for future updates.
>

I made a test checkout as follows:

pi@rpi2-jessie2:~/dev $ svn co
https://svn.atozed.com:444/svn/Indy10/trunk/ indy10

Then I had a look inside the indy10 dir and found a ton of stuff...
But what I referred to is located in subdir Lib.

Sizewise this is what I got:
pi@rpi2-jessie2:~/dev $ du -sh ./indy10/
77M ./indy10/

So the total download is 77 MB
But the dirs I earlier found were needed are like this:

pi@rpi2-jessie2:~/dev $ du -sh ./indy10/Lib/
25M ./indy10/Lib/

pi@rpi2-jessie2:~/dev $ du -sh ./indy10/Lib/Core/
8.8M./indy10/Lib/Core/

pi@rpi2-jessie2:~/dev $ du -sh ./indy10/Lib/Protocols/
11M ./indy10/Lib/Protocols/

pi@rpi2-jessie2:~/dev $ du -sh ./indy10/Lib/System/
2.3M./indy10/Lib/System/

So a total of 22 MB active files. And Lib itself is just 25 MB

So I will make an attempt to copy only the Lib dir to Lazarus
components dir (renaming to indy10) and run the install from there.
But now is dinnertime so it will be later...


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 14:50:23 +, Graeme Geldenhuys
 wrote:

>On 2016-01-21 14:10, Bo Berglund wrote:
>> 
>> What svn URL do you recommend?
>> And which tag?
>
>I use the URL:   https://svn.atozed.com:444/svn/Indy10/trunk
>
>
>ie: I use Trunk (v10.6.2) directly. The repository is not that fast
>moving, and Remy seems to be on the ball quite quickly if there are any
>noted issues.

Thanks for the information!
Question:
My earlier experience is that the Indy download is VERY big and when I
analyzed what needed to be actually used I found that the only files
needed (for Delphi) were those in subdirectories Core, Protocols and
System. Everything else is not needed for the actual use in Delphi. I
assume the same goes for Lazarus?
If so do you know how to formulate the svn command to check out these
subfolders only (to save some download time and disk space)?
I am a CVS person myself so I have only very limited svn exposure.

>
>Attached you will find a drop-in replacement "indylaz.lpk" package file.
>This is the fixed package and should hopefully appear in the repository
>soon.

I will use that.

>I've also attached a unit (small test suite for IPv4 TCP Client &
>Server) which shows the setup of a TCP Server and TCP Client instance
>and how the client connects to the server.
>
Good, I will have a look.


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Graeme Geldenhuys
On 2016-01-21 17:25, Bo Berglund wrote:
> Sizewise this is what I got:
> pi@rpi2-jessie2:~/dev $ du -sh ./indy10/
> 77M ./indy10/
> 
> So the total download is 77 MB

Yes, and that is only one revision. SVN is terrible!

As far as I remember from SVN, it keeps a full (uncompressed) copy of
everything you checked out side the hidden ".svn" directory. That's how
SVN can do a diff comparison.

Git doesn't work like that at all. Git stores history as compressed
files, and only deltas of each commit - never full copies of managed
files. The complete history of Indy (in Git) is the size of a single
revision checkout in SVN.


> So I will make an attempt to copy only the Lib dir to Lazarus
> components dir (renaming to indy10) and run the install from there.

You don't need to do that. Simply open the indylaz.lpk package and click
Compile. After that, Lazarus IDE will automatically be able to find the
Indy source code, no matter the location on your hard drive.


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] New menu designer

2016-01-21 Thread Howard Page-Clark

On 21/01/16 13:29, Mattias Gaertner wrote:

On Thu, 21 Jan 2016 13:21:57 +
Howard Page-Clark  wrote:


[...]
I don't know anything about the translation process, or at what stage in
the IDE initialization captions are replaced with translated
resourcestrings.
Is there a standard notification, or other means to respond to a
different-length translated string and force a repaint?

It is not only translated strings, but other themes as well.
In general all labels should use AutoSize:=true.
See here:
http://wiki.lazarus.freepascal.org/LCL_AutoSizing

Mattias
OK. I've submitted a small patch (29468) which I hope will resolve this 
particular issue.


Howard

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


Re: [Lazarus] Get Lazarus January 2016 Update

2016-01-21 Thread Anthony Walter
Sandro,

If you're using my bundles and you want more packages, just use the
"Packages > Install/Uninstall Packages" menu item, choose any of the
packages you want, then click "Save and rebuild IDE".

If the package you want to install isn't in the "Install/Uninstall
Packages" list, then use the "Packages > Open package file" menu item and
click "Compile". You can do this for multiple packages, then go back to
"Packages > Install/Uninstall Packages" and you'll see those packages are
now available for install. Or, if you just want that one package, you can
click "Use > Install" on the previously mentioned package dialog with the
"Compile" button.

And finally, regarding make useride, if you want to build from the command
line you need to use lazbuild on each of the packages you want to include
before calling "make useride". And yes, if you want to d what I do, which
is to keep the configurations for Lazarus in the same folder as the lazarus
executable, you need to use --pcp with lazbuild.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Get Lazarus January 2016 Update

2016-01-21 Thread Anthony Walter
Petr,

I'm unsure when or if the official Lazarus builds will include anchor
docking and the docked form designer installed and arranged ergonomically.
These are additional packages which users are supposed to know about and
install themselves. There is also the of issue that there is no default
anchor docking layout scheme.

Also, you should know that the bundles I put together are specifically
designer not to interfere with other copies of Lazarus and Free Pascal.
Both programs have been setup to store their configuration information in
their own folders and they will not create issues with or change the
settings of other Free Pascal compilers or Lazarus copies you might have
installed side by side.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Win API function calls with array as parameter

2016-01-21 Thread John Landmesser

works!!

Thank you very much!!

( googled in vain for such a tip )

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


Re: [Lazarus] Get Lazarus January 2016 Update

2016-01-21 Thread Donald Ziesig

HI Anthony,

You recently replied to Sandro:

If you're using my bundles and you want more packages, just use the 
"Packages > Install/Uninstall Packages" menu item, choose any of the 
packages you want, then click "Save and rebuild IDE".


I had not used those steps before so I tried, using the "Packages > 
Install/Uninstall Packages" menu item, selected my existing package and 
click "Save and rebuild IDE".  The Messages box immediately (it doesn't 
look like it tried to do anything) is populated with "Panic *** make No 
rule to make target 'idepkg' Stop"


When I load the package dialog for my component library and click on Use 
> Install it asks if I want to rebuild the Ide.  I click Yes and it 
reports the exact same error.


Just out of curiosity, where (path and name) is the makefile for 
building the ide so I can investigate this problem on my own?


I did try make clean bigide and make bigide and the response was that it 
could not find target 'clean' or target 'bigide'.


Thanks,

Don Ziesig



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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Graeme Geldenhuys
On 2016-01-21 19:15, Bo Berglund wrote:
> So I copied the entire Lib directory over and then renamed to indy10.
> 
> And I copied in indylaz.lpk file from your previous message on top of
> the one from svn.
> 
> Opened it in Lazarus Packages/Open... and hit Use/Install.
> 
> Unfortunately it did not build correctly, here is the final error
> message:

Lazarus Packages (the files it lists) are dependent to a set directory
structure. Because you copied the Lib directory to a new location and
copied the indylaz.lpk in there, now the paths don't match up - so that
explains why it does work.

Simply delete your components/indy/ directory. Open the indylaz.lpk (my
copy) from inside the Indy SVN checkout directory. Click Compile, then
Install. It should work just fine then.



> But why are there duplicate tabs like "Indy Clients Protocols (am)"
> and "Indy Clients Protocols (nz)"??
> American and New Zealand versions or what?

hehehe... As I said, I don't normally install packages into Lazarus, so
I never noticed that. I just tested, and see those in my copy too - no
idea what the 'am' and 'nz' is meant to be. I'll take a look at the
source code later to see if that gives any hints. I don't think it is
country codes though. ;-)


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] Lazarus January 2016 Update Can't install custom components.

2016-01-21 Thread Anthony Walter
Don, you should probably take this to the forums at
http://www.getlazarus.org/forums/viewforum.php?f=22

But to answer your question, in order to reduce the total install size of
Raspberry Pi I've removed many fpc packages which do not fall under the
domain of the rtl or fcl. I know for a lot of people SD card space is a
major concern when picking what to put on their Pi, and I think I've
managed to to strike a reasonable balance in reducing the install size from
1.2GB down to 240MB.

If you need packages which are missing, you can use svn to install just the
compiler packages you need by using the command:

svn co http://svn.freepascal.org/svn/fpc/trunk/packages//src


Where  is the name of the individual missing fpc package you
want installed. Just be sure to add the  folder to your
Lazarus include path.

To list packages use:

svn ls http://svn.freepascal.org/svn/fpc/trunk/packages/

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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 20:33:33 +, Graeme Geldenhuys
 wrote:

>On 2016-01-21 19:15, Bo Berglund wrote:
>> So I copied the entire Lib directory over and then renamed to indy10.
>> 
>> And I copied in indylaz.lpk file from your previous message on top of
>> the one from svn.

>Lazarus Packages (the files it lists) are dependent to a set directory
>structure. Because you copied the Lib directory to a new location and
>copied the indylaz.lpk in there, now the paths don't match up - so that
>explains why it does work.

No, I don't think so.
Paths are relative to the lpk file and there are no path going up
(../) there.
I actually looked in your lpk file and found that all listed units in
the Files node are in either Core, Protocols or System.

But I also found an interesting setting:
 
This shows that in addition to the dirs I mentioned earlier also FCL,
Security and SuperCore are included in some path setting.

...
>
>
>> But why are there duplicate tabs like "Indy Clients Protocols (am)"
>> and "Indy Clients Protocols (nz)"??
>> American and New Zealand versions or what?
>
>hehehe... As I said, I don't normally install packages into Lazarus, so
>I never noticed that. I just tested, and see those in my copy too - no
>idea what the 'am' and 'nz' is meant to be. I'll take a look at the
>source code later to see if that gives any hints. I don't think it is
>country codes though. ;-)

Well, nz looked quite like one to me. OTOH the tabs contain different
components so the duplication is really only the names.

I will try to use the TCP client and server components to implement my
simulator. It is more familiar to me than any of the FPC networking
objects since I have used Indy quite a lot over the years.
In Delphi of course...


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Žilvinas Ledas

On 2016-01-21 22:53, Bo Berglund wrote:

Well, nz looked quite like one to me. OTOH the tabs contain different
components so the duplication is really only the names.



First tab is for components with names starting with letters A to N, and 
second tab for components starting with letters M to Z ;)



Best regards,
Zilvinas

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


Re: [Lazarus] Get Lazarus January 2016 Update

2016-01-21 Thread Anthony Walter
Mattias,

I am pretty sure the problem is I removed a few files I shouldn't have
while attempting to reduce the total install size for Pi. I'll issue a post
an updated Pi bundle in a few hours (later tonight).
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Cross-Compile for arm-linux under Windows7PC

2016-01-21 Thread banana
Hi.

 

I tried to install lazarus for arm-linux compiling under Windows7 PC.

 

But It was too difficult to do..

 

If anyone use or know,

 

Plz let me know how to do.

 

Thank you.

 

 

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


Re: [Lazarus] Get Lazarus January 2016 Update

2016-01-21 Thread Donald Ziesig

On 01/21/2016 04:34 PM, Anthony Walter wrote:

Okay Don, that's a valid problem.

I'll look into it and reissue a new bundle for the Pi. I may have been 
overzealous in removing files from the lazarus folder to squeeze down 
the size. I'll message you when it's fixed and tested. You'll just 
need to rerun the setup script and give it the same folder name. The 
setup will overwrite the entire old copy.


If you ever want to uninstall, just use "rm -rf " where 
 was your chosen install location. Nothing aside from one 
optional desktop launcher file (optionally in 
$HOME/.local/share/applications/lazarus.desktop) is written outside 
that folder.



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Great!  I had already figured out the rm -rf to remove the new 
installation.


I understand about the SD squeeze.  I ran into that problem at the 
beginning, too.  SD cards are so cheap that I bought a 16 GB card, 
copied the 8 GB noobs SD to it then resized the partitions.  I now have 
over 12 GB free on /home. :-)


Before I tried installing the old components I tried to set up lazarus 
so it would run as root (the PI I am working on will never be connected 
to the net once lazarus is setup, and it needs to be root to debug 
digital IO).  It worked the first time, but after a reboot it kept 
complaining about not finding system.ppu even though system.ppu was 
where it was supposed to be.  It also suggested that I look at fpc.cfg 
(which did not change either).  Just to be sure, I did the rm -rf and 
re-ran setup.sh.  I had 1.4.4 working by calling startlazarus via sudo, 
but that route doesn't seem to be available anymore.  I did audit file 
ownership and protections but they seemed correct.  Any ideas?


Thanks for the excellent work.

Don



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


Re: [Lazarus] Get Lazarus January 2016 Update

2016-01-21 Thread Donald Ziesig

On 01/21/2016 04:37 PM, Mattias Gaertner wrote:

On Thu, 21 Jan 2016 15:32:39 -0500
Donald Ziesig  wrote:


[...]
I did try make clean bigide and make bigide and the response was that it
could not find target 'clean' or target 'bigide'.

What platform?

You need to change to the lazarus directory before calling make.

Mattias

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



Mattias,

Platform Raspberry PI.

directory ~/Development/FreePascal/lazarus

Don


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


Re: [Lazarus] Get Lazarus January 2016 Update

2016-01-21 Thread Anthony Walter
Okay Don, that's a valid problem.

I'll look into it and reissue a new bundle for the Pi. I may have been
overzealous in removing files from the lazarus folder to squeeze down the
size. I'll message you when it's fixed and tested. You'll just need to
rerun the setup script and give it the same folder name. The setup will
overwrite the entire old copy.

If you ever want to uninstall, just use "rm -rf " where 
was your chosen install location. Nothing aside from one optional desktop
launcher file (optionally in
$HOME/.local/share/applications/lazarus.desktop) is written outside that
folder.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Get Lazarus January 2016 Update

2016-01-21 Thread Mattias Gaertner
On Thu, 21 Jan 2016 15:32:39 -0500
Donald Ziesig  wrote:

>[...]
> I did try make clean bigide and make bigide and the response was that it 
> could not find target 'clean' or target 'bigide'.

What platform?

You need to change to the lazarus directory before calling make.

Mattias

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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Paul Breneman

On 01/21/2016 08:50 AM, Graeme Geldenhuys wrote:

On 2016-01-21 14:10, Bo Berglund wrote:


What svn URL do you recommend?
And which tag?


I use the URL:   https://svn.atozed.com:444/svn/Indy10/trunk


ie: I use Trunk (v10.6.2) directly. The repository is not that fast
moving, and Remy seems to be on the ball quite quickly if there are any
noted issues.


Attached you will find a drop-in replacement "indylaz.lpk" package file.
This is the fixed package and should hopefully appear in the repository
soon.

I've also attached a unit (small test suite for IPv4 TCP Client &
Server) which shows the setup of a TCP Server and TCP Client instance
and how the client connects to the server.


I have an edition of Control Terminal using Synapse for Lazarus here:
  http://ctrlterm.com/ports.htm

I'm retired (and visiting Sarasota, Florida for several weeks), but from 
what I've read in this thread I think I'd like to add an Indy edition 
(and also an LNet edition). Help and suggestions welcome!


Regards,
Paul
www.ControlPascal.com


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


Re: [Lazarus] How to install LNet package in Lazarus 1.6RC2?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 17:22:51 +0100, Bo Berglund
 wrote:

>
>Question:
>Is there supposed to be some indication towards the user that
>something is going on when a package is being compiled or installed?
>If not then I suggest that it is added to Lazarus.
>
>If there is a message then I certainly saw nothing, so could it be
>platform dependent (Raspberry Pi2/Raspbian Jessie in my case) or
>display dependent (tightvnc server on RPi2 and VNC client on Win7
>laptop)?
>

Found the problem:
The output goes to the Messages pane, which was hidden by a form
belonging to the currently loaded project. So I did not see a thing.
I started to suspect this but when I tried to minimize or close the
form it did not work (maybe because Lazarus was busy). I managed to
move it though and saw the Messages pane with the activity.
Nice if the loaded project would have been closed or hidden while
installing the package...


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 18:29:56 +, Graeme Geldenhuys
 wrote:

>On 2016-01-21 17:25, Bo Berglund wrote:
>> Sizewise this is what I got:
>> pi@rpi2-jessie2:~/dev $ du -sh ./indy10/
>> 77M ./indy10/
>> 
>> So the total download is 77 MB
>
>Yes, and that is only one revision. SVN is terrible!
>
>As far as I remember from SVN, it keeps a full (uncompressed) copy of
>everything you checked out side the hidden ".svn" directory. That's how
>SVN can do a diff comparison.
>
>Git doesn't work like that at all. Git stores history as compressed
>files, and only deltas of each commit - never full copies of managed
>files. The complete history of Indy (in Git) is the size of a single
>revision checkout in SVN.
>
>
>> So I will make an attempt to copy only the Lib dir to Lazarus
>> components dir (renaming to indy10) and run the install from there.
>
>You don't need to do that. Simply open the indylaz.lpk package and click
>Compile. After that, Lazarus IDE will automatically be able to find the
>Indy source code, no matter the location on your hard drive.
>

Well,
I did as I said I would before I saw your reply
So I copied the entire Lib directory over and then renamed to indy10.

And I copied in indylaz.lpk file from your previous message on top of
the one from svn.

Opened it in Lazarus Packages/Open... and hit Use/Install.

Unfortunately it did not build correctly, here is the final error
message:

IdStream.pas(29,3) Fatal: Cannot find IdStreamVCL used by IdStream,
incompatible
ppu=/home/pi/dev/lazarus/1.6RC2/components/indy10/lib/arm-linux/IdStreamVCL.ppu,
package indylaz

Do you have any idea why this happened?

The offending line IdStream.pas(29,3) looks like this:
uses
{$IFDEF DOTNET}
  IdStreamNET
{$ELSE}
  IdStreamVCL  <== Error here!
{$ENDIF};


This time I went directly ahead to Install and skipped the Compile
button. Could that be the problem?

 Later:

Well, I did two things:
1) I removed a Lazbuild compile option I had added earlier today to
make Lazarus strip the symbols off of itself when rebuilding.
It was something like
-g- -Xs
It reduces Lazarus size from about 125 Mb to 25 Mb or thereabouts.

2) I hit the Compile button again and it compiled sucessfully.

3) Hit Use/Install and after a while Lazarus closed and reappeared
with the Indy tabs on the palette.

But why are there duplicate tabs like "Indy Clients Protocols (am)"
and "Indy Clients Protocols (nz)"??
American and New Zealand versions or what?


-- 
Bo Berglund
Developer in Sweden


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


[Lazarus] Lazarus January 2016 Update Can't install custom components.

2016-01-21 Thread Donald Ziesig

On 01/20/2016 04:53 PM, Anthony Walter wrote:
I've posted new installer for Free Pascal and Lazarus at 
getlazarus.org . Here is an overview of the 
what's new:


Video:

http://www.getlazarus.org/new/

Changes include:

A new Lazarus layout with the component pallet removed and coolbar 
buttons in its place. The a docked form designer is now the default 
form editor.


The new menu editor is included along with my application explorer 
tool. The source to the application explorer is in the components 
folder and might be of interest to users wanting to try their hand at 
extending the IDE,


The new documentation site at docs.getlazarus.org 
 is now the F1 help site.


Minimal FPC 3.0.0 compilers with friendly setup scripts are now 
available at http://www.getlazarus.org/setup/minimal/. I've also 
updated the "making it yourself" page with better instructions.


Finally FPC 3.1.1 trunk includes support for generic 
functions/procedures, which are quite nice.



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

Hi Anthony,

I just tried to use the new Lazarus for Raspberry PI and ran into two 
problems trying to add components from a four-year-old library (that has 
been working on Linux for that time and on Raspbian up to Lazarus 1.4).


This version of fpc/lazarus does not have the RegExpr package so one of 
my components failed to compile.  I removed it from the package and 
started over (I don't need it for the app on the PI so for now this is 
not a major issue.  I do need it on Linux so now I am hesitant to 
upgrade my main development machine.).


The big problem occurred when rebuilding lazarus to install the new 
components:


Build IDE Exit Code 512 Errors 4
Panic *** make No rule to make 'idepkg'  Stop.

remaining errors are leaving directory and make terminated.

Is there a work-around for this (besides returning to 1.4)?  I need 
several of the components in this library.


Thanks,

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


Re: [Lazarus] Get Lazarus January 2016 Update

2016-01-21 Thread Sandro Cumerlato
I would prefer to build useride with all my favourite packages.

Is it possible to pass:

--primary-config-path= or --pcp=

while calling "make useride"?

Thanx in advance for the answer.

Sandro




On 21 Jan 2016 17:12, "Anthony Walter"  wrote:

> Petr,
>
> I'm unsure when or if the official Lazarus builds will include anchor
> docking and the docked form designer installed and arranged ergonomically.
> These are additional packages which users are supposed to know about and
> install themselves. There is also the of issue that there is no default
> anchor docking layout scheme.
>
> Also, you should know that the bundles I put together are specifically
> designer not to interfere with other copies of Lazarus and Free Pascal.
> Both programs have been setup to store their configuration information in
> their own folders and they will not create issues with or change the
> settings of other Free Pascal compilers or Lazarus copies you might have
> installed side by side.
>
> --
> ___
> 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