当前位置: 技术问答>linux和unix
编译QT-2.3.2出现这个错误,如何解决?
来源: 互联网 发布时间:2015-09-14
本文导语: 我在REDHAT9下面编译,MAKE后出险以下这些错误信息: g++ -c -I/usr/X11R6/include -I/home/ajn/qt-20050309down/qt-2.3.2/include -I/usr/X11R6/include -pipe -O2 -Wall -W -fPIC -DQT_BUILTIN_GIF_READER=0 -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_MNG -DQT_XFT -I/home...
我在REDHAT9下面编译,MAKE后出险以下这些错误信息:
g++ -c -I/usr/X11R6/include -I/home/ajn/qt-20050309down/qt-2.3.2/include -I/usr/X11R6/include -pipe -O2 -Wall -W -fPIC -DQT_BUILTIN_GIF_READER=0 -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_MNG -DQT_XFT -I/home/ajn/qt-20050309down/qt-2.3.2/src/3rdparty/zlib -I/home/ajn/qt-20050309down/qt-2.3.2/src/3rdparty/libpng -o kernel/qpsprinter.o kernel/qpsprinter.cpp
In file included from kernel/qt_x11.h:76,
from kernel/qpsprinter.cpp:97:
/usr/X11R6/include/X11/Xft/Xft.h:52: syntax error before `;'
/usr/X11R6/include/X11/Xft/Xft.h:86: syntax error before `;'
/usr/X11R6/include/X11/Xft/Xft.h:93: syntax error before `;'
/usr/X11R6/include/X11/Xft/Xft.h:190: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:295: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:354: syntax error before `('
/usr/X11R6/include/X11/Xft/Xft.h:393: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:399: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:408: type specifier omitted for
parameter
/usr/X11R6/include/X11/Xft/Xft.h:408: parse error before `,'
/usr/X11R6/include/X11/Xft/Xft.h:418: syntax error before `('
/usr/X11R6/include/X11/Xft/Xft.h:461: parse error before `*'
kernel/qpsprinter.cpp: In method `USHORT
QPSPrinterFontTTF::unicode_for_glyph (int)':
kernel/qpsprinter.cpp:3328: warning: `ULONG offset' might be used
uninitialized in this function
make[2]: *** [kernel/qpsprinter.o] Error 1
make[2]: Leaving directory `/home/ajn/qt-20050309down/qt-2.3.2/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/home/ajn/qt-20050309down/qt-2.3.2'
make: *** [init] Error 2
g++ -c -I/usr/X11R6/include -I/home/ajn/qt-20050309down/qt-2.3.2/include -I/usr/X11R6/include -pipe -O2 -Wall -W -fPIC -DQT_BUILTIN_GIF_READER=0 -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_MNG -DQT_XFT -I/home/ajn/qt-20050309down/qt-2.3.2/src/3rdparty/zlib -I/home/ajn/qt-20050309down/qt-2.3.2/src/3rdparty/libpng -o kernel/qpsprinter.o kernel/qpsprinter.cpp
In file included from kernel/qt_x11.h:76,
from kernel/qpsprinter.cpp:97:
/usr/X11R6/include/X11/Xft/Xft.h:52: syntax error before `;'
/usr/X11R6/include/X11/Xft/Xft.h:86: syntax error before `;'
/usr/X11R6/include/X11/Xft/Xft.h:93: syntax error before `;'
/usr/X11R6/include/X11/Xft/Xft.h:190: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:295: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:354: syntax error before `('
/usr/X11R6/include/X11/Xft/Xft.h:393: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:399: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:408: type specifier omitted for
parameter
/usr/X11R6/include/X11/Xft/Xft.h:408: parse error before `,'
/usr/X11R6/include/X11/Xft/Xft.h:418: syntax error before `('
/usr/X11R6/include/X11/Xft/Xft.h:461: parse error before `*'
kernel/qpsprinter.cpp: In method `USHORT
QPSPrinterFontTTF::unicode_for_glyph (int)':
kernel/qpsprinter.cpp:3328: warning: `ULONG offset' might be used
uninitialized in this function
make[2]: *** [kernel/qpsprinter.o] Error 1
make[2]: Leaving directory `/home/ajn/qt-20050309down/qt-2.3.2/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/home/ajn/qt-20050309down/qt-2.3.2'
make: *** [init] Error 2
|
可能某个有副作用的宏没写好……
|
可能是哪个结构没有定义被宏屏蔽了