Re: [Lazarus] Install FPC and Lazarus from source

2015-12-14 Thread Anthony Walter
OP said: So I went to use GetLazarus version, it is good but have many bugs
because of its docking system and it will always be cropped

I just want to point out that's there exists a *method to turn off* "have
many bugs because of its docking system and it will always be cropped"

>From within Lazarus go to the "Package" menu and select "Install/Uninstall
Packages ...". Then in the left column of "Install/Uninstall Packages"
dialog, click "AnchorDockingDsgn 0.5" and click then button with the words
"Uninstall Selection". Finally click the button at the bottom wit the words
"Save and rebuild IDE". Lazarus will rebuild and after a few minutes you'll
be back to multiple window mode (the normal default).
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Install FPC and Lazarus from source

2015-12-13 Thread Sven Barth

On 13.12.2015 20:01, Bo Berglund wrote:

On Sat, 12 Dec 2015 18:23:19 +0100, Sven Barth
 wrote:



strip removes the debug information stored in the binary. So in that
case you won't get detailed exception information (stack trace) inside
Lazarus if an exception occurs there.


So it means that I could not debug inside the Lazarus code itself. But
that is a no-issue for me since I would not know what to do anyway. I
just want my own code to be debuggable.



Yes, that would be the consequence. As long as you're aware of that, go 
strip your binary. Or you could build Lazarus with OPT="-Xs" which will 
already tell the compiler to strip the debug information (you can also 
supply this option in the IDE dialogs responsible for rebuilding (I 
don't know the name right now, sorry) and then it will also be applied 
each time you rebuild Lazarus from within the IDE).


Regards,
Sven

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


Re: [Lazarus] Install FPC and Lazarus from source

2015-12-13 Thread Bo Berglund
On Sun, 13 Dec 2015 01:35:02 +0100, Mattias Gaertner
 wrote:

>On Sat, 12 Dec 2015 15:32:15 +0100
>Bo Berglund  wrote:
>
>> What is the difference between useride and bigide?
>
>See 'make help' for the parameters.

Learning every day! Good call.

-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Install FPC and Lazarus from source

2015-12-13 Thread Bo Berglund
On Sat, 12 Dec 2015 18:23:19 +0100, Sven Barth
 wrote:

>
>strip removes the debug information stored in the binary. So in that 
>case you won't get detailed exception information (stack trace) inside 
>Lazarus if an exception occurs there.

So it means that I could not debug inside the Lazarus code itself. But
that is a no-issue for me since I would not know what to do anyway. I
just want my own code to be debuggable.

-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Install FPC and Lazarus from source

2015-12-12 Thread Sven Barth

On 12.12.2015 17:27, Bo Berglund wrote:

On Sat, 12 Dec 2015 15:32:15 +0100, Bo Berglund
 wrote:



Also, what is the purpose of strip -s lazarus?


Answering this myself after looking at strip -help:
It strips all embedded symbols from the lazarus program file!

I tried it in a Linux Mint 17.2 Cinnamon virtual machine on my Win7
laptop and amazingly the file size shrunk:
from  102,683,731 bytes
to 26,751,376 bytes

Quite amazingly much!



strip removes the debug information stored in the binary. So in that 
case you won't get detailed exception information (stack trace) inside 
Lazarus if an exception occurs there.


Regards,
Sven

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


Re: [Lazarus] Install FPC and Lazarus from source

2015-12-12 Thread Bo Berglund
On Sat, 21 Nov 2015 17:29:33 -0500, Anthony Walter 
wrote:

>To update do the following:
>
>cd $PATH_TO_LAZARUS
>svn update
>make clean
>make all
>make useride
>strip -s lazarus
>lazarus

The last make useride makes me wonder...
Shouldn't it be make bigide instead?

What is the difference between useride and bigide?

Also, what is the purpose of strip -s lazarus?

I have used svn in the past months to get various revisions (often
trunk) of lazarus until there was finally a 1.6 RC1, which I then
checked out. But I only ran make bigide in the directory.
Should I have made all and useride also?


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Install FPC and Lazarus from source

2015-12-12 Thread Bo Berglund
On Sat, 12 Dec 2015 15:32:15 +0100, Bo Berglund
 wrote:

>
>Also, what is the purpose of strip -s lazarus?
>
Answering this myself after looking at strip -help:
It strips all embedded symbols from the lazarus program file!

I tried it in a Linux Mint 17.2 Cinnamon virtual machine on my Win7
laptop and amazingly the file size shrunk:
from  102,683,731 bytes
to 26,751,376 bytes

Quite amazingly much!

-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Install FPC and Lazarus from source

2015-12-12 Thread Mattias Gaertner
On Sat, 12 Dec 2015 15:32:15 +0100
Bo Berglund  wrote:

>[...]
> The last make useride makes me wonder...
> Shouldn't it be make bigide instead?
>
> What is the difference between useride and bigide?

See 'make help' for the parameters.

 
Mattias

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


[Lazarus] Install FPC and Lazarus from source

2015-11-24 Thread Alfred

Yes, I am reading this !


Is fpcup's current maintainer reading this?
There should be a note that updating both FPC and Lazarus trunk is a
"guru action" and the person should know what he is doing then.
fpcup makes it too easy and give an impression it is OK for everybody.
They could be a new fpcup 2 with a new GUI and revamped options.

My observation is that fpcup is much used by novice pascal developers.
Those users appreciate the fact that fpcup gives them FPC and Lazarus in 
a breeze.

On nearly all available OS.

Could you please state your concerns more clearly.
I could add a warning or some extra instructions for the fpcup users, if 
necessary.




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


Re: [Lazarus] Install FPC and Lazarus from source

2015-11-23 Thread Aradeonas
> It might have something to do with the TPointF being added to the
> TYPES unit
last week of FPC trunk

Yes you are right Marco. And It seems it need a PointF function like
Point function.
> function PointF(x,y : single) : TPointF; inline;

Regards, Ara


-- 
http://www.fastmail.com - Access all of your messages and folders
  wherever you are

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


Re: [Lazarus] Install FPC and Lazarus from source

2015-11-22 Thread Aradeonas
> To update do the following:
>
> cd $PATH_TO_LAZARUS svn update make clean make all make useride strip
> -s lazarus lazarus
>
Thanks Anthony. But Im talking about updating GetLazarus version and as
I tested it is not a SVN setup so I cant update it with your commands.

Regards, Ara


-- 
http://www.fastmail.com - Does exactly what it says on the tin

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


Re: [Lazarus] Install FPC and Lazarus from source

2015-11-22 Thread Marco van de Voort
On Sat, Nov 21, 2015 at 07:55:38AM -0800, Aradeonas wrote:
> Now I have a problem: My Lazarus version seems have problem. It can
> compile many packages but it cant compile BGRABitmap. It will stuck on
> sum two TPointF and give this error :
> > bgracanvas2d.pas(370,21) Error: Operator is not overloaded: "TPointF"
> > + "TPointF"

It might have something to do with the TPointF being added to the TYPES unit
last week of FPC trunk


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


Re: [Lazarus] Install FPC and Lazarus from source

2015-11-21 Thread Anthony Walter
You can turn off anchor docking by removing the anchordockingdsgn package.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Install FPC and Lazarus from source

2015-11-21 Thread Aradeonas
Hi,

It been days for me that I have problem with getting Trunk. I used to
use fpcup but now days it always give me errors. So I went to use
GetLazarus version, it is good but have many bugs because of its docking
system and it will always be cropped so I decide to for one time I get
the source an compile it. I will write all things I do and all of these
are done in Windows 10 64bit and run as administrator. I tried all said
in http://wiki.freepascal.org/Installing_Lazarus[1] and it seems out
dated but I make it.

Now I have a problem: My Lazarus version seems have problem. It can
compile many packages but it cant compile BGRABitmap. It will stuck on
sum two TPointF and give this error :
> bgracanvas2d.pas(370,21) Error: Operator is not overloaded: "TPointF"
> + "TPointF"

TPointF is declared like this :
> type  {* Pointer to a ''TPointF'' structure }  PPointF = ^TPointF;  {*
> Contains a point with single-precision floating point coordinates }
> TPointF = packed record x, y: single;            end;
>
> const    {** Value indicating that there is an empty ''TPointF''
> structure.        It is also used as a separator in lists of points }
> EmptyPointF: TPointF = (x: -3.402823e38; y: -3.402823e38);
>
> {- Operators for TPointF }  {**
> Creates a new structure with values ''x'' and ''y'' }  function
> PointF(x, y: single): TPointF;  {** Checks if the structure is empty
> (equal to ''EmptyPointF'') }  function isEmptyPointF(const pt:
> TPointF): boolean;  {** Checks if both ''x'' and ''y'' are equal }
> operator = (const pt1, pt2: TPointF): boolean; inline;  {** Adds ''x''
> and ''y'' components separately. It is like adding vectors }  operator
> + (const pt1, pt2: TPointF): TPointF; inline;  {** Subtract ''x'' and
> ''y'' components separately. It is like subtracting vectors }
> operator - (const pt1, pt2: TPointF): TPointF; inline;  {** Returns a
> point with opposite values for ''x'' and ''y'' components }  operator
> - (const pt2: TPointF): TPointF; inline;  {** Scalar product:
> multiplies ''x'' and ''y'' components and returns the sum }  operator
> * (const pt1, pt2: TPointF): single; inline;  {** Multiplies both
> ''x'' and ''y'' by ''factor''. It scales the vector represented by
> (''x'',''y'') }  operator * (const pt1: TPointF; factor: single):
> TPointF; inline;  {** Multiplies both ''x'' and ''y'' by ''factor''.
> It scales the vector represented by (''x'',''y'') }   operator
> * (factor: single; const pt1: TPointF): TPointF; inline;
>

And I dont have any problem in stable Lazarus and GetLazarus version and
even in my old Trunk version.

So any one can guess what is the problem?

Regards, Ara



Links:

  1. 
http://wiki.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29

-- 
http://www.fastmail.com - A no graphics, no pop-ups email service

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


Re: [Lazarus] Install FPC and Lazarus from source

2015-11-21 Thread Anthony Walter
Package -> Install/Uninstall Package

Left column click AnchorDockingDsgn then click Uninstall Selection
Left column click AnchorDocking then click Uninstall Selection

Click Save and Rebuild the IDE

Wait for the IDE to reappear and anchor docking will be removed
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Install FPC and Lazarus from source

2015-11-21 Thread Juha Manninen
On Sat, Nov 21, 2015 at 11:09 PM, Aradeonas  wrote:
> Thanks Juha,I will test it.
> But asking out of curiosity, Why last version of FPC has error like I said?

Last version of FPC. You mean 3.0RC2?

Juha

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


Re: [Lazarus] Install FPC and Lazarus from source

2015-11-21 Thread Juha Manninen
On Sat, Nov 21, 2015 at 5:55 PM, Aradeonas  wrote:
> It been days for me that I have problem with getting Trunk.
> I used to use fpcup but now days it always give me errors.

Do you update both FPC and Lazarus trunk?
I have noticed many people do it with fpcup while they could use FPC
3.0RC2 + Lazarus trunk.
Lazarus trunk is easy to get and use without fpcup. In fact fpcup was
meant for only FPC (as the name reveals) but then a feature for
Lazarus was added.

Is fpcup's current maintainer reading this?
There should be a note that updating both FPC and Lazarus trunk is a
"guru action" and the person should know what he is doing then.
fpcup makes it too easy and give an impression it is OK for everybody.
They could be a new fpcup 2 with a new GUI and revamped options.

My recommendation now is to install FPC 3.0 RC2.
Then Lazarus trunk is easy to get with one "svn co" or "svn up" command.

Juha

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


Re: [Lazarus] Install FPC and Lazarus from source

2015-11-21 Thread Aradeonas
> I don't have FPC trunk installed now.
I don't need its new features right now and I don't want to waste time
for its potential problems. Why should I? No need, as I said just
curiosity.That was weird error as I know FPC has test system so it
couldn't be a bug or it is funny one so I want to know was there any
point when compiling to solve the problem or not. As you said I will
go for more stable version but for any one can test,please let me know
if you did.

Regards, Ara


-- 
http://www.fastmail.com - Faster than the air-speed velocity of an
  unladen european swallow

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


Re: [Lazarus] Install FPC and Lazarus from source

2015-11-21 Thread Aradeonas
Yes I know but as I emailed you before I can update my install and
anchordocking problem is just and example of my problems. If I could
update it can be better.

Regards, Ara


-- 
http://www.fastmail.com - A no graphics, no pop-ups email service

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


Re: [Lazarus] Install FPC and Lazarus from source

2015-11-21 Thread Aradeonas
> Last version of FPC. You mean 3.0RC2?
Trunk. I just get it and compile it successfully and then Lazarus and
compile it but it give errors in first mail.

Regards, Ara

-- 
http://www.fastmail.com - A fast, anti-spam email service.

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


Re: [Lazarus] Install FPC and Lazarus from source

2015-11-21 Thread Juha Manninen
On Sat, Nov 21, 2015 at 11:15 PM, Aradeonas  wrote:
> Last version of FPC. You mean 3.0RC2?
>
> Trunk.

I don't have FPC trunk installed now.
I don't need its new features right now and I don't want to waste time
for its potential problems.
Why should I?

Juha

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


Re: [Lazarus] Install FPC and Lazarus from source

2015-11-21 Thread Anthony Walter
To update do the following:

cd $PATH_TO_LAZARUS
svn update
make clean
make all
make useride
strip -s lazarus
lazarus
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Install FPC and Lazarus from source

2015-11-21 Thread Aradeonas
Thanks Juha,I will test it. But asking out of curiosity, Why last
version of FPC has error like I said?Its weird. You know FPC,can you
test it with BGRA?

Regards, Ara


-- 
http://www.fastmail.com - Access your email from home and the web

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