Recent

Author Topic: Simple FPC/Lazarus SVN downloader WIP - suggestions?  (Read 29351 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #15 on: January 12, 2012, 06:09:22 am »
You can do something to download and install lazarus packages?
Maybe - depends on whether it's doable via the command line (haven't looked into installing packages). Any hints?  :D

As of now, I'd select what packages to install using the Lazarus IDE, and compile them. Then when you run fpcup next time, it should compile all your selected packages again.

Would you like to see it as part of some kind of "bare metal" install strategy?
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #16 on: January 17, 2012, 05:22:01 pm »
Bump. Sorry, had not enabled bitbucket for public access, fixed now.

Currently testing bare metal (no svn, no binutils) on a Windows 2003 virtual machine.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #17 on: February 05, 2012, 02:41:37 pm »
Thanks to Mattias Gaertner on the Lazarus mailng lists for pointing out which Lazarus config fiels (environmentoptions.xml) to write & what to write there before lazbuild works.

Bare metal install seems to work on Windows 2000.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #18 on: February 07, 2012, 03:30:50 pm »
Seems to work on Linux x64 (Debian unstable); uploaded binary for testing on bitbucket.
Now working on getting a Linux x86 version correct and compiled

Next: going to check if it works without any installed fpc, just binutils (build-essential package) and subversion
Then, perhaps (if I feel like it): OSX version...
Then: ???
Then: world domination+profit
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

IPguy

  • Sr. Member
  • ****
  • Posts: 385
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #19 on: February 07, 2012, 03:41:04 pm »

Quote
Pinky: "Gee, Brain, what do you want to do tonight?"
The Brain: "The same thing we do every night, Pinky—try to take over the world!"
Source: http://en.wikipedia.org/wiki/Pinky_and_the_Brain

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #20 on: February 07, 2012, 03:43:51 pm »
Exactly.  :D


Brain, brain, brain, brain....
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #21 on: February 12, 2012, 01:56:28 pm »
Ludob has joined development, we're now a two-man team  :)

