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

Missing dependency - math library #107

Closed
appashchenko opened this issue Jan 3, 2024 · 1 comment
Closed

Missing dependency - math library #107

appashchenko opened this issue Jan 3, 2024 · 1 comment

Comments

@appashchenko
Copy link
Contributor

Здравствуйте.
Библиотека libm явно не указана в зависимостях meson.
Как я понял, обычно она подтягивается с другими библиотеками (libsvg тянет через pkg-config).
Сейчас мне понадобилось отключить поддержку всех форматов изображений и я получил ошибку.
swayimg.p/src_canvas.c.o: undefined reference to symbol 'ceil@@GLIBC_2.2.5'

Например, так можно решить проблему:

diff --git a/meson.build b/meson.build
index 5fd6e66..35914ac 100644
--- a/meson.build
+++ b/meson.build
@@ -41,6 +41,7 @@ fontconfig = dependency('fontconfig')
 freetype = dependency('freetype2')
 threads = dependency('threads')
 rt = cc.find_library('rt')
+m = cc.find_library('m')
 # optional dependencies: file formats support
 exr = dependency('OpenEXR', version: '>=3.1', required: get_option('exr'))
 gif = cc.find_library('gif', required: get_option('gif'))
@@ -210,6 +211,7 @@ executable(
   dependencies: [
     # runtime
     rt,
+    m,
     threads,
     wlcln,
     epoll,
@artemsen
Copy link
Owner

artemsen commented Jan 3, 2024

Спасибо!
Убрал зависимость.

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