* * *

Author Topic: fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc  (Read 4247 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 2989
Re: fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc
« Reply #15 on: December 26, 2011, 02:39:14 am »
Quote
Thx for the info, one last question. Since fpGUI is purely based on FPC, could it be used to create GUI apps for Haiku, Amiga and the others that don't support LCL?
In theory, of course. But you need to provide the backend interface, as defined under gdi (for Windows) and x11 (for Linux) folders.

99Percent

  • Full Member
  • ***
  • Posts: 133
Re: fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc
« Reply #16 on: December 26, 2011, 10:31:02 pm »
I am very interested in trying out this project.

I run into the following while trying to compile some of the included apps:

Code: [Select]
/usr/bin/ld: /home/david/fpgui/lib/x86_64-linux/fpg_x11.o:
 undefined reference to symbol 'FcFontSetDestroy'

What am I missing?

Arch Linux x64

It seems I need to add the libfonconfig.so.1 to the linker:
Code: [Select]
/usr/bin/ld: /home/david/lazarus/lcl/units/x86_64-linux/fpgui/fpg_x11.o: undefined reference to symbol 'FcFontSetDestroy'
/usr/bin/ld: note: 'FcFontSetDestroy' is defined in DSO /usr/lib/libfontconfig.so.1 so try adding it to the linker command line
/usr/lib/libfontconfig.so.1: could not read symbols: Invalid operation
I have tried adding it in the ld.conf.d directory to no avail. I am mystified as to how Lazarus does the final link of itself.

99Percent

  • Full Member
  • ***
  • Posts: 133
Re: fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc
« Reply #17 on: December 26, 2011, 11:15:20 pm »
the /usr/lib/libfontconfig.so.1 is definitely being considered during the linking process yet it cannot find the required FcFontSetDestroy reference.

99Percent

  • Full Member
  • ***
  • Posts: 133
Re: fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc
« Reply #18 on: December 27, 2011, 04:19:13 am »
I think I found where the problem is.

I changed line 169 of fpg_xft_x11 from:
Code: [Select]
procedure FcFontSetDestroy(fsp : PFcFontSet); cdecl; external libXft;
to
Code: [Select]
procedure FcFontSetDestroy(fsp : PFcFontSet); cdecl; external fclib;
and it links fine.

But now Lazarus won't start with the fpgui widgetset :( I get the following:
Code: [Select]
EnumFontFamiliesEx is not yet implemented for this widgetset

Leledumbo

  • Hero Member
  • *****
  • Posts: 2989
Re: fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc
« Reply #19 on: December 27, 2011, 07:23:41 am »
Quote
But now Lazarus won't start with the fpgui widgetset
Are you compiling the IDE with fpGUI interface? :o

99Percent

  • Full Member
  • ***
  • Posts: 133
Re: fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc
« Reply #20 on: December 27, 2011, 05:03:45 pm »
Yeah I tried. How much more work is needed in order to be able to use fpGui widgetset? I think it would be great to be able to use it instead of QT or GTK.

Leledumbo

  • Hero Member
  • *****
  • Posts: 2989
Re: fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc
« Reply #21 on: December 28, 2011, 02:44:14 am »
Quote
Yeah I tried. How much more work is needed in order to be able to use fpGui widgetset? I think it would be great to be able to use it instead of QT or GTK.
The LCL interface is still considered alpha, as you can see here. Currently, it's better to use fpGUI as standalone framework instead of using it as LCL backend.

99Percent

  • Full Member
  • ***
  • Posts: 133
Re: fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc
« Reply #22 on: December 28, 2011, 06:58:07 pm »
I had hoped it had gone out of alpha. Obviously that page needs updating as a lot has improved, and is now supported.

Paul Breneman

  • New member
  • *
  • Posts: 28
    • TurboControl Systems
Re: fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc
« Reply #23 on: January 05, 2012, 01:41:16 am »
Since the earlier release on 23-Dec-2011 the file mentioned below has been updated to FPC 2.6.0 and the serial debug terminal example also has some improvements made.

I have posted a 4.2 MB zip file that has a minimal distribution of the FPC 2.6.0 compiler as well as the new fpGUI v0.8 source code on this page:
  http://www.turbocontrol.com/easyfpgui.htm

I've also included (Synapse) SynaSer source and a serial debug terminal program I've been working on.  Also new is the option of compiling the new (alpha?) fpGUI IDE.

No installation is needed! Just extract the zip into a new folder. Open a command prompt in the root folder of what was extracted. Then type "compile dbgterm" and when that finishes (give it some time) type "cd bin" and then "dbgterm" and you should be up and running the new serial debug terminal.  It really is that easy thanks to the Free Pascal and other teams!
Regards,
Paul Breneman
www.dbReplication.com - VCL components
www.TurboControl.com - Hardware and software development services
- Educational programming project for environment monitoring
- Information on using FreePascal for embedded systems
- Support information for the TurboPower libraries

dballesg

  • Newbie
  • Posts: 4
Re: fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc
« Reply #24 on: February 06, 2012, 02:21:48 pm »
Hi,

It's possible to compile fpGUI under Windows 64 (Vista specifically) but using FPC 2.7.1, instead of 2.6.0?

I'm getting only a couple of errors but no idea how to fix them:

C:\lazarus\lcl\interfaces\fpgui\corelib\gdi\fpg_gdi.pas(389,9) Error: Illegal type conversion: "LongInt" to "TfpgWidget"
C:\lazarus\lcl\interfaces\fpgui\corelib\gdi\fpg_gdi.pas(759,13) Error: Illegal type conversion: "LongInt" to "TfpgGDIWindow"
C:\lazarus\lcl\interfaces\fpgui\corelib\gdi\fpg_gdi.pas(1044,19) Error: Illegal type conversion: "LongInt" to "TfpgGDIWindow"

But I suspect is due that in Windows 64 the HWND is a QWord?? not a LongInt??

C:\lazarus\lcl\interfaces\fpgui\corelib\gdi\fpg_gdi.pas(1189,58) Error: Illegal type conversion: "TStringList" to "LongInt"
This one goes away changing the line:
Code: [Select]
EnumFontFamiliesEx(Display, @LFont, @MyFontEnumerator, LongInt(result), 0);
to
EnumFontFamiliesEx(Display, @LFont, @MyFontEnumerator, LongInt(@result), 0);

I have another question as well:
How much of the migLayout is ported to fpGUI if any?? Or is only the initial code under \fpgui\prototypes\miglayout???

Thanks in advance,
David

libudi

  • New member
  • *
  • Posts: 10
Re: fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc
« Reply #25 on: February 07, 2012, 03:38:42 am »
I have never used fpGUI, but i have a rough idea:Will fpGUI be wrapped as standalone displayer like tck/tk wish and distributed as a common DLL? That might make fpGUI more portable and easy to use.
« Last Edit: February 07, 2012, 03:41:08 am by libudi »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads