Hi,
I downloaded qt-x11-opensource-src-4.3.0 from the Trolltech website, but I'm not able to compile the code. 'make' fails, throwing the following errors:
../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h: In member function `virtual QRect QStyleSheetStyle::subElementRect(QStyle::SubElemen t, 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'
make[1]: *** [.obj/release-shared/qstylesheetstyle.o] Error 1
make[1]: Leaving directory `/home/jayanth/programs/qt-x11-opensource-src-4.3.0/src/gui'
make: *** [sub-gui-make_default-ordered] Error 2
The code that is causing the problem is given below.
asm volatile("xchgq %0,%1"
: "=r" (newval), "+m" (*reinterpret_cast<volatile long *>(ptr))
: "0" (newval)
: "memory");
asm volatile("xchgq %0,%1"
: "=r" (newval), "+m" (*reinterpret_cast<volatile long *>(ptr))
: "0" (newval)
: "memory");
To copy to clipboard, switch view to plain text mode
I'm running CentOS 5 on a Pentium D machine.
Please help.
Thanks!
Jayanth
Bookmarks