Forum > Packages and Libraries

Cannot install BGRAcontrols from Online Package manager

(1/2) > >>

att2:
Hello,

My system so far: Win10, 32GB Ram, dual core Xeon x5670, a virtual machine based on latest Virtualbox.
The VM: contains Linux Mint 19, 64 bit, latest version.

Installed inside Linux Mint 19 is Lazarus 1.8.4 and FPC 3.0.0 including cross-compile to ARM. Lazarus was installed by means of FPCUPDELUXE 1.6.1m.

The problem: A simple "hello world" program is perfectly cross-compiled to ARM and works there, on a RasPi3 (1 Button, 1 Memo).
BUT when I need a lot of components, the components will not compile. I am using the Online Package Manager to try to install the BGRAcontrols package, and it simply won't compile. It gives me an error : "Internal Error 2012090607".
I googled for this error. All the answers from here did not help so far, the error keeps re-occuring no matter what.

LAZARUS is run as user root, because of the OpenGL-Bug of VirtualBox (Lazarus will not run otherwise).

The log says:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Hint: (lazarus) Last compile was incomplete for bgracontrols 5.0.1  State file="/home/arm1/fpcupdeluxe/config_lazarus/onlinepackagemanager/packages/bgracontrols-master/lib/x86_64-linux/3.0.0/bgracontrols.compiled"Info: (lazarus) Execute Title="Compile package bgracontrols 5.0.1"Info: (lazarus) Working Directory="/home/arm1/fpcupdeluxe/config_lazarus/onlinepackagemanager/packages/bgracontrols-master/"Info: (lazarus) Executable="/home/arm1/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.sh"Info: (lazarus) Param[0]="-B"Info: (lazarus) Param[1]="-MObjFPC"Info: (lazarus) Param[2]="-Scghi"Info: (lazarus) Param[3]="-CX"Info: (lazarus) Param[4]="-Cg"Info: (lazarus) Param[5]="-O3"Info: (lazarus) Param[6]="-OoREGVAR"Info: (lazarus) Param[7]="-l"Info: (lazarus) Param[8]="-vewnhibq"Info: (lazarus) Param[9]="-Fu/home/arm1/fpcupdeluxe/config_lazarus/onlinepackagemanager/packages/bgracontrols-master/mouseandkeyinput"Info: (lazarus) Param[10]="-Fu/home/arm1/fpcupdeluxe/lazarus/packager/units/x86_64-linux"Info: (lazarus) Param[11]="-Fu/home/arm1/fpcupdeluxe/lazarus/components/lazutils/lib/x86_64-linux"Info: (lazarus) Param[12]="-Fu/home/arm1/fpcupdeluxe/lazarus/lcl/units/x86_64-linux"Info: (lazarus) Param[13]="-Fu/home/arm1/fpcupdeluxe/lazarus/lcl/units/x86_64-linux/gtk2"Info: (lazarus) Param[14]="-Fu/home/arm1/fpcupdeluxe/config_lazarus/onlinepackagemanager/packages/bgrabitmap-master/bgrabitmap/lib/x86_64-linux/3.0.0"Info: (lazarus) Param[15]="-Fu/home/arm1/fpcupdeluxe/lazarus/components/lazcontrols/lib/x86_64-linux/gtk2"Info: (lazarus) Param[16]="-Fu/home/arm1/fpcupdeluxe/lazarus/components/ideintf/units/x86_64-linux/gtk2"Info: (lazarus) Param[17]="-Fu/home/arm1/fpcupdeluxe/config_lazarus/onlinepackagemanager/packages/bgracontrols-master/"Info: (lazarus) Param[18]="-FU/home/arm1/fpcupdeluxe/config_lazarus/onlinepackagemanager/packages/bgracontrols-master/lib/x86_64-linux/3.0.0/"Info: (lazarus) Param[19]="-dLCL"Info: (lazarus) Param[20]="-dLCLgtk2"Info: (lazarus) Param[21]="bgracontrols.pas"Hint: closing unneeded package "bgracontrols"LAZARUS END - cleaning up ...Hint: (lazarus) [TMainIDE.Destroy] B  -> inherited Destroy... TMainIDEHint: (lazarus) [TMainIDE.Destroy] END Free Pascal Compiler version 3.0.0-r32319 [2018/10/03] for x86_64Copyright (c) 1993-2015 by Florian Klaempfl and others Lazarus: 1.8.4 
Any help is greatly appreciated. (and urgently needed!  %) %)   )

Thaddy:
- This internal error is defined in ncgutils.pas
- You are two! fpc releases behind (almost three) and many things were fixed in fpc 3.0.2 and (current) 3.0.4.
- Which makes your FPC version also unsupported.
- I personally always use the pi 3 itself to compile both FPC and Lazarus (with an enlarged swap)
- Both bgrabitmap and bgracontrols will not compile for the Raspberry Pi on my machine (Laz 2.1.0/fpc3.3.1) (illegal type conversions HDC to TgtkDeviceContext)

att2:
Ok so the complete internal error was, like: "bcsvgviewer.pas (228,13) Error: Internal Error 2012090607"
Which FPC version shall I use, then?

Thaddy:

--- Quote from: att2 on October 04, 2018, 03:04:45 pm ---Ok so the complete internal error was, like: "bcsvgviewer.pas (228,13) Error: Internal Error 2012090607"
Which FPC version shall I use, then?

--- End quote ---
Well: As I added after a test install for bgrabitmap and bgracontrols: It won't work at all on a Raspberry Pi 3, currently. But the safe way would be to use at least 3.0.4.
The bgracontrol maintainers should look into this, but the internal error should nevertheless be reported to the compiler team. That said: the svg base code has changed considerably in the mean time, but that won't help you out. There are more things wrong with the bgracontrols on linux armhf

att2:
Oh, I see. I'm glad someone knows and tells me as it is.
I just re-compiled with Lazarus 1.8.4 and FPC 3.2.0 and FPCUPDELUXE said:

(3104) Compiling bceffect.pas
(3104) Compiling bcfilters.pas
(3104) Compiling bcgamegrid.pas
(3104) Compiling bcimagebutton.pas
(10001) PPU Loading /home/arm1/fpc2/ccr/bgrabitmap/bgrabitmap/lib/x86_64-linux/3.2.0/bgraslicescaling.ppu
(10011) PPU Source: bgraslicescaling.pas not found
(10028) Recompiling BGRASliceScaling, checksum changed for /home/arm1/fpc2/ccr/bgrabitmap/bgrabitmap/lib/x86_64-linux/3.2.0/bgrabitmap.ppu
/home/arm1/fpc2/ccr/bgracontrols/bcimagebutton.pas(48,32) Fatal: (10022) Can't find unit BGRASliceScaling used by BCImageButton
Fatal: (1018) Compilation aborted
Error: /home/arm1/fpc2/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
Error: (lazarus) Compile package bgracontrols 5.0.1: stopped with exit code 256
Error: (lazarus) [TLazPackageGraph.CompileRequiredPackages] "Exit code 256"

fpcupdeluxe: ERROR: UniversalInstaller (ConfigModule: bgracontrols): Failure trying to rebuild Lazarus.
Details:


ERROR: Fpcupdeluxe fatal error !


(if that is any help)

Navigation

[0] Message Index

[#] Next page

Go to full version