我从这个页面下载了预建的 win32 poppler 二进制文件。在 .pro 文件中添加了 include 文件夹和 lib 文件夹的路径:
INCLUDEPATH += "C:\\test_folder\\poppler-0.24.5-win32\\include\\poppler-qt5"
LIBS += -L/"C:\\test_folder\\poppler-0.24.5-win32\\lib"
在 main.cpp 我包含“poppler-qt5.h”而没有错误,所以我认为 poppler 被正确添加。但是,通过打开 pdf 文件对其进行测试时,如此处所述,
QString path = "C:\\Windows\\System32\\spool\\PRINTERS\\test_file.pdf";
Poppler::Document *doc = Poppler::Document::load(path);
我收到一个链接器错误:
有人可以帮我吗?