انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید


ارائه ۲۴٫۱۰ اوبونتو منتشر شد 🎉

نویسنده موضوع: مشکل در نصب dzenstat  (دفعات بازدید: 876 بار)

0 کاربر و 1 مهمان درحال مشاهده موضوع.

آفلاین shirfarhad

  • Jr. Member
  • *
  • ارسال: 53
  • جنسیت : پسر
مشکل در نصب dzenstat
« : 18 آبان 1393، 05:33 ب‌ظ »
درود

میخوام dzenstat رو نصب کنم . از اینجا فایل رو گرفتم : https://github.com/ayekat/dzenstat
طبق راهنما کافیه make رو بزنم . ولی خطایی که میده اینه :

travolta:dzenstat-master/ $ make                                                                                                                               [16:58:25]
gcc -c -W -Wall -Wextra -pedantic -g -Wcast-align -Wcast-qual -Wconversion -Wwrite-strings -Wfloat-equal -Wlogical-op -Wpointer-arith -Wformat=2 -Winit-self -Wuninitialized -Wmaybe-uninitialized -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wpadded -Wshadow -std=gnu99 -DHOST_travolta src/mpd.c -o src/mpd.o
In file included from src/mpd.h:4:0,
                 from src/mpd.c:4:
src/dzenstat.h:21:6: warning: padding struct to align ‘fd’ [-Wpadded]
  int fd;                              /* ... if yes, file descriptor */
      ^
src/dzenstat.h:26:1: warning: padding struct size to alignment boundary [-Wpadded]
 } Module;
 ^
src/mpd.c:7:24: fatal error: mpd/client.h: No such file or directory
 #include <mpd/client.h>
                        ^
compilation terminated.
make: *** [src/mpd.o] Error 1

لطفا راهنماییی کنید مشکل از کجاست ؟
سیستم عاملم اوبونتو ۱۴.۰۴ هست .

آفلاین دانیال بهزادی

  • ناظر انجمن
  • *
  • ارسال: 19706
  • جنسیت : پسر
  • Urahara Kiesuke
    • وبلاگ
پاسخ : مشکل در نصب dzenstat
« پاسخ #1 : 19 آبان 1393، 09:43 ب‌ظ »
مشکل از اون‌جاست که پیش‌نیازهای ساخت رو نصب نکردی. مثلاً این‌جا به نبود mpd/client.h گیر داده که برای داشتنش باید بسته‌ی libmpdclient-dev رو نصب کنی.
اگه این ارسال بهت کمک کرد، دنبال دکمهٔ تشکر نگرد. به جاش تو هم به جامعهٔ آزادت کمک کن

آفلاین shirfarhad

  • Jr. Member
  • *
  • ارسال: 53
  • جنسیت : پسر
پاسخ : مشکل در نصب dzenstat
« پاسخ #2 : 20 آبان 1393، 07:08 ب‌ظ »
درود

ممنون مشکل اون قسمت حل شد ولی در ادامه مشکل دیگری پیش اومد خروجی make رو قرار میدم .

