FLTK: cannot find library

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
Post Reply
Munair
Posts: 1286
Joined: Oct 19, 2017 15:00
Location: Netherlands
Contact:

FLTK: cannot find library

Post by Munair »

On Linux (Debian 9) I downloaded and unzipped fltk-c-1.3.3. Then I ran buildall.sh. So far so good. Everything compiled fine. But, when trying to run an example, say ScreenInfo, I get the following error message:

error while loading shared libraries: libfltk-c-1.3.3-64.so: cannot open shared object file: No such file or directory

I get this error with every executable, even though the libraries are in the very same directory. I even copied the libraries and include files to the appropriate freebasic folders under '/usr/local/lib/freebasic' and '/usr/local/include/freebasic'.

Image

Anyone familiar with this error?
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: FLTK: cannot find library

Post by D.J.Peters »

Munair wrote:I even copied the libraries and include files to the appropriate freebasic folders under '/usr/local/lib/freebasic' and '/usr/local/include/freebasic'
Don't copy the *.so libs in to the FreeBASIC lib folder !!!

use:
/usr/lib
or
/usr/lib64

Joshy
D.J.Peters wrote: How to start with FLTK C

...

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

...
Munair
Posts: 1286
Joined: Oct 19, 2017 15:00
Location: Netherlands
Contact:

Re: FLTK: cannot find library

Post by Munair »

OK, got it to work. Thanks.
Munair
Posts: 1286
Joined: Oct 19, 2017 15:00
Location: Netherlands
Contact:

Re: FLTK: cannot find library

Post by Munair »

My findings thus far:

- controls/widgets do not seem to adapt to system (GTK) theme
- loading of executables takes long, probably due to finding/loading .so files
- srollbars behave erratic; when pulling them they fly back (vertical) or dissapear (horizontal) while the content stays scrolled.

GTK may be more difficult to program, but it looks like the best option for FB IMHO.
Post Reply