Sign in Join

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

Mailing lists / lazarus / 2011-08

Value of the $fpcversion - FPC 2.6.0

13 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

silvioprog

Hi,

What the value of the $fpcversion in FPC 2.6.0? Is 2.5.1?

I need to configure my fpc.cfg (I generate this file with ) on Linux, but the value of this directive return 2.5.1, and my dirs are 2.6.0.

Source code of my script to install the FPC 2.6.0: http://pastebin.com/xhQQ0fSL

How to I configure the $fpcversion to return 2.6.0?

Thx.

Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> LazWebSolutions - <code.google.com/p/lazwebsolutions> Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR> =============================================== ? ?* Conhe?a nosso canal IRC sobre Lazarus: #lazarus-br * ===============================================

Reply by email

Marcos Douglas
to silvioprog
silvioprog wrote
Hi, What the value of the $fpcversion in FPC 2.6.0? Is 2.5.1?

Yep.

I need to configure my fpc.cfg (I generate this file with ) on Linux, but the value of this directive return 2.5.1, and my dirs are 2.6.0.

I had the same "problem" so, you must to use a hardcode in your fpc.cfg.

Source code of my script to install the FPC 2.6.0: http://pastebin.com/xhQQ0fSL How to I configure the $fpcversion to return 2.6.0?

I think that is not possible.

Marcos Douglas

Reply by email

Vincent Snijders
to Marcos Douglas

2011/8/12 Marcos Douglas :

Show quoted text 18 lines
On Fri, Aug 12, 2011 at 11:47 AM, silvioprog wrote: > > Hi, > > What the value of the $fpcversion in FPC 2.6.0? Is 2.5.1? Yep. > I need to configure my fpc.cfg (I generate this file with ) on Linux, > but the value of this directive return 2.5.1, and my dirs are 2.6.0. I had the same "problem" so, you must to use a hardcode in your fpc.cfg. > Source code of my script to install the FPC 2.6.0: http://pastebin.com/xhQQ0fSL > > How to I configure the $fpcversion to return 2.6.0? I think that is not possible.

You should just ask the fpc executable for the version number.

Vincent

Reply by email

Marcos Douglas
to Vincent Snijders
Vincent Snijders wrote 21 lines
2011/8/12 Marcos Douglas : > On Fri, Aug 12, 2011 at 11:47 AM, silvioprog wrote: >> >> Hi, >> >> What the value of the $fpcversion in FPC 2.6.0? Is 2.5.1? > > Yep. > >> I need to configure my fpc.cfg (I generate this file with ) on Linux, >> but the value of this directive return 2.5.1, and my dirs are 2.6.0. > > I had the same "problem" so, you must to use a hardcode in your fpc.cfg. > >> Source code of my script to install the FPC 2.6.0: http://pastebin.com/xhQQ0fSL >> >> How to I configure the $fpcversion to return 2.6.0? > > I think that is not possible. You should just ask the fpc executable for the version number.

But he wants to write the fpc.cfg file... with macros.

Marcos Douglas

Reply by email

Vincent Snijders
to Marcos Douglas

2011/8/12 Marcos Douglas :

Show quoted text 6 lines
On Fri, Aug 12, 2011 at 2:07 PM, Vincent Snijders > > You should just ask the fpc executable for the version number. But he wants to write the fpc.cfg file... with macros.

Let him write with macros, then he doesn't need to know the actual version number. IOW, I don't understand the problem.

Vincent

Reply by email

Marcos Douglas
to Vincent Snijders
Vincent Snijders wrote 11 lines
2011/8/12 Marcos Douglas : > On Fri, Aug 12, 2011 at 2:07 PM, Vincent Snijders >> >> You should just ask the fpc executable for the version number. > > But he wants to write the fpc.cfg file... with macros. > Let him write with macros, then he doesn't need to know the actual version number. IOW, I don't understand the problem.

He is using the fixes_2_6 and created a directory 2.6.0. But the real version is 2.5.1 so, the fpc.cfg is searching for 2.5.1 not 2.6.0.

Marcos Douglas

Reply by email

Vincent Snijders
to Marcos Douglas

2011/8/12 Marcos Douglas :

Show quoted text 5 lines
> Let him write with macros, then he doesn't need to know the actual > version number. IOW, I don't understand the problem. He is using the fixes_2_6 and created a directory 2.6.0. But the real version is 2.5.1 so, the fpc.cfg is searching for 2.5.1 not 2.6.0.

He should not create a 2.6.0 directory for the fixes_2_6 branch.

Vincent

Reply by email

silvioprog
to Vincent Snijders

2011/8/12 Vincent Snijders :

