* * *

Author Topic: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX  (Read 55190 times)

ludob

  • Hero Member
  • *****
  • Posts: 1085
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #195 on: August 08, 2012, 01:44:37 pm »
This is a new bug in lazarus. Reported in http://bugs.freepascal.org/view.php?id=22602.
Use a lazarus revision before 38190 until bug solved.

Edit: Solved in lazarus revision 38203
« Last Edit: August 08, 2012, 03:19:26 pm by ludob »

BigChimp

  • Hero Member
  • *****
  • Posts: 3217
    • FPCTwit twitter, CheckRide remote control and other open source projects
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #196 on: August 12, 2012, 10:24:49 am »
New version of the Windows fpcup and fpcup64.exe ready for download
- download/create chms in lazarus/docs/chm instead of lazarus/docs/html, thereby following the new Lazarus defaults
- don't create Environment Options/Help Options/CHM Help Viewer/HelpFilesPath setting for chmhelpviewer, also following the new Lazarus defaults
- if fpcup finds a read-only lcl.chm, it won't try to build a new one and overwrite. This means you can set a known working lcl.chm and save time - the FPC 2.6 based lcl.chm generation often fails anyway, so this can help in that case. No idea if this would work on Linux and OSX though.
- prebuild lhelp.exe so you don't have to wait for it to build the first time you press F1 (also workaround for http://bugs.freepascal.org/view.php?id=22565
- In Windows installs: allow regular gdb.exe debugger as well as platform specific ones (e.g. 64 bit gdb.exe, gdb.exe) by installing regular debugger in $(LazarusDir)/mingw/$(TargetCPU)-$(TargetOS)/bin/gdb.exe. You can copy your own gdb.exe to the relevant directory (e.g. the 64 bit debugger)

