Recent

Author Topic: Tiny Core Linux and Visual LCL controls  (Read 4988 times)

YoupMelon

  • New Member
  • *
  • Posts: 13
Tiny Core Linux and Visual LCL controls
« on: April 27, 2018, 11:36:07 am »
Hi all,

The Lazarus distribution for TinyCore Linux doesn't seem to support visual LCL controls.

Suppose I'd like to add support for the visual desktop environment of TinyCore myself, how could I go about doing that?
(The visual desktop is something called Xvesa. Anyone has any experience with that?)
Any advice would be more than welcome.
« Last Edit: April 27, 2018, 03:06:52 pm by YoupMelon »

Thaddy

  • Hero Member
  • *****
  • Posts: 14201
  • Probably until I exterminate Putin.
Re: Tiny Core Linux and Visual LCL controls
« Reply #1 on: April 27, 2018, 12:54:49 pm »
The customdrawn widget set should work if Xvesa is implemented in full. (Because of X)
Specialize a type, not a var.

YoupMelon

  • New Member
  • *
  • Posts: 13
Re: Tiny Core Linux and Visual LCL controls
« Reply #2 on: April 27, 2018, 02:16:54 pm »
That's good news.
So in principle I should be able to compile the right stuff and put it in the right places.
The distribution that I have has interfaces.o etc only in a i386-linux/nogui folder; I expected another i386-linux/i386 folder next to that, but it isn't there.

Can some of the cognoscenti over here help me on my way?

mse

  • Sr. Member
  • ****
  • Posts: 286
Re: Tiny Core Linux and Visual LCL controls
« Reply #3 on: April 27, 2018, 02:19:03 pm »
You probably are served better by a Free Pascal toolkit which links directly to Xlib like MSEide+MSEgui or fpGUI.

YoupMelon

  • New Member
  • *
  • Posts: 13
Re: Tiny Core Linux and Visual LCL controls
« Reply #4 on: April 27, 2018, 02:31:09 pm »
Yes, I know. But I also like Lazarus a lot. So I'd prefer to get that working as well. (Also as a learning experience. And for the sport of it, of course.)
« Last Edit: April 27, 2018, 03:02:53 pm by YoupMelon »

YoupMelon

  • New Member
  • *
  • Posts: 13
Re: Tiny Core Linux and Visual LCL controls
« Reply #5 on: April 27, 2018, 03:00:08 pm »
Yes! I've got it working!!
Thaddy's remark was spot on - there was a customdrawn folder right under my nose, only in an unexpected place.
(And for other newbies like myself: widgetsets can be chosen either from the lazarus IDE or set in an fpc.cfg file if you're compiling directly with fpc.)

This is all great stuff.   Thanks guys!
« Last Edit: April 27, 2018, 03:03:49 pm by YoupMelon »

benohb

  • Full Member
  • ***
  • Posts: 213
Re: Tiny Core Linux and Visual LCL controls
« Reply #6 on: April 28, 2018, 02:52:53 am »

I previously dealt with this distribution
I advise you to use http://wiki.lazarus.freepascal.org/fpGUI


You will get a very small executable file + not need too many dependencies (only libxft) The package is not available in .ISO
You have to pay attention to GLibc library version .Always compiles your program In an old version(<= 2.26)

mse

  • Sr. Member
  • ****
  • Posts: 286
Re: Tiny Core Linux and Visual LCL controls
« Reply #7 on: April 28, 2018, 09:50:10 am »
In MSEide+MSEgui even libxft is optional:
Code: [Select]
> ldd ./mseide
        linux-gate.so.1 (0xb7721000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb76d3000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7598000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7593000)
        librt.so.1 => /lib/librt.so.1 (0xb758a000)
        libm.so.6 => /lib/libm.so.6 (0xb7543000)
        libc.so.6 => /lib/libc.so.6 (0xb7395000)
        /lib/ld-linux.so.2 (0xb7724000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7371000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb736d000)

YoupMelon

  • New Member
  • *
  • Posts: 13
Re: Tiny Core Linux and Visual LCL controls
« Reply #8 on: April 30, 2018, 09:14:23 pm »
To benohb:
Sounds like you experienced some specific quirks with the combination Lazarus / Tiny Core Linux? Can you give some more details?


Thaddy

  • Hero Member
  • *****
  • Posts: 14201
  • Probably until I exterminate Putin.
Re: Tiny Core Linux and Visual LCL controls
« Reply #9 on: April 30, 2018, 10:03:45 pm »
I think what he means is that if you feel the need for a tiny distribution you may also feel the need for small code. And Lazarus code is rather resource intensive.
fpGui is much lighter, but also requires you to learn the whole framework and it can look rather ugly (has been improved, I believe).
MseGUI has the same caveat: you need to learn a new framework.
So if you want to stick to your LCL knowledge, don't use those two. If you want smaller code try both of these frameworks out. Both are nice. Both are stable.
Specialize a type, not a var.

mse

  • Sr. Member
  • ****
  • Posts: 286
Re: Tiny Core Linux and Visual LCL controls
« Reply #10 on: May 01, 2018, 09:08:28 am »
I just remember, MSEide+MSEgui already has been installed on Tiny Core Linux:
http://forum.tinycorelinux.net/index.php?topic=15869.0


 

TinyPortal © 2005-2018