Along with QT3 I have installed (slotted) QT4. It seems like the ebuild doesn't take into account the 'qpxtool' isn't compatible with QT4. Emerging begins with: ... >>> Source unpacked. >>> Compiling source in /wrk/tmp/portage/portage/qpxtool-0.4.2/work/qpxtool-0.4.2 ... uic: File generated with too old version of Qt Designer g++ -c -pipe -O2 -march=pentium4 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED -I/usr/share/doc/qt-4.0.1/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I. -I. -o common_functions.o common_functions.cpp g++ -c -pipe -O2 -march=pentium4 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED -I/usr/share/doc/qt-4.0.1/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I. -I. -o main.o main.cpp main.cpp:20:21: qcanvas.h: No such file or directory In file included from ./QPxTool.h:22, from ./QPTMainWin.h:18, from main.cpp:21: ./test_threads.h:85: error: `QMutex' does not name a type ./test_threads.h: In member function `void ScanThread::post_signal(int, void*)': ./test_threads.h:59: error: `QCustomEvent' undeclared (first use this function) ./test_threads.h:59: error: (Each undeclared identifier is reported only once for each function it appears in.) ./test_threads.h:59: error: `QCustomEvent' has not been declared ...
+ metadata.xml missing...
Created attachment 76157 [details] hardlinked ebuild for parallel qt3 and qt4 systems The hardlinked ebuild is a workaround for systems with both qt3 and qt4 installed packages. On my test mashine, qt3 was used with this ebuild for emerge process. qt4 does not seem to be able to compile qpxtool.
this is a known issue
Thomas, Attached ebuild works for me. Thanks! SpanKY, Is there the issue to add to 'depends on' list?
I fixed the ebuild - it needed to explicitly call the correct qmake.
actual portage ebuild is reported not to work here: http://forums.gentoo.org/viewtopic-t-388522-start-25.html While my hardlinked ebuild attachment is reported to work. Please check the portage ebuild.
Current oficial portage ebuild doesn't work for me: # emerge qpxtool Calculating dependencies ...done! >>> emerge (1 of 1) app-cdr/qpxtool-0.4.2 to / >>> checksums files ;-) qpxtool-0.4.2.ebuild >>> checksums files ;-) files/digest-qpxtool-0.4.2 >>> checksums src_uri ;-) qpxtool-0.4.2.tar.bz2 >>> Unpacking source... >>> Unpacking qpxtool-0.4.2.tar.bz2 to /wrk/tmp/portage/portage/qpxtool-0.4.2/work >>> Source unpacked. >>> Compiling source in /wrk/tmp/portage/portage/qpxtool-0.4.2/work/qpxtool-0.4.2 ... ***Unknown option -project Usage: /usr/qt/3/bin/qmake [mode] [options] [files] QMake has two modes, one mode for generating project files based on some heuristics, and the other for generating makefiles. Normally you shouldn't need to specify a mode, as makefile generation is the default mode for qmake, but you may use this to test qmake on an existing project Mode: -project Put qmake into project file generation mode In this mode qmake interprets files as files to be built, defaults to *.c; *.ui; *.y; *.l; *.ts; *.h; *.hpp; *.hh; *.H; *.hxx; *.cpp; *.cc; *.cxx; *.C -makefile Put qmake into makefile generation mode (default) In this mode qmake interprets files as project files to be processed, if skipped qmake will try to find a project file in your current working directory Warnings Options: -Wnone Turn off all warnings -Wall Turn on all warnings -Wparser Turn on parser warnings -Wlogic Turn on logic warnings Options: * You can place any variable assignment in options and it will be * * processed as if it was in [files]. These assignments will be parsed * * before [files]. * -o file Write output to file -unix Run in unix mode -win32 Run in win32 mode -macx Run in Mac OS X mode -d Increase debug level -t templ Overrides TEMPLATE as templ -tp prefix Overrides TEMPLATE so that prefix is prefixed into the value -help This help -v Version information -after All variable assignments after this will be parsed after [files] -cache file Use file as cache [makefile mode only] -spec spec Use spec as QMAKESPEC [makefile mode only] -nocache Don't use a cache file [makefile mode only] -nodepend Don't generate dependencies [makefile mode only] -nomoc Don't generate moc targets [makefile mode only] -nopwd Don't look for files in pwd [ project mode only] -norecursive Don't do a recursive search [ project mode only] !!! ERROR: app-cdr/qpxtool-0.4.2 failed. !!! Function src_compile, Line 19, Exitcode 154 !!! qmake -project failed !!! If you need support, post the topmost build error, NOT this status message.
Mike, you missed to add metadata.xml with your maintainer fingerprint.
the qmake change wasnt correct, ive tweaked it so it works now