PDA

View Full Version : qt 4.2.2 install on aix



try to remember
27th March 2007, 15:06
hi,
when i install qt-x11-opensource-src-4.2.2 in aix with ./configure -platform aix-g++ and then it list some error like below:

Creating qmake. Please wait...
g++ -c -o makefiledeps.o -maix64 -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/usr/local/qt-x11-opensource-src-4.2.2/src/corelib/arch/generic -I/usr/local/qt-x11-opensource-src-4.2.2/include -I/usr/local/qt-x11-opensource-src-4.2.2/include/QtCore -I/usr/local/qt-x11-opensource-src-4.2.2/include -I/usr/local/qt-x11-opensource-src-4.2.2/include/QtCore -I/usr/local/qt-x11-opensource-src-4.2.2/src/corelib/global -I/usr/local/qt-x11-opensource-src-4.2.2/src/3rdparty/md5 -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/usr/local/qt-x11-opensource-src-4.2.2/mkspecs/aix-g++-64 -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT generators/makefiledeps.cpp
In file included from /usr/local/qt-x11-opensource-src-4.2.2/mkspecs/aix-g++-64/qplatformdefs.h:4
3,
from generators/makefiledeps.cpp:30:
/usr/include/pthread.h:582: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:582: error: parse error before `)' token
/usr/include/pthread.h:585: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:585: error: parse error before `,' token
/usr/include/pthread.h:589: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:589: error: parse error before `)' token
/usr/include/pthread.h:592: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:592: error: parse error before `)' token
/usr/include/pthread.h:595: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:595: error: parse error before `)' token
/usr/include/pthread.h:598: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:598: error: parse error before `)' token
/usr/include/pthread.h:601: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:601: error: parse error before `)' token
/usr/include/pthread.h:604: error: `pthread_rwlockattr_t' was not declared in
this scope
/usr/include/pthread.h:604: error: parse error before `)' token
/usr/include/pthread.h:607: error: parse error before `*' token
/usr/include/pthread.h:611: error: `pthread_rwlockattr_t' was not declared in
this scope
/usr/include/pthread.h:611: error: parse error before `)' token
/usr/include/pthread.h:614: error: `pthread_rwlockattr_t' was not declared in
this scope
/usr/include/pthread.h:614: error: parse error before `,' token
/usr/include/pthread.h:625: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:625: error: parse error before `,' token
/usr/include/pthread.h:629: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:629: error: parse error before `,' token
/usr/include/pthread.h:652: error: `pthread_spinlock_t' was not declared in
this scope
/usr/include/pthread.h:652: error: parse error before `,' token
/usr/include/pthread.h:655: error: `pthread_spinlock_t' was not declared in
this scope
/usr/include/pthread.h:655: error: parse error before `)' token
/usr/include/pthread.h:658: error: `pthread_spinlock_t' was not declared in
this scope
/usr/include/pthread.h:658: error: parse error before `)' token
/usr/include/pthread.h:661: error: `pthread_spinlock_t' was not declared in
this scope
/usr/include/pthread.h:661: error: parse error before `)' token
/usr/include/pthread.h:664: error: `pthread_spinlock_t' was not declared in
this scope
/usr/include/pthread.h:664: error: parse error before `)' token
/usr/include/pthread.h:672: error: `pthread_barrierattr_t' was not declared in
this scope
/usr/include/pthread.h:672: error: parse error before `)' token
/usr/include/pthread.h:675: error: `pthread_barrierattr_t' was not declared in
this scope
/usr/include/pthread.h:675: error: parse error before `)' token
/usr/include/pthread.h:678: error: parse error before `*' token
/usr/include/pthread.h:681: error: `pthread_barrierattr_t' was not declared in
this scope
/usr/include/pthread.h:681: error: parse error before `,' token
/usr/include/pthread.h:689: error: `pthread_barrier_t' was not declared in this
scope
/usr/include/pthread.h:689: error: parse error before `,' token
/usr/include/pthread.h:693: error: `pthread_barrier_t' was not declared in this
scope
/usr/include/pthread.h:693: error: parse error before `)' token
/usr/include/pthread.h:696: error: `pthread_barrier_t' was not declared in this
scope
/usr/include/pthread.h:696: error: parse error before `)' token


what is the problem ?

ps: AIX Version aix5.1.0.0
gcc version 3.3.2
thank you at fist

high_flyer
27th March 2007, 18:29
-DQT_NO_THREAD
you are compiling with no thread support.
Take the above option out of the compiler options.

try to remember
28th March 2007, 13:19
thanks you ,this time i use comman like fellow
./configure -debug-and-release -DQT_THREAD_SUPPORT -platform aix-g++
and some error like below

g++ -c -o makefiledeps.o -mpowerpc -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/usr/local/qt422/src/corelib/arch/generic -I/usr/local/qt422/include -I/usr/local/qt422/include/QtCore -I/usr/local/qt422/include -I/usr/local/qt422/include/QtCore -I/usr/local/qt422/src/corelib/global -I/usr/local/qt422/src/3rdparty/md5 -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/usr/local/qt422/mkspecs/aix-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT generators/makefiledeps.cpp
In file included from /usr/local/qt422/include/QtCore/qglobal.h:1,
from /usr/local/qt422/src/corelib/tools/qalgorithms.h:27,
from /usr/local/qt422/include/QtCore/qalgorithms.h:1,
from /usr/local/qt422/src/corelib/tools/qstringlist.h:27,
from /usr/local/qt422/include/QtCore/qstringlist.h:1,
from generators/makefiledeps.h:27,
from generators/makefiledeps.cpp:24:
/usr/local/qt422/src/corelib/global/qglobal.h:38:28: QtCore/qconfig.h: No such file or directory
In file included from /usr/local/qt422/mkspecs/aix-g++/qplatformdefs.h:43,
from generators/makefiledeps.cpp:30:
/usr/include/pthread.h:582: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:582: error: parse error before `)' token
/usr/include/pthread.h:585: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:585: error: parse error before `,' token
/usr/include/pthread.h:589: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:589: error: parse error before `)' token
/usr/include/pthread.h:592: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:592: error: parse error before `)' token
/usr/include/pthread.h:595: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:595: error: parse error before `)' token
/usr/include/pthread.h:598: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:598: error: parse error before `)' token
/usr/include/pthread.h:601: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:601: error: parse error before `)' token
/usr/include/pthread.h:604: error: `pthread_rwlockattr_t' was not declared in
this scope
/usr/include/pthread.h:604: error: parse error before `)' token
/usr/include/pthread.h:607: error: parse error before `*' token
/usr/include/pthread.h:611: error: `pthread_rwlockattr_t' was not declared in
this scope
/usr/include/pthread.h:611: error: parse error before `)' token
/usr/include/pthread.h:614: error: `pthread_rwlockattr_t' was not declared in
this scope
/usr/include/pthread.h:614: error: parse error before `,' token
/usr/include/pthread.h:625: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:625: error: parse error before `,' token
/usr/include/pthread.h:629: error: `pthread_rwlock_t' was not declared in this
scope
/usr/include/pthread.h:629: error: parse error before `,' token
/usr/include/pthread.h:652: error: `pthread_spinlock_t' was not declared in
this scope
/usr/include/pthread.h:652: error: parse error before `,' token
/usr/include/pthread.h:655: error: `pthread_spinlock_t' was not declared in
this scope
/usr/include/pthread.h:655: error: parse error before `)' token
/usr/include/pthread.h:658: error: `pthread_spinlock_t' was not declared in
this scope
/usr/include/pthread.h:658: error: parse error before `)' token
/usr/include/pthread.h:661: error: `pthread_spinlock_t' was not declared in
this scope
/usr/include/pthread.h:661: error: parse error before `)' token
/usr/include/pthread.h:664: error: `pthread_spinlock_t' was not declared in
this scope
/usr/include/pthread.h:664: error: parse error before `)' token
/usr/include/pthread.h:672: error: `pthread_barrierattr_t' was not declared in
this scope
/usr/include/pthread.h:672: error: parse error before `)' token
/usr/include/pthread.h:675: error: `pthread_barrierattr_t' was not declared in
this scope
/usr/include/pthread.h:675: error: parse error before `)' token
/usr/include/pthread.h:678: error: parse error before `*' token
/usr/include/pthread.h:681: error: `pthread_barrierattr_t' was not declared in
this scope
/usr/include/pthread.h:681: error: parse error before `,' token
/usr/include/pthread.h:689: error: `pthread_barrier_t' was not declared in this
scope
/usr/include/pthread.h:689: error: parse error before `,' token
/usr/include/pthread.h:693: error: `pthread_barrier_t' was not declared in this
scope
/usr/include/pthread.h:693: error: parse error before `)' token
/usr/include/pthread.h:696: error: `pthread_barrier_t' was not declared in this
scope
/usr/include/pthread.h:696: error: parse error before `)' token


but also have -DQT_NO_THREAD define when i configure why? the -DQT_THREAD_SUPPORT is wrong? what is the right one?

when use the next configre option
./configure -debug-and-release -DQT_THREAD_SUPPORT -I/usr/include -platform aix-g++
the error is the same like befor

then i view the file types.h in /usr/include/sys some thing like below
#if (_XOPEN_SOURCE >= 500)
typedef struct
{
#ifdef __64BIT__
long __rw_word[10];
#else
int __rw_word[52];
#endif /* __64BIT__ */
}
pthread_rwlock_t;
#endif /* _XOPEN_SOURCE >= 500 */

what is the meaning? is there anybody install qt4 on aix?