So I downloaded the Adobe Acrobat SDK, looking to create my own plugin for Acrobat. I set the include path on Visual Studio to include the header files and added to the preprocessor definitions. However, I’m getting a fatal error when trying to run the Sample plugin program that comes with the SDK saying “PIHeaders.h: No such file or directory”. I complied using gcc.exe and this is the latest SDK version for Windows (2021 v3).
Here is the line including the Header file that can’t be found:
// Acrobat Headers.
#ifndef MAC_PLATFORM
#include "PIHeaders.h"
#endif
Here is what I get in the terminal when run:
Starting build...
cmd /c chcp 65001>nul && C:msys64ucrt64bing++.exe -fdiagnostics-color=always -g -I C:UsersdazzleprojectsFirstPluginSamplesBasicPluginsourcesBasicPlugin.cpp -o C:UsersdazzleprojectsFirstPluginSamplesBasicPluginsourcesBasicPlugin.exe
g++.exe: fatal error: no input files
compilation terminated.
Picture of C++ file of the SDK sample and the error message
I was expecting for the program to compile and work out of the box. I didn’t find any installation guide in the documentaion here:https://opensource.adobe.com/dc-acrobat-sdk-docs/library/plugin/index.html#about-plugins. I didn’t see any Readme files in the SDK for the plugins. I made sure that the header file was included in the path, and I found the preprocessor definitions from the documentation online (WIN_PLATFORM, ACRO_SDK_PLUGIN, and WIN_ENV).
For those familiar with SDKs or the Adobe Acrobat SDK, is there an installation step I may have missed? What do you think it would be?
While I doubt it’s the code, could this be caused by the header file? Am I doing something wrong at compilation?
Dazzle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
6