travolta:dzenstat-master/ $ make                                                                                                                               [18:59:47]
gcc -lm -lasound -lmpdclient src/battery.o src/cpu.o src/date.o src/dzenstat.o src/memory.o src/mpd.o src/network.o src/sound.o -o dzenstat
src/battery.o: In function `update':
/home/travolta/Downloads/dzenstat-master/src/battery.c:116: undefined reference to `fmod'
/home/travolta/Downloads/dzenstat-master/src/battery.c:117: undefined reference to `fmod'
/home/travolta/Downloads/dzenstat-master/src/battery.c:117: undefined reference to `fmod'
src/mpd.o: In function `mpd_init':
/home/travolta/Downloads/dzenstat-master/src/mpd.c:28: undefined reference to `mpd_connection_new'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:29: undefined reference to `mpd_connection_get_error'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:30: undefined reference to `mpd_connection_get_error_message'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:33: undefined reference to `mpd_connection_get_fd'
src/mpd.o: In function `interrupt':
/home/travolta/Downloads/dzenstat-master/src/mpd.c:50: undefined reference to `mpd_recv_idle'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:51: undefined reference to `mpd_connection_get_error'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:52: undefined reference to `mpd_connection_get_error_message'
src/mpd.o: In function `get_info':
/home/travolta/Downloads/dzenstat-master/src/mpd.c:68: undefined reference to `mpd_send_status'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:69: undefined reference to `mpd_recv_status'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:71: undefined reference to `mpd_connection_get_error_message'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:74: undefined reference to `mpd_status_get_state'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:75: undefined reference to `mpd_status_free'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:76: undefined reference to `mpd_connection_get_error'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:77: undefined reference to `mpd_connection_get_error_message'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:87: undefined reference to `mpd_send_current_song'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:89: undefined reference to `mpd_song_get_tag'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:90: undefined reference to `mpd_song_get_tag'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:91: undefined reference to `mpd_song_get_tag'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:92: undefined reference to `mpd_song_free'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:93: undefined reference to `mpd_connection_get_error'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:94: undefined reference to `mpd_connection_get_error_message'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:88: undefined reference to `mpd_recv_song'
/home/travolta/Downloads/dzenstat-master/src/mpd.c:105: undefined reference to `mpd_send_idle_mask'
src/mpd.o: In function `term':
/home/travolta/Downloads/dzenstat-master/src/mpd.c:113: undefined reference to `mpd_connection_free'
src/sound.o: In function `sound_init':
/home/travolta/Downloads/dzenstat-master/src/sound.c:32: undefined reference to `snd_mixer_open'
/home/travolta/Downloads/dzenstat-master/src/sound.c:33: undefined reference to `snd_mixer_attach'
/home/travolta/Downloads/dzenstat-master/src/sound.c:34: undefined reference to `snd_mixer_selem_register'
/home/travolta/Downloads/dzenstat-master/src/sound.c:35: undefined reference to `snd_mixer_load'
/home/travolta/Downloads/dzenstat-master/src/sound.c:42: undefined reference to `snd_mixer_selem_id_sizeof'
/home/travolta/Downloads/dzenstat-master/src/sound.c:42: undefined reference to `snd_mixer_selem_id_sizeof'
/home/travolta/Downloads/dzenstat-master/src/sound.c:43: undefined reference to `snd_mixer_selem_id_set_index'
/home/travolta/Downloads/dzenstat-master/src/sound.c:44: undefined reference to `snd_mixer_selem_id_set_name'
/home/travolta/Downloads/dzenstat-master/src/sound.c:45: undefined reference to `snd_mixer_find_selem'
/home/travolta/Downloads/dzenstat-master/src/sound.c:48: undefined reference to `snd_mixer_detach'
/home/travolta/Downloads/dzenstat-master/src/sound.c:49: undefined reference to `snd_mixer_close'
/home/travolta/Downloads/dzenstat-master/src/sound.c:54: undefined reference to `snd_mixer_poll_descriptors'
/home/travolta/Downloads/dzenstat-master/src/sound.c:62: undefined reference to `snd_mixer_selem_get_playback_volume_range'
src/sound.o: In function `interrupt':
/home/travolta/Downloads/dzenstat-master/src/sound.c:77: undefined reference to `snd_mixer_handle_events'
/home/travolta/Downloads/dzenstat-master/src/sound.c:78: undefined reference to `snd_mixer_selem_get_playback_volume'
/home/travolta/Downloads/dzenstat-master/src/sound.c:79: undefined reference to `snd_mixer_selem_get_playback_volume'
/home/travolta/Downloads/dzenstat-master/src/sound.c:80: undefined reference to `snd_mixer_selem_get_playback_switch'
collect2: error: ld returned 1 exit status
make: *** [dzenstat] Error 1