Sign in Join

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

Mailing lists / lazarus / 2011-06

[TIP]: Installing Lazarus under Linux via SVN (Ubuntu 11.04 or later)

47 messages · 11 people · –

Reply by email Subscribe to this list Your subscription

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

silvioprog

Hi.

I edited a new page in wiki of Lazarus:

http://wiki.freepascal.org/Installing_Lazarus#Ubuntu_11.04_or_later

<http://wiki.freepascal.org/Installing_Lazarus#Ubuntu_11.04_or_later>Enjoy!

Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR> =============================================== * Conhe?a nosso canal IRC sobre Lazarus: #lazarus-br * =============================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110602/f2ee4cd1/attachment.html>

Reply by email

Samuel Herzog
to silvioprog: Hi. I edited a new page in wiki of Lazarus: http://wiki.freepascal.org/Installing_Lazarus#…

Thanks!
I was not able to install Lazarus-SVN on linux.
I thought, wow Windows installers e.g. setup.exe are a nice thing!

But your script runs perfect. Just installed on mint 11 (gnome). Took about 10mins to compile and install everything.

Regards,

Sam

--- silvioprog schrieb am Do, 2.6.2011:

Von: silvioprog
Betreff: [Lazarus] [TIP]: Installing Lazarus under Linux via SVN (Ubuntu 11.04 or later) An: "Lazarus mailing list"
Datum: Donnerstag, 2. Juni, 2011 16:33 Uhr

Hi.
I edited a new page in wiki of Lazarus:
http://wiki.freepascal.org/Installing_Lazarus#Ubuntu_11.04_or_later

Enjoy!

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

Reply by email

silvioprog
to Samuel Herzog

2011/6/2 Samuel Herzog

Show quoted text 6 lines
Thanks! I was not able to install Lazarus-SVN on linux. I thought, wow Windows installers e.g. setup.exe are a nice thing! But your script runs perfect. Just installed on mint 11 (gnome). Took about 10mins to compile and install everything.

Yes! :)

Now I'm creating the second script:?update_fpc_lazarus_svn_version.sh

I'll share to all (and in Lazarus wiki) the script after approval of the Lazarus team.

Thx.

Regards, Sam
Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> 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: Hi. I edited a new page in wiki of Lazarus: http://wiki.freepascal.org/Installing_Lazarus#…

2011/6/2 silvioprog :

In this part...
echo ""
echo "Step 9: Compiling Lazarus..."
echo ""
make clean all
make bigideclean bigide <<<<<<<<<<

...I think you do not need the last line
On Windows, to compile Lazarus at the first time, I use: make clean all OPT="-glw2"

What is the correct?

Marcos Douglas

Reply by email

Mattias Gaertner
to Marcos Douglas
Show quoted text 13 lines
2011/6/2 silvioprog : > Hi. > I edited a new page in wiki of Lazarus: > http://wiki.freepascal.org/Installing_Lazarus#Ubuntu_11.04_or_later In this part... echo "" echo "Step 9: Compiling Lazarus..." echo "" make clean all make bigideclean bigide <<<<<<<<<< ...I think you do not need the last line

"make bigide" compiles an IDE with lots of packages. This is used by the installers you find on the website too.

It is enough to do

make bigideclean all bigide

On Windows, to compile Lazarus at the first time, I use: make clean all OPT="-glw2" What is the correct?

All of them.

Mattias

Reply by email

Marcos Douglas
to Mattias Gaertner
Mattias Gaertner wrote 15 lines
"make bigide" compiles an IDE with lots of packages. This is used by the installers you find on the website too. It is enough to do make bigideclean all bigide > On Windows, to compile Lazarus at the first time, I use: > make clean all OPT="-glw2" > > What is the correct? All of them.

So, for the first compilation I can use:
make clean all OPT="-glw2"

But to update Lazarus, I can use a BAT with:
make bigideclean all bigide
(in root Lazarus directory)

Is that correct?
Because I prefer compile Lazarus with a script instead use the IDE.

Thanks,
Marcos Douglas

Reply by email

silvioprog
to Marcos Douglas

Hm..., so:

First compilation:

make bigideclean all bigide

Secound (or more) compilation:

make bigideclean all bigide
./lazbuild -B --build-ide=

Rigth?

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

Reply by email

silvioprog
to Mattias Gaertner: On Thu, 2 Jun 2011 15:07:06 -0300 "make bigide" compiles an IDE with lots of packages.…

2011/6/2 Mattias Gaertner :

Show quoted text 6 lines
"make bigide" compiles an IDE with lots of packages. This is used by the installers you find on the website too. It is enough to do make bigideclean all bigide

So to install I change from:

echo ""
echo "Step 9: Compiling Lazarus..."
echo ""
make clean all
make bigideclean bigide

to:

echo ""
echo "Step 9: Compiling Lazarus..."
echo ""
make bigideclean all bigide

Yes? :/

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

Reply by email

silvioprog
to Mattias Gaertner

2011/6/2 Mattias Gaertner :

Show quoted text 7 lines
It makes no sense to build an IDE with a standard set of packages and then compiling an IDE with the user set. make clean all ./lazbuild --build-ide= Mattias

OK, that's my final script:

http://pastebin.com/kwHV8kC0

It's OK?