Together (well, mainly he, actually  :) ) we made a lot of improvements in our trunk version (see repository) :
  • we should have compatibility with existing system wide FPC installs on Linux
  • option to revert to a certain revision number (hint: if you're hit by recent troubles on Lazarus SVN, try Lazarus svn 35300)
  • options to skip fpc or Lazarus SVN update
  • option to specify a primary-config-path/configuration directory option for your Lazarus install. If none given, fpcup will create a default directory for you.
  • ability to pass options to make (e.g. -g for including debugging info)
  • the options you chose using fpcup can be saved in a shell script (Linux/Unix) or desktop shortcut (Windows) so you can just run that to update your new FPC/Lazarus install

I've started work on a GUI and am trying to get OSX support working.

Stay tuned for new updates and new binary versions...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #22 on: February 12, 2012, 03:16:29 pm »
New binaries uploaded with functionality mentioned above.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Trustable

  • Newbie
  • Posts: 3
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #23 on: March 01, 2012, 12:28:04 am »
The new version crashs on Windows XP:

Info: Module FPC: Getting/compiling FPC...
Info: Could not find svn executable in or under C:\development\fpcbootstrap\svn\
[FORMS.PP] ExceptionOccurred
  Sender=ESVNClientError
  Exception=No SVN executable found
  Stack trace:
  $00441DBA
  $00530F41
  $0043C489
  $0043A448
  $00403D18
TApplication.HandleException No SVN executable found
  Stack trace:
  $00441DBA
  $00530F41
  $0043C489
  $0043A448
  $00403D18
exception at 00441DBA:
No SVN executable found.

fabienwang

  • Sr. Member
  • ****
  • Posts: 449
  • Lazarus is the best
    • My blog
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #24 on: March 01, 2012, 12:30:42 am »
The new version crashs on Windows XP:

Info: Module FPC: Getting/compiling FPC...
Info: Could not find svn executable in or under C:\development\fpcbootstrap\svn\
[FORMS.PP] ExceptionOccurred
  Sender=ESVNClientError
  Exception=No SVN executable found
  Stack trace:
  $00441DBA
  $00530F41
  $0043C489
  $0043A448
  $00403D18
TApplication.HandleException No SVN executable found
  Stack trace:
  $00441DBA
  $00530F41
  $0043C489
  $0043A448
  $00403D18
exception at 00441DBA:
No SVN executable found.

oh hey, you are missing the subversion windows binary, it must be installed and in the windows path i think.
I'm using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #25 on: March 01, 2012, 09:11:26 am »
The new version crashs on Windows XP:

Info: Module FPC: Getting/compiling FPC...
Info: Could not find svn executable in or under C:\development\fpcbootstrap\svn\
[FORMS.PP] ExceptionOccurred
  Sender=ESVNClientError
  Exception=No SVN executable found
  Stack trace:

@Trustable, thanks for the information, sorry it didn't work.

Actually, fpcup should download an SVN exe if it can't find one...

Have you compiled fpcup from source or are you using the binary version downloaded from the page? (You can tell by the first few lines; fpcup tells you when it was compiled)
In the source version we found problems with TProcess.Parameters and quoting going wrong (could be a bug in FPC - we'll have to look into it).
That problem might already be present in the downloaded version - a workaround could be to first install an svn client yourself (e.g. SlikSVN is a small command line version) and point fpcup to it (see fpcup --help).

Thanks,
BigChimp
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #26 on: March 01, 2012, 10:42:28 am »
If compiling from source, Ludo just committed a fix (edit: commit 2a598f4eb875) that might help with the svn download problem.

I'd be happy to hear if it works for you...
« Last Edit: March 02, 2012, 05:22:18 am by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

miquelmatas

  • Jr. Member
  • **
  • Posts: 98
  • Beginner forever.
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #27 on: March 01, 2012, 05:19:26 pm »
Quote
C:\Users\Miquel\Downloads>fpcup
fpcup
An FPC/Lazarus downloader/updater/installer
Open source freeware (modified LGPL/BSD), see:
https://bitbucket.org/reiniero/fpcup

This program will download the FPC and Lazarus sources
from the source Subversion/SVN repositories,
compile, and install.
Result: you get a fresh, up-to-date Lazarus/FPC installation.
fpcup compiled on 2012/02/25 09:46:32 with FPC 2.6.1
for CPU: i386 on Win32

Options:
Bootstrap compiler dir: C:\development\fpcbootstrap\
Lazarus shortcut name:  Lazarus_trunk
Shortcut fpcup name:    fpcup_update
FPC URL:                http://svn.freepascal.org/svn/fpc/branches/fixes_2_6
FPC options:
FPC directory:          C:\development\fpc\
Lazarus directory:      C:\development\lazarus\
Lazarus primary config path:
(Lazarus settings path) C:\Users\Miquel\AppData\Local\lazarusdevsettings
Lazarus URL:            http://svn.freepascal.org/svn/lazarus/trunk
Lazarus options:
Parameter list:
Make/binutils path:     C:\development\fpcbootstrap\


Continue (Y/n): y
Info: Module FPC: Getting/compiling FPC...
Info: Make path C:\development\fpcbootstrap\ doesn't have binutils. Going to dow
nload
Info: Downloading: GoRC.exe into C:\development\fpcbootstrap\
Info: Going to download C:\development\fpcbootstrap\GoRC.exe from URL: http://sv
n.freepascal.org/svn/fpcbuild/tags/release_2_6_0/install/binw32/GoRC.exe
Info: Downloading: ar.exe into C:\development\fpcbootstrap\
Info: Going to download C:\development\fpcbootstrap\ar.exe from URL: http://svn.
freepascal.org/svn/fpcbuild/tags/release_2_6_0/install/binw32/ar.exe

C:\Users\Miquel\Downloads>

Then, fpcup stops. I was able to download and build fpc/lazarus on development on fpcup previous version.

Cheers,
Miquel. [Windows7 64-bits]
--
Cheers.
Miquel.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #28 on: March 01, 2012, 05:29:21 pm »
Thanks miquel, seems you're using the binary version...

So it stops after ar.exe.... very strange.

No ideas right now, but I'll keep it in mind....

Thanks...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Simple FPC/Lazarus SVN downloader WIP - suggestions?
« Reply #29 on: March 01, 2012, 10:08:50 pm »
Hmm... Intriguing, the latest binary misses SVN for me too, even though several previous ones worked with no problem...
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

 

TinyPortal © 2005-2018