• 7061阅读
  • 3回复

斑竹救命:安装QT4时出现如下问题 [复制链接]

上一主题 下一主题
离线milumilumao
 
只看楼主 正序阅读 楼主  发表于: 2008-11-19
— 本帖被 XChinux 执行加亮操作(2008-11-24) —
qt-x11-opensource-src-4.4.3,系统是redhatlinux 9.0,
./configure可以通过,但是make时出现如下错误:
mv -f libqsvg.so ../../../../plugins/imageformats/
gmake[3]: Leaving directory `/usr/local/qt-x11-opensource-src-4.4.3/src/plugins/imageformats/svg'
cd tiff/ && gmake -f Makefile
gmake[3]: Entering directory `/usr/local/qt-x11-opensource-src-4.4.3/src/plugins/imageformats/tiff'
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/linux-g++ -I. -I../../../../include/QtCore -I../../../../include/QtCore -I../../../../include/QtGui -I../../../../include/QtGui -I../../../../include -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/main.o main.cpp
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/linux-g++ -I. -I../../../../include/QtCore -I../../../../include/QtCore -I../../../../include/QtGui -I../../../../include/QtGui -I../../../../include -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/qtiffhandler.o qtiffhandler.cpp
qtiffhandler.cpp: In member function `virtual bool
  QTiffHandler::read(QImage*)':
qtiffhandler.cpp:148: `TIFFReadRGBAImageOriented' undeclared (first use this
  function)
qtiffhandler.cpp:148: (Each undeclared identifier is reported only once for
  each function it appears in.)
gmake[3]: *** [.obj/release-shared/qtiffhandler.o] Error 1
gmake[3]: Leaving directory `/usr/local/qt-x11-opensource-src-4.4.3/src/plugins/imageformats/tiff'
gmake[2]: *** [sub-tiff-make_default] Error 2
gmake[2]: Leaving directory `/usr/local/qt-x11-opensource-src-4.4.3/src/plugins/imageformats'
gmake[1]: *** [sub-imageformats-make_default] Error 2
gmake[1]: Leaving directory `/usr/local/qt-x11-opensource-src-4.4.3/src/plugins'
gmake: *** [sub-plugins-make_default-ordered] Error 2
[root@localhost qt-x11-opensource-src-4.4.3]#
请问为什么啊?是不是我的操作系统有什么地方没有准备好?是不是有什么软件不是最新的?装了一天了,总是出现类似的错误,就是make编译不通过,很郁闷,请斑竹帮忙,目前应该如何做才能成功安装上QT4啊?
Read The F**king Source Code.
离线bianjun1075
只看该作者 3楼 发表于: 2009-03-02
恩,我遇到同样的问题,谢谢二楼,已解决,编译个QT确实不是一番分顺
离线wwjjbb2008
只看该作者 2楼 发表于: 2008-11-24
如果遇到同样的问题 就查头文件里的内容 和 qt里的函数定义是否一致
离线wwjjbb2008
只看该作者 1楼 发表于: 2008-11-24
打开 qtiffhandler.cpp 把 TIFFReadRGBAImageOriented(tiff, width, height, reinterpret_cast<uint32 *>(tiffImage.bits()), ORIENTATION_TOPLEFT, 0))改为
TIFFReadRGBAImage(tiff, width, height, reinterpret_cast<uint32 *>(tiffImage.bits()), 0)就好了 你的redhat里的 usr/include/tiffio.h没有前一个函数
快速回复
限100 字节
 
上一个 下一个