Difference between revisions of "Lazarus Manager"

From Lazarus wiki
Jump to navigationJump to search
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
  
These scripts are made for me, by me. So many of you might not like my needs.
+
This program is made to have latest news of lazarus/fpc development, because install everyday the daily snapshot is a little bit laborious.
  
They are made to have latest news of lazarus/fpc development, because official releases are, generally, old and install everyday the daily snapshot is a little bit laborious.
+
You can edit and improve Lazarus Manager sending me your feedback, maybe I will release the source code in future, but now I prefer to develop it myself.
  
You can edit and improve these scripts, but PLEASE put your modifies in this page, so everyone can get benefits.
+
Finally, these scripts are for who doesn't want waste time on installations/configurations, but wants to develop on quick time ("end-users", not "developers of the development system").
  
Finally, these scripts are for who doesn't want waste time on installations/configurations, but wants to develop on quick time ("end-users", not "developers of the development system").
+
'''NOTE''': Lazarus Manager is made by [[User:Kjow|Kjow]] and are '''not supported by the FPC/Lazarus team'''. This is occasionally updated to ''latest revision'', but there may be problems with ''last minute'' SVN changes (so, it might not work with the ''last minute'' version).
 +
 
 +
'''NOTE 2''': Before Lazarus Manager, there were four scripts (2 for windows and 2 for Linux). These are obsolete. They don't work anymore due changes in Lazarus/FPC source and Windows/Linux structure. '''Don't ask for these, they don't exist anymore.'''
  
----
+
<br>
  
 
== Windows ==
 
== Windows ==
Download [http://www.kjow.net/download.php?get=LazarusManager_v0.3.zip THIS] (updated to v0.3) file and unzip it to any folder you want (e.g. c:\Downloads\LazarusManager\).
+
Lazarus Manager is a sort of "one-click" installation that permit to install Lazarus/FPC svn without anything else. It downloads all the necessary (svn client, utils, binutils, Lazarus branches/trunk svn, FPC branches/trunk svn), makes the directories structure and builds everything for also cross-compile for arm android/linux.
 +
 
 +
 
 +
From Windows (with android ndk, if required) it build:
 +
<br><br>
 +
* Lazarus branch with  targets:
 +
**i386-win32
 +
**X86_64-win64
 +
<br>
 +
*Lazarus trunk with  targets:
 +
**i386-win32
 +
**X86_64-win64
 +
**arm-android
 +
**arm-linux
 +
 
 +
<br>
 +
 
 +
=== First Installation ===
 +
 
 +
Lazarus Manager has some controls to check if something fails (e.g. android ndk path not found), anyway before start you should know something and set some little things.
 +
 
 +
Lazarus Manager saves latest settings used in '''./config.ini''':
 +
 
 +
*Drive
 +
*Path
 +
*Branches svn url
 +
*Trunk svn url
 +
*Android ndk paths
 +
 
 +
The usage of Lazarus Manager is intuitive, so in first tab you will find base file urls.
 +
 
 +
If you want to make shortcuts to desktop check the flag in left-bottom corner.
 +
 
 +
<center>
 +
[[File:Pre-Installation.png]]
 +
</center>
 +
 
 +
'''NOTE''': If you choose to select "One click installation" (recommended), buttons '''"Generate Directory Structure"''' and '''"Start Necessaries Download"''' are ''[[disabled]]'' and the installation process will do all the work for you.
 +
 
 +
<br>
 +
In "Stable Tree" tab there are the svn urls (you can change with newer revision when they will came out) and targets:
 +
 
 +
 
 +
<center>
 +
[[File:Stable-Tree.png]]
 +
</center>
 +
 
 +
 
 +
If you need to cross-compile Lazarus app for Android, you need to download and extract the NDK in your hard disk, then you had to save two paths:
 +
 
 +
*arm-linux-androideabi
 +
*binutils
 +
 
 +
<br>
 +
E.g. if you use Windows X64 (I tested on Windows 8.1 X64), download and initialize Android NDK for Windows X64. So, if you have version r9 of ndk the requested paths will be:
 +
 
 +
*C:\Android\android-ndk-r9\toolchains\arm-linux-androideabi-4.8\prebuilt\windows-x86_64\arm-linux-androideabi\bin
 +
*C:\Android\android-ndk-r9\toolchains\arm-linux-androideabi-4.8\prebuilt\windows-x86_64\bin
 +
 
 +
 
 +
<center>
 +
[[File:Trunk-Tree.png]]
 +
</center>
  
Double click on '''LazarusManager.bat''' and follow '''ALL''' instructions you read in the console window.
 
  
How it appears:
+
In "Install/Update" tab you can do the first installation or just update actual installation:
  
********************************************************
 
*                                                      *
 
*            Automated Installation v0.3              *
 
*            for Lazarus/FPC/GLScene svn              *
 
*                                      Script by Kjow *
 
*                                                      *
 
* This script is designed for Windows 7                *
 
* (It should work on 2000/XP/Vista also)              *
 
********************************************************
 
 
Lazarus seems to be not installed, what do you want to do?
 
  1) Install [Press I for this option]
 
  2) Exit    [Press E for this option] -> Default. Exit in 10sec.
 
Choice [I/E]:
 
  
After installation process, you can update svn and compile/build everything, simply double clicking on "Lazarus Manager.bat".<br>
+
<center>
I suggest you to add '''LazarusManager.bat''' at start of windows, so you will have every morning the latest updates.<br>
+
[[File:Install-Update.png]]
How it appears after first installation process:
+
</center>
  
********************************************************
+
=== Update ===
*                                                      *
 
*            Automated Installation v0.3              *
 
*            for Lazarus/FPC/GLScene svn              *
 
*                                      Script by Kjow *
 
*                                                      *
 
* This script is designed for Windows 7                *
 
* (It should work on 2000/XP/Vista also)              *
 
********************************************************
 
 
Lazarus already configured, what do you want to do?
 
  1) Delete all and restart. [Press D for this option]
 
  2) Update Lazarus & FPC.  [Press U for this option] -> Default in 10sec.
 
  3) Exit                    [Press E for this option]
 
Choice [D/U/E]:
 
  
----
+
In the end, if you want automatize update process you can make a link (or batch file) to LazarusManager.exe to put in Windows auto-start directory, or just launch it when necessary. An example of this link is supplied in zip file.
 +
<br>
 +
<br>
 +
LazarusManager accepts three parameters:
  
'''NOTE 1''': If you want change destination folder, edit line number '''14''':
+
* First parameter
set PATHDEST=C:\Develop
+
**'''autoupdate''' (it indicates that Lazarus should be updated automatically to latest svn, without interactions)
with
+
<br>
  set PATHDEST=C:\WhatYouWant
+
* Second parameter
 +
**'''both''' (it updates '''both''' branch and trunk trees)
 +
**'''branch''' (it updates '''branch''' tree)
 +
**'''trunk''' (it updates '''trunk''' tree)
 +
<br>
 +
* Third parameter ('''NOTE: i386-win32 target is always included''')
 +
**'''all''' (it updates '''all''' targets)
 +
**'''x64b''' (it updates '''x86_64-win64 branch''' target)
 +
**'''x64t''' (it updates '''x86_64-win64 trunk''' target)
 +
**'''andarm''' (it updates '''arm-android trunk''' target)
 +
**'''linarm''' (it updates '''arm-linux trunk''' target)
 +
<br>
 +
Example 1:
 +
  LazarusManager.exe autoupdate both all
  
You '''CAN'T''' use path with spaces. Please don't forget it!
+
Example 2:
 +
