Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117726 - app-cdr/qpxtool-0.4.2 + slotted (QT3,QT4) = error
Summary: app-cdr/qpxtool-0.4.2 + slotted (QT3,QT4) = error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-04 04:58 UTC by Andrew Gaydenko
Modified: 2006-01-07 18:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
hardlinked ebuild for parallel qt3 and qt4 systems (qpxtool-0.4.2.ebuild,656 bytes, text/plain)
2006-01-04 06:25 UTC, Thomas Maguin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gaydenko 2006-01-04 04:58:32 UTC
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
...
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-04 05:03:21 UTC
+ metadata.xml missing...
Comment 2 Thomas Maguin 2006-01-04 06:25:46 UTC
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.
Comment 3 SpanKY gentoo-dev 2006-01-04 06:36:34 UTC
this is a known issue
Comment 4 Andrew Gaydenko 2006-01-04 06:41:38 UTC
Thomas,

Attached ebuild works for me. Thanks!

SpanKY,

Is there the issue to add to 'depends on' list?
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2006-01-04 06:45:11 UTC
I fixed the ebuild - it needed to explicitly call the correct qmake.
Comment 6 Thomas Maguin 2006-01-07 03:22:06 UTC
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.
Comment 7 Andrew Gaydenko 2006-01-07 09:13:21 UTC
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.
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2006-01-07 09:37:52 UTC
Mike, you missed to add metadata.xml with your maintainer fingerprint.
Comment 9 SpanKY gentoo-dev 2006-01-07 18:48:30 UTC
the qmake change wasnt correct, ive tweaked it so it works now