I am trying to install Qt 4.6.0 with Intel icc compiler and I am getting these errors -


Any idea on how to fix them -

I saw this post http://stackoverflow.com/questions/1...ncomplete-type but I am not sure what I need to do in my case.

icpc -c -wd654,1572 -g -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -I/usr/include/freetype2 -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-icc -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I../3rdparty/xorg -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -o .obj/release-shared/qpnghandler.o image/qpnghandler.cpp
image/qpnghandler.cpp(169): error: pointer to incomplete class type is not allowed
if (bit_depth == 1 && info_ptr->channels == 1) {
^

image/qpnghandler.cpp(214): error: pointer to incomplete class type is not allowed
const int g = info_ptr->trans_color.gray;
^

image/qpnghandler.cpp(223): error: pointer to incomplete class type is not allowed
&& info_ptr->num_palette <= 256)
^

image/qpnghandler.cpp(236): error: pointer to incomplete class type is not allowed
image.setColorCount(info_ptr->num_palette);
^

image/qpnghandler.cpp(239): error: pointer to incomplete class type is not allowed
while (i < info_ptr->num_trans) {
^
image/qpnghandler.cpp(241): error: pointer to incomplete class type is not allowed
info_ptr->palette.red,
^

image/qpnghandler.cpp(242): error: pointer to incomplete class type is not allowed
info_ptr->palette[i].green,
^

image/qpnghandler.cpp(243): error: pointer to incomplete class type is not allowed
info_ptr->palette[i].blue,
^

image/qpnghandler.cpp(247): error: pointer to incomplete class type is not allowed
info_ptr->trans_alpha[i]
^

image/qpnghandler.cpp(254): error: pointer to incomplete class type is not allowed
while (i < info_ptr->num_palette) {
^

image/qpnghandler.cpp(256): error: pointer to incomplete class type is not allowed
info_ptr->palette[i].red,
^

image/qpnghandler.cpp(257): error: pointer to incomplete class type is not allowed
info_ptr->palette[i].green,
^

image/qpnghandler.cpp(258): error: pointer to incomplete class type is not allowed
info_ptr->palette[i].blue,
image/qpnghandler.cpp(534): error: pointer to incomplete class type is not allowed
if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY) {
^

image/qpnghandler.cpp(536): error: pointer to incomplete class type is not allowed
if (info_ptr->bit_depth == 1 && info_ptr->channels == 1) {
^

image/qpnghandler.cpp(536): error: pointer to incomplete class type is not allowed
if (info_ptr->bit_depth == 1 && info_ptr->channels == 1) {
^

image/qpnghandler.cpp(538): error: pointer to incomplete class type is not allowed
} else if (info_ptr->bit_depth == 16 && png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) {
^

image/qpnghandler.cpp(543): error: pointer to incomplete class type is not allowed
} else if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE
^

image/qpnghandler.cpp(545): error: pointer to incomplete class type is not allowed
&& info_ptr->num_palette <= 256)
^

image/qpnghandler.cpp(548): error: pointer to incomplete class type is not allowed
if (info_ptr->bit_depth != 1)
^

image/qpnghandler.cpp(555): error: pointer to incomplete class type is not allowed
if (info_ptr->bit_depth == 16)
^

image/qpnghandler.cpp(560): error: pointer to incomplete class type is not allowed
if (!(info_ptr->color_type & PNG_COLOR_MASK_ALPHA)
^

image/qpnghandler.cpp(744): error: pointer to incomplete class type is not allowed