Forum > Packages and Libraries

SplahAbout error

(1/2) > >>

chrv:
Hi all,

Trying go install SplashAbout.lpk(1.4.3.0) in lasarus 3.2 via OPM.
I get un error message saying <Cannot install pakage: "splashabout.lpk">
I can trace to uversion at line 111

--- 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";}};} ---function GetWidgetSet: string;begin  case WidgetSet.LCLPlatform of    lpGtk:   Result := WIDGETSET_GTK;    lpGtk2:  Result := WIDGETSET_GTK2;    lpWin32: Result := WIDGETSET_WIN;    lpWinCE: Result := WIDGETSET_WINCE;    lpCarbon:Result := WIDGETSET_CARBON;    lpQT:    Result := WIDGETSET_QT;    lpfpGUI: Result := WIDGETSET_fpGUI;  else    Result:=WIDGETSET_OTHER;  end;end;It seams the compaler don't know about lb... (lpGtk, lpGtk2, lpWin32...).
What am I missing ?

BlueIcaro:
Hello, I have SplashAbout installed por OPM. I don't have any problem.

I use Lazarus 3.4 with fpc 3.2.2 (last release).

If you are using Win32 Lazarus 2.0.12 FPC 3.2.0 as you said in your foot of your message. May be you need update you Lazarus

/BlueIcaro

Thaddy:
Well, the code is not correct anyway: win32 and gtk3 and a couple of Qt's....
That code needs serious attention....
Hard coding versions is and has never been a good idea. Simply bad code that happens to work for most, by accident, but it doesn't for some....

chrv:
Thank you for your reply.

I installed Lazarus 3.1 via OPM (Lazarus 2.0.12 is also installed on this same PC).
This works correctly for all installed components (more than 20, including PowerdBy).
Installation fails only with SplashAbout.

Thaddy:
Glad it works for you, but the code that you found is indeed wrong, it was never your problem: the Laz maintainers should fix that code!

Navigation

[0] Message Index

[#] Next page

Go to full version