LazarusManager.exe autoupdate branch x64b
  
'''NOTE 2''': When requested remember to install fpc on ''c:\develop\fpc\2.4.0'' (or if you edited ''PATHDEST'' -> ''C:\WhatYouWant\fpc\2.4.0'')
+
Wrong combinations are ignored, e.g.
 +
LazarusManager.exe autoupdate branch andarm
  
'''NOTE 3''': if you want latest FPC '''development trunk''' (e.g. 2.5.x) instead latest '''2.4.0''', modify the lines '''134''' & '''135''', from:
+
<br>
  
<nowiki>svn co http://svn.freepascal.org/svn/fpc/tags/release_2_4_0 fpc</nowiki>
+
=== Directory structure ===
<nowiki>REM svn co http://svn.freepascal.org/svn/fpc/trunk fpc</nowiki>
 
  
to:
+
[[File:Directories.png]]
  
<nowiki>REM svn co http://svn.freepascal.org/svn/fpc/tags/release_2_4_0 fpc</nowiki>
+
=== How to start Lazarus ===
<nowiki>svn co http://svn.freepascal.org/svn/fpc/trunk fpc</nowiki>
 
  
so, simply swap the '''REM''' command.
+
Lazarus Manager will create in lazarus branch/trunk roots a shortcuts that make start Lazarus with config dir inside the same root instead of Windows user directory, so you can have how many installations you want.
  
