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!

Mailing lists / lazarus / 2011-06
47 messages · 11 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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!
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!
Blz Silvio.
Marcos Douglas
Nice work brother.
Rafael Tuim Elias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110602/82faf405/attachment.html>
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!
2011/6/2 Samuel Herzog
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
Hi. I edited a new page in wiki of Lazarus: http://wiki.freepascal.org/Installing_Lazarus#…
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
On Windows, to compile Lazarus at the first time, I use: make clean all OPT="-glw2"
What is the correct?
Marcos Douglas
"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
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
Hm..., so:
First compilation:
make bigideclean all bigide
Secound (or more) compilation:
make bigideclean all bigide
./lazbuild -B --build-ide=
Rigth?
On Thu, 2 Jun 2011 15:07:06 -0300 "make bigide" compiles an IDE with lots of packages.…
2011/6/2 Mattias Gaertner :
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? :/
Hm..., so: First compilation: make bigideclean all bigide Secound (or more) compilation:…
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
2011/6/2 Mattias Gaertner :
OK, that's my final script:
It's OK?
Thx. :)
On Thu, Jun 2, 2011 at 3:44 PM, Mattias Gaertner So, for the first compilation I can use:…
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!
2011/6/2 Mattias Gaertner : OK, that's my final script: http://pastebin.com/kwHV8kC0 It's…
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
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:
Right? :/
In this part... echo "Step 9: Compiling Lazarus..." echo "" make clean all ./lazbuild…
2011/6/2 Marcos Douglas :
[...]
So, then my final script is:
2011/6/2 Marcos Douglas : [...] Hm..., then my final script (to update) is:…
I think so. But I do not have Linux to test it! =)
Marcos Douglas
OK. I changed my script[1] (Windows) to compile Lazarus. Before, I used it to make a new…
"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
2011/6/2 Mattias Gaertner : OK, that's my final script: http://pastebin.com/kwHV8kC0 It's…
Hi Silvio
2011/6/2 silvioprog
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>
On Thu, Jun 2, 2011 at 3:44 PM, Mattias Gaertner So, for the first compilation I can use:…
+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 ;)
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)
2011/6/2 Mattias Gaertner : OK, that's my final script: http://pastebin.com/kwHV8kC0 It's…
This script works at the Ubuntu 10.04.2 LTS and probably in Ubuntu 10.04.2.
Hi. I edited a new page in wiki of Lazarus: http://wiki.freepascal.org/Installing_Lazarus#…
2011/6/2 silvioprog :
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.
2011/6/3 Kjow :
I forgot to write that with my script you are able to cross compile for arm-linux without any other works/commands.
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
2011/6/2 silvioprog : Why you copied my script, perfectly working, edited it and…
2011/6/3 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:
Thx.
Hi Silvio 2011/6/2 silvioprog on the Desktop Entry creation. [] Jo?o Marcelo…
2011/6/2 Jo?o Marcelo Vaz :
I saw some errors in .desktop. :o
Many thanks Jo?o Marcelo. :)
On Thu, 2 Jun 2011 16:59:55 -0300 "make" is a tool. Calling "make" is a shortcut for…
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
+100000 :) i use your wiki page tutorial every time i update... i/we need to figure out…
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
On Thu, Jun 2, 2011 at 5:31 PM, Mattias Gaertner Now I understood. So, instead use...…
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
On Fri, 3 Jun 2011 10:09:39 -0300 Your forgot the --build-ide= parameter. lazbuild…
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
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
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,
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
Marcos Douglas hat am 3. Juni 2011 um 17:19 geschrieben:
Then you found a bug.
?
?
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>
2011/6/3 Mattias Gaertner :
Oh God... I have to create a post in the bugtracker? Ok, I will.
I don't know. Sorry, I said that because my IDE was broken.
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
Marcos Douglas wrote> Then you found a bug. Oh God... I have to create a post in the bugtracker? Ok, I will.
Bugtracker:
http://bugs.freepascal.org/view.php?id=19474
Marcos Douglas
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
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
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
Yes.
You marked 'resolved'. So, you confirmed my suspicions? Just to be clear.
The lazbuild of 0.9.31 creates a lazarus.exe.
Mattias
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
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.
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
2011/6/6 silvioprog :
Nobody? :(
This error is confirmed in other installation.
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.