[英]Embedded pdfium in C++ application
I'm currently trying to build a C++ application witch is able to convert PDF files to images. 我目前正在尝试构建一个能够将PDF文件转换为图像的C ++应用程序。
I want to use pdfium to do this. 我想用pdfium来做这件事。
So I built pdfium as explain in the wiki and copied headers and generated libs in my cmake project. 所以我在wiki中构建了pdfium作为解释,并在我的cmake项目中复制了头文件并生成了库。
When I try to build my application I get the following error: 当我尝试构建我的应用程序时,我收到以下错误:
src/include/pdfium-linux64/v8/include/libplatform/libplatform.h:8:33: fatal error: include/v8-platform.h: no such file or directory
In fact in this file there is: 实际上在这个文件中有:
#include "include/v8-platform.h"
But directories are like this: 但目录是这样的:
include
| pdfium-linux64
| | v8
| | | include
| | | | libplatform
| | | | \ libplatform.h
| | | | v8-platform.h
| | | \ ...
| | \ ...
| \ ...
\ ...
So it could not work.. 所以它无法工作..
Does anyone have an idea of what to do to fix this issue? 有没有人知道如何解决这个问题?
Thanks in advance. 提前致谢。
Thanks to pdfshaver project, I found a solution: 感谢pdfshaver项目,我找到了一个解决方案:
-I/usr/include/pdfium/v8
-I / USR /包含/ pdfium / V8
-L/usr/lib/pdfium-L / usr / lib中/ pdfium
-lpthread-lpthread
-lpdfium-lpdfium
-lfpdfapi-lfpdfapi
-lfxge-lfxge
-lfdrm-lfdrm
-lfpdfdoc-lfpdfdoc
-lfxcodec-lfxcodec
-lfxcrt-lfxcrt
-lfxedit-lfxedit
-lpdfwindow-lpdfwindow
-ljsapi-ljsapi
-lv8_libplatform-lv8_libplatform
-lv8_snapshot-lv8_snapshot
-lv8_base-lv8_base
-lv8_libbase-lv8_libbase
-licui18n-licui18n
-licuuc-licuuc
-licudata-licudata
-lformfiller-lformfiller
-lfpdftext-lfpdftext
-lfpdfdoc-lfpdfdoc
-lbigint-lbigint
-ljavascript-ljavascript
-lpthread-lpthread
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.