0
我試着在.pro
文件中寫入我該如何加入LibTIFF(Qt)?
include (C:\Qt\Qt5.3.2\5.3\Src\qtimageformats\src\3rdparty\libtiff.pri)
,但收到
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。
我會很感激任何幫助的嘗試。
您能否澄清一下:「lib的路徑」是什麼意思?具有特定文件擴展名的特定文件的路徑? –
'LIBS + = C:\ Path \ To \ Your \ library.lib'或者作爲文檔顯示: 'LIBS + = -L/usr/local/lib -lmath' – emKaroly