Thx. :)

Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> 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 Marcos Douglas: On Thu, Jun 2, 2011 at 3:44 PM, Mattias Gaertner So, for the first compilation I can use:…
Marcos Douglas wrote 27 lines
On Thu, Jun 2, 2011 at 3:44 PM, Mattias Gaertner wrote: > > "make bigide" compiles an IDE with lots of packages. This is used by > the installers you find on the website too. > > It is enough to do > > make bigideclean all bigide > > >> On Windows, to compile Lazarus at the first time, I use: >> make clean all OPT="-glw2" >> >> What is the correct? > > All of them. So, for the first compilation I can use: make clean all OPT="-glw2" But to update Lazarus, I can use a BAT with: make bigideclean all bigide (in root Lazarus directory) Is that correct? Because I prefer compile Lazarus with a script instead use the IDE.

OK. I changed my script[1] (Windows) to compile Lazarus. Before, I used it to make a new Lazarus, but to update it I always used the Build menu command on the IDE.
Now I can update it with the script:

@echo on
set myroot=c:\freepascal
set myFPC=%myroot%\compiler\2.4.5
set mybinutils=%myroot%\binutils
set PATH=%mybinutils%\i386-win32;%myFPC%\bin\i386-win32

cd ide\laz\0.9.30

lazbuild --build-all --recursive --build-ide=
--primary-config-path=%myroot%\ide\laz\config\

Everything works!

But... do not exists many ways to do the same task? make ... bigide... lazbuild... Do not is better have an only way to do this? Marcos Douglas

Reply by email

Marcos Douglas
to silvioprog: 2011/6/2 Mattias Gaertner : OK, that's my final script: http://pastebin.com/kwHV8kC0 It's…
silvioprog wrote 14 lines
2011/6/2 Mattias Gaertner : > It makes no sense to build an IDE with a standard set of packages and > then compiling an IDE with the user set. > > make clean all > ./lazbuild --build-ide= > > Mattias OK, that's my final script: http://pastebin.com/kwHV8kC0 It's OK?

In this part...
echo "Step 9: Compiling Lazarus..."
echo ""
make clean all
./lazbuild --build-ide=

...at the first time, just use:
make clean all OPT="-glw2"

You are doing the same task 2 times! I.e., "make" and "lazbuild".

Marcos Douglas

Reply by email

silvioprog
to Marcos Douglas: OK. I changed my script[1] (Windows) to compile Lazarus. Before, I used it to make a new…

2011/6/2 Marcos Douglas :
[...]

lazbuild --build-all --recursive --build-ide= ?--primary-config-path=%myroot%\ide\laz\config\ Everything works!

Hm..., then my final script (to update) is:

http://pastebin.com/N12bmhut

Right? :/

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

Reply by email

silvioprog
to Marcos Douglas: In this part... echo "Step 9: Compiling Lazarus..." echo "" make clean all ./lazbuild…

2011/6/2 Marcos Douglas :
[...]

Show quoted text 12 lines
In this part... echo "Step 9: Compiling Lazarus..." echo "" make clean all ./lazbuild --build-ide= ...at the first time, just use: make clean all OPT="-glw2" You are doing the same task 2 times! I.e., "make" and "lazbuild". Marcos Douglas

So, then my final script is:

http://pastebin.com/4DJXzY1g

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

Reply by email

Mattias Gaertner
to Marcos Douglas: OK. I changed my script[1] (Windows) to compile Lazarus. Before, I used it to make a new…
Show quoted text 53 lines
On Thu, Jun 2, 2011 at 3:54 PM, Marcos Douglas wrote: > On Thu, Jun 2, 2011 at 3:44 PM, Mattias Gaertner > wrote: >> >> "make bigide" compiles an IDE with lots of packages. This is used by >> the installers you find on the website too. >> >> It is enough to do >> >> make bigideclean all bigide >> >> >>> On Windows, to compile Lazarus at the first time, I use: >>> make clean all OPT="-glw2" >>> >>> What is the correct? >> >> All of them. > > So, for the first compilation I can use: > make clean all OPT="-glw2" > > But to update Lazarus, I can use a BAT with: > make bigideclean all bigide > (in root Lazarus directory) > > Is that correct? > Because I prefer compile Lazarus with a script instead use the IDE. OK. I changed my script[1] (Windows) to compile Lazarus. Before, I used it to make a new Lazarus, but to update it I always used the Build menu command on the IDE. Now I can update it with the script: @echo on set myroot=c:\freepascal set myFPC=%myroot%\compiler\2.4.5 set mybinutils=%myroot%\binutils set PATH=%mybinutils%\i386-win32;%myFPC%\bin\i386-win32 cd ide\laz\0.9.30 lazbuild --build-all --recursive --build-ide= --primary-config-path=%myroot%\ide\laz\config\ Everything works! -- But... do not exists many ways to do the same task? make ... bigide... lazbuild... Do not is better have an only way to do this?

"make" is a tool.

Calling "make" is a shortcut for "make all".

"all" is one target of our Makefile. It builds the basic set of packages and tools. "default" or "base" would be better names, but this has historical reasons and comes closer to what people from other open source projects using make expect.

"bigide" is another target of our Makefile. It builds an IDE with a predefined set of packages. This is needed for the windows installer, debian, redhat and carbon packages. You probably never need it.

There is currently no make target to build an IDE with the user set of packages, so you have to call lazbuild directly. The problem is that this requires information from outside the lazarus sources, so it requires configuration.
Maybe a target can be added to call "all" and then lazbuild. But this won't work for multiple installations.

Mattias

Reply by email

João Marcelo Vaz
to silvioprog: 2011/6/2 Mattias Gaertner : OK, that's my final script: http://pastebin.com/kwHV8kC0 It's…

Hi Silvio

2011/6/2 silvioprog

Show quoted text 8 lines
OK, that's my final script: http://pastebin.com/kwHV8kC0 It's OK? You still have some "/home/silvioprog/lazarus" instead of " /home/$USER/lazarus"

on the Desktop Entry creation.

[]
Jo?o Marcelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110602/d6f9ef28/attachment.html>

Reply by email

waldo kitty
to Marcos Douglas: On Thu, Jun 2, 2011 at 3:44 PM, Mattias Gaertner So, for the first compilation I can use:…
Marcos Douglas wrote 9 lines
So, for the first compilation I can use: make clean all OPT="-glw2" But to update Lazarus, I can use a BAT with: make bigideclean all bigide (in root Lazarus directory) Is that correct? Because I prefer compile Lazarus with a script instead use the IDE.

+100000 :)

i use your wiki page tutorial every time i update... i/we need to figure out why or what to do to be able to compile FPC and LAZ after a SVN Update from the commend line... currently, i have to wipe them, to a clean SVN Update, then run the .BAT files...

FWIW: the last part of my makefpc.bat goes to the proper directory and creates the fpc.cfg file ;)

Reply by email

Joshua Lim
to waldo kitty

Hi, this happens when i created the daemon using the "New Project wizard" which adds LazDaemonApp instead of LazDaemon and interfaces (for earlier versions).

joshua at debian:~/Desktop/Data/testapps/basicdaemon$ ./project1 -r Segmentation fault
joshua at debian:~/Desktop/Data/testapps/basicdaemon$ gdb ./project1

I've tried issuing kill pid and Ctrl C, both will result in Segmentation fault. Heap trace don't work so i can't debug my application.

I've uploaded the project file with all settings to - http://www.2shared.com/file/DQKFuP0u/basicdaemon.html

Appreciate any ideas. Thanks. :)

Here's the trace from GDB.

joshua at debian:~/Desktop/Data/testapps/basicdaemon$ gdb ./project1 .............
Reading symbols from
/home/joshua/Desktop/Data/testapps/basicdaemon/project1...done. (gdb) run -r
Starting program: /home/joshua/Desktop/Data/testapps/basicdaemon/project1 -r ^C
Program received signal SIGINT, Interrupt.
0xb7fe2424 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7fe2424 in __kernel_vsyscall ()
#1 0x08048732 in SYSTEM_FPSYSCALL$LONGINT$LONGINT$LONGINT$$LONGINT () #2 0x0809f481 in BASEUNIX_FPSIGSUSPEND$SIGSET_T$$LONGINT () #3 0x0809f56a in BASEUNIX_SIGPAUSE$LONGINT$$LONGINT () #4 0x00000000 in ?? ()
(gdb)

Reply by email

Unknown author
to silvioprog: 2011/6/2 Mattias Gaertner : OK, that's my final script: http://pastebin.com/kwHV8kC0 It's…
silvioprog wrote 16 lines
2011/6/2 Mattias Gaertner: > It makes no sense to build an IDE with a standard set of packages and > then compiling an IDE with the user set. > > make clean all > ./lazbuild --build-ide= > > Mattias OK, that's my final script: http://pastebin.com/kwHV8kC0 It's OK? Thx. :)

This script works at the Ubuntu 10.04.2 LTS and probably in Ubuntu 10.04.2.

#lazarus-br em irc.freenode.org #lazarusportugal em irc.ptnet.org(Cloud IRC em lazarusportugal.org/doku.php/irc) Em caso de d?vida sobre o cliente a usar clique em http://lazarusportugal.org/doku.php/duvidas_irc Juntem-se a estes fant?sticos IRC's sobre Lazarus

Reply by email

Kjow
to silvioprog: Hi. I edited a new page in wiki of Lazarus: http://wiki.freepascal.org/Installing_Lazarus#…

2011/6/2 silvioprog :

Show quoted text 6 lines
Hi. I edited a new page in wiki of Lazarus: http://wiki.freepascal.org/Installing_Lazarus#Ubuntu_11.04_or_later Enjoy! -- Silvio Cl?cio

Why you copied my script, perfectly working, edited it and republished it as you original work?

http://wiki.lazarus.freepascal.org/Lazarus_Manager

My script install lazarus and fpc from both svn on Ubuntu <=11.04 (and/or Windows). Also the script layout is equal to mine...

Finally you write: "This is the easiest way to install Lazarus on Ubuntu.", well... my script needs only to be started (your script has 3 commands)

Not so much correct...

Kjow.

Reply by email

Kjow
to Kjow

2011/6/3 Kjow :

Show quoted text 17 lines
Why you copied my script, perfectly working, edited it and republished it as you original work? http://wiki.lazarus.freepascal.org/Lazarus_Manager My script install lazarus and fpc from both svn on Ubuntu <=11.04 (and/or Windows). Also the script layout is equal to mine... Finally you write: "This is the easiest way to install Lazarus on Ubuntu.", well... my script needs only to be started (your script has 3 commands) Not so much correct... Kjow.

I forgot to write that with my script you are able to cross compile for arm-linux without any other works/commands.

Kjow

Reply by email

Ludo Brands
to Kjow: 2011/6/2 silvioprog : Why you copied my script, perfectly working, edited it and…

