Qt-interest Archive, May 2007
trouble compiling qt snapshot
Message 1 in thread
hello,
I have 2 machines that I use to develop using Qt.. on my laptop, I was
able to get different versions of Qt installed fine... For example,
I've got 4.1 and a 4.3 snapshot..
Another machine has the same 4.1 version (not snapshot).. I tried
installing the same 4.3 snapshot but it failed.. So I tried a more
recent snapshot (4.4.0).. But I get the same problem when it
compiles.. It configures just fine.
Also, note that the machine I'm having problems with is a 64bit
architecture.. And I can see in the errors that it refers to files to
do with 64 bit.. But I dnt really understand it much.
Is this because snapshots are not yet tested for 64 bit machines?.. In
case it helps, "uname -a" produces the following on the troubled
machine:
2.6.9-42.0.3.ELsmp #1 SMP Mon Sep 25 17:24:31 EDT 2006 x86_64 x86_64 x86_64
GNU/Linux
The reason I want a version 4.3 or above is because I already have
code that uses things introduced in version 4.3.. I could try to
rewrite my code, but for the future it would be good to get this
sorted.
Thank you very much for your time.
Regards,
Nasser
When I compile the snapshot it gives the following error..
/home/ngia003/installations/qt-all-opensource-src-4.4.0-snapshot-20070527/bin/moc
-DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS
-DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_RASTER_IMAGEENGINE -DQT_HAVE_MMX
-DQT_HAVE_SSE -DQT_HAVE_SSE2 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA
-DQT_NO_STYLE_WINDOWSXP -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I.
-I../../include/QtCore -I../../include/QtCore -I../../include
-I../../include/QtGui -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src
-Idialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared
styles/qstylesheetstyle_p.h -o .moc/release-shared/moc_qstylesheetstyle_p.cpp
g++ -c -include .pch/release-shared/QtGui -m64 -pipe -g -pthread
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -Wall -W -D_REENTRANT
-fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_CAST_TO_ASCII
-DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_RASTER_IMAGEENGINE
-DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_SSE2 -DQT_NO_STYLE_MAC
-DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQ_INTERNAL_QAPP_SRC
-DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
-I../../mkspecs/linux-g++-64 -I. -I../../include/QtCore -I../../include/QtCore
-I../../include -I../../include/QtGui -I/usr/include/freetype2
-I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/X11R6/include
-I.uic/release-shared -o .obj/release-shared/qstylesheetstyle.o
styles/qstylesheetstyle.cpp
../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h: In member function
`virtual QRect QStyleSheetStyle::subElementRect(QStyle::SubElement, const
QStyleOption*, const QWidget*) const':
../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:105: error:
inconsistent operand constraints in an `asm'
../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:105: error:
inconsistent operand constraints in an `asm'
gmake[1]: *** [.obj/release-shared/qstylesheetstyle.o] Error 1
--
[ signature omitted ]
Message 2 in thread
Hi,
> ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h: In member
> function
> `virtual QRect QStyleSheetStyle::subElementRect(QStyle::SubElement, const
> QStyleOption*, const QWidget*) const':
> ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:105: error:
> inconsistent operand constraints in an `asm'
> ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:105: error:
> inconsistent operand constraints in an `asm'
This is caused by broken versions of GCC as far as I know. Are you able to
upgrade GCC on this machine?
--
[ signature omitted ]
Message 3 in thread
Hai,
I am working in Qt 3.3.4
I have a QListView "listView" with some data(QListViewItems). I want to copy
the same tree structure to another QListView tempListView.
How do I copy the structure? Can I use a listView = tempListView option. I
want a deep copy not a shallow copy.
Regards
DP
DISCLAIMER
âThe information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you"
--
[ signature omitted ]
Message 4 in thread
hi,
i have had no luck trying to upgrade the gcc on this machine...
however, i have another idea but have had no success so far..
here is the situation:
i have some code that makes use of QT 4.3's QMultiHash (mainly the new
remove() function).. Qt 4.1 which i have installed does not support
this idea..
i was thinking, could i copy some source code from 4.3 to 4.1 and then
compile 4.1 again with the code for QMultiHash? ..
i thought that copying src/corelib/tools/qhash.h and
/src/corelib/tools/qhash.cpp would be enough, but it gives errors
since other things have been introduced... maybe i have to manually
modify qhash.h and qhash.cpp just to include the QMultiHash stuff??
it's an ugly approach - but it seems this is my only way out.. unless
someone could recommend an alternative for using QMultiHash::remove(
K, T )?.. i can't think of a clean substitute..
any help is greatly appreciated!
cheers,
nas
On 5/28/07, Dimitri <dimitri@xxxxxxxxxxxxx> wrote:
> Hi,
>
> > ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h: In member
> > function
> > `virtual QRect QStyleSheetStyle::subElementRect(QStyle::SubElement, const
> > QStyleOption*, const QWidget*) const':
> > ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:105: error:
> > inconsistent operand constraints in an `asm'
> > ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:105: error:
> > inconsistent operand constraints in an `asm'
>
> This is caused by broken versions of GCC as far as I know. Are you able to
> upgrade GCC on this machine?
>
> --
> Dimitri
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
Message 5 in thread
Hai,
I am working on Qt3.3.4.
I have a custom control derived from ListView. I want to increase the size
of the QListViewItem in QListView.
How to do it?
Basically, the reuirement is for Touch Based Screen.
Thanks in Adance
Regards
DP
DISCLAIMER
âThe information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you"
--
[ signature omitted ]
Message 6 in thread
hi, i've managed to solve the part about using QHash::remove instead
of QMultiHash::remove... i basically remove all the elements with the
key, but then return them except the one i wanted removed...
but if the situation about using the code of 4.3 into 4.2 is possible,
i'm still keen to know how this can be done :-)
cheers,
nas
On 5/30/07, Nasser <parallel.au@xxxxxxxxx> wrote:
> hi,
>
> i have had no luck trying to upgrade the gcc on this machine...
> however, i have another idea but have had no success so far..
>
> here is the situation:
>
> i have some code that makes use of QT 4.3's QMultiHash (mainly the new
> remove() function).. Qt 4.1 which i have installed does not support
> this idea..
>
> i was thinking, could i copy some source code from 4.3 to 4.1 and then
> compile 4.1 again with the code for QMultiHash? ..
>
> i thought that copying src/corelib/tools/qhash.h and
> /src/corelib/tools/qhash.cpp would be enough, but it gives errors
> since other things have been introduced... maybe i have to manually
> modify qhash.h and qhash.cpp just to include the QMultiHash stuff??
>
> it's an ugly approach - but it seems this is my only way out.. unless
> someone could recommend an alternative for using QMultiHash::remove(
> K, T )?.. i can't think of a clean substitute..
>
> any help is greatly appreciated!
>
> cheers,
> nas
>
>
> On 5/28/07, Dimitri <dimitri@xxxxxxxxxxxxx> wrote:
> > Hi,
> >
> > > ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h: In member
> > > function
> > > `virtual QRect QStyleSheetStyle::subElementRect(QStyle::SubElement, const
> > > QStyleOption*, const QWidget*) const':
> > > ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:105: error:
> > > inconsistent operand constraints in an `asm'
> > > ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:105: error:
> > > inconsistent operand constraints in an `asm'
> >
> > This is caused by broken versions of GCC as far as I know. Are you able to
> > upgrade GCC on this machine?
> >
> > --
> > Dimitri
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> > List archive and information: http://lists.trolltech.com/qt-interest/
> >
> >
>
--
[ signature omitted ]
Message 7 in thread
I wrote:
>> ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h: In
>> member function
>> `virtual QRect QStyleSheetStyle::subElementRect(QStyle::SubElement, const
>> QStyleOption*, const QWidget*) const':
>> ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:105: error:
>> inconsistent operand constraints in an `asm'
>> ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:105: error:
>> inconsistent operand constraints in an `asm'
>
> This is caused by broken versions of GCC as far as I know. Are you able
> to upgrade GCC on this machine?
Alternatively try removing -O2 from variable QMAKE_CFLAGS_RELEASE in file:
mkspecs/common/g++.conf
I've been told this might work around an an optimizer (Global Common
Subexpression Elimination) bug.
--
[ signature omitted ]