Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C shared or static library 'fltk' not found #99

Open
kfirufk opened this issue Nov 26, 2023 · 3 comments
Open

C shared or static library 'fltk' not found #99

kfirufk opened this issue Nov 26, 2023 · 3 comments

Comments

@kfirufk
Copy link

kfirufk commented Nov 26, 2023

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

@diovudau
Copy link
Contributor

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

@kfirufk
Copy link
Author

kfirufk commented Nov 30, 2023

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
Copy link
Author

kfirufk commented Nov 30, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants