Recent

Author Topic: Fpcupdeluxe  (Read 813526 times)

Josh

  • Hero Member
  • *****
  • Posts: 1273
Re: Fpcupdeluxe
« Reply #765 on: February 20, 2018, 11:20:07 pm »
Hi

Have you slicked te Setup ++ button, their are numerous options in there, check my post 7 steps backwards, it has a picture there.
Hope it helps.

https://forum.lazarus.freepascal.org/index.php/topic,34645.msg275955.html#msg275955
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: Fpcupdeluxe
« Reply #766 on: February 21, 2018, 07:21:56 am »
Have you slicked te Setup ++ button, their are numerous options in there, check my post 7 steps backwards, it has a picture there.
Hope it helps.
I know the picture.

A1: Tick to rebuild without a full re-download of sources -> FIX my Q1 Thx

Q2: Still a problem. Where must the patches created or reside to be accepted ? 
Q3: Is the wiki http://wiki.freepascal.org/fpcupdeluxe maintanied by one of the fpcupdeluxe heros ?

THX for your help (and the realy good picture, some posts before)

Andreas

Edit inserted the not working patch (against actual fpc trunk)
regards
Andreas

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #767 on: February 21, 2018, 08:47:38 am »
@af0815
You need to adjust the path of your patch !
Fpcupdeluxe patches from the fpc source directory.

Code: Pascal  [Select][+][-]
  1. --- fcl-report/src/fpreport.pp  (revision 38293)
  2. +++ fcl-report/src/fpreport.pp  (working copy)
  3.  
must be
Code: Pascal  [Select][+][-]
  1. --- packages/fcl-report/src/fpreport.pp (revision 38293)
  2. +++ packages/fcl-report/src/fpreport.pp (working copy)

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: Fpcupdeluxe
« Reply #768 on: February 24, 2018, 11:14:24 am »
Still not working. But now i have more information

PatchFile
Quote
Index: packages/fcl-report/src/fpreport.pp
===================================================================
--- packages/fcl-report/src/fpreport.pp   (revision 38321)
+++ packages/fcl-report/src/fpreport.pp   (working copy)
@@ -2296,6 +2296,11 @@
   Result := (R shl 16) or (G shl 8) or B;
 end;
 
+function QWordToReportColor(AQWord: QWord):TFPReportColor;
+begin
+  Result := TFPReportColor(AQWord and $FFFFFFFF);
+end;
+
 function StretchModeToString(AEnum: TFPReportStretchMode): string; inline;
 begin
   result := GetEnumName(TypeInfo(TFPReportStretchMode), Ord(AEnum));
@@ -3403,7 +3408,11 @@
     end;
   end
   else
+  begin
+    if not Assigned(FFont) then
+      FFont := TFPReportFont.Create;
     Result := FFont;
+  end;
........

Quote
fpcupdeluxe: info: FPC: WARNING: found modified files.
C:\Data\lazdev\trunk_trunk\fpcsrc\packages\fcl-report\src\fpreport.pp
C:\Data\lazdev\trunk_trunk\fpcsrc\packages\fcl-report\src\fpreportstreamer.pp
Diff with last revision stored in C:\Data\lazdev\trunk_trunk\fpcsrc\REV38324.diff
FPC: reverting before updating.

fpcupdeluxe: info: FPCNativeInstaller (GetModule: FPC): FPC was at: revision 38324
fpcupdeluxe: info: FPCNativeInstaller (GetModule: FPC): FPC is now at revision: 38325
fpcupdeluxe: info: FPCNativeInstaller (GetModule: FPC): Trying to patch FPC with C:\Data\lazdev\trunk_trunk\fpcsrc\fpreport.pp.patch
Executing: C:\Data\lazdev\trunk_trunk\fpcbootstrap\patch "-p0" "-N" "--no-backup-if-mismatch" "-i" "C:\Data\lazdev\trunk_trunk\fpcsrc\fpreport.pp.patch" (working dir: C:\Data\lazdev\trunk_trunk\fpcsrc)
patching file `packages/fcl-report/src/fpreport.pp'
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to packages/fcl-report/src/fpreport.pp.rej
missing header for unified diff at line 29 of patch
can't find file to patch at input line 29
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|+3408,11 @@
|     end;
|   end
|   else
|+  begin
|+    if not Assigned(FFont) then
|+      FFont := TFPReportFont.Create;
|     Result := FFont;
|+  end;
| end;
|
| procedure TFPReportCustomMemo.SetUseParentFont(AValue: Boolean);
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
regards
Andreas

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: Fpcupdeluxe
« Reply #769 on: February 24, 2018, 11:21:54 am »
I found the reason -> The patch was so fast applied (less than 5 mins) in the fpc repro, so the message of  'Reversed (or previously applied) patch detected!  Skipping patch.' is correct. The fpc team was surprise me.

Sorry for the noise.

Andreas
regards
Andreas

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Fpcupdeluxe
« Reply #770 on: March 01, 2018, 11:55:57 pm »
Just tried to download 32bit Laz+FPC latest fixes and it worked. Installing cross compiler for Win64 worked, but installing cross compiler for Lin32 and Lin64 failed. First it failed to download git (which I have in path), and then it stopped after cross tools could not be downloaded. If I enter complete url in  browser I can download the git32.7z file. I have also tried the alternative download method, but none of the download tools could be downloaded also.

Quote
[2018-03-01 23:27:04.832 Info] 01.03.2018. 23:27:04: fpcupdeluxe: V046 (20180127) started.
 [2018-03-01 23:27:08.180 Info] FPCCrossInstaller (GetFile): Init:
 [2018-03-01 23:27:08.180 Info] FPCCrossInstaller (GetFile): FPC directory:      C:\PRG\Lazarus\FixesAll\fpcsrc
 [2018-03-01 23:27:08.180 Info] FPCCrossInstaller (GetFile): FPC URL:            https://svn.freepascal.org/svn/fpc/branches/fixes_3_0
 [2018-03-01 23:27:08.180 Info] FPCCrossInstaller (GetFile): FPC options:       
 [2018-03-01 23:27:08.180 Info] FPCCrossInstaller (GetFile): Init:
 [2018-03-01 23:27:08.180 Info] FPCCrossInstaller (GetFile): Bootstrap compiler dir: C:\PRG\Lazarus\FixesAll\fpcbootstrap\
 [2018-03-01 23:27:08.180 Info] FPCCrossInstaller (GetFile): FPC URL:                https://svn.freepascal.org/svn/fpc/branches/fixes_3_0
 [2018-03-01 23:27:08.180 Info] FPCCrossInstaller (GetFile): FPC options:           
 [2018-03-01 23:27:08.180 Info] FPCCrossInstaller (GetFile): FPC source directory:   C:\PRG\Lazarus\FixesAll\fpcsrc
 [2018-03-01 23:27:08.180 Info] FPCCrossInstaller (GetFile): FPC install directory:  C:\PRG\Lazarus\FixesAll\fpc
 [2018-03-01 23:27:08.180 Info] FPCCrossInstaller (GetFile): Make/binutils path:     C:\PRG\Lazarus\FixesAll\fpcbootstrap
 [2018-03-01 23:27:08.180 Info] FPCCrossInstaller (SetPath): External program path:  C:\PRG\Lazarus\FixesAll\fpc\bin\i386-win32;C:\PRG\Lazarus\FixesAll\fpcbootstrap;C:\PRG\Lazarus\FixesAll\fpcbootstrap;C:\PRG\Lazarus\FixesAll\fpc\;C:\PRG\Lazarus\FixesAll\fpc\bin;C:\PRG\Lazarus\FixesAll\fpc\utils;C:\PRG\Lazarus\FixesAll\fpcsrc\;C:\PRG\Lazarus\FixesAll\fpcsrc\compiler;C:\PRG\Lazarus\FixesAll\fpcsrc\utils;
 [2018-03-01 23:27:08.337 Info] FPCCrossInstaller (CleanModule: FPC): Execute: C:\PRG\Lazarus\FixesAll\fpcbootstrap\make.exe. Params: --jobs=4,FPC=C:\PRG\Lazarus\FixesAll\fpcbootstrap\ppc386.exe,--directory=C:\PRG\Lazarus\FixesAll\fpcsrc,INSTALL_PREFIX=C:\PRG\Lazarus\FixesAll\fpc,UPXPROG=echo,COPYTREE=echo,CPU_SOURCE=i386,OS_SOURCE=win32,OS_TARGET=linux,CPU_TARGET=x86_64,distclean
 [2018-03-01 23:27:08.352 Info] FPCCrossInstaller (GetFile): Verbose output saved to d:\temp\FPCUPLOG00013.tmp
 [2018-03-01 23:28:15.059 Info] FPCCrossInstaller (CleanModule: FPC): Execute: C:\PRG\Lazarus\FixesAll\fpcbootstrap\make.exe. Params: --jobs=4,FPC=C:\PRG\Lazarus\FixesAll\fpcbootstrap\ppc386.exe,--directory=C:\PRG\Lazarus\FixesAll\fpcsrc,INSTALL_PREFIX=C:\PRG\Lazarus\FixesAll\fpc,UPXPROG=echo,COPYTREE=echo,CPU_SOURCE=i386,OS_SOURCE=win32,OS_TARGET=linux,CPU_TARGET=x86_64,distclean
 [2018-03-01 23:31:00.408 Info] FPCCrossInstaller (GetFile): Init:
 [2018-03-01 23:31:00.408 Info] FPCCrossInstaller (GetFile): FPC directory:      C:\PRG\Lazarus\FixesAll\fpcsrc
 [2018-03-01 23:31:00.408 Info] FPCCrossInstaller (GetFile): FPC URL:            https://svn.freepascal.org/svn/fpc/branches/fixes_3_0
 [2018-03-01 23:31:00.408 Info] FPCCrossInstaller (GetFile): FPC options:       
 [2018-03-01 23:31:00.408 Info] FPCCrossInstaller (GetFile): Init:
 [2018-03-01 23:31:00.408 Info] FPCCrossInstaller (GetFile): Bootstrap compiler dir: C:\PRG\Lazarus\FixesAll\fpcbootstrap\
 [2018-03-01 23:31:00.408 Info] FPCCrossInstaller (GetFile): FPC URL:                https://svn.freepascal.org/svn/fpc/branches/fixes_3_0
 [2018-03-01 23:31:00.408 Info] FPCCrossInstaller (GetFile): FPC options:           
 [2018-03-01 23:31:00.408 Info] FPCCrossInstaller (GetFile): FPC source directory:   C:\PRG\Lazarus\FixesAll\fpcsrc
 [2018-03-01 23:31:00.408 Info] FPCCrossInstaller (GetFile): FPC install directory:  C:\PRG\Lazarus\FixesAll\fpc
 [2018-03-01 23:31:00.408 Info] FPCCrossInstaller (GetFile): Make/binutils path:     C:\PRG\Lazarus\FixesAll\fpcbootstrap
 [2018-03-01 23:31:00.408 Info] FPCCrossInstaller (SetPath): External program path:  C:\PRG\Lazarus\FixesAll\fpc\bin\i386-win32;C:\PRG\Lazarus\FixesAll\fpcbootstrap;C:\PRG\Lazarus\FixesAll\fpcbootstrap;C:\PRG\Lazarus\FixesAll\fpc\;C:\PRG\Lazarus\FixesAll\fpc\bin;C:\PRG\Lazarus\FixesAll\fpc\utils;C:\PRG\Lazarus\FixesAll\fpcsrc\;C:\PRG\Lazarus\FixesAll\fpcsrc\compiler;C:\PRG\Lazarus\FixesAll\fpcsrc\utils;
 [2018-03-01 23:49:42.203 Info] 01.03.2018. 23:49:42: fpcup finished.
 [2018-03-01 23:49:42.235 Info] ------------------------------------------------

Quote
Building compiler for linux-x86_64.
fpcupdeluxe: WARNING: FPCCrossInstaller (GetFile): Could not download file with URL https://github.com/newpascal/fpcupdeluxe/releases/download/Git-2.13.2/git32.7z into C:\PRG\Lazarus\FixesAll\fpcbootstrap\git (filename: git32.7z)
fpcupdeluxe: WARNING: FPCCrossInstaller (GetFile): Could not download file with URL https://github.com/newpascal/fpcupdeluxe/releases/download/Git-2.13.2/git32.7z into C:\PRG\Lazarus\FixesAll\fpcbootstrap\git (filename: git32.7z)
fpcupdeluxe: WARNING: FPCCrossInstaller (GetFile): Could not download file with URL https://github.com/newpascal/fpcupdeluxe/releases/download/Git-2.13.2/git32.7z into C:\PRG\Lazarus\FixesAll\fpcbootstrap\git (filename: git32.7z)
fpcupdeluxe: WARNING: FPCCrossInstaller (GetFile): Could not download file with URL https://github.com/newpascal/fpcupdeluxe/releases/download/Git-2.13.2/git32.7z into C:\PRG\Lazarus\FixesAll\fpcbootstrap\git (filename: git32.7z)
fpcupdeluxe: Start of compile error summary.
fpcupdeluxe: ERROR: TAny_linux-x86_64: searched but did not find any binary utilities !!
fpcupdeluxe: Start of compile error summary.
Missing correct cross binary utilities
fpcupdeluxe: Start of compile error summary.
fpcupdeluxe: ERROR: TAny_linux-x86_64: searched but did not find any library !!
fpcupdeluxe: Start of compile error summary.
Missing correct cross libraries

If you want me to try anything please say so.

btw. Also updating existing fpcupdeluxe installation never worked for me. Trying to update fixes (32bit Laz 1.8.1 + FPC 3.0.5 on Win10x64) to Laz 1.8.3 didn't work and reported out of memory on a system with 16GB ram (I am aware that less then 4GB is available to 32bit applications) when I just had browser running besides fpcupdeluxe.

EDIT: I have found a workaround. After copying libeay32.dll and ssleay32.dll in exe dir, installation of cross compilers has passed without errors.
« Last Edit: March 04, 2018, 01:38:44 am by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

att2

  • Jr. Member
  • **
  • Posts: 52
Re: Fpcupdeluxe
« Reply #771 on: March 02, 2018, 01:31:43 pm »
Hi,
I cannot compile lazarus on an Odroid C2 with Ubuntu Mate 16.04.3 LTS "xenial".
FPC 3.1.1 compiles fine using the FPCUPDeluxe v1.6.0n for aarch64-linux-gtk2.
LAZ compiling complains with: "fpcupdeluxe: WARNING: UniversalInstaller (InstallPackage): Package rx.lpk not found.... skipping.

Renat.Su

  • Full Member
  • ***
  • Posts: 232
    • Renat.Su
Re: Fpcupdeluxe
« Reply #772 on: March 03, 2018, 10:56:23 am »
Ubuntu 64 bit. Lazarus 64 bit 1.8.0 installed with fpcdeluxe.
Cross-Compiling for Windows works fine. For Linux too.
When cross-compiling from Ubuntu to MacOS there are problems. Cross-compiler installed (Darwin-i386 and Darwin-x86_64) via fpcdeluxery.
When try to compile to Darwin/i386
Code: [Select]
Compile Project, Mode: example free, OS: darwin, CPU: i386, Target: free/example: Exit code 256, Errors: 1, ... ... ... ...
An error occurred while linking
whic.lpr(49,1) Error: Error while linking
When try to compile to Darwin/x86_64
Code: [Select]
Messages, Warnings: 1
Compile package DateTimeCtrls 1.5.1: Aborted
Compile package LCL 1.8.0.6: Exit code 256, Errors: 13, Warnings: 1
carbonproc.pp(538,13) Error: Identifier not found "ATSUFindFontFromName"
carbonproc.pp(561,15) Error: Identifier not found "ATSUFindFontFromName"
carbonproc.pp(615,14) Error: Identifier not found "ATSUFindFontName"
carbonproc.pp(622,14) Error: Identifier not found "ATSUFindFontName"
carbonproc.pp(643,11) Error: Identifier not found "FMGetFontFamilyFromName"
carbonproc.pp(750,5) Error: Identifier not found "HIViewChangeFeatures"
carbonproc.pp(753,11) Error: Identifier not found "HIViewSetVisible"
carbonproc.pp(754,11) Error: Identifier not found "HIViewSetFrame"
carbonproc.pp(777,3) Error: Identifier not found "GetControlBounds"
carbonproc.pp(787,3) Error: Identifier not found "SetControlData"
carbonproc.pp(812,36) Error: Identifier not found "GetControlEventTarget"
carbonproc.pp(1446,12) Error: Identifier not found "GetThemeFont"
carbonproc.pp(1446,43) Error: Identifier not found "GetApplicationScript"
carbonproc.pp(1448,28) Warning: Local variable "sz" does not seem to be initialized
Can you tell me what's wrong?

WooBean

  • Full Member
  • ***
  • Posts: 230
Re: Fpcupdeluxe
« Reply #773 on: March 03, 2018, 11:17:10 am »
Hi!

I have found this (at http://wiki.freepascal.org/Carbon_Interface):

Carbon is a Mac OSX native API which descends from the old Mac OS APIs and is available since Mac OS X 10.0. One thing to note, however, is that Apple has restricted Carbon to 32 bit applications only. To write 64 bit applications one should use the Lazarus Cocoa Interface.

It seems to me that fpcupdeluxe has nothing to do with problem signal(l)ed by Renat.Su

WooBean


Platforms: Win7/64, Linux Mint Ulyssa/64

Renat.Su

  • Full Member
  • ***
  • Posts: 232
    • Renat.Su
Re: Fpcupdeluxe
« Reply #774 on: March 03, 2018, 05:10:16 pm »
Hi!

I have found this (at http://wiki.freepascal.org/Carbon_Interface):

Carbon is a Mac OSX native API which descends from the old Mac OS APIs and is available since Mac OS X 10.0. One thing to note, however, is that Apple has restricted Carbon to 32 bit applications only. To write 64 bit applications one should use the Lazarus Cocoa Interface.

It seems to me that fpcupdeluxe has nothing to do with problem signal(l)ed by Renat.Su

WooBean
Thank you very much! This is the second part of my post. And what about 32-bit compilation and error messages?
Quote
Error: Error while linking

Josh

  • Hero Member
  • *****
  • Posts: 1273
Re: Fpcupdeluxe
« Reply #775 on: March 03, 2018, 07:03:18 pm »
Do you get the error when you have your project options set as following for MacOS to use native.

cpu target i386; widgetset must be carbon.
cpu target X86-64; widgetset must be set to cocoa.

The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Renat.Su

  • Full Member
  • ***
  • Posts: 232
    • Renat.Su
Re: Fpcupdeluxe
« Reply #776 on: March 05, 2018, 03:07:53 pm »
With cpu target i386 I did just that (i.e. Carbon).
With CPU target x86-84 select a cocoa widgetset and there was an error similar to the first case, that is "Error: Error while linking"
I attached the screenshots showing the settings just in case.
Do not tell me which way to dig?
Thanks for the help!

CharlyTango

  • New Member
  • *
  • Posts: 48
Re: Fpcupdeluxe
« Reply #777 on: March 05, 2018, 05:42:49 pm »
Hi,

I just tried to get a current Lazarus Installation using fpcupdeluxe. (Windows 10)

Step 1: starting fpcupdeluxe, new Directory on drive C:\, pressing Button "Stable" -- succeeded.

Step 2: pressing Button "Fixes" -- the update starts but failed.

Code: Pascal  [Select][+][-]
  1. (1002) Target OS: Win32 for i386
  2. (3104) Compiling lazcontroldsgn.pas
  3. (3104) Compiling registerlazcontrols.pas
  4. (3104) Compiling taprint.pas
  5. (3104) Compiling tadrawercanvas.pas
  6. (3104) Compiling tachartutils.pas
  7. (3104) Compiling tachartstrconsts.pas
  8. (1010) Writing Resource String Table file: tachartstrconsts.rsj
  9. (3104) Compiling tadrawutils.pas
  10. (3104) Compiling tageometry.pas
  11. (3104) Compiling tamath.pas
  12. (1008) 154 lines compiled, 0.3 sec
  13. (1022) 2 hint(s) issued
  14. (1010) Writing Resource String Table file: registerdbf.rsj
  15. (1008) 90 lines compiled, 0.3 sec
  16. (1022) 2 hint(s) issued
  17. (1008) 3374 lines compiled, 0.3 sec
  18. (1022) 3 hint(s) issued
  19. An unhandled exception occurred at $77DFCFD6:
  20. EAccessViolation: Access violation
  21.   $77DFCFD6
  22.   $77E1A38A
  23.   $77E1A259
  24.   $00417A39
  25.   $00417516
  26.   $004A3DA1 line 1215 of ideexterntoolintf.pas
  27.   $004C83B4 line 584 of exttools.pas
  28.   $004CBCD1 line 1525 of exttools.pas
  29.   $004CCE22 line 1814 of exttools.pas
  30.   $004138C2
  31.   $0041789E
  32.   $76428654
  33.   $77E34A77
  34.   $77E34A47
  35.  
  36.  
  37. fpcupdeluxe: ERROR: UniversalInstaller (ConfigModule: suggestedpackages): Failure trying to rebuild Lazarus.
  38. Details:
  39.  
  40.  
  41. ERROR: Fpcupdeluxe fatal error !

Can someone tell me what's wrong ? It worked with other Lazarus Versions like a charm???

Thanks in advance


Lazarus stable, Win32/64

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #778 on: March 05, 2018, 06:00:10 pm »
@Renat.Su

I just did a fresh install on Ubuntu of cross Darwin i386/x86_64.
And could compile without any problem for both architectures.
(I always use build-modes: see included screenshot)

Do you use anything special in your project ?

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #779 on: March 05, 2018, 06:02:10 pm »
@CharlyTango

The problem you encounter has, in most cases, nothing to do with fpcupdeluxe.
However, I will look into it to see if fixes causes problems at the moment (fixes is a moving target).

Edit:
Fixes installs without problems on my Win10.

 

TinyPortal © 2005-2018