PDA

View Full Version : [SOLVED] Help compiling Qt4.3.4



juannm
6th March 2008, 12:56
Hello, I'm having some troubles when compiling Qt4.3.4; my configure line is as follows:


./configure -prefix /opt/qt-4.3.4 -qt-sql-mysql -qt-sql-sqlite3 -platform linux-g++ -qt-zlib -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -nomake examples -nomake demos -optimized-qmake


And then, after typing 'make' and waiting for a while, when it is compiling qglobal.cpp the following error appears:


make[1]: se ingresa al directorio `/opt/qt-x11-commercial-src-4.3.4/src/corelib'
g++ -pipe -g -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_44_API_QSQLQUERY_FINISH -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include -I../../include/QtCore -Iglobal -I../3rdparty/zlib -I.moc/release-shared -I.uic/release-shared -x c++-header -c global/qt_pch.h -o .pch/release-shared/QtCore.gch/c++
g++ -c -include .pch/release-shared/QtCore -pipe -g -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_44_API_QSQLQUERY_FINISH -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include -I../../include/QtCore -Iglobal -I../3rdparty/zlib -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/qglobal.o global/qglobal.cpp
{standard input}: Assembler messages:
{standard input}:508: Error: suffix or operands invalid for `cmpxchg'
{standard input}:988: Error: suffix or operands invalid for `xchg'
{standard input}:1203: Error: suffix or operands invalid for `cmpxchg'
{standard input}:1906: Error: suffix or operands invalid for `xchg'
make[1]: *** [.obj/release-shared/qglobal.o] Error 1
make[1]: se sale del directorio `/opt/qt-x11-commercial-src-4.3.4/src/corelib'
make: *** [sub-corelib-make_default-ordered] Error 2


It seems to be related to some invalid assembly instructions, but I have no idea about what to do :(



------------

SOLVED: I modified this option in the ./configure command: -platform linux-g++ was changet to -platform linux-g++-32 and all compiled without problems.