new-session-manager icon indicating copy to clipboard operation
new-session-manager copied to clipboard

C shared or static library 'fltk' not found

Open kfirufk opened this issue 1 year ago • 3 comments

I use gentoo linux ~amd64, fltk-1.3.8 installed

ldconfig -v | grep fltk shows this:

/usr/lib64/fltk: (from /etc/ld.so.conf:23)
	libfltk.so.1.3 -> libfltk.so.1.3
	libfltk_forms.so.1.3 -> libfltk_forms.so.1.3
	libfltk_gl.so.1.3 -> libfltk_gl.so.1.3
	libfltk_images.so.1.3 -> libfltk_images.so.1.3
	libfltk_cairo.so.1.3 -> libfltk_cairo.so.1.3

when i run make build --prefix=/usr i get:

The Meson build system Version: 1.3.0 Source dir: /home/ufk/src/new-session-manager Build dir: /home/ufk/src/new-session-manager/build Build type: native build Project name: new-session-manager Project version: 1.6.1 C compiler for the host machine: ccache cc (gcc 13.2.1 "cc (Gentoo 13.2.1_p20231014 p9) 13.2.1 20231014") C linker for the host machine: cc ld.bfd 2.41 C++ compiler for the host machine: ccache c++ (gcc 13.2.1 "c++ (Gentoo 13.2.1_p20231014 p9) 13.2.1 20231014") C++ linker for the host machine: c++ ld.bfd 2.41 Host machine cpu family: x86_64 Host machine cpu: x86_64 Found pkg-config: YES (/usr/bin/pkg-config) 2.1.0 Run-time dependency liblo found: YES 0.31 Run-time dependency threads found: YES Run-time dependency jack found: YES 0.125.0

meson.build:40:13: ERROR: C shared or static library 'fltk' not found

and the log also shows that it can't find fltk: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lfltk: No such file or directory

kfirufk avatar Nov 26 '23 17:11 kfirufk

Is it possible that you have to install fltk-devel or so to get the library?

diovudau avatar Nov 29 '23 19:11 diovudau

Is it possible that you have to install fltk-devel or so to get the library?

In gentoo Linux just emerging fltk is fine,and as I showed, I already have it installed

kfirufk avatar Nov 30 '23 06:11 kfirufk

i tested fltk and it compiles fine, i downloaded an hello world example in fltk, compiled it with

g++ fltk-hello.cpp `fltk-config --cxxflags --ldflags` -o fltk-hello

and it compiles and works just fine.

kfirufk avatar Nov 30 '23 17:11 kfirufk