Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-02

fpGUI WS update

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys
to Ondrej Pokorny
Ondrej Pokorny wrote
On 03.02.2018 16:33, AlexeyT via Lazarus wrote: > https://bugs.freepascal.org/view.php?id=32647 is also fixed? cannot > test yet. Yes.

First off, I'm very glad to see movement on the LCL-fpGUI front. So well done to those that contributed.

I wanted to test the latest Lazarus Trunk LCL-fpGUI support under FreeBSD (64-bit) with FPC 3.0.4.

Creating a simple LCL application with a button, mainmenu, memo, listbox and combobox.

Compilation error:
* I had to remove the "Graph" reference in the
lcl/interfaces/fpgui/fpguiint.pp unit's uses clause. It tried to link agains a FPC package pulling in SVGALib (which seems to be Linux and Windows only or something). Or not a library that comes standard with FreeBSD.

After removing that, LCL-fpGUI compiled fine, and so did my test project.

Running my test project produces the following error:

[tmp]$ ./project1
svgalib: Cannot get I/O permissions.
[tmp]$

It seems somewhere something is still trying to link against svgalib - which clearly is a FPC package that is unsupported under FreeBSD. I also can't see why such a dependency is needed for LCL-fpGUI widgetset - it definitely isn't a requirement for pure fpGUI apps.

Anyway, anybody know where this dependencies in LCL-fpGUI is coming from so we can try and remove it or IFDEF it out for FreeBSD?

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Anyway, anybody know where this dependencies in LCL-fpGUI is coming from so we can try and remove it or IFDEF it out for FreeBSD?

After a while it came to me, the IO error is probably a permission issue for my logged in user. So I switched to root user on my FreeBSD system and ran my test project again. It switched to fullscreen Console mode and gave errors in the console. So I guess 'svgalib' is a console graphics library (ie: Turbo Pascal days) or something. Definitely not something that should be used with LCL.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 10 lines
On 2018-02-03 22:49, Graeme Geldenhuys via Lazarus wrote: > Anyway, anybody know where this dependencies in LCL-fpGUI is coming from > so we can try and remove it or IFDEF it out for FreeBSD? After a while it came to me, the IO error is probably a permission issue for my logged in user. So I switched to root user on my FreeBSD system and ran my test project again. It switched to fullscreen Console mode and gave errors in the console. So I guess 'svgalib' is a console graphics library (ie: Turbo Pascal days) or something. Definitely not something that should be used with LCL.

yes, svgalib is a console graphics library. Looks like there is still some reference to the graph unit in the code, because it links directly to libsvga.

Michael.

Reply by email

José Mejuto
to Graeme Geldenhuys: After a while it came to me, the IO error is probably a permission issue for my logged in…
Graeme Geldenhuys wrote 6 lines
After a while it came to me, the IO error is probably a permission issue for my logged in user. So I switched to root user on my FreeBSD system and ran my test project again. It switched to fullscreen Console mode and gave errors in the console. So I guess 'svgalib' is a console graphics library (ie: Turbo Pascal days) or something. Definitely not something that should be used with LCL.

Hello,

I'll try to circunvent the use of Graph unit, if my memory serves me, it is mostly used for some sets to perform value conversions between fpGUI and LCL.

Last update was not recently tested in Linux family as main development is in Windows because LCL tries to mimic Windows/Delphi behavior, and fpGUI widgetset is not being used for production right now.

I promise that future updates will be tested in at least one Linux platform ;-)

Reply by email

Graeme Geldenhuys
to José Mejuto
José Mejuto wrote
I'll try to circunvent the use of Graph unit, if my memory serves me, it is mostly used for some sets to perform value conversions between fpGUI and LCL.

Still strange to use that unit - though removing it (in one location) did not cause any compilation error on FreeBSD. But I still can't find where else it is used, because LCL-fpGUI still seems to have a dependency on it somewhere.

Very nice of you to contribute to LCL-fpGUI. Much appreciated. :)

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email