Recent

Author Topic: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, OSX, FreeBSD... 2  (Read 109360 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
If you want help, please follow http://wiki.lazarus.freepascal.org/fpcup#Support_and_bug_reporting and attach the proper files. I'm sorry to say I cannot provide help if you don't follow these steps. Thanks.

Started new thread as previous thread was a bit large.

Fpcup is a tool that runs svn.exe, make.exe etc to get up-to-date FPC and/or Lazarus.
Wiki: http://wiki.lazarus.freepascal.org/fpcup
Download binaries: https://bitbucket.org/reiniero/fpcup/downloads
Source, bug/improvement idea tracker:
https://bitbucket.org/reiniero/fpcup
Readme: https://bitbucket.org/reiniero/fpcup

Features (please check wiki page for updated information):
  • Program runs on Windows (x86/x64), Linux x86, Linux x64, Intel OSX (binaries provided), FreeBSD
  • Bare metal installer on Windows: starting with a plain vanilla Windows install, FPCup downloads SVN executables, make/binutils etc and downloads/installs FPC/Lazarus
  • "Bare metal+" installer on Linux: you just need subversion, binutils (make etc). unzip and bunzip2; FPCup will download/install FPC/Lazarus, including a bootstrap compiler if required.
  • "Bare metal+" installer on OSX: you need XCode installed. FPCup will download/install FPC/Lazarus, including a bootstrap compiler if required.
  • Windows: builds 32 bit and 64 bit LCL; builds 32 bit IDE with crosscompiling option (so you can build x64 binaries).
  • Plugin system for installing cross compilers; Win32=>64 crosscompiler built in, Android cross compiler, MIPSEL cross comiler...
  • Works with existing system wide FPC installs on Linux
  • Downloads FPC & Lazarus SVN sources
  • Option to revert to/stay at a certain revision number for FPC or Lazarus
  • Code workaround for SVN server problems (retry mechanism).
  • Customizable Lazarus/FPC SVN URL - therefore versions: stable, fixes, trunk - and customizable install/binutils directories
  • Compiles and installs FPC and Lazarus
  • Compiles lhelp help viewer, downloads offline help for FPC, compiles LCL help for Lazarus, changes Lazarus help settings so help works out of the box
  • Creates fpc.cfg in FPC directory
  • Uses --primary-config-path (configuration directory) for lazbuild compilations, creates directory if it doesn't exist.
  • Option to specify primary-config-path for your Lazarus install. If none given, fpcup will create a default directory for you.
  • Builds lazdatadesktop using compiled Lazarus
  • Builds lazdoceditor using compiled Lazarus
  • Creates desktop shortcut (Windows)/home directory shell script (Linux/Unix) to installed Lazarus (with separate primary-config-path)
  • Creates shell script to new FPC compiler that ignores any existing system wide fpc.cfg files (Unix/Linux)
  • Checks FPC and make are the right kind (not Delphi make or a random program that happens to be called fpc.exe)
  • Checks for existing FPC compiler and downloads bootstrap compiler executable from SVN if none present
  • Correctly sets gdb path for Lazarus on Linux, Windows
  • 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
  • Options to skip parts of the process, e.g. fpc or Lazarus SVN update+compile/build
  • Shows existing and updated SVN revisions when installing/updating, both on console and in a high level log useful for tracking what was installed when
  • fpcup can download from user-specified SVN repositories (e.g. synapse, fpcdocs, fpgui,...); uses fpcup.ini file for config. Includes support for modifying Lazarus config, adding packages to Lazarus
  • fpdocs svn repository downloaded and registered in Lazarus so you get the newest hints
  • --clean option that cleans out subversion repositories (subversion revert --recursive), fpc.cfg and/or documentation files, ready to start over with a clean slate
  • --uninstall option that removes pfc, lazarus directories, settings
  • Detailed error log created in temp directory when problems occur; general log has reference to error log

Previous forum thread (see for reference, known problems, fixes, etc):
http://forum.lazarus.freepascal.org/index.php/topic,15919.0.html
« Last Edit: February 23, 2014, 12:03:03 pm 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

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Repository contains new Android cross compiler and updated linux-mipsel cross compiler.

For breaking changes: see changelog on wiki page.

Haven't uploaded new binaries as I'm still chasing the problem that a bare metal install (on Windows) only gives a plain IDE, not a bigide/useride (i.e. with sqldb etc tabs).
https://bitbucket.org/reiniero/fpcup/issue/66/bare-metal-build-lazarus-hasnt-got-bigide

That said, the new cross compiler modules seem to work well; as usual feedback/patches appreciated!
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.
thanks for developping!  ;)

