Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-11

Install FPC and Lazarus from source

23 messages · 8 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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 :

Show quoted text 28 lines
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151121/ce23d16f/attachment.html>

Reply by email

Anthony Walter
to 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 -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151121/1a49f4ca/attachment.html>

Reply by email

Juha Manninen
to Aradeonas: It been days for me that I have problem with getting Trunk. I used to use fpcup but now…
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

Reply by email

Juha Manninen
to Aradeonas
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

Reply by email

Aradeonas
to Juha Manninen
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151121/213659d1/attachment-0001.html>

Reply by email

Aradeonas
to Anthony Walter
Show quoted text 5 lines
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151122/8f5df8ab/attachment.html>

Reply by email

Marco van de Voort
to Aradeonas: It been days for me that I have problem with getting Trunk. I used to use fpcup but now…
Aradeonas wrote 5 lines
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

Reply by email

Aradeonas
to Marco van de Voort
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151123/82fde9be/attachment.html>

Reply by email

Alfred
to Juha Manninen: Do you update both FPC and Lazarus trunk? I have noticed many people do it with fpcup…

Yes, I am reading this !

Show quoted text 5 lines
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.

Reply by email

Bo Berglund
to Anthony Walter: To update do the following: cd $PATH_TO_LAZARUS svn update make clean make all make…
Anthony Walter wrote 9 lines
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

Reply by email

Bo Berglund
to Bo Berglund
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

Reply by email

Sven Barth
to Bo Berglund
Bo Berglund wrote 16 lines
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

Reply by email

Bo Berglund
to Mattias Gaertner
Mattias Gaertner wrote 6 lines
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

Reply by email

Bo Berglund
to Sven Barth: strip removes the debug information stored in the binary. So in that case you won't get…
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

Reply by email

Sven Barth
to Bo Berglund
Bo Berglund wrote 12 lines
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

Reply by email

Anthony Walter
to Aradeonas: It been days for me that I have problem with getting Trunk. I used to use fpcup but now…

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). -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151214/d7628e06/attachment.html>

Reply by email