我试着写
include (C:\Qt\Qt5.3.2\5.3\Src\qtimageformats\src\3rdparty\libtiff.pri)在.pro文件中,但已收到
Project has no top-level .qmake.conf file.我试过了
#include <C:\Qt\Qt5.3.2\5.3\Src\qtimageformats\src\3rdparty\libtiff\libtiff\tiffio.h>,但我认为这还不足以涵盖所有libtiff功能。
我只想以某种方式包含libtiff,并编写如下内容
TIFF* img = TIFFOpen("1.tif", "r");
uint32 length;
TIFFGetField(img, TIFFTAG_IMAGELENGTH, &length);诸若此类。由于某些原因,我不能使用QImage。
我将感谢任何帮助的尝试。
发布于 2016-11-29 16:32:48
通常,要在Qt中使用库,必须在.pro/.pri文件中指定:
INCLUDEPATH += "path\to\the\headers"
LIBS += "path\to\your\lib"并将头文件包含在您要使用它的文件中。
https://stackoverflow.com/questions/40857232
复制相似问题