Breaking changes/Important request for existing fpcup users
Please:
1. manually move your *.chm and *.xct files from lazarus/docs/html to lazarus/docs/chm. If you don't do this, you'll end up with duplicate files which may not be a big problem
2. Change their Environment Options/Help Options/CHM Help Viewer/HelpFilesPath to an empty value
3. On Windows: please check after an fpcup run that your debugger path is set to $(LazarusDir)/mingw/$(TargetCPU)-$(TargetOS)/bin/gdb.exe (and that the gdb.exe is present there, otherwise it's a bug in fpcup)

Development directions I'm thinking about:
1. Downloading the 64 bit debugger with 32 bit windows fpcup and installing it. Perhaps change directory structure from fpcboostrap to fpcupboot\i386-win32 and fpcupboot\x86_64-win64?
2. Develop fpcup as an add in package to Lazarus.

Just throwing out some thoughts below - is this a good idea in general? Do these points make sense? Any comments/additions welcome!

The fpcup Lazarus package (perhaps called lazfpcup but that's a fairly ugly name)
- should be aimed at upgrading an existing Lazarus install where the user has write access to the fpc and Lazarus directories
- should perhaps work with the regular Windows installer. Working with system wide fpc/Lazarus installs on Linux will be difficult as you'd have to run Lazarus as root, but perhaps it turns out to be easier than expected
- might use current command line fpcup to start the FPC/Lazarus download/install, then install a lazfpcup package
- should preferably use current fpcup code. Packages probably have more opportunity to find out details (e.g. primary config path) but if we go that route we should reuse existing fpcup functions and add an IsPackage parameter or similar.
- should store current compilation flags and svn revisions in the settings directory. Only if these have changed should a recompile happen
- should (at least at first) only offer support for the current Lazarus install location/primary config path. Letting a package in one Lazarus install manage another Lazarus install seems a bit messy/confusing
- should of course come with a GUI ;)

Thanks,
BigChimp
« Last Edit: August 12, 2012, 10:29:16 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 twitter/Oauth library:
https://bitbucket.org/reiniero

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

IPguy

  • Sr. Member
  • ****
  • Posts: 385
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #197 on: August 19, 2012, 03:46:13 am »
I just downloaded the 2012-08-12 version of fpcup.exe and attempted to update my instance of Lazarus and that did not go well.  (looks like fpc was updated correctly).  The good news is that this issue left me with a working copy of Lazarus.  I last updated on 2012/07/31 using a 2012/08/31 version of fpcup.

Thoughts / suggestions?

Here is the fpcpu.log
Code: [Select]
[2012-08-18 20:08:19.310 Info] 8/18/2012 20:08:19: fpcup 26bc25f91129 (Sat Aug 04 09:07:17 2012 +0200) started.
 [2012-08-18 20:08:30.386 Info] TFPCInstaller init:
 [2012-08-18 20:08:30.386 Info] Bootstrap compiler dir: C:\development\fpcbootstrap\
 [2012-08-18 20:08:30.386 Info] FPC URL:                http://svn.freepascal.org/svn/fpc/branches/fixes_2_6
 [2012-08-18 20:08:30.386 Info] FPC options:           
 [2012-08-18 20:08:30.386 Info] FPC directory:          C:\development\fpc
 [2012-08-18 20:08:30.386 Info] Make/binutils path:     C:\development\fpcbootstrap\
 [2012-08-18 20:08:30.386 Info] External program path:  C:\development\fpcbootstrap\;C:\development\fpcbootstrap\;;C:\development\fpc\utils;C:\development\fpc\bin\i386-win32
 [2012-08-18 20:14:41.783 Info] FPC: update succeeded at revision number
 [2012-08-18 20:14:42.018 Info] TLazarusInstaller init:
 [2012-08-18 20:14:42.018 Info] Lazarus directory:      C:\development\lazarus
 [2012-08-18 20:14:42.018 Info] Lazarus URL:            http://svn.freepascal.org/svn/lazarus/trunk
 [2012-08-18 20:14:42.018 Info] Lazarus options:       
 [2012-08-18 20:14:42.390 Info] External program path:  C:\development\fpc\bin\i386-win32\;C:\development\fpcbootstrap\;;C:\development\lazarus
 [2012-08-18 20:19:35.799 Info] ERROR running C:\development\fpcbootstrap\make.exe "FPC=C:\development\fpc\bin\i386-win32\fpc" "--directory=C:\development\lazarus" "FPCDIR=C:\development\fpc" "UPXPROG=echo" "COPYTREE=echo" "bigide"
 [2012-08-18 20:19:35.999 Info] Command returned non-zero ExitStatus: 2
 [2012-08-18 20:19:36.202 Info] Command path set to: C:\development\fpc\bin\i386-win32\;C:\development\fpcbootstrap\;;C:\development\lazarus
 [2012-08-18 20:19:36.402 Info] Command current directory: C:\development\lazarus
 [2012-08-18 20:19:36.602 Info] Command output:
 [2012-08-18 20:19:38.114 Info]   output logged in C:\Users\John\AppData\Local\Temp\TMP00001.tmp
 [2012-08-18 20:19:39.776 Info] Getting module lhelp
 [2012-08-18 20:25:22.896 Info] Error running fpcup. Technical details: error executing sequence helplazarus; line: 4, param: helplazarus
 [2012-08-18 20:25:23.096 Info] Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 4, param: helplazarus
 [2012-08-18 20:25:23.298 Info] 8/18/2012 20:25:23: fpcup finished.
 [2012-08-18 20:25:23.498 Info] ------------------------------------------------


The end of the tmp file contained the following:
Code: [Select]
...
Compiling showdeletingfilesdlg.pas
Compiling compatibilityrestrictions.pas
Compiling restrictionbrowser.pas
Compiling projectwizarddlg.pas
Compiling resource ..\units\i386-win32\win32\lazarus.or
Linking ..\lazarus.exe
lazarus.pp(132,1) Error: Can't create object file: ..\lazarus.exe
lazarus.pp(132,1) Fatal: Can't create executable ..\lazarus.exe
Fatal: Compilation aborted
Error: C:\development\fpc\bin\i386-win32\ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled)
make.exe[2]: *** [lazarus.exe] Error 1
make.exe[2]: Leaving directory `C:/development/lazarus/ide'
make.exe[1]: *** [bigide] Error 2
make.exe[1]: Leaving directory `C:/development/lazarus/ide'
C:\development\fpcbootstrap\make.exe: *** [idebig] Error 2
C:\development\fpcbootstrap\make.exe: Leaving directory `C:/development/lazarus'

BigChimp

  • Hero Member
  • *****
  • Posts: 3217
    • FPCTwit twitter, CheckRide remote control and other open source projects
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #198 on: August 19, 2012, 03:54:09 am »
Code: [Select]
lazarus.pp(132,1) Error: Can't create object file: ..\lazarus.exe
lazarus.pp(132,1) Fatal: Can't create executable ..\lazarus.exe
You probably had lazarus open at the time (or lazarus.exe was read only, permisions problems etc).
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 twitter/Oauth library:
https://bitbucket.org/reiniero

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

IPguy

  • Sr. Member
  • ****
  • Posts: 385
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #199 on: August 19, 2012, 04:18:56 am »
I do remember shutting Laz down before I ran my fpcup_update, but it is possible I re-opened it during the update to check something.

Running fpcup a second time updated Laz successfully, so, I have to give myself a slap on the head and a "duh-stupid".

Thanks.

TurboRascal

  • Hero Member
  • *****
  • Posts: 606
  • "Good sysadmin. Bad programmer."™
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #200 on: August 20, 2012, 07:33:58 pm »
BTW, what about the modules, do all modules listed in the CLI help work? I'm particularly interested in the ccr and crosscompilation ones...
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

BigChimp

  • Hero Member
  • *****
  • Posts: 3217
    • FPCTwit twitter, CheckRide remote control and other open source projects
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #201 on: August 20, 2012, 07:36:20 pm »
Arny, see fpcup.html, but no.  "External" modules, such as everything in fpcup.ini, works.
Crosscompiling: only win32=>win64 enabled for now.
Win64=>win32 waits for compiler improvements.
Others: please feel free to write them ;) See fpcup.html for some guidance.
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 twitter/Oauth library:
https://bitbucket.org/reiniero

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

TurboRascal

  • Hero Member
  • *****
  • Posts: 606
  • "Good sysadmin. Bad programmer."™
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #202 on: August 20, 2012, 07:43:12 pm »
Well, coincidentally my first idea for what I'd like to help you develop is ccr support :)
I'll look it up... Although I don't like reading your code much because it's nice and object oriented, while I prefer mixing up much of good ol' procedural pascal into my works :D
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

BigChimp

  • Hero Member
  • *****
  • Posts: 3217
    • FPCTwit twitter, CheckRide remote control and other open source projects
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #203 on: August 20, 2012, 07:50:49 pm »
Heh, I see what you mean. OOP can be boring ;)

Don't quite get what "ccr support" means compared with the current functionality, but let me know  ;)

If you really get bored, there's nothing stopping you to write an fpcup package for Lazarus ;)
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 twitter/Oauth library:
https://bitbucket.org/reiniero

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

TurboRascal

  • Hero Member
  • *****
  • Posts: 606
  • "Good sysadmin. Bad programmer."™
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #204 on: August 20, 2012, 08:00:08 pm »
Don't quite get what "ccr support" means compared with the current functionality, but let me know  ;)

Well, you answered "no" to my question above so I thought you mean that the ccr module (named "lazarus_ccr") doesn't work  :-\
So, it does work?

If you really get bored, there's nothing stopping you to write an fpcup package for Lazarus ;)

Well, if the ccr module does work, I can't remember what more could I do. ;)
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

BigChimp

  • Hero Member
  • *****
  • Posts: 3217
    • FPCTwit twitter, CheckRide remote control and other open source projects
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #205 on: August 20, 2012, 08:36:05 pm »
Code: [Select]
grep -i ccr fpcup.ini
Name=lazarus_ccr
Lazarus_ccr is one of the modules in fpcup.ini - so yes, it does work ;)

... well if you no improvement ideas for fpcup, I'm sure you'll find something else to pass the time ;) And you're always welcome to help out Ludo and me with fpcup ;)
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 twitter/Oauth library:
https://bitbucket.org/reiniero

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

TurboRascal

  • Hero Member
  • *****
  • Posts: 606
  • "Good sysadmin. Bad programmer."™
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #206 on: August 20, 2012, 09:58:03 pm »
Why not; I'm reading bits of the code these days, I hope I'll have enough time to study it all and perhaps throw in an idea or two. After I manage to chew that nice OOP code of course :D

BTW seriously, you've commented the code quite nicely so it's not so hard to read ;)
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

BigChimp

  • Hero Member
  • *****
  • Posts: 3217
    • FPCTwit twitter, CheckRide remote control and other open source projects
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #207 on: August 21, 2012, 05:13:44 pm »
Thanks  :-[
The nasty code is mine, the nice code is ludob's. But we both like to comment it ;)
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 twitter/Oauth library:
https://bitbucket.org/reiniero

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

BigChimp

  • Hero Member
  • *****
  • Posts: 3217
    • FPCTwit twitter, CheckRide remote control and other open source projects
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #208 on: August 23, 2012, 02:26:10 pm »
On Linux, fpcup does not create desktop icons but just shell scripts in the default directory or the directory specified. There is not one linux desktop but many incompatible desktops. Contributions for detecting the installed desktop(s) and adding icons are welcome  ;)

I use linuxmint 11 with gnome2
on this system (IMHO all gnome2 maybe gnome3) you can create a desktop icon using /usr/bin/xdg-desktop-icon

Hi nomorelogic,

I finally got round to adding desktop icon support to fpcup. Unfortunately, I couldn't test it on my debian xfce desktop as it doesn't seem to have xdg-desktop-icon.
If you can test it, I'd be grateful!
Edit: uploaded x64 linux binary; sorry no x86 one yet; source is updated of course.

FYI, we track the bug at
https://bitbucket.org/reiniero/fpcup/issue/35/create-desktop-icons-shortcuts-on-linux
« Last Edit: August 23, 2012, 02:27:58 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 twitter/Oauth library:
https://bitbucket.org/reiniero

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

greenie

  • Newbie
  • Posts: 4
Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
« Reply #209 on: August 24, 2012, 07:11:10 am »
Hi

I have just come across FPC updater and have given it a try. When I add a button to a form then double click on the button I get this error in the message window:
\lcl\lclclasses.pp(32,10) Error: unit not found: Classes

Any ideas as to what I am doing wrong?

Thanks

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads