Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help: QT ebuild problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Catach
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 268
Location: Australia

PostPosted: Mon Dec 01, 2003 8:03 am    Post subject: Help: QT ebuild problem Reply with quote

I've been throwing myself at qt (KDE dependancy) for a week now, and
have traced down the Illegal Instruction error i get to a binary the library
uses called uic. As far as i can tell uic is compiled along with the rest of
the qt package (for use in the qt package) and is used in this case to
compile a list of image files (.png) into a source file (I assume for later
use).

qt-3.2.2-r1
the latest gcc (3.2.something)
CFLAGS = -O2 -pipe

Here's what i did-
i stopped 'emerge qt' after the unpacking phase (what utility
unpacks bz2 files? i forgot...) and had a look at some makefiles,
running ./configure without any arguments (the qt ebuild has heaps) and
then making the library by typing 'gmake' manually. It worked fine as i
recall, but there was no emerge install phase so nothing was in the right
place :) .

I then commented out the 'emake ...' line in the qt ebuild and adding an
exit call, so that a call to 'emerge qt' would unpack and call configure, but
do nothing else. I was planning to compile everything manually
in /var/tmp by calling the same make dependencies as the ebuild does:
# make ... sub-src sub-tools

the sub-tools part includes the following call:

/var/tmp/portage.../bin/uic -L /var/tmp...qt/plugins -embed designercore
/var/tmp...qt/tools/designer/designer/images/* -o qmake_image_collection.cpp

The uic utility (User Interface Compiler) accepts extra plugins with
L .../plugins. The embed option tells uic to make an image collection in the
designercore project. The output is the qmake_image_collection.cpp file.

uic is what generates the illegal instruction. all attempts to recompile uic
have failed as it is heavily embeded in the make-tree (make uic just wont
cut it :) ).

the uic.cpp source itself is too many thousand lines long (and it's not the
only source), and i dont have the time to debug it. The best solution i
could come up with is ask someone who has an AthlonXP 1800+ or close
equivelant (AthlonXP should do) to send me a basic copy of the uic binary
(basic meaning not too many compile flag optimizations) and i'll
see if i can slot it in somehow.

If anyone has any suggestions or has a copy of uic for me (or a better
way to get qt installed) then please tell! :)

-Luke
_________________
Zak: Luke's making a 3D interface for Linux"
Jon G: "Yeah, Luke's making a 3D user interface with Logowriter"
Jon H: "He's only got 99 shapes to work with"
Jon G: "And they're all turtles."
Back to top
View user's profile Send private message
appetitus
Apprentice
Apprentice


Joined: 28 Sep 2003
Posts: 210

PostPosted: Mon Dec 01, 2003 8:23 am    Post subject: Reply with quote

I too have a qt build problem. The first problem I have is wtf does qt have to do with 'emerge wine'?? I have '-kde' in make.conf, since Win95 was a dumb GUI, the only thing dumber is copying it when there were far better options easily available. Maube the ebuild is a bit blind.

I get:

g++ -c -pipe -I/usr/include/mysql -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_CUPS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/var/tmp/portage/qt-3.2.2-r1/work/qt-x11-free-3.2.2/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qpsprinter.o kernel/qpsprinter.cpp
g++ -c -pipe -I/usr/include/mysql -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_CUPS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/var/tmp/portage/qt-3.2.2-r1/work/qt-x11-free-3.2.2/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qeventloop_unix.o kernel/qeventloop_unix.cpp
/var/tmp/portage/qt-3.2.2-r1/work/qt-x11-free-3.2.2/bin/moc kernel/qprocess_unix.cpp -o .moc/release-shared-mt/qprocess_unix.moc
g++ -c -pipe -I/usr/include/mysql -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_CUPS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/var/tmp/portage/qt-3.2.2-r1/work/qt-x11-free-3.2.2/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qthread_unix.o kernel/qthread_unix.cpp
g++ -c -pipe -I/usr/include/mysql -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_CUPS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/var/tmp/portage/qt-3.2.2-r1/work/qt-x11-free-3.2.2/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qabstractlayout.o kernel/qabstractlayout.cpp
g++: {standard input}: Assembler messages:
{standard input}:16511: Warning: end of file not at end of a line; newline inserted
Internal error: Terminated (program cc1plus)
Please submit a full bug report.
See <URL:https://bugs.gentoo.org/> for instructions.
{standard input}:16861: Error: suffix or operands invalid for `cmp'
make[1]: *** [.obj/release-shared-mt/qpsprinter.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/qt-3.2.2-r1/work/qt-x11-free-3.2.2/src'
make: *** [sub-src] Error 2

!!! ERROR: x11-libs/qt-3.2.2-r1 failed.
!!! Function src_compile, Line 133, Exitcode 2
!!! (no error message)

-----

All I really want is wine, I can manually install qt for the one program I use that needs it.
_________________
Being a Gentoo user means living in a house inhabited by a family of crazed carpenters. When you wake up, the house is different. Maybe there is a new turret, or some walls have moved, or perhaps someone has removed the floor under your bed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum