Copy link to clipboard
Copied
Hello there, I've been developing a plugin for InDesign using SDK. I'm facing the issue of plugin not loading when I try to use OpenSSL library (version 3.14). The build is succeeding without any errors, but the plugin failing to load. Assertion window popping up and saying:
Cannot load plugin CHLINGUISTIC.SDK.PLN
D:\RESS\ID\19.0\Release\source\omlib\plugins\WPlugInListUtils.cpp (168)
I've installed openssl with vcpkg package manager, and enabled automatic linking to Visual Studio:
During building phase, there is this vcpkg related log:
1>Target VcpkgTripletSelection:
1> Using triplet "x64-windows" from "C:\dev\vcpkg\installed\x64-windows\"
1> Using normalized configuration "Debug"
There is 'libcrypto-3-x64.dll' file being created in the build directory alongside with plugin files:
Plugin building and loading successfully without any errors when I only include openssl headers:
#include <openssl/conf.h>
#include <openssl/evp.h>
#include <openssl/err.h>
But InDesign stops loading the plugin when I start using openssl components in my methods, for example:
EVP_CIPHER_CTX* ctx;
ctx = EVP_CIPHER_CTX_new();
So, I was wondering what could be the issue, since assertion window doesn't tell any usefull info, output window in Visual Studio stops after printing:
'InDesign.exe' (Win32): Loaded 'D:\Program Files\Adobe\SDK\InDesign\2024\build\win\debugx64\SDK\CHLinguistic.sdk.pln'. Symbols loaded.
'InDesign.exe' (Win32): Unloaded 'D:\Program Files\Adobe\SDK\InDesign\2024\build\win\debugx64\SDK\CHLinguistic.sdk.pln'
The thread 'com.adobe.ngl-null' (0x438c) has exited with code 0 (0x0).
The thread 'com.adobe.ngl-null' (0x730c) has exited with code 0 (0x0).
I hope you guys can help me out with the issue I'm facing. I'm looking forward to your responses. Thanks in advance!
Copy link to clipboard
Copied
At the risk of asking a dumb question; are you using a DEBUG version of InDesign ? The "normal" version of InDesign will not load plugins built with a debug configuration. Olivier
Copy link to clipboard
Copied
Yes I'm using the Debug version of InDesign
Copy link to clipboard
Copied
Another common gotcha is your plugin relying on a version of the ICU set of DLLs that is no longer shipped with InDesign. InDesign 2023 shipped with the ICU71 DLLs, but InDesign 2024 ships with the ICU73 DLLs.
Copy link to clipboard
Copied
I don't think software internationalization libraries - ICU71 and ICU73 DLLs are the reason for my plugin not loading, since the plugin is loading and working without any errors when I don't use openssl library.
Copy link to clipboard
Copied
Sounds like the dll is not found in that build location. I'd start reading about dll search order .