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!