'''NOTE 4''': The script downloads/updates GLScene also. So if you don't need it remove or put '''REM''' on lines: '''140''', '''141''', '''221''', '''222''', '''223''' and '''232'''
+
To start Lazarus go to Lazarus root (branch or trunk) and double click on '''Lazarus_B_Develop''' for branch or '''Lazarus_T_Develop''' for trunk ('''NOTE''': "Develop" is the general installation root, if you change it on install phase, it will be name as you choose).
  
Alike this, you can add other svn repositories.
+
=== Configure first Lazarus launch ===
  
'''NOTE 5''': The zip file include [http://users.ugent.be/~bpuype/wget/ WGET] for Windows.
+
Here it is an example of generic "first run", you need to use correct paths to ensure the right functionality.
  
----
+
[[Image:Config.png|800px|Configuration (click to zoom)]]
  
== Linux ==
 
  
These scripts download svn sources (Lazarus/FPC/GLScene) and zip needed, build and configure your Ubuntu (x86) box.<br>
+
'''NOTE''': remember to edit Tools -> IDE Options -> Environment to set paths concording the installation:
After installation you will able to cross-compile for arm-linux also.
 
  
You can download those files from [http://www.kjow.net/download.php?get=LazarusManagerLinux.zip HERE]<br>
 
Both files are designed for Ubuntu X86 >= 8.10 (maybe earlier also, I don't know. They should work with X64 also, but not test).
 
  
You can find full page [http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM HERE]
+
[[File:IDE Options Environment.png]]
  
You had just to download it somewhere (like Desktop) and simply launch it from terminal with '''sh''', e.g.:
+
== Download ==
 +
The link below is dead<br>
 +
<s>You can download Lazarus Manager from [http://www.kjow.net/lazarus-utilities/ here]</s>.
  
'''test'''@vm-desktop:~/Desktop$ '''sh lazarus_first_time'''
+
== Extra Info ==
********************************************************
 
*                                                      *
 
*              Automated Installation v0.3            *
 
*    for install Lazarus/FPC with arm cross compile    *
 
*                                      Script by Kjow *
 
*                                                      *
 
* This script is designed for Ubuntu X86 (32 Bit)      *
 
*                                                      *
 
********************************************************
 
  
For daily/instantly svn updates there is an other script ('''lazarus_update''') that updates and rebuilds:
+
*Lazarus Manager will save in the root you choose to install Lazarus a log.txt file with the entry '''last''' process made (e.g. First Installation, Update, etc).
  
'''test'''@vm-desktop:~/Desktop$ '''sh lazarus_update'''
+
*In log form or in log.txt, at the end of installation there il a reminder of which paths you need to add at the Windows '''System PATH''', e.g.:
********************************************************
 
*                                                      *
 
*              Automated Installation v0.3            *
 
*    for install Lazarus/FPC with arm cross compile    *
 
*                                      Script by Kjow *
 
*                                                      *
 
* This script is designed for Ubuntu X86 (32 Bit)      *
 
*                                                      *
 
********************************************************
 
  
=== What scripts do ===
+
...
 +
...
 +
...
 +
********************
 +
To complete the installation, please add these paths to System PATH:
 +
C:\Develop\fpc\Bootstrap;C:\Develop\fpc\Binutils;C:\Develop\fpc\Utils\bin\i386-win32;C:\Program Files\SlikSvn\bin\;C:\Develop\fpc\fpc_2.6.x\bin\i386-win32;C:\Develop\fpc\fpctrunk\bin\i386-win32
 +
********************
  
;'''lazarus_first_time''': This script downloads svn sources and zip needed to build and configure your Ubuntu (x86) box with Lazarus AND FPC (both are enabled to compile for i386-linux and cross compile for arm-linux).
+
== See also ==
:You must run this script once, only first time.
+
* [[Installing Lazarus]] Official way to install Lazarus
 +
* [[fpcup]] Another tool that installs/updates FPC+Lazarus for you.
 +
* [[fpcupdeluxe]] Yet another tool that installs/updates FPC+Lazarus for you.
  
;'''lazarus_update''': For daily/instantly svn updates there is an other script that updates and rebuilds all.
+
== Credit ==
  
== Info ==
+
[[User:Kjow|Kjow]] 01:00, 10 January 2014 (CET)<br>
[[User:Kjow|Kjow]] - 18:10, 4 October 2010 (CEST)<br>
+
Latest Revision: [[User:Kjow|Kjow]] 15:49, 10 January 2014 (CET)
Latest Revision: [[User:Kjow|Kjow]] 17:06, 13 October 2010 (CEST)
 
  
 
[[Category:Lazarus]]
 
[[Category:Lazarus]]

Latest revision as of 16:04, 3 January 2020

Introduction

This program is made to have latest news of lazarus/fpc development, because install everyday the daily snapshot is a little bit laborious.

You can edit and improve Lazarus Manager sending me your feedback, maybe I will release the source code in future, but now I prefer to develop it myself.

Finally, these scripts are for who doesn't want waste time on installations/configurations, but wants to develop on quick time ("end-users", not "developers of the development system").

NOTE: Lazarus Manager is made by Kjow and are not supported by the FPC/Lazarus team. This is occasionally updated to latest revision, but there may be problems with last minute SVN changes (so, it might not work with the last minute version).

NOTE 2: Before Lazarus Manager, there were four scripts (2 for windows and 2 for Linux). These are obsolete. They don't work anymore due changes in Lazarus/FPC source and Windows/Linux structure. Don't ask for these, they don't exist anymore.


Windows

Lazarus Manager is a sort of "one-click" installation that permit to install Lazarus/FPC svn without anything else. It downloads all the necessary (svn client, utils, binutils, Lazarus branches/trunk svn, FPC branches/trunk svn), makes the directories structure and builds everything for also cross-compile for arm android/linux.


From Windows (with android ndk, if required) it build:

  • Lazarus branch with targets:
    • i386-win32
    • X86_64-win64


  • Lazarus trunk with targets:
    • i386-win32
    • X86_64-win64
    • arm-android
    • arm-linux


First Installation

Lazarus Manager has some controls to check if something fails (e.g. android ndk path not found), anyway before start you should know something and set some little things.

Lazarus Manager saves latest settings used in ./config.ini:

  • Drive
  • Path
  • Branches svn url
  • Trunk svn url
  • Android ndk paths

The usage of Lazarus Manager is intuitive, so in first tab you will find base file urls.

If you want to make shortcuts to desktop check the flag in left-bottom corner.

Pre-Installation.png

NOTE: If you choose to select "One click installation" (recommended), buttons "Generate Directory Structure" and "Start Necessaries Download" are disabled and the installation process will do all the work for you.


In "Stable Tree" tab there are the svn urls (you can change with newer revision when they will came out) and targets:


Stable-Tree.png


If you need to cross-compile Lazarus app for Android, you need to download and extract the NDK in your hard disk, then you had to save two paths:

  • arm-linux-androideabi
  • binutils


E.g. if you use Windows X64 (I tested on Windows 8.1 X64), download and initialize Android NDK for Windows X64. So, if you have version r9 of ndk the requested paths will be:

  • C:\Android\android-ndk-r9\toolchains\arm-linux-androideabi-4.8\prebuilt\windows-x86_64\arm-linux-androideabi\bin
  • C:\Android\android-ndk-r9\toolchains\arm-linux-androideabi-4.8\prebuilt\windows-x86_64\bin


Trunk-Tree.png


In "Install/Update" tab you can do the first installation or just update actual installation:


Install-Update.png

Update

In the end, if you want automatize update process you can make a link (or batch file) to LazarusManager.exe to put in Windows auto-start directory, or just launch it when necessary. An example of this link is supplied in zip file.

LazarusManager accepts three parameters:

  • First parameter
    • autoupdate (it indicates that Lazarus should be updated automatically to latest svn, without interactions)


  • Second parameter
    • both (it updates both branch and trunk trees)
    • branch (it updates branch tree)
    • trunk (it updates trunk tree)


  • Third parameter (NOTE: i386-win32 target is always included)
    • all (it updates all targets)
    • x64b (it updates x86_64-win64 branch target)
    • x64t (it updates x86_64-win64 trunk target)
    • andarm (it updates arm-android trunk target)
    • linarm (it updates arm-linux trunk target)


Example 1:

LazarusManager.exe autoupdate both all

Example 2:

LazarusManager.exe autoupdate branch x64b

Wrong combinations are ignored, e.g.

LazarusManager.exe autoupdate branch andarm


Directory structure

Directories.png

How to start Lazarus

Lazarus Manager will create in lazarus branch/trunk roots a shortcuts that make start Lazarus with config dir inside the same root instead of Windows user directory, so you can have how many installations you want.

To start Lazarus go to Lazarus root (branch or trunk) and double click on Lazarus_B_Develop for branch or Lazarus_T_Develop for trunk (NOTE: "Develop" is the general installation root, if you change it on install phase, it will be name as you choose).

Configure first Lazarus launch

Here it is an example of generic "first run", you need to use correct paths to ensure the right functionality.

Configuration (click to zoom)


NOTE: remember to edit Tools -> IDE Options -> Environment to set paths concording the installation:


IDE Options Environment.png

Download

The link below is dead
You can download Lazarus Manager from here.

Extra Info

  • Lazarus Manager will save in the root you choose to install Lazarus a log.txt file with the entry last process made (e.g. First Installation, Update, etc).
  • In log form or in log.txt, at the end of installation there il a reminder of which paths you need to add at the Windows System PATH, e.g.:
...
...
...
********************
To complete the installation, please add these paths to System PATH:
C:\Develop\fpc\Bootstrap;C:\Develop\fpc\Binutils;C:\Develop\fpc\Utils\bin\i386-win32;C:\Program Files\SlikSvn\bin\;C:\Develop\fpc\fpc_2.6.x\bin\i386-win32;C:\Develop\fpc\fpctrunk\bin\i386-win32
********************

See also

  • Installing Lazarus Official way to install Lazarus
  • fpcup Another tool that installs/updates FPC+Lazarus for you.
  • fpcupdeluxe Yet another tool that installs/updates FPC+Lazarus for you.

Credit

Kjow 01:00, 10 January 2014 (CET)
Latest Revision: Kjow 15:49, 10 January 2014 (CET)