Unsolved Qt 5.5.1 build error in AIX 6.1
-
Hi.
I get an error when building qt 5.5.1 in AIX 6.1.
< error >
./configure -platform aix-g++
...Preparing build tree...
Creating qmake...
....
/opt/qt5/qt-everywhere-opensource-src-5.5.1/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:39:21: error: cstddef: No such file or directory
....<qglobal.h>
#ifdef __cplusplus
# include <cstddef> <------- error line
#endifI found that file(cstddef) in
./opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/include/c++/cstddef
./opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/6.2.0/include/c++/cstddef
What should I do?< my env >
AUTHSTATE=compat
CATALINA_HOME=/home/tomcat4
CLASSPATH=.:/home/tomcat4/common/lib/ojdbc14.jar:/home/tomcat4/common/lib/servlet.jar
EDITOR=/usr/bin/vi
ERRNO=0
FCEDIT=/usr/bin/ed
G_BROKEN_FILENAMES=1
HOME=/
IFS='
'
JAVA_HOME=/usr/java14
LANG=C
LC__FASTMSG=true
LINENO=1
LOCPATH=/usr/lib/nls/loc
LOGIN=root
LOGNAME=root
MAIL=/usr/spool/mail/root
MAILCHECK=600
MAILMSG='[YOU HAVE NEW MAIL]'
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
ODMDIR=/etc/objrepos
OLDPWD=/opt/qt5
OPTIND=1
PATH=.:/usr/vacpp/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb://bin:/usr/bin/X11:/sbin:/usr/java14/bin
PPID=311416
PS1='nim109@root:$PWD#> '
PS2='> '
PS3='#? '
PS4='+ '
PWD=/opt/qt5/build
RANDOM=28868
SECONDS=2141
SHELL=/usr/bin/ksh
TERM=xterm
TERM_DEFAULT=lft
TMOUT=0
TOMCAT_HOME=/home/tomcat4
TZ=Asia/Seoul
USER=root
VISUAL=/usr/bin/vi
_=envthanks .....
-
Hi,
I haven't use that platform but are you cross-compiling ?
-
@SGaist Hi,
I am currently using it for AIX, linux, and window 7(msdev2013), and linux builds the source directly.
Thanks.
-
It doesn't look like your environment is setup for the gcc / g++ compilers. Are you able to compile a simple Hello World program with g++ from the command line? If not, you can try exporting the following environment variables before configuring:
export PATH=/path/to/g++/bin:$PATH export CPLUS_INCLUDE_PATH=/path/to/g++/include export C_INCLUDE_PATH=/path/to/gcc/include export LIBRARY_PATH=/path/to/g++/lib
-
You need to install the 'libstdc++-devel' and link the installs in order to fix this issue.