Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Loading C++ framework with external dependencies into ExtendScript

New Here ,
Aug 14, 2017 Aug 14, 2017

I am trying to integrate a C++ library into an existing extension for Adobe Premiere Pro. I am using ExtendScript ToolKit to integrate the C++ library with Javascript.

I have played around with the examples provided with ExtendScript ToolKit. I have created my own framework with simple functions and have been able to load and use the same with ExtendScript ToolKit.

But I get into trouble when I add additional libraries as dependency to my framework. When any dynamic library is added as a dependency to the framework I created, it fails to load in ExtendScript. I get 'I/O error' with no description. My guess is that ExtendScript ToolKit is unable to load the dependent libraries of my framework.

Is there a way to specify the paths to look for dependent libraries? What is the way forward?

Here is my ExtendScript code:

try {

    var mylib = new ExternalObject("lib:/Volumes/Data/work/temp/sample.framework"); // load the library

    alert(mylib.version);

} catch (e) {

    alert(e)

}

399
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 14, 2017 Aug 14, 2017
LATEST

You might find more knowledgeable folks over in the SDK forum.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines