Recent

Author Topic: Simple Windows Installer Script for Lazarus 1.5 + FreePascal 3.1.1  (Read 5954 times)

derek.john.evans

  • Guest
Simple Windows Installer Script for Lazarus 1.5 + FreePascal 3.1.1
« on: September 02, 2015, 04:41:56 pm »
The following Windows batch script will checkout the latest Lazarus/FreePascal source code and compile into the path "\lazarus_svn\"

It is assumed you will have:

1) FreePascal 2.6.4 installed at the default path "\FPC\"
2) SVN installed. (I use http://tortoisesvn.net/)

You can modify the script to use the Lazarus FPC compiler if you so wish. After Lazarus is built, "startlazarus.exe" will be located in "\lazarus_svn\lazarus\"

When you run "\lazarus.svn\lazarus\startlazarus.exe", you will be asked to configure Lazarus.

Lazarus = "\lazarus_svn\lazarus"
FPC compiler = "\lazarus_svn\lazarus\fpc\bin\i386-win32\fpc.exe"
FPC Sources = "\lazarus_svn\fpc"
GNU Make = "\FPC\2.6.4\bin\i386-win32\make.exe"
Debugger = "\FPC\2.6.4\bin\i386-win32\gdb.exe"

Use this script at your own risk. I'm working an old P4 Duo E6700 running Windows XP 32bit and it works for me.
 
Code: [Select]
set FPC_OLD=\FPC\2.6.4\bin\i386-win32
set ALL_DIR=\lazarus_svn

set LAZ_SRC=%ALL_DIR%\lazarus
set FPC_SRC=%ALL_DIR%\fpc
set FPC_INS=%LAZ_SRC%\fpc
set FPC_NEW=%FPC_INS%\bin\i386-win32

svn checkout http://svn.freepascal.org/svn/fpc/trunk %FPC_SRC%
svn checkout http://svn.freepascal.org/svn/lazarus/trunk %LAZ_SRC%

set PATH=%FPC_OLD%
cd %FPC_SRC%
make build
make install INSTALL_PREFIX=%FPC_INS%

set PATH=%FPC_NEW%;%FPC_OLD%
cd %FPC_NEW%
fpcmkcfg -d basepath=%FPC_INS% -o %FPC_NEW%\fpc.cfg

cd %LAZ_SRC%
make bigide

start startlazarus.exe
« Last Edit: September 02, 2015, 04:58:14 pm by derek.john.evans »

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8729
  • FPC developer.
Re: Simple Windows Installer Script for Lazarus 1.5 + FreePascal 3.1.1
« Reply #1 on: September 02, 2015, 04:56:28 pm »
Having 2.6.2 installed in \fpc won't do much good if you call \fpc\2.6.4\...

derek.john.evans

  • Guest
Re: Simple Windows Installer Script for Lazarus 1.5 + FreePascal 3.1.1
« Reply #2 on: September 02, 2015, 04:57:58 pm »
Having 2.6.2 installed in \fpc won't do much good if you call \fpc\2.6.4\...

Are yes, typo

roy.lambert

  • New Member
  • *
  • Posts: 16
Re: Simple Windows Installer Script for Lazarus 1.5 + FreePascal 3.1.1
« Reply #3 on: October 12, 2015, 07:59:30 pm »
I'm trying to use your script but without success. I'm an old Delphinium (since D1) nut a Lazarus newbie and definitely an svn / make etno c newbie.

I've tried following the instructions off the wiki for source install - this failed . No fpcmkcfg in the downloads and I was trying to avoid having to install old versions.

I found your script, installed 1.4.4 and tried running the script. At the end there's no startlazarus in lazarus_svn, so I tried running the version in the old lazarus. Unfortunately there's no \lazarus_svn\lazarus\fpc\bin\i386-win32\fpc.exe. In fact \lazarus_svn\lazarus\fpc\bin

All the above has been tried in a nice clean VM.

At this point I'm past my competence. I'm guessing its me can someone more knowledgeable help.

Roy


ykot

  • Full Member
  • ***
  • Posts: 141
Re: Simple Windows Installer Script for Lazarus 1.5 + FreePascal 3.1.1
« Reply #4 on: October 12, 2015, 09:58:43 pm »
Damn, I should be reading this forum more often. :) There is a similar script that I wrote to assist one of my tutorials, specifically regarding FreePascal / Lazarus installation. Perhaps some information from that tutorial could be helpful.

shobits1

  • Sr. Member
  • ****
  • Posts: 278
  • .
Re: Simple Windows Installer Script for Lazarus 1.5 + FreePascal 3.1.1
« Reply #5 on: October 12, 2015, 10:29:10 pm »
Damn, I should be reading this forum more often. :) There is a similar script that I wrote to assist one of my tutorials, specifically regarding FreePascal / Lazarus installation. Perhaps some information from that tutorial could be helpful.
didn't test it but your script seems better  :D

roy.lambert

  • New Member
  • *
  • Posts: 16
Re: Simple Windows Installer Script for Lazarus 1.5 + FreePascal 3.1.1
« Reply #6 on: October 13, 2015, 11:42:47 am »
Thanks - I'll try things out tonight.

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Simple Windows Installer Script for Lazarus 1.5 + FreePascal 3.1.1
« Reply #7 on: October 13, 2015, 03:22:44 pm »
This works for me: fpcup --skip=lhelp --fpcURL=trunk --lazURL=trunk

http://wiki.freepascal.org/Small_Virtual_Machines#WinXp_virtual_machine
Regards,
Paul Breneman
www.ControlPascal.com

roy.lambert

  • New Member
  • *
  • Posts: 16
Re: Simple Windows Installer Script for Lazarus 1.5 + FreePascal 3.1.1
« Reply #8 on: October 14, 2015, 04:51:04 pm »
Ykot

Thanks. I finally got things working after I rem'd out all the non-Windows stuff. At this point I wanted to get the IDE to something I'm comfortable with then port my homebrew components over before trying to get them running on android, linux or anything else.

One small thing with your tutorial - can you add a warning that BuildSVNTools.bat should be on the same drive as the Lazarus target directory. I was installing into a VM which has G as a shared drive with the PC and was running the .bat from there. Things failed when it tried to Make anything. Its been so long since I used a batch file it took me three attempts before I realised what was happening :(

Thanks again, after a somewhat traumatic journey I now have 1.5 with 3.1.1 installed and working - yippee!

Roy

 

TinyPortal © 2005-2018