FLTK C for FreeBASIC Jan 09, 2017

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
D.J.Peters
Posts: 7478
Joined: May 28, 2005 3:28

FLTK C for FreeBASIC Jan 09, 2017

Postby D.J.Peters » Mar 28, 2016 8:09

Image
FLTK C 1.3.3 for FreeBASIC.

download: fltk-c-1.3.3.zip Jan 09, 2017

sourrce code:
FLTK 1.3.3 source code and codeblocks workspace: fltk-1.3.3.zip
FLTK C 1.3.3 source code and codeblocks workspace: fltk-c-1.3.3-src.zip

FLTK homepage

FLTK documentation

FreeBASIC tutorial:
-> english
-> german
-> french



How to start with FLTK C

Windows:
Download and extract fltk-c.1.3.3.zip with all folders on any drive:
optional run buildall.bat

Linux:
Download and extract fltk-c.1.3.3.zip with all folders in your home folder:
copy the extracted library to /usr/lib
ubuntu: sudo cp libflt-c*.so /usr/lib
slackware: su -c "cp libfltk-c*.so /usr/lib"
or any other distro as root: cp libfltk-c*.so /usr/lib
optional run buildall.sh
chmod -x ./buildall.sh
sh ./buildall.sh

Joshy
Last edited by D.J.Peters on Sep 25, 2017 14:37, edited 10 times in total.
St_W
Posts: 1435
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: FLTK C wrapper fltk-c.1.3.3 for FreeBASIC.

Postby St_W » Mar 28, 2016 11:46

What is the difference to the "old" FLTK bindings?
D.J.Peters
Posts: 7478
Joined: May 28, 2005 3:28

Re: FLTK C wrapper fltk-c.1.3.3 for FreeBASIC.

Postby D.J.Peters » Mar 28, 2016 11:57

St_W wrote:What is the difference to the "old" FLTK bindings?
It's new :-)
I changed some internal FLTK C++ stuff.
Fixed some old known bugs.
Using freetype font rendering on Linux.
Rotated text output on Linux are enabled now.
It's prepared for ARM devices now. (no OpenGL, no overlays ...)
Removed hidden strucs from C wrapper.
...

Joshy
Last edited by D.J.Peters on Jan 08, 2017 20:28, edited 1 time in total.
fxm
Posts: 8516
Joined: Apr 22, 2009 12:46
Location: Paris (suburbs), FRANCE

Re: FLTK C wrapper fltk-c.1.3.3 for FreeBASIC.

Postby fxm » Mar 28, 2016 12:16

... and requiring several files.bi instead of one to work.
D.J.Peters
Posts: 7478
Joined: May 28, 2005 3:28

Re: FLTK C wrapper fltk-c.1.3.3 for FreeBASIC.

Postby D.J.Peters » Mar 28, 2016 12:39

fxm wrote:... and requiring several files.bi instead of one to work.
You are wrong It was never only one include file !
It was and is seperated in logical unit's.

Joshy

fltk-c.bi include this files:

Code: Select all

#include "fltk-main.bi" ' 344 KB
#include "fltk-tools.bi" '15 KB
#ifndef __FB_ARM__
#include "fltk-gl.bi" ' 8 KB
#include "fltk-glut.bi" ' 22 KB
#endif
Last edited by D.J.Peters on Mar 29, 2016 5:37, edited 2 times in total.
fxm
Posts: 8516
Joined: Apr 22, 2009 12:46
Location: Paris (suburbs), FRANCE

Re: FLTK C wrapper fltk-c.1.3.3 for FreeBASIC.

Postby fxm » Mar 28, 2016 13:26

Yes for my test example, now "fltk-main.bi" instead of old "fltk-c.bi" is sufficient.
D.J.Peters
Posts: 7478
Joined: May 28, 2005 3:28

Re: FLTK C wrapper fltk-c.1.3.3 for FreeBASIC.

Postby D.J.Peters » Mar 28, 2016 15:34

Previews FreeBASIC fltk-c on Raspberry PI

Joshy

click to enlarge:
Image
click to enlarge:
Image
click to enlarge:
Image
click to enlarge:
Image
Last edited by D.J.Peters on Sep 25, 2017 14:43, edited 1 time in total.
D.J.Peters
Posts: 7478
Joined: May 28, 2005 3:28

Re: FLTK C for FreeBASIC.

Postby D.J.Peters » Mar 29, 2016 0:45

Rasbian / debian ARM port available and tested on Raspberry PI model B.

Should work on all Raspberry PI A, B, Zero maybe on PI 2/3 also but I'm not sure.

If you have a Raspberry PI 2 or 3 let me know your test result please.

If you don't have a Raspberry PI I posted a short tutorial how to run a PI via QEMU.
(on a modern / fast PC it can be run with the native speed of a real PI or faster.)

Joshy
jdebord
Posts: 509
Joined: May 27, 2005 6:20
Location: Limoges, France
Contact:

Re: FLTK C for FreeBASIC.

Postby jdebord » Mar 29, 2016 7:40

Thank you for this update !

However, it seems that the import library libfltk...dll.a is missing in the Windows archive.
D.J.Peters
Posts: 7478
Joined: May 28, 2005 3:28

Re: FLTK C for FreeBASIC.

Postby D.J.Peters » Mar 29, 2016 7:42

jdebord wrote:However, it seems that the import library libfltk...dll.a is missing in the Windows archive.
Is included now.

Joshy
Last edited by D.J.Peters on Aug 13, 2016 21:40, edited 1 time in total.
srvaldez
Posts: 1739
Joined: Sep 25, 2005 21:54

Re: FLTK C for FreeBASIC.

Postby srvaldez » Mar 29, 2016 16:04

hello D.J.Peters, first I want to thank you for all the work you put into this library :)
I tested on the Pi 3 and everything compiled ok without warnings, but a couple of tests did not show output Screeninfo and FL_WindowFullscreen, have not run every program because there are so many :)
dkr
Posts: 21
Joined: Nov 20, 2015 15:17
Location: Alabama, USA

Re: FLTK C for FreeBASIC.

Postby dkr » Mar 31, 2016 13:55

Hello,
I tried to use the FLTK library last night on my home computer which is using FBC version 0.9xxx. The compiler stopped near line 465 saying FLTK-glut.bi used an unknown variable Boolean. Do I need to upgrade my compiler version to handle the new boolean types? Also, I was wanting to use the FLTK widget to select a directory - is that widget included in this Freebasic library?

Looks like a great tool. I'm looking forward to using it.

Thanks,
Darren
D.J.Peters
Posts: 7478
Joined: May 28, 2005 3:28

Re: FLTK C for FreeBASIC.

Postby D.J.Peters » Apr 01, 2016 10:40

Content removed by me
"Don't drink and post" :-)

Joshy
Last edited by D.J.Peters on Aug 13, 2016 21:46, edited 1 time in total.
Imortis
Posts: 1584
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: FLTK C for FreeBASIC.

Postby Imortis » Apr 01, 2016 13:03

dkr wrote:...Do I need to upgrade my compiler version to handle the new boolean types?...


Yes. Booleans are 1.0 and above.
MrSwiss
Posts: 2862
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: FLTK C for FreeBASIC.

Postby MrSwiss » Apr 01, 2016 13:39

Imortis wrote:Yes. Booleans are 1.0 and above.
Not correct: 1.00.0 = FBC 64 bit! = NEW (and still, the 32 bit).
Booleans are >= 1.04.0 ...
This means: Yes, you MUST update, to use Boolean Variables. (current Version = 1.05.0)

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 1 guest