This is just another example of the "limited" value of the wiki. I'm using lazarus/fpc on windows, linux, macosx 32 and 64 bits and regularly I'm still looking for install/update help and I have never hit the mentioned page. Most of the usefull wiki pages I've encountered are through links on a mailinglist or in bug reports.
Just try googling site:freepascal.org lazarus install. The page is listed position 153! Ranking is poor because nothing seems to link to it. The wiki search is also really useless. Try a search for lazarus install: lazarus manager is in position 347! No wonder people keep struggling with installing/updating lazarus.
This morning I was looking for some info on parameter passing. Search for "parameters" and you get http://wiki.freepascal.org/Parameters on position 9 in article matches title. Search for "parameter" and the previous page is at position 157 of page text matches... Google for site:wiki.freepascal.org parameter and you find the page on 3.

What about getting rid of the wiki search in favor of a custom google search?

Ludo

Show quoted text 40 lines
-----Message d'origine----- De : Kjow [mailto:] Envoy? : vendredi 3 juin 2011 10:54 ? : Lazarus mailing list Objet : Re: [Lazarus] [TIP]: Installing Lazarus under Linux via SVN (Ubuntu 11.04 or later) 2011/6/2 silvioprog : > Hi. > I edited a new page in wiki of Lazarus: > http://wiki.freepascal.org/Installing_Lazarus#Ubuntu_11.04_or_later > Enjoy! > -- > Silvio Cl?cio Why you copied my script, perfectly working, edited it and republished it as you original work? http://wiki.lazarus.freepascal.org/Lazarus_Manager My script install lazarus and fpc from both svn on Ubuntu <=11.04 (and/or Windows). Also the script layout is equal to mine... Finally you write: "This is the easiest way to install Lazarus on Ubuntu.", well... my script needs only to be started (your script has 3 commands) Not so much correct... Kjow. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

silvioprog
to Kjow: 2011/6/2 silvioprog : Why you copied my script, perfectly working, edited it and…

2011/6/3 Kjow :

Show quoted text 16 lines
Why you copied my script, perfectly working, edited it and republished it as you original work? http://wiki.lazarus.freepascal.org/Lazarus_Manager My script install lazarus and fpc from both svn on Ubuntu <=11.04 (and/or Windows). Also the script layout is equal to mine... Finally you write: "This is the easiest way to install Lazarus on Ubuntu.", well... my script needs only to be started (your script has 3 commands) Not so much correct... Kjow.

Hi Kjow,

My script isn't a copy. The Scripts have similar layouts, but their code is different.

Note that in the script has "* Script by silvioprog and Lazarus team *".

But if you prefer I can change to:

http://pastebin.com/vPGvmXCb

Thx.

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

Reply by email

silvioprog
to João Marcelo Vaz: Hi Silvio 2011/6/2 silvioprog on the Desktop Entry creation. [] Jo?o Marcelo…

2011/6/2 Jo?o Marcelo Vaz :

Show quoted text 15 lines
Hi Silvio 2011/6/2 silvioprog > > OK, that's my final script: > > http://pastebin.com/kwHV8kC0 > > It's OK? > You still have some "/home/silvioprog/lazarus" instead of " /home/$USER/lazarus" on the Desktop Entry creation. [] Jo?o Marcelo

I saw some errors in .desktop. :o

Many thanks Jo?o Marcelo. :)

Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> 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 Mattias Gaertner: On Thu, 2 Jun 2011 16:59:55 -0300 "make" is a tool. Calling "make" is a shortcut for…
Mattias Gaertner wrote 20 lines
"make" is a tool. Calling "make" is a shortcut for "make all". "all" is one target of our Makefile. It builds the basic set of packages and tools. "default" or "base" would be better names, but this has historical reasons and comes closer to what people from other open source projects using make expect. "bigide" is another target of our Makefile. It builds an IDE with a predefined set of packages. This is needed for the windows installer, debian, redhat and carbon packages. You probably never need it. There is currently no make target to build an IDE with the user set of packages, so you have to call lazbuild directly. The problem is that this requires information from outside the lazarus sources, so it requires configuration. Maybe a target can be added to call "all" and then lazbuild. But this won't work for multiple installations.

Hi Mattias,
Now I understood.
So, instead use...
lazbuild --build-all --recursive --build-ide=
--primary-config-path=%myroot%\ide\laz\config\

...the correct will be:
1?) make clean all
2?) lazbuild --primary-config-path=%myroot%\ide\laz\config\

1? I clean and update all;
2? I make the Lazarus with my components installed before.

That is correct?

Marcos Douglas

Reply by email

Marcos Douglas
to waldo kitty: +100000 :) i use your wiki page tutorial every time i update... i/we need to figure out…
waldo kitty wrote 15 lines
On 6/2/2011 14:54, Marcos Douglas wrote: > > So, for the first compilation I can use: > make clean all OPT="-glw2" > > But to update Lazarus, I can use a BAT with: > make bigideclean all bigide > (in root Lazarus directory) > > Is that correct? > Because I prefer compile Lazarus with a script instead use the IDE. +100000 :) i use your wiki page tutorial every time i update...

I'm glad for this!

i/we need to figure out why or what to do to be able to compile FPC and LAZ after a SVN Update from the commend line... currently, i have to wipe them, to a clean SVN Update, then run the .BAT files...

To compile FPC after of SVN update, I use:
----------------------------------------------------------------------------- @echo on

set myroot=%cd%
set myFPC=%myroot%\compiler\2.4.5
set mybinutils=%myroot%\binutils
set PATH=%mybinutils%\i386-win32;%myFPC%\bin\i386-win32

cd %myFPC%

rd /s /q %myfpc%\examples

make clean all install INSTALL_PREFIX=%myFPC%
PP=%mybinutils%\ppc386.exe
-----------------------------------------------------------------------------

Saw the 'rd' command? =)

FWIW: the last part of my makefpc.bat goes to the proper directory and creates the fpc.cfg file ;)

Very good. But you only create this file once, right?

Marcos Douglas

Reply by email

Mattias Gaertner
to Marcos Douglas: On Thu, Jun 2, 2011 at 5:31 PM, Mattias Gaertner Now I understood. So, instead use...…
Show quoted text 32 lines
On Thu, Jun 2, 2011 at 5:31 PM, Mattias Gaertner wrote: > > "make" is a tool. > > Calling "make" is a shortcut for "make all". > > "all" is one target of our Makefile. It builds the basic set of > packages and tools. "default" or "base" would be better names, but this > has historical reasons and comes closer to what people from other open > source projects using make expect. > > "bigide" is another target of our Makefile. It builds an IDE with a > predefined set of packages. This is needed for the windows installer, > debian, redhat and carbon packages. You probably never need it. > > There is currently no make target to build an IDE with the user set of > packages, so you have to call lazbuild directly. The problem is that > this requires information from outside the lazarus sources, so it > requires configuration. > Maybe a target can be added to call "all" and then lazbuild. But this > won't work for multiple installations. Hi Mattias, Now I understood. So, instead use... lazbuild --build-all --recursive --build-ide= --primary-config-path=%myroot%\ide\laz\config\ ...the correct will be: 1?) make clean all 2?) lazbuild --primary-config-path=%myroot%\ide\laz\config\

Your forgot the --build-ide= parameter.
lazbuild --primary-config-path=%myroot%\ide\laz\config\ --build-ide=

1? I clean and update all; 2? I make the Lazarus with my components installed before. That is correct?

Yes.

Mattias

Reply by email

Marcos Douglas
to Mattias Gaertner
Mattias Gaertner wrote 48 lines
On Fri, 3 Jun 2011 10:09:39 -0300 Marcos Douglas wrote: > On Thu, Jun 2, 2011 at 5:31 PM, Mattias Gaertner > wrote: > > > > "make" is a tool. > > > > Calling "make" is a shortcut for "make all". > > > > "all" is one target of our Makefile. It builds the basic set of > > packages and tools. "default" or "base" would be better names, but this > > has historical reasons and comes closer to what people from other open > > source projects using make expect. > > > > "bigide" is another target of our Makefile. It builds an IDE with a > > predefined set of packages. This is needed for the windows installer, > > debian, redhat and carbon packages. You probably never need it. > > > > There is currently no make target to build an IDE with the user set of > > packages, so you have to call lazbuild directly. The problem is that > > this requires information from outside the lazarus sources, so it > > requires configuration. > > Maybe a target can be added to call "all" and then lazbuild. But this > > won't work for multiple installations. > > Hi Mattias, > Now I understood. > So, instead use... > lazbuild --build-all --recursive --build-ide= > ? --primary-config-path=%myroot%\ide\laz\config\ > > ...the correct will be: > 1?) make clean all > 2?) lazbuild --primary-config-path=%myroot%\ide\laz\config\ Your forgot the --build-ide= parameter. lazbuild --primary-config-path=%myroot%\ide\laz\config\ --build-ide= > 1? I clean and update all; > 2? I make the Lazarus with my components installed before. > > That is correct? Yes. Mattias

But in my script I did not forgot. ;-) Thanks.

See:
make clean all OPT="-glw2
lazbuild --primary-config-path=%myroot%\ide\laz\config\ --build-ide=

BTW, what the difference to use OPT="-glw2"?

Marcos Douglas

Reply by email

Marcos Douglas
to Mattias Gaertner: On Fri, 3 Jun 2011 10:09:39 -0300 Your forgot the --build-ide= parameter. lazbuild…
Mattias Gaertner wrote 48 lines
On Fri, 3 Jun 2011 10:09:39 -0300 Marcos Douglas wrote: > On Thu, Jun 2, 2011 at 5:31 PM, Mattias Gaertner > wrote: > > > > "make" is a tool. > > > > Calling "make" is a shortcut for "make all". > > > > "all" is one target of our Makefile. It builds the basic set of > > packages and tools. "default" or "base" would be better names, but this > > has historical reasons and comes closer to what people from other open > > source projects using make expect. > > > > "bigide" is another target of our Makefile. It builds an IDE with a > > predefined set of packages. This is needed for the windows installer, > > debian, redhat and carbon packages. You probably never need it. > > > > There is currently no make target to build an IDE with the user set of > > packages, so you have to call lazbuild directly. The problem is that > > this requires information from outside the lazarus sources, so it > > requires configuration. > > Maybe a target can be added to call "all" and then lazbuild. But this > > won't work for multiple installations. > > Hi Mattias, > Now I understood. > So, instead use... > lazbuild --build-all --recursive --build-ide= > ? --primary-config-path=%myroot%\ide\laz\config\ > > ...the correct will be: > 1?) make clean all > 2?) lazbuild --primary-config-path=%myroot%\ide\laz\config\ Your forgot the --build-ide= parameter. lazbuild --primary-config-path=%myroot%\ide\laz\config\ --build-ide= > 1? I clean and update all; > 2? I make the Lazarus with my components installed before. > > That is correct? Yes. Mattias

