קוד: |
netanel@debian-netanel:~/a/tmp/Luach-0.01/Luach$ make /usr/share/qt3/bin/uic about.ui -o about.h /usr/share/qt3/bin/uic changelocation.ui -o changelocation.h /usr/share/qt3/bin/uic mainwindow.ui -o mainwindow.h g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/include/qt3 -o daybutton.o daybutton.cpp In file included from daybutton.cpp:17: daybutton.h:34:19: error: QWidget: No such file or directory daybutton.h:35:23: error: QMouseEvent: No such file or directory daybutton.h:36:18: error: QFrame: No such file or directory daybutton.h:37:19: error: QLayout: No such file or directory daybutton.h:38:18: error: QLabel: No such file or directory In file included from daybutton.h:42, from daybutton.cpp:17: functions.h:20:19: error: QString: No such file or directory functions.h:21:23: error: QStringList: No such file or directory functions.h:22:17: error: QFile: No such file or directory functions.h:23:23: error: QTextStream: No such file or directory functions.h:24:22: error: QTextCodec: No such file or directory In file included from daybutton.h:42, from daybutton.cpp:17: functions.h:33: error: ‘QString’ does not name a type functions.h:38: error: ‘QString’ does not name a type functions.h:41: error: variable or field ‘print’ declared void functions.h:41: error: ‘QString’ was not declared in this scope functions.h:47: error: variable or field ‘writetofile’ declared void functions.h:47: error: ‘QString’ was not declared in this scope functions.h:47: error: ‘QString’ was not declared in this scope functions.h:47: error: expected primary-expression before ‘bool’ functions.h:51: error: ‘QString’ does not name a type In file included from daybutton.cpp:17: daybutton.h:45: error: expected class-name before ‘{’ token daybutton.h:46: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type daybutton.h:48: error: expected ‘;’ before ‘public’ daybutton.h:62: error: ISO C++ forbids declaration of ‘QVBoxLayout’ with no type daybutton.h:62: error: expected ‘;’ before ‘*’ token daybutton.h:63: error: ISO C++ forbids declaration of ‘QHBoxLayout’ with no type daybutton.h:63: error: expected ‘;’ before ‘*’ token daybutton.h:64: error: ISO C++ forbids declaration of ‘QLabel’ with no type daybutton.h:64: error: expected ‘;’ before ‘*’ token daybutton.h:66: error: expected `:' before ‘slots’ daybutton.h:67: error: expected primary-expression before ‘void’ daybutton.h:67: error: ISO C++ forbids declaration of ‘slots’ with no type daybutton.h:67: error: expected ‘;’ before ‘void’ daybutton.h:73: error: expected `:' before ‘slots’ daybutton.h:74: error: expected primary-expression before ‘void’ daybutton.h:74: error: ISO C++ forbids declaration of ‘slots’ with no type daybutton.h:74: error: expected ‘;’ before ‘void’ daybutton.h:77: error: expected primary-expression before ‘void’ daybutton.h:77: error: ISO C++ forbids declaration of ‘signals’ with no type daybutton.h:77: error: expected ‘;’ before ‘void’ daybutton.cpp:19: error: expected `)' before ‘*’ token make: *** [daybutton.o] 1 הלקת |
קוד: |
make clean qmake-qt4 make |
משה : |
תודה על התגובות.
אסף: לא, זה ממש לא בכוונה. בחודש כמו עכשיו (שיש בו 5 שורות ולא 4) - החלון פשוט גדול מדי, ואי אפשר להקטין אותו. ניסיתי קצת לתקן את זה - מקווה שזה יותר טוב ככה. משה |
קוד: |
QString holiday = date.get_holyday_string(0); //No politics or anything, these are just not holidays... if (holiday == "יום הזכרון ליצחק רבין" || holiday == "יום המשפחה" || holiday == "יום זאב זבוטינסקי" ) holiday = ""; event = new QLabel(holiday); vbox->addWidget(event); event->setAlignment(Qt::AlignCenter); |
משה : |
אסף השני: אני לא מוצא בעייה כזאת. תוכל לשלוח לי תמונת מסך, או לתאר מה בדיוק קורה? כמו"כ אשמח אם תוכל לקמפל ולראות אם זה אכן קשור. משה |
קוד: |
pkgname=luach pkgver=0.01 pkgrel=1 pkgdesc="Hebrew calander using Qt4 library" arch=('i686' 'x86_64') url="http://code.google.com/p/luach/" license=('GPL2') depends=('qt>=4.0' 'libhdate') source=(http://luach.googlecode.com/files/Luach-0.01.tar.gz) md5sums=(fb9ec8c78c6571a5069eee899c06a22b) #generate with MD5sum build() { cd "$srcdir/Luach" qmake make make DESTDIR="$pkgdir/" install } |
נתנאל : |
כנראה שהבנתי איפה הבעיה, צריך את הספריות של qr4.5 שלא נמצאות עדיין בדביאן (באובונטו כן), בגלל זה הקימפול לא הצליח וגם ההפעלה עכשיו לא מצליחה, אבל זו בעיית דביאן. |
משה : |
אני באמת לא רוצה להכנס לזה, אבל בקצרה - אלא לא חגים. בדיוק כמו "יום איכות הסביבה", "יום הג'אנק פוד הטעים", ו"יום הזכרון לחיות הנכחדות" - גם הימים האלה הם לא ימים ממלכתיים, ובוודאי שלא הלכתיים. |
משה : |
תודה על ההערות:
אסף: רגע, עכשיו שהצלחת לבנות, הבאג תוקן? ושוב, מה אחרים אומרים על הבאג הזה? לגבי מיקום הקבצים, שיניתי לבקשתך ל- /usr/bin. לגביי אין הבדל. דווקא חשבתי ש local יותר מתאים. משה |
קוד: |
[assaf@laptop bin]$ luach
bash: luach: command not found |
קוד: |
[root@laptop Luach]# make install install -m 755 -p /home/assaf/Desktop/Luach/Luach /usr/local/bin/ strip /usr/local/bin/Luach install -m 644 -p /home/assaf/Desktop/Luach/ZmanimCLI.jar /usr/local/bin/ install -m 644 -p /home/assaf/Desktop/Luach/Icons/calendar.png /usr/share/Luach/ install -m 755 -p /home/assaf/Desktop/Luach/Luach.desktop /usr/share/applications/ strip /usr/share/applications/Luach.desktop strip:/usr/share/applications/Luach.desktop: File format not recognized make: [install_menu] 1 הלקתמ יתמלעתה [root@laptop Luach]# luach bash: luach: command not found |
צפריר : |
meijin: לתוכנית קוראים Luach . עם L גדולה.
/usr/local/bin/Luach אין שום סיבה שקובץ ה־desktop יהיה executable וגם אין שום סיבה לנסות להריץ עליו strip . קובץ ה_desktop אמור להוסיף את התוכנית לתפריט שלך. אתה רואה אותה שם? |
צפריר : |
meijin: לתוכנית קוראים Luach . עם L גדולה.
/usr/local/bin/Luach אין שום סיבה שקובץ ה־desktop יהיה executable וגם אין שום סיבה לנסות להריץ עליו strip . קובץ ה_desktop אמור להוסיף את התוכנית לתפריט שלך. אתה רואה אותה שם? |
קוד: |
[assaf@laptop ~]$ /usr/local/bin/Luach 13:36:06 [assaf@laptop ~]$ Luach bash: Luach: command not found |
meijin : | ||||
זה מה שאני מקבל:
כלומר, רק כשנותנים את הנתיב המלא הוא עובד, אחרת הקונסול לא מזהה איפה הוא נמצא. כמו כן, אכן נוסף לי (בנום, תחת משרד, אולי שווה להעביר לעזרים?). אסף. |
משה : | ||||||
א) סיכמנו שאצלך הנתיב /usr/local בעייתי, לא? כנראה שזו הסיבה. ב) חשבתי שעכשיו זה תוקן ל usr/bin, וגם ל l קטנה. לא? ג) מכל התוכנות שכתבתי זה הכי מתאים למשרד. אני בעד להשאיר שם. משה |
meijin : | ||||||||
בגירסה 0.02 זה מה שהוא נותן. אין שינוי... תוכנה שלך, החלטה שלך אסף. |
משה : |
נתנאל:
סבבה, העליתי. תהנו: http://luach.googlecode.com/files/luach_0.02-i386.deb . ( לא שזה מצדיק העלאת גרסא, אבל שוין. ) משה |
משה : |
נתנאל:
סבבה, העליתי. תהנו: http://luach.googlecode.com/files/luach_0.02-i386.deb . ( לא שזה מצדיק העלאת גרסא, אבל שוין. ) משה |
צפריר : |
אם אתה יוצר הפצה אתה צריך לדעת שאתה צריך לבנות בעצמך חבילות בינאריות כדי שיתאימו לספריות שיש אצלך.
וגם כדי לדעת שאתה יכול לספק למשתמשים שלך את קוד המקור המתאים. |
צפריר : |
דרך אגב, למי שלא יודע, אתר אירוח הקוד של גוגל נסגר (למעט למיזמים פנימיים של גוגל).
אפשר לחפש מיזמים ישנים בארכיון: https://code.google.com/archive/ חיפשתי שם ומצאתי הפניה לאתר החדש: https://github.com/MosheWagner/luach מה שכן, על המערכת שלי כבר אין qt4. |