Difference between revisions of "Lazarus Manager"

From Lazarus wiki
Jump to navigationJump to search
(New page: == Introduction == These scripts are made for me, by me. So many of you might not like my needs. They are made to have latest news of lazarus/fpc development, because official releases a...)
 
 
(27 intermediate revisions by 7 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").
 +
 
 +
'''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).
  
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 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.zip THIS] 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
  
Double click on '''LazarusManager.bat''' and follow '''ALL''' instructions you read in the console window.
+
The usage of Lazarus Manager is intuitive, so in first tab you will find base file urls.
  
How it appears:
+
If you want to make shortcuts to desktop check the flag in left-bottom corner.
  
********************************************************
+
<center>
*                                                      *
+
[[File:Pre-Installation.png]]
*                  Automated Install                  *
+
</center>
*            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".
+
'''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.
I suggest you to add '''LazarusManager.bat''' at start of windows, so you will have every morning the latest updates.  
 
How it appears after first installation process:
 
  
********************************************************
+
<br>
*                                                      *
+
In "Stable Tree" tab there are the svn urls (you can change with newer revision when they will came out) and targets:
*                  Automated Install                  *
 
*            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]:
 
  
----
 
  
'''NOTE 1''': If you want change destination folder, edit line number '''14''':
+
<center>
set PATHDEST=C:\Develop
+
[[File:Stable-Tree.png]]
with
+
</center>
set PATHDEST=C:\WhatYouWant
 
  
You '''CAN'T''' use path with spaces. Please don't forget it!
 
  
'''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'')
+
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:
  
'''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:
+
*arm-linux-androideabi
 +
*binutils
  
svn co http://svn.freepascal.org/svn/fpc/tags/release_2_4_0 fpc
+
<br>
REM svn co http://svn.freepascal.org/svn/fpc/trunk fpc
+
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:
  
to:
+
*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
  
REM svn co http://svn.freepascal.org/svn/fpc/tags/release_2_4_0 fpc
 
svn co http://svn.freepascal.org/svn/fpc/trunk fpc
 
  
so, simply swap the '''REM''' command.
+
<center>
 +
[[File:Trunk-Tree.png]]
 +
</center>
  
'''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'''
 
  
Alike this, you can add other svn repositories.
+
In "Install/Update" tab you can do the first installation or just update actual installation:
  
'''NOTE 5''': The zip file include [http://users.ugent.be/~bpuype/wget/ WGET] for Windows.
 
  
----
+
<center>
 +
[[File:Install-Update.png]]
 +
</center>
  
== Linux ==
+
=== Update ===
  
These scripts download svn sources (Lazarus/FPC/GLScene) and zip needed, build and configure your Ubuntu (x86) box.
+
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.
After installation you will able to cross-compile for arm-linux also.
+
<br>
 +
<br>
 +
LazarusManager accepts three parameters:
  
You can download those files from [http://forum.lazarus.freepascal.org/index.php/topic,8084.0.html HERE] (see attachment of first post)
+
* First parameter
 +
**'''autoupdate''' (it indicates that Lazarus should be updated automatically to latest svn, without interactions)
 +
<br>
 +
* 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
  
(the version of files in this forum thread are a bit older respect the versions on my hard disk, but there is some time that I don't use the Linux version, so in the next weeks I will update everything).
+
Example 2:
Both files are designed for Ubuntu X86 >= 8.10 (maybe earlier also, I don't know).
+
LazarusManager.exe autoupdate branch x64b
  
You can find full page [http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM HERE]
+
Wrong combinations are ignored, e.g.
 +
LazarusManager.exe autoupdate branch andarm
  
You had just to download it somewhere (like Desktop) and simply launch it from terminal with '''sh''', e.g.:
+
<br>
  
'''test'''@vm-desktop:~/Desktop$ '''sh lazarus_first_time'''
+
=== Directory structure ===
********************************************************
+
 
*                                                      *
+
[[File:Directories.png]]
*                Automated Installation                *
+
 
*    for install Lazarus/FPC with arm cross compile    *
+
=== How to start Lazarus ===
*                                      Script by Kjow *
+
 
*                                                      *
+
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.
* This script is designed for Ubuntu X86 (32 Bit)     *
+
 
*                                                      *
+
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 ===
Please, enter your account user:
+
 
'''test'''
+
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)]]
 +
 
 +
 
 +
'''NOTE''': remember to edit Tools -> IDE Options -> Environment to set paths concording the installation:
 +
 
 +
 
 +
[[File:IDE Options Environment.png]]
 +
 
 +
== Download ==
 +
The link below is dead<br>
 +
<s>You can download Lazarus Manager from [http://www.kjow.net/lazarus-utilities/ here]</s>.
 +
 
 +
== 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).
  
For daily/instantly svn updates there is an other script ('''lazarus_update''') that updates and rebuilds:
+
*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.:
  
'''test'''@vm-desktop:~/Desktop$ '''sh lazarus_update'''
 
********************************************************
 
*                                                      *
 
*                  Automated Update                  *
 
*          for update Lazarus/FPC/GLScene svn          *
 
*                                      Script by Kjow *
 
*                                                      *
 
* This script is designed for Ubuntu X86 (32 Bit)      *
 
*                                                      *
 
********************************************************
 
 
Please, enter your account user:
 
'''test'''
 
 
  ...
 
  ...
 +
...
 +
...
 +
********************
 +
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
 +
********************
  
;NOTE: ''account user'' is needed to identify your home path: e.g. /home/user/ or /home/maemo/ or /home/kjow/ etc.
+
== 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.
  
=== What scripts do ===
+
== Credit ==
  
;'''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).
+
[[User:Kjow|Kjow]] 01:00, 10 January 2014 (CET)<br>
:You must run this script once, only first time.
+
Latest Revision: [[User:Kjow|Kjow]] 15:49, 10 January 2014 (CET)
  
;'''lazarus_update''': For daily/instantly svn updates there is an other script that updates and rebuilds all.
+
[[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)