Not worked.
The IDE was 'clean', without my packages.

The Build command in IDE, do something different this: make clean all
lazbuild --build-ide= --primary-config-path=<my_config_path>

Marcos Douglas

Reply by email

Marcos Douglas
to Marcos Douglas
Marcos Douglas wrote 57 lines
On Fri, Jun 3, 2011 at 10:52 AM, Mattias Gaertner wrote: > On Fri, 3 Jun 2011 10:09:39 -0300 > Marcos Douglas wrote: > >> On Thu, Jun 2, 2011 at 5:31 PM, Mattias Gaertner >> wrote: >> > >> > "make" is a tool. >> > >> > Calling "make" is a shortcut for "make all". >> > >> > "all" is one target of our Makefile. It builds the basic set of >> > packages and tools. "default" or "base" would be better names, but this >> > has historical reasons and comes closer to what people from other open >> > source projects using make expect. >> > >> > "bigide" is another target of our Makefile. It builds an IDE with a >> > predefined set of packages. This is needed for the windows installer, >> > debian, redhat and carbon packages. You probably never need it. >> > >> > There is currently no make target to build an IDE with the user set of >> > packages, so you have to call lazbuild directly. The problem is that >> > this requires information from outside the lazarus sources, so it >> > requires configuration. >> > Maybe a target can be added to call "all" and then lazbuild. But this >> > won't work for multiple installations. >> >> Hi Mattias, >> Now I understood. >> So, instead use... >> lazbuild --build-all --recursive --build-ide= >> ? --primary-config-path=%myroot%\ide\laz\config\ >> >> ...the correct will be: >> 1?) make clean all >> 2?) lazbuild --primary-config-path=%myroot%\ide\laz\config\ > > Your forgot the --build-ide= parameter. > lazbuild --primary-config-path=%myroot%\ide\laz\config\ --build-ide= > > >> 1? I clean and update all; >> 2? I make the Lazarus with my components installed before. >> >> That is correct? > > Yes. > > Mattias Not worked. The IDE was 'clean', without my packages. The Build command in IDE, do something different this: make clean all lazbuild --build-ide= --primary-config-path=<my_config_path>

The complete script:
@echo on
set myroot=%cd%
set mybinutils=%myroot%\binutils
set myFPC=%myroot%\compiler\2.4.5
set myLaz=%myroot%\ide\laz\0.9.30
set PATH=%mybinutils%\i386-win32;%myFPC%\bin\i386-win32

cd %myLaz%
make clean all

cd %myLaz%
lazbuild --build-ide= --primary-config-path=%myroot%\ide\laz\config\

Marcos Douglas

Reply by email

silvioprog
to Marcos Douglas

Hi Mattias and all,

This is my ultimate scripts:

(To Install): http://silvioprog.com.br/download/install_fpc_lazarus_svn_version.tar.gz (To Update): http://silvioprog.com.br/download/update_fpc_lazarus_svn_version.tar.gz

Now corrects, OK?

Many thanks.

Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> 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 8 lines

Silvio,
How I said a few minutes ago, these commands...
make clean all
lazbuild --build-ide= --primary-config-path=<path_config>

...did not compile the IDE with user packages installed before.

I had to use my lazarus.exe backup to restore it!

I discovery that:
1- If you use just the command...
lazbuild --build-ide= --primary-config-path=<path_config> You update and compile Lazarus with your packages... but not ALL files will be update.

2- If you use the command...
make clean all
You update and compile Lazarus... but not your packages.

Marcos Douglas

Reply by email

Mattias Gaertner
to Marcos Douglas

Marcos Douglas hat am 3. Juni 2011 um 17:19 geschrieben:

Show quoted text 18 lines
On Fri, Jun 3, 2011 at 12:03 PM, silvioprog wrote: > Hi Mattias and all, > > This is my ultimate scripts: > > (To Install): > http://silvioprog.com.br/download/install_fpc_lazarus_svn_version.tar.gz > (To Update): > http://silvioprog.com.br/download/update_fpc_lazarus_svn_version.tar.gz > > Now corrects, OK? Silvio, How I said a few minutes ago, these commands... make clean all lazbuild --build-ide= --primary-config-path=<path_config> ...did not compile the IDE with user packages installed before.?

Then you found a bug.
?
?

Show quoted text 8 lines
I had to use my lazarus.exe backup to restore it! I discovery that: 1- If you use just the command... lazbuild --build-ide= --primary-config-path=<path_config> You update and compile Lazarus with your packages... but not ALL files will be update.?

Only the IDE and the installed packages are updated. What files were not updated?
?
?

2- If you use the command... make clean all You update and compile Lazarus... but not your packages.

Yes.
?
Mattias
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110603/e0a05d38/attachment.html>

Reply by email

Marcos Douglas
to Mattias Gaertner

2011/6/3 Mattias Gaertner :

Show quoted text 24 lines
Marcos Douglas hat am 3. Juni 2011 um 17:19 geschrieben: > On Fri, Jun 3, 2011 at 12:03 PM, silvioprog wrote: > > Hi Mattias and all, > > > > This is my ultimate scripts: > > > > (To Install): > > http://silvioprog.com.br/download/install_fpc_lazarus_svn_version.tar.gz > > (To Update): > > http://silvioprog.com.br/download/update_fpc_lazarus_svn_version.tar.gz > > > > Now corrects, OK? > > Silvio, > How I said a few minutes ago, these commands... > make clean all > lazbuild --build-ide= --primary-config-path=<path_config> > > ...did not compile the IDE with user packages installed before. Then you found a bug.

