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'.
Anyone familiar with this error?
FLTK: cannot find library
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
Re: FLTK: cannot find library
Don't copy the *.so libs in to the FreeBASIC lib folder !!!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'
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
...
Re: FLTK: cannot find library
OK, got it to work. Thanks.
Re: FLTK: cannot find library
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.
- 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.