checking for moc... /usr/qt/3/bin/moc checking for Qt >= 2.2.0... ./configure: line 1: QTDIR: command not found ./configure: line 1710: -L/usr/qt/3: No such file or directory ./configure: line 1: QTDIR: command not found updating cache ./config.cache creating ./config.status creating src/Makefile creating src/backend/Makefile creating src/qt/Makefile creating src/gtk/Makefile creating Makefile creating config.h NVClock build summary: ---------------------- - Commandline version enabled - GTK2 GUI enabled - QT GUI enabled make -C src all make[1]: Entering directory `/var/tmp/portage/nvclock-0.7/work/nvclock0.7/src' make[2]: Entering directory `/var/tmp/portage/nvclock-0.7/work/nvclock0.7/src/backend' gcc -c -o nv30.o nv30.c gcc -c -o info.o info.c gcc -c -o overclock.o overclock.c gcc -c -o backend.o backend.c ar cru libbackend.a nv30.o info.o overclock.o backend.o ranlib libbackend.a make[2]: Leaving directory `/var/tmp/portage/nvclock-0.7/work/nvclock0.7/src/backend' make[2]: Entering directory `/var/tmp/portage/nvclock-0.7/work/nvclock0.7/src/gtk' gcc -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../backend -c -o callbacks.o callbacks.c gcc -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../backend -c -o interface.o interface.c gcc -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../backend -c -o main.o main.c gcc -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../backend -c -o support.o support.c gcc -o nvclock_gtk callbacks.o interface.o main.o support.o ../backend/libbackend.a -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 make[2]: Leaving directory `/var/tmp/portage/nvclock-0.7/work/nvclock0.7/src/gtk' make[2]: Entering directory `/var/tmp/portage/nvclock-0.7/work/nvclock0.7/src/qt' /usr/qt/3/bin/moc qt_nvclock.h -o qt_nvclock.moc g++ -I/include -I../backend -c -o main.o main.cpp In file included from main.cpp:15: qt_nvclock.h:11:24: qtabdialog.h: No such file or directory qt_nvclock.h:12:26: qtextbrowser.h: No such file or directory In file included from main.cpp:15: qt_nvclock.h:25: error: parse error before `{' token qt_nvclock.h:35: error: parse error before `private' qt_nvclock.h:48: error: parse error before `&' token qt_nvclock.h:56: error: parse error before `}' token qt_nvclock.h:62: error: parse error before `{' token main.cpp:17:25: qmessagebox.h: No such file or directory main.cpp:18:26: qapplication.h: No such file or directory main.cpp: In function `void error(error_type, const char*, ...)': main.cpp:35: error: `stderr' undeclared (first use this function) main.cpp:35: error: (Each undeclared identifier is reported only once for each function it appears in.) main.cpp:35: error: `fprintf' undeclared (first use this function) main.cpp:36: error: `vfprintf' undeclared (first use this function) main.cpp: In function `int main(int, char**)': main.cpp:56: error: `QApplication' undeclared (first use this function) main.cpp:56: error: parse error before `(' token main.cpp:64: error: `QMessageBox' undeclared (first use this function) main.cpp:64: error: parse error before `::' token main.cpp:69: error: parse error before `::' token main.cpp:75: error: variable `CNVclock nv' has initializer but incomplete type main.cpp:77: error: `app' undeclared (first use this function) make[2]: *** [main.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/nvclock-0.7/work/nvclock0.7/src/qt' make[1]: *** [all-recursive] Error 2 make[1]: Leaving directory `/var/tmp/portage/nvclock-0.7/work/nvclock0.7/src' make: *** [all] Error 2 !!! ERROR: media-video/nvclock-0.7 failed. !!! Function src_compile, Line 34, Exitcode 2 !!! (no error message)
*** Bug 32338 has been marked as a duplicate of this bug. ***
same here...
Jep, same for me.
ok i think i found the answer but dont know exactly how to implement it for everyone other than manually... though the problem lies on the 1710 line there is an extra -L$QTDIR and there is another problem with where the QTDIR is being pulled from though i am not much one to find out how to set that globaly but here goes with a full walk through of what i did: ebuild /usr/portage/media-video/nvclock/nvclock-0.7.ebuild unpack vi /var/tmp/portage/nvclock-0.7/work/nvclock0.7/configure search for QTDIR replace w/ /usr/qt/3/ or /usr/qt/2/ if your using qt2 *untested ebuild /usr/portage/media-video/nvclock/nvclock-0.7.ebuild install ebuild /usr/portage/media-video/nvclock/nvclock-0.7.ebuild qmerge done. this might not have been the cleanest way to do it but it worked
ok correction to what i just stated i found the other problem with the configure file instead of (QTDIR) it needs to be changed to {QTDIR} please note that the second set is a curly brace (the one normally above the [ and ] ). that should set you going either that or download attached configure file
Created attachment 20095 [details] fixed configure file
*** Bug 32637 has been marked as a duplicate of this bug. ***
Chris, can you show me the output of emerge info? I've created a diff fixing the parts of the configure script you mentioned, but it still seems to fail for people. emerge nvclock again and tell me if it compiles fine the first time through.
before diff QT_LIBS=-L$(QTDIR)/lib -L$QTDIR QT_CFLAGS=-I$(QTDIR)/include after diff QT_LIBS="${QTDIR}/lib" QT_CFLAGS="${QTDIR}/include" my changes QT_LIBS=-L${QTDIR}/lib QT_CFLAGS=-I${QTDIR}/include as you can see your diff changes were to take out the -L & -I and add "'s which did not work. i am submitting a new diff that should work. i would have before but didnt know how till i could look at yours. strip: usr/bin/nvclock_gtk usr/bin/nvclock_qt usr/bin/nvclock >>> Completed installing into /var/tmp/portage/nvclock-0.7/image/
Created attachment 20290 [details] the diff needed
Changing configure.in.diff to: --- configure.in.orig 2003-07-20 10:23:23.000000000 -0400 +++ configure.in 2003-10-31 00:00:43.000000000 -0500 @@ -89,8 +89,8 @@ HAVE_QT=yes elif test -r $QTDIR/include/qt.h; then - QT_LIBS=-L$(QTDIR)/lib -L$QTDIR - QT_CFLAGS=-I$(QTDIR)/include + QT_LIBS="-L${QTDIR}/lib" + QT_CFLAGS="-I${QTDIR}/include" HAVE_QT=yes else ------------------------------------------------------------------------------ Worked for me
ok to correct what i stated before, the "'s are not where the problem is it is just a matter of syntax in this case. the important part is the -L and -I which are needed to build the 0.7 or the 0.7-r1.
Alright, I fixed the diff accordingly, thankyou all for your help.