Recent

Author Topic: fpGUI Toolkit v1.0 release for FPC 2.6.2  (Read 72271 times)

ahmadian

  • New Member
  • *
  • Posts: 35
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #135 on: September 16, 2013, 02:25:24 am »
Thanks a lot benohb.

I will test it.
In Raspberry, I write a simple Lazarus code to plot sine wave. But when mouse move, stop plotting. For speed up, I try to run that code in CLI of Raspbian. But it show GTK error.
Then I search the Web for a GUI, Independent of GTK. I find fpGUI is One that work with X11 (Linux internal graphics lib). fpGUI is fast, But it did not run in Command Line mode of Linux.
I'm new in Linux.
My need is running single program on Raspberry. I don't need  tools and apps Integrated in Linux, like LXDE. Same as Bar-Metal code in my Boards that run on power up.
Lazarus1.2 + FPC2.6.2 on Raspberry Pi ( installed from Jessie Repo) + LazReport Package

CaptBill

  • Sr. Member
  • ****
  • Posts: 435
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #136 on: September 16, 2013, 04:22:22 am »

My need is running single program on Raspberry. I don't need  tools and apps Integrated in Linux, like LXDE. Same as Bar-Metal code in my Boards that run on power up.

You want TinyCore. It is under 8mb for a full linux install. Simply package your compiled application/files into the .tcz file type. With fpgui and Msegui, you only need to load the Os and the Xorg/X11 module...everything running in ram in under 10mb with a full graphical environment. Bare-metal Fpc PLUS window-management free.

(This is running with a window manger FLWM. A bare boot is easy at reboot)
www.youtube.com/watch?v=tPBdUBMj8ls

Everything-- Tinycore OS, FPC, Lazarus up and running in less than an hour. Fpgui is cakewalk to compile from the git repo once you have a working Lazarus. Fifteen minutes there and its done. Msegui installs well too just haven't been able to configure it yet. Actually a blast to do.

First step is you set up a Tinycore boot disk. I boot directly from a read-only dvd. Just download the 65mb all in one installer No hard drive installation. And that is not a "LiveCd distro". That is how you use it. Everything loads into ram. Your Os always boots to a pristine/incorruptable state. Your file system is all mounted at startup from a single directory, and is loop mounted in-ram.

There are also all the key ports available too like x86 Pure 64, ARM v7, ARM v6 Raspberry . Lots of packages in the Raspberry repo, looks like.

http://distro.ibiblio.org/tinycorelinux/4.x/armv6/tcz/

Then you install fpc.tcz and lazarus.tcz from the simple repository/apps store. Kinda sparse on installed packages/components.

Then all you need is a few extensions from the repo (make sure they are ondemand)
git.tcz  (cmdline git)
binutils.tcz (make tools)
xfe (graphical file manager)

Start git.tcz ,binutils.tcz, and xfe.tcz by right clicking on the desktop for menu/ondemand/"git" and again for "binutils" and "xfe".

Now you can get/checkout Fpgui from git repo. Just make a logical directory structure like home/tc/SVN_GIT/fpgui. Go to this directory at a command prompt and:

Code: [Select]
git remote set-url origin git://git.code.sf.net/p/fpgui/code 

You have a fully configured fpgui Git version manger going too.

Now simply open Lazarus (click the leopard icon on the desktop/appbar), then install the fpgui.lpk . Then "open project" on the main fpgui.lpi, compile it. Search for all the .lpi files in the "demos" directory or any others you can find and load and compile them. Mine worked flawless except for one .lpi failed to compile.

Now, that is your development-side install. Just a few details left. You will need to create your own custom image to run on the RasPi which is your "target" and will need to compile the appropriate ARM cross compiler/s necessary for fpc and you are set up nicely.

Don't forget to re-boot with the backup option set. Everything is in ram and must be backed up each time to persist.
« Last Edit: September 16, 2013, 05:15:23 am by CaptBill »

ahmadian

  • New Member
  • *
  • Posts: 35
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #137 on: September 16, 2013, 05:32:06 am »
Thanks a lot CaptBill   :D

TinyCore is amazing.
I come from analog-electronics / assembly-programming years. Just a moment to understand your sharp guide.  ;)
Lazarus1.2 + FPC2.6.2 on Raspberry Pi ( installed from Jessie Repo) + LazReport Package

mse

  • Sr. Member
  • ****
  • Posts: 286
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #138 on: September 16, 2013, 09:19:28 am »
Msegui installs well too just haven't been able to configure it yet. Actually a blast to do.
What are the problems? Please ask questions about MSEide+MSEgui on the mailing list:
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Web interface:
http://www.mail-archive.com/mseide-msegui-talk@lists.sourceforge.net
NNTP gateway:
nntp://news.gmane.org/gmane.comp.ide.mseide.user
http://news.gmane.org/gmane.comp.ide.mseide.user
« Last Edit: September 16, 2013, 09:11:18 pm by mse »