Show quoted text 10 lines
2011/8/12 Marcos Douglas : >> Let him write with macros, then he doesn't need to know the actual >> version number. IOW, I don't understand the problem. > > He is using the fixes_2_6 and created a directory 2.6.0. But the real > version is 2.5.1 so, the fpc.cfg is searching for 2.5.1 not 2.6.0. He should not create a 2.6.0 directory for the fixes_2_6 branch. Vincent

So I must create a directory 2.5.1 while using 2.6.0?

Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> LazWebSolutions - <code.google.com/p/lazwebsolutions> Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR> =============================================== ? ?* Conhe?a nosso canal IRC sobre Lazarus: #lazarus-br * ===============================================

Reply by email

Maxim Ganetsky
to silvioprog

13.08.2011 2:16, silvioprog ?????:

Show quoted text 13 lines
2011/8/12 Vincent Snijders: > 2011/8/12 Marcos Douglas: >>> Let him write with macros, then he doesn't need to know the actual >>> version number. IOW, I don't understand the problem. >> >> He is using the fixes_2_6 and created a directory 2.6.0. But the real >> version is 2.5.1 so, the fpc.cfg is searching for 2.5.1 not 2.6.0. > > He should not create a 2.6.0 directory for the fixes_2_6 branch. > > Vincent So I must create a directory 2.5.1 while using 2.6.0?

Version 2.6.0 does not exist. 2.5.1 does. How difficult can it be to query compiler version?

In order for macros to work properly compiler version should match directory name. Alternatively you can avoid using macros in fpc.cfg.

Best regards, Maxim Ganetsky mailto:

Reply by email

silvioprog
to Maxim Ganetsky

2011/8/12 Maxim Ganetsky :

Show quoted text 6 lines
In order for macros to work properly compiler version should match directory name. Alternatively you can avoid using macros in fpc.cfg. -- Best regards, ?Maxim Ganetsky ? ? ? ? ? ? ? ? ?mailto:

I create fpc.cfg automatically with "sudo /usr/lib/fpc/2.6.0/samplecfg /usr/lib/fpc/2.6.0/ /etc", I did not want to modify the file fpc.cfg manually.

I think I'll have to use the directory 2.5.1. :/ ...

ps. samplecfg accepts param? E.g.: "sudo /usr/lib/fpc/2.6.0/samplecfg -fpcversion=2.6.0 /usr/lib/fpc/2.6.0/ /etc", to use 2.6.0 instead of $fpcversion in fpc.cfg.

Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> LazWebSolutions - <code.google.com/p/lazwebsolutions> Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR> =============================================== ? ?* Conhe?a nosso canal IRC sobre Lazarus: #lazarus-br * ===============================================

Reply by email

Marcos Douglas
to silvioprog
silvioprog wrote 17 lines
2011/8/12 Maxim Ganetsky : > In order for macros to work properly compiler version should match directory > name. Alternatively you can avoid using macros in fpc.cfg. > > -- > Best regards, > ?Maxim Ganetsky ? ? ? ? ? ? ? ? ?mailto: I create fpc.cfg automatically with "sudo /usr/lib/fpc/2.6.0/samplecfg /usr/lib/fpc/2.6.0/ /etc", I did not want to modify the file fpc.cfg manually. I think I'll have to use the directory 2.5.1. :/ ... ps. samplecfg accepts param? E.g.: "sudo /usr/lib/fpc/2.6.0/samplecfg -fpcversion=2.6.0 /usr/lib/fpc/2.6.0/ /etc", to use 2.6.0 instead of $fpcversion in fpc.cfg.

Use the /2.5.1 directory.

Marcos Douglas

Reply by email

silvioprog
to Marcos Douglas

2011/8/12 Marcos Douglas :

Use the /2.5.1 directory. Marcos Douglas

Yes. Solved! :)

I changed the description of my scrip to not confuse the users:

...
"Automated installation v1.1
for install Lazarus(trunk)/FPC(fixes 2.6.0)"
...

I'll also edit the entry I made in the wiki.

Thxs to all.

ps. sorry for my confusion. ^^"

Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> LazWebSolutions - <code.google.com/p/lazwebsolutions> Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR> =============================================== ? ?* Conhe?a nosso canal IRC sobre Lazarus: #lazarus-br * ===============================================

Reply by email

Graeme Geldenhuys
to silvioprog: 2011/8/12 Vincent Snijders : So I must create a directory 2.5.1 while using 2.6.0? Silvio…
silvioprog wrote
So I must create a directory 2.5.1 while using 2.6.0?

He is not using 2.6.0 yet... 2.6.0 has not been released yet. If you are on Linux simply create a symlink directory with 2.5.1 in the mean time.

Regards, ? - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email