cheers,
miquel

--
Cheers.
Miquel.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Thanks ;)

Fixed the bug; started to upload new fpcup binaries. Please read changelog and breaking changes on wiki page.
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.
updating....

--
Cheers.
Miquel.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1324
Install-options: FPC 2.7.1, Lazarus 1.3, the rest defaults.
Installing (32bit) on Windows 8.1: flawless !
Compiling simple graphical project on Windows 8.1: flawless !
Crosscompiling same project to BeagleBone Black from this install : flawless !!
Running project on BeagleBone Black: flawless !!!

Very nice !!!! Thanks !!
Alfred.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
@Alfred: very nice, 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

sledge77

  • Newbie
  • Posts: 2
Thanks for this great tool.

I would like to use it on my Raspberry aswell, but I have seen that this version hasn't been updated for more than one year now.
Will there be any update in the future for the ARM Version?

Jens

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8603
  • FPC developer.
I would like to use it on my Raspberry aswell, but I have seen that this version hasn't been updated for more than one year now.
Will there be any update in the future for the ARM Version?

Actually the next major (FPC) version (2.8.0, 3.0.0, the vote is out about that) has many, many ARM improvements (and new improvements).

But first there will be a minor update, which won't improve that much over ARM.

sledge77

  • Newbie
  • Posts: 2
Does this mean it is ok to use the old fpcup? Don't really understand what you mean.

hinst

  • Sr. Member
  • ****
  • Posts: 303
how do I change directories?
Binutils/make dir: C:\development\fpcbootstrap
Bootstrap compiler dir: C:\development\fpcbootstrap
...
and others. Tell me pls, I tried searching fpcup.ini file but I could not find out how to set directories.
It says "Available macros: $(FPCDIR) Base directory for FPC installation... and you can define your own...", however, it is not clear in which section of the ini file these definitions should be placed. Should I add them to ALIASfpcURL section, or maybe perhaps FPCUPModule1 section? thX
Too late to escape fate

hinst

  • Sr. Member
  • ****
  • Posts: 303
oops; already figured it out; should have specified --installdir option on command line
Too late to escape fate

vfclists

  • Hero Member
  • *****
  • Posts: 827
    • HowTos Considered Harmful?
Thanks for the update.

Is there a way to suppress the [Y/n] prompt and save the output to a file?

I am trying it on a new  Ubuntu 12.04 with KDE and the compilation repeatedly fails. The same command works on identical existing systems so I suspect that some libraries may not be present.

Is there a known set of  libraries are required to compile on a  KDE based system?
Windows - Lazarus 1.0.8/FPC 2.6.0
Linux - Lazarus 1.4.4 /FPC 2.6.4

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Does this mean it is ok to use the old fpcup? Don't really understand what you mean.
I think Marco was talking about fpc, not fpcup...

I'd give the old version a go.

I don't have Lazarus on armel myself so can't really test and haven't set up a cross compiler, so no plans for periodic updates of the binary. May take a look at it at a later time.
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
Thanks for the update.

Is there a way to suppress the [Y/n] prompt and save the output to a file?
Yes, see the troubleshooting section on the wiki page

I am trying it on a new  Ubuntu 12.04 with KDE and the compilation repeatedly fails. The same command works on identical existing systems so I suspect that some libraries may not be present.

Is there a known set of  libraries are required to compile on a  KDE based system?
No idea, sorry, I don't use KDE, just test on GTK. Strange that it works on identical systems?!?
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

 

TinyPortal © 2005-2018