You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, July 17th 2016, 8:19am

Installing Qt 4.6.0 on Ubuntu 14.04 with icc

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 -

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
info_ptr->channels =
^

image/qpnghandler.cpp(759): error: pointer to incomplete class type is not allowed
info_ptr->sig_bit.red = 8;
^

image/qpnghandler.cpp(760): error: pointer to incomplete class type is not allowed
info_ptr->sig_bit.green = 8;
^

image/qpnghandler.cpp(761): error: pointer to incomplete class type is not allowed
info_ptr->sig_bit.blue = 8;
^

image/qpnghandler.cpp(777): error: pointer to incomplete class type is not allowed
info_ptr->palette[i].red = qRed(rgb);
^

image/qpnghandler.cpp(778): error: pointer to incomplete class type is not allowed
info_ptr->palette[i].green = qGreen(rgb);
^

image/qpnghandler.cpp(779): error: pointer to incomplete class type is not allowed
info_ptr->palette[i].blue = qBlue(rgb);
^

image/qpnghandler.cpp(795): error: pointer to incomplete class type is not allowed
info_ptr->sig_bit.alpha = 8;
^

image/qpnghandler.cpp(961): error: pointer to incomplete class type is not allowed
return QSize(d->info_ptr->width, d->info_ptr->height);
^

image/qpnghandler.cpp(961): error: pointer to incomplete class type is not allowed
return QSize(d->info_ptr->width, d->info_ptr->height);
^

compilation aborted for image/qpnghandler.cpp (code 2)
make[1]: *** [.obj/release-shared/qpnghandler.o] Error 2
make: *** [sub-gui-make_default-ordered] Error 2