namazTime update

soner eker emailed me some beautiful graphics and a redone ui for namazTime, so i redid the ui based on what he sent me. you can see the screenshot here.

Tags:

8 Responses to “namazTime update”

  1. muhammad says:

    assalamualaikum

    please, can you compile it for me in .deb because i have trying to compile it but always produce errors eventhough i am pretty sure i have all the requirement

    jazakallah and ied mubarak for you :p

  2. NMC says:

    I’m having the same problems with trying to compile it. It always ends in error 1, no matter what I do. I’ve followed all your instructions in your previous post, but it still didn’t work. It’ll be wonderful if this could be in a .deb package.

    Jazakhallahar

  3. ahmedre says:

    wa3laikum alsalam -
    can you paste the error here?
    walsalam 3alaikum.

  4. NMC says:

    Salaam,

    I did what you suggested in this post and checked both gtk+-2.0 libglade-2.0 and neither returned any errors, yet the output says both files are not found. But I’ve checked through apt-get and my system has the latest version on both file, so maybe the error is from something else.

    Anyway, here is the output, it’s a long one. Any help is appreciated:

    riven0@penubuntu:~/namazTime$ make
    gcc -O2 src/*.c `pkg-config –cflags gtk+-2.0 libglade-2.0` `pkg-config –libs gtk+-2.0 libglade-2.0` -o src/namazTime -DDATAPATH=”\”/usr/local/share/namazTime\”"
    Package gtk+-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gtk+-2.0.pc’
    to the PKG_CONFIG_PATH environment variable
    No package ‘gtk+-2.0′ found
    Package libglade-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libglade-2.0.pc’
    to the PKG_CONFIG_PATH environment variable
    No package ‘libglade-2.0′ found
    Package gtk+-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gtk+-2.0.pc’
    to the PKG_CONFIG_PATH environment variable
    No package ‘gtk+-2.0′ found
    Package libglade-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libglade-2.0.pc’
    to the PKG_CONFIG_PATH environment variable
    No package ‘libglade-2.0′ found
    In file included from src/eggtrayicon.c:24:
    src/eggtrayicon.h:24:25: error: gtk/gtkplug.h: No such file or directory
    src/eggtrayicon.h:25:22: error: gdk/gdkx.h: No such file or directory
    In file included from src/eggtrayicon.c:24:
    src/eggtrayicon.h:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
    src/eggtrayicon.h:41: error: expected specifier-qualifier-list before ‘GtkPlug’
    src/eggtrayicon.h:56: error: expected specifier-qualifier-list before ‘GtkPlugClass’
    src/eggtrayicon.h:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘egg_tray_icon_get_type’
    src/eggtrayicon.h:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    src/eggtrayicon.h:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    src/eggtrayicon.h:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘egg_tray_icon_send_message’
    src/eggtrayicon.h:70: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.h:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘egg_tray_icon_get_orientation’
    src/eggtrayicon.c:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘enum’
    src/eggtrayicon.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    src/eggtrayicon.c:54: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c:57: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c:62: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c:63: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c:65: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘egg_tray_icon_get_type’
    src/eggtrayicon.c:94: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c: In function ‘egg_tray_icon_class_init’:
    src/eggtrayicon.c:105: error: ‘GObjectClass’ undeclared (first use in this function)
    src/eggtrayicon.c:105: error: (Each undeclared identifier is reported only once
    src/eggtrayicon.c:105: error: for each function it appears in.)
    src/eggtrayicon.c:105: error: ‘gobject_class’ undeclared (first use in this function)
    src/eggtrayicon.c:105: error: expected expression before ‘)’ token
    src/eggtrayicon.c:106: error: ‘GtkWidgetClass’ undeclared (first use in this function)
    src/eggtrayicon.c:106: error: ‘widget_class’ undeclared (first use in this function)
    src/eggtrayicon.c:106: error: expected expression before ‘)’ token
    src/eggtrayicon.c:108: error: ‘parent_class’ undeclared (first use in this function)
    src/eggtrayicon.c:110: error: ‘egg_tray_icon_get_property’ undeclared (first use in this function)
    src/eggtrayicon.c:112: error: ‘egg_tray_icon_realize’ undeclared (first use in this function)
    src/eggtrayicon.c:113: error: ‘egg_tray_icon_unrealize’ undeclared (first use in this function)
    src/eggtrayicon.c:120: error: ‘GTK_TYPE_ORIENTATION’ undeclared (first use in this function)
    src/eggtrayicon.c:121: error: ‘GTK_ORIENTATION_HORIZONTAL’ undeclared (first use in this function)
    src/eggtrayicon.c:122: error: ‘G_PARAM_READABLE’ undeclared (first use in this function)
    src/eggtrayicon.c: At top level:
    src/eggtrayicon.c:126: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c:145: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c:197: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘egg_tray_icon_manager_filter’
    src/eggtrayicon.c:225: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c:249: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c:279: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c:289: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c:334: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c:376: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    src/eggtrayicon.c:388: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    src/eggtrayicon.c:396: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    src/eggtrayicon.c:403: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘egg_tray_icon_send_message’
    src/eggtrayicon.c:463: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.c:475: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘egg_tray_icon_get_orientation’
    In file included from src/main.c:1:
    src/times.h:4:25: error: glade/glade.h: No such file or directory
    In file included from src/main.c:1:
    src/times.h:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    src/main.c:2:21: error: gtk/gtk.h: No such file or directory
    In file included from src/main.c:4:
    src/eggtrayicon.h:24:25: error: gtk/gtkplug.h: No such file or directory
    src/eggtrayicon.h:25:22: error: gdk/gdkx.h: No such file or directory
    In file included from src/main.c:4:
    src/eggtrayicon.h:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
    src/eggtrayicon.h:41: error: expected specifier-qualifier-list before ‘GtkPlug’
    src/eggtrayicon.h:56: error: expected specifier-qualifier-list before ‘GtkPlugClass’
    src/eggtrayicon.h:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
    __attribute__’ before ‘egg_tray_icon_get_type’
    src/eggtrayicon.h:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    src/eggtrayicon.h:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    src/eggtrayicon.h:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘egg_tray_icon_send_message’
    src/eggtrayicon.h:70: error: expected ‘)’ before ‘*’ token
    src/eggtrayicon.h:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘egg_tray_icon_get_orientation’
    src/main.c:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GladeXML’
    src/main.c:19: error: expected ‘)’ before ‘*’ token
    src/main.c: In function ‘prefs_dialog’:
    src/main.c:53: error: ‘GtkWidget’ undeclared (first use in this function)
    src/main.c:53: error: (Each undeclared identifier is reported only once
    src/main.c:53: error: for each function it appears in.)
    src/main.c:53: error: ‘widget’ undeclared (first use in this function)
    src/main.c:53: error: ‘entry’ undeclared (first use in this function)
    src/main.c:53: error: ‘button’ undeclared (first use in this function)
    src/main.c:54: error: ‘xml’ undeclared (first use in this function)
    src/main.c:56: error: ‘on_prefsDialog_response’ undeclared (first use in this function)
    src/main.c:56: error: ‘NULL’ undeclared (first use in this function)
    src/main.c:59: error: ‘GtkEntry’ undeclared (first use in this function)
    src/main.c:59: error: expected expression before ‘)’ token
    src/main.c:62: error: expected expression before ‘)’ token
    src/main.c:66: error: expected expression before ‘)’ token
    src/main.c:70: error: expected expression before ‘)’ token
    src/main.c:74: error: expected expression before ‘)’ token
    src/main.c:78: error: ‘GtkToggleButton’ undeclared (first use in this function)
    src/main.c:78: error: expected expression before ‘)’ token
    src/main.c:82: error: expected expression before ‘)’ token
    src/main.c:85: error: ‘GtkComboBox’ undeclared (first use in this function)
    src/main.c:85: error: expected expression before ‘)’ token
    src/main.c: At top level:
    src/main.c:89: error: expected ‘)’ before ‘*’ token
    src/main.c: In function ‘about_dialog’:
    src/main.c:94: error: ‘GtkWidget’ undeclared (first use in this function)
    src/main.c:94: error: ‘dialog’ undeclared (first use in this function)
    src/main.c:95: error: ‘xml’ undeclared (first use in this function)
    src/main.c:97: error: ‘on_about_response’ undeclared (first use in this function)
    src/main.c:97: error: ‘NULL’ undeclared (first use in this function)
    src/main.c: At top level:
    src/main.c:101: error: expected ‘)’ before ‘*’ token
    src/main.c:111: error: expected ‘)’ before ‘*’ token
    src/main.c:131: error: expected ‘)’ before ‘*’ token
    src/main.c:142: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘handle_destroy’
    src/main.c:147: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘main’
    In file included from src/times.c:1:
    src/times.h:4:25: error: glade/glade.h: No such file or directory
    In file included from src/times.c:1:
    src/times.h:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    src/times.c:3:21: error: gtk/gtk.h: No such file or directory
    src/times.c:171: error: expected ‘)’ before ‘*’ token
    src/times.c:175: error: expected ‘)’ before ‘data’
    src/times.c: In function ‘initTimes’:
    src/times.c:203: error: ‘checkSalatTime’ undeclared (first use in this function)
    src/times.c:203: error: (Each undeclared identifier is reported only once
    src/times.c:203: error: for each function it appears in.)
    src/times.c: In function ‘reCalculateTimes’:
    src/times.c:208: error: ‘GdkPixbuf’ undeclared (first use in this function)
    src/times.c:208: error: ‘pixbuf’ undeclared (first use in this function)
    src/times.c:209: error: ‘GtkWidget’ undeclared (first use in this function)
    src/times.c:209: error: ‘label’ undeclared (first use in this function)
    src/times.c:209: error: ‘image’ undeclared (first use in this function)
    src/times.c:214: error: ‘xml’ undeclared (first use in this function)
    src/times.c:215: error: ‘GtkLabel’ undeclared (first use in this function)
    src/times.c:215: error: expected expression before ‘)’ token
    src/times.c:216: error: expected expression before ‘)’ token
    src/times.c: In function ‘updateTimeLeftLabel’:
    src/times.c:227: error: ‘GtkWidget’ undeclared (first use in this function)
    src/times.c:227: error: ‘label’ undeclared (first use in this function)
    src/times.c:231: error: ‘xml’ undeclared (first use in this function)
    src/times.c:232: error: ‘GtkLabel’ undeclared (first use in this function)
    src/times.c:232: error: expected expression before ‘)’ token
    src/times.c:233: error: expected expression before ‘)’ token
    make: *** [all] Error 1

  5. ahmedre says:

    salam 3alaikum -
    the problem is you are missing the includes/headers for the libraries. per my memory, there’re usually two sets of packages you’ll find in ubuntu/debian — the library itself (libgtk2 or gtk2 or something), and the devel version (libgtk2-devel or something)… do you have the devel libraries installed because it seems that those are missing?

    walsalam 3alaikum.

  6. NMC says:

    Salaam,

    Thanks for the help. I installed both libgtk2-dev and libglade2-dev and it worked…. or at least I think it worked.
    The problem is, when I try to make it I get this output:

    gcc -O2 src/*.c `pkg-config –cflags gtk+-2.0 libglade-2.0` `pkg-config –libs gtk+-2.0 libglade-2.0` -o src/namazTime -DDATAPATH=”\”/usr/local/share/namazTime\”"

    I doesn’t seem to show an error, but when I check to see if the program is installed, nothing is there. In fact, it didn’t even make a folder in /usr/local. I eventually made one myself named namazTime and tried to make the program again, but still, nothing installs.

    Could I still be doing something wrong?

    Jazakhallahar

  7. ahmedre says:

    wa3laikum alsalam -
    no that’s not an error — that’s fine, that’s the process of compiling. you have to make sure you do “make install” to install it (as root or in sudo).
    walsalam 3alaikum.

  8. NMC says:

    Salaamallakum,

    Thanks for the help. I got it working.

    Jazakhallahar :D