- 论坛徽章:
- 0
|
当我在aix上安装qt-x11-opensource-src-4.2.2时候,使用选项是 ./configure -platform aix-g++ 之后报告了以下错误
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
ps: AIX Version aix5.1.0.0
gcc version 3.3.2
这个是g++ 是机器附带的AIX Toolbox for Linux Applications光盘里面安装的,
有个老外提醒我说用到了这个-DQT_NO_THREAD,然后我用
./configure -debug-and-release -DQT_THREAD_SUPPORT -platform aix-g++
可是问题依旧啊,根据错误信息,查看了 /usr/include/sys 目录下的types.h 的文件,节选如下
#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 */
_XOPEN_SOURCE 什么意思,干什么用的,对qt的安装有什么影响?该怎么设置才能安装成功呢?如果用xlc的话,那里有xlc下载,附带的光盘没有找到,谢谢各位先。 |
|