doufendi9063 2018-12-05 08:11
浏览 127

Pdflib lite 7在win10上从源代码编译PHP

I'm having trouble compiling pdflib lite from source, I need a pdflib.dll for PHP. I'm not a C dev but I kinda know the process. I managed to compile php from source following this tutorial and now I need rebuild the conf pointing to the pdf library something like this:

configure --disable-all --enable-cli --enable-pdflib

The problem is I don't know how to compile the pdf library so that I can generate a folder as valid php extension that can be loaded in the build. From what I understood it needs to have config.w32 inside the folder.

Any idea how to obtain that? This is the official doc, but I don't know if it's exactly what I need and not really sure what are the steps to follow, plus VS 6 has some troubles on win 10:

PDFlib Source Code for Windows

Building PDFlib with MS Visual Studio 6 (GUI)

To compile PDFlib with MS Visual Studio 6, open the *.dsw workspace corresponding to the target product (e.g. PDFlib.dsw). It contains several projects for the core library and language bindings. Select the "pdflib" project to build a static library pdflib.lib.

The "pdflib_dll" project can be used to build a DLL version pdflib.dll.

This will set the PDFLIB_EXPORTS #define. Client programs must define PDFLIB_DLL before including pdflib.h in order to use the DLL.

The following configurations are supported: - "Debug" - "Release" will include a static version of the C runtime. - "Release mtDLL" (only for target pdflib) builds a static library for use with applications which use a multithreaded DLL version of the
C runtime (msvcrt.dll).

Sample applications:

The examples_c.dsw and examples_cpp.dsw contain targets for a few C/C++ sample applications.

Note that some tests may fail because they need features which require a higher product version (e.g. tests requiring PDI will fail with PDFlib).

If can pls help I'll really appreciate it. Thank you!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
    • ¥15 java写代码遇到问题,求帮助
    • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
    • ¥15 关于#Java#的问题,如何解决?