ahmadian

  • New Member
  • *
  • Posts: 35
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #139 on: September 16, 2013, 06:17:18 pm »
Thanks mse

I worked with MSIDE on WIN7. It was fast and simple.
But how about Embedded Linux?
I attached screenshot of my software that control a tensile machine. I wrote this on Delphi and works fine on PC.
But PC is expensive and has many problems with uneducated  users.
I like to run that on Raspberry or Similiar Embedded fanless Boards.
My main question is: Is it possible to Integrate some kernel code in a software code(same Libs)?
For Example, In Delphi you can add MIDAS LIB to USES section and your exe will run on every machine without MIDAS.
If Lazarus Integrate a kernel that support mouse, keyboard and File/Mem manager, It may run without OS.

Lazarus1.2 + FPC2.6.2 on Raspberry Pi ( installed from Jessie Repo) + LazReport Package

CaptBill

  • Sr. Member
  • ****
  • Posts: 435
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #140 on: September 16, 2013, 08:03:14 pm »
Msegui installs well too just haven't been able to configure it yet. Actually a blast to do.
What are the problems? Please ask questions about MSEide+MSEgui on the mailing list:
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Web interface:
http://www.mail-archive.com/mseide-msegui-talk@lists.sourceforge.net
NNTP gateway:
http://nntp://news.gmane.org/gmane.comp.ide.mseide.user

I am having trouble posting to the Mse news server. Tried several times to register...no luck. I emailed the administrator so hope to shortly get a reply.

I am able to connect to, what looks like, the old news server but looks inactive since about 2012. Is it still active ? (the host is the same host as fpgui newsgroups)

Thanks
« Last Edit: September 16, 2013, 08:08:44 pm by CaptBill »

mse

  • Sr. Member
  • ****
  • Posts: 286
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #141 on: September 16, 2013, 08:48:44 pm »
I am having trouble posting to the Mse news server. Tried several times to register...no luck. I emailed the administrator so hope to shortly get a reply.
Please register here for the primary mailing list first:
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
After registration you can use the mailing list with your mail client. Send your questions to
mseide-msegui-talk@lists.sourceforge.net, please try this first. I see that a user named "Bill" is already registered on mseide-msegui-talk, maybe it is you?
Later, if you prefer NNTP, you can use gmane.
Quote
I am able to connect to, what looks like, the old news server but looks inactive since about 2012. Is it still active ? (the host is the same host as fpgui newsgroups)
IIRC this is a mirror for the old mailinglist on BerliOS which is not active anymore.

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #142 on: September 26, 2013, 02:45:08 pm »
I test fpGui IDE on LXDE desktop of Raspbian and it was ok. But when I run fpGui IDE on Command line of Raspbian, it show 'EAccess violation" error message! What is the Problem?

fpGUI is a Desktop GUI Toolkit. You can't run fpGUI based applications from the command line (when no X11 is running). fpGUI requires X11 under any *nix platforms.

Of course you can install an run many of the very lightweight  (even lighter than LXDE) - that should be sufficient for fpGUI apps to run.

Hope this answer your question.

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #143 on: September 26, 2013, 02:52:36 pm »
IIRC this is a mirror for the old mailinglist on BerliOS which is not active anymore.
In that case I'll remove those mseide* newsgroups to reduce confusion by others.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #144 on: September 26, 2013, 02:54:50 pm »
You want TinyCore. It is under 8mb for a full linux install.
Wow, there are still so many Linux gems out there to discover. TinyCore looks pretty impressive for its size. I'll give it a try on my RaspberryPi. Thanks for mentioning it.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

ahmadian

  • New Member
  • *
  • Posts: 35
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #145 on: September 26, 2013, 04:32:49 pm »
Thanks Graeme
I have many problems with linux based systems. My last experiences was Delphi on PC and ASM on MCU.
Linux developers work on C, that is not unique in the world. Every C developer has his own tools that is not compatible with others. So, his works is not suitable for others.
Lazarus1.2 + FPC2.6.2 on Raspberry Pi ( installed from Jessie Repo) + LazReport Package

mse

  • Sr. Member
  • ****
  • Posts: 286
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #146 on: September 26, 2013, 07:31:24 pm »
IIRC this is a mirror for the old mailinglist on BerliOS which is not active anymore.
In that case I'll remove those mseide* newsgroups to reduce confusion by others.
Please don't remove mseide-msegui.binary, it is convenient to exchange binaries by NNTP.
Thanks, Martin

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #147 on: September 26, 2013, 08:05:19 pm »
BTW: Graeme, how its going with new release? I can't wait for new release with Agg fixes :)

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #148 on: September 26, 2013, 08:39:07 pm »
Please don't remove mseide-msegui.binary, it is convenient to exchange binaries by NNTP.
No problem, I'll keep that one.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #149 on: September 26, 2013, 08:40:12 pm »
BTW: Graeme, how its going with new release? I can't wait for new release with Agg fixes :)
I've started the release process, so v1.2 should be out in a 1-2 weeks.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

 

TinyPortal © 2005-2018