Oh God... I have to create a post in the bugtracker? Ok, I will.

Show quoted text 13 lines
> I had to use my lazarus.exe backup to restore it! > > I discovery that: > 1- If you use just the command... > lazbuild --build-ide= --primary-config-path=<path_config> > You update and compile Lazarus with your packages... but not ALL files > will be update. Only the IDE and the installed packages are updated. What files were not updated?

I don't know. Sorry, I said that because my IDE was broken.

Show quoted text 6 lines
> > 2- If you use the command... > make clean all > You update and compile Lazarus... but not your packages. Yes.

That is a little wrong.
First the 'make' command create a 'Lazarus binary clean'. Second, lazbuild create other Lazarus binary, but with user's packages. Two times to override the Lazarus binary.

Marcos Douglas

Reply by email

Marcos Douglas
to Mattias Gaertner: Marcos Douglas hat am 3. Juni 2011 um 17:19 geschrieben: Then you found a bug. ? ? Only…

2011/6/3 Mattias Gaertner :

Then you found a bug.

Mattias,

I saw that bug[1] was 'resolved'. Sorry not answer before, but I was very busy.

So, I updated my SVN Lazarus to 31119 rev. I did not see any changes about lazbuild... but I saw in /trunk (remember, I use /branches/fixes_0_9_30).
The problem was fixed in /trunk (I did not test), but do not in /branches/fixes_0_9_30?

[1] http://bugs.freepascal.org/view.php?id=19474

Marcos Douglas

Reply by email

Mattias Gaertner
to Marcos Douglas
Show quoted text 15 lines
2011/6/3 Mattias Gaertner : > > Then you found a bug. Mattias, I saw that bug[1] was 'resolved'. Sorry not answer before, but I was very busy. So, I updated my SVN Lazarus to 31119 rev. I did not see any changes about lazbuild... but I saw in /trunk (remember, I use /branches/fixes_0_9_30). The problem was fixed in /trunk (I did not test), but do not in /branches/fixes_0_9_30? [1] http://bugs.freepascal.org/view.php?id=19474

This change is not a simple fix, but changes the behavior of lazbuild. Formerly lazbuild created a lazarus.new.exe. Users with build scripts might expect this. So this change breaks compatibility and should not go the fixes branch.
I didn't test, but I guess 0.9.28 did the same.

Mattias

Reply by email

Marcos Douglas
to Mattias Gaertner
Mattias Gaertner wrote 25 lines
On Mon, 6 Jun 2011 10:00:10 -0300 Marcos Douglas wrote: > 2011/6/3 Mattias Gaertner : > > > > Then you found a bug. > > Mattias, > > I saw that bug[1] was 'resolved'. Sorry not answer before, but I was very busy. > > So, I updated my SVN Lazarus to 31119 rev. I did not see any changes > about lazbuild... but I saw in /trunk (remember, I use > /branches/fixes_0_9_30). > The problem was fixed in /trunk (I did not test), but do not in > /branches/fixes_0_9_30? > > [1] http://bugs.freepascal.org/view.php?id=19474 This change is not a simple fix, but changes the behavior of lazbuild. Formerly lazbuild created a lazarus.new.exe. Users with build scripts might expect this. So this change breaks compatibility and should not go the fixes branch. I didn't test, but I guess 0.9.28 did the same.

OK, I understand.
So, I can use 'make clean all' and 'lazbuild --build-ide --pcp=<my_path>' and the script will be create a lazarus.new.exe, not a lazarus.exe.
Simply my script could uses 'ren' command (on Windows) to rename this new binary?

You marked 'resolved'. So, you confirmed my suspicions? Just to be clear.

Thanks!

Marcos Douglas

Reply by email

Mattias Gaertner
to Marcos Douglas
Show quoted text 34 lines
On Mon, Jun 6, 2011 at 10:10 AM, Mattias Gaertner wrote: > > On Mon, 6 Jun 2011 10:00:10 -0300 > Marcos Douglas wrote: > > > 2011/6/3 Mattias Gaertner : > > > > > > Then you found a bug. > > > > Mattias, > > > > I saw that bug[1] was 'resolved'. Sorry not answer before, but I was very busy. > > > > So, I updated my SVN Lazarus to 31119 rev. I did not see any changes > > about lazbuild... but I saw in /trunk (remember, I use > > /branches/fixes_0_9_30). > > The problem was fixed in /trunk (I did not test), but do not in > > /branches/fixes_0_9_30? > > > > [1] http://bugs.freepascal.org/view.php?id=19474 > > This change is not a simple fix, but changes the behavior of lazbuild. > Formerly lazbuild created a lazarus.new.exe. Users with build scripts > might expect this. So this change breaks compatibility and should not go > the fixes branch. > I didn't test, but I guess 0.9.28 did the same. OK, I understand. So, I can use 'make clean all' and 'lazbuild --build-ide --pcp=<my_path>' and the script will be create a lazarus.new.exe, not a lazarus.exe. Simply my script could uses 'ren' command (on Windows) to rename this new binary?

Yes.

You marked 'resolved'. So, you confirmed my suspicions? Just to be clear.

The lazbuild of 0.9.31 creates a lazarus.exe.

Mattias

Reply by email

Marcos Douglas
to Mattias Gaertner
Mattias Gaertner wrote 39 lines
On Mon, 6 Jun 2011 11:42:39 -0300 Marcos Douglas wrote: > On Mon, Jun 6, 2011 at 10:10 AM, Mattias Gaertner > wrote: > > > > On Mon, 6 Jun 2011 10:00:10 -0300 > > Marcos Douglas wrote: > > > > > 2011/6/3 Mattias Gaertner : > > > > > > > > Then you found a bug. > > > > > > Mattias, > > > > > > I saw that bug[1] was 'resolved'. Sorry not answer before, but I was very busy. > > > > > > So, I updated my SVN Lazarus to 31119 rev. I did not see any changes > > > about lazbuild... but I saw in /trunk (remember, I use > > > /branches/fixes_0_9_30). > > > The problem was fixed in /trunk (I did not test), but do not in > > > /branches/fixes_0_9_30? > > > > > > [1] http://bugs.freepascal.org/view.php?id=19474 > > > > This change is not a simple fix, but changes the behavior of lazbuild. > > Formerly lazbuild created a lazarus.new.exe. Users with build scripts > > might expect this. So this change breaks compatibility and should not go > > the fixes branch. > > I didn't test, but I guess 0.9.28 did the same. > > OK, I understand. > So, I can use 'make clean all' and 'lazbuild --build-ide > --pcp=<my_path>' and the script will be create a lazarus.new.exe, not > a lazarus.exe. > Simply my script could uses 'ren' command (on Windows) to rename this > new binary? Yes.

Thank you.

> You marked 'resolved'. So, you confirmed my suspicions? Just to be clear. The lazbuild of 0.9.31 creates a lazarus.exe.

OK, good to know.
I will wait for the new version of lazbuild, until then I will continue using the IDE Build command... otherwise I'll forget to update my script when the new version out! =)

Thanks for your time.

Marcos Douglas

Reply by email

Joshua Lim
to Joshua Lim: Hi, this happens when i created the daemon using the "New Project wizard" which adds…

I've posted a follow up on the Lazarus forum -
http://www.lazarus.freepascal.org/index.php/topic,13371.0.html

Thks.

Joshua Lim wrote 47 lines
Hi, this happens when i created the daemon using the "New Project wizard" which adds LazDaemonApp instead of LazDaemon and interfaces (for earlier versions). joshua at debian:~/Desktop/Data/testapps/basicdaemon$ ./project1 -r Segmentation fault joshua at debian:~/Desktop/Data/testapps/basicdaemon$ gdb ./project1 I've tried issuing kill pid and Ctrl C, both will result in Segmentation fault. Heap trace don't work so i can't debug my application. I've uploaded the project file with all settings to - http://www.2shared.com/file/DQKFuP0u/basicdaemon.html Appreciate any ideas. Thanks. :) Here's the trace from GDB. joshua at debian:~/Desktop/Data/testapps/basicdaemon$ gdb ./project1 ............. Reading symbols from /home/joshua/Desktop/Data/testapps/basicdaemon/project1...done. (gdb) run -r Starting program: /home/joshua/Desktop/Data/testapps/basicdaemon/project1 -r ^C Program received signal SIGINT, Interrupt. 0xb7fe2424 in __kernel_vsyscall () (gdb) bt #0 0xb7fe2424 in __kernel_vsyscall () #1 0x08048732 in SYSTEM_FPSYSCALL$LONGINT$LONGINT$LONGINT$$LONGINT () #2 0x0809f481 in BASEUNIX_FPSIGSUSPEND$SIGSET_T$$LONGINT () #3 0x0809f56a in BASEUNIX_SIGPAUSE$LONGINT$$LONGINT () #4 0x00000000 in ?? () (gdb) -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

silvioprog
to Marcos Douglas: On Mon, Jun 6, 2011 at 11:49 AM, Mattias Gaertner Thank you. OK, good to know. I will…

Hm..., I tried to install now and gave the following error:

[...]
/home/silvioprog/lazarus/lcl/interfaces/gtk2/gtk2devicecontext.inc(1045,15) Hint: Conversion between ordinals and pointers is not portable "Compilando pacote LCL 1.0.1" completado
Options changed, recompiling clean with -B
Error: Illegal parameter: -WG

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

Reply by email

silvioprog
to silvioprog

2011/6/6 silvioprog :

Show quoted text 8 lines
Hm..., I tried to install now and gave the following error: [...] /home/silvioprog/lazarus/lcl/interfaces/gtk2/gtk2devicecontext.inc(1045,15) Hint: Conversion between ordinals and pointers is not portable "Compilando pacote LCL 1.0.1" completado Options changed, recompiling clean with -B Error: Illegal parameter: -WG

Nobody? :(

This error is confirmed in other installation.

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

Reply by email

silvioprog
to Marcos Douglas: On Mon, Jun 6, 2011 at 11:49 AM, Mattias Gaertner Thank you. OK, good to know. I will…

Hi.

Finally, all the scripts are ready, tested and approved!

Install:
http://silvioprog.com.br/download/install_fpc_lazarus_svn_version.tar.gz

Update:
http://silvioprog.com.br/download/update_fpc_lazarus_svn_version.tar.gz

Remove:
http://silvioprog.com.br/download/remove_fpc_lazarus_svn_version.tar.gz

Customize (for 800x600):
http://silvioprog.com.br/download/custom_lazarus_svn_version_800x600.tar.gz

Customize (for 1024x768):
http://silvioprog.com.br/download/custom_lazarus_svn_version_1024x768.tar.gz

Good luck! :)

Thx to all.

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

Reply by email