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

@loader_path problem for photoshop plugin on Mac

New Here ,
Jun 30, 2011 Jun 30, 2011

Copy link to clipboard

Copied

Hi experts,

One of my photoshop plugin (a file format plugin) depends on Qt, so I add the libQtCore.4.dylib and libQtGui.4.dylib in the same folder of my binary in my bundle ( that is '/Contents/MacOS' ), and reference them as @positive_Wish16B8_path in my plugin.

My plugin is a universal binary. it works all fine with the 64bit photosho , but the problem is in 32bit of photosho, when I click the 'About' to display my about dialog and then click open to open my file, photoshop said 'Out of RAM'. This problem doesn't happen if I click open first and then about.

I tried to put the Qt libraries in the /usr/local/bin, and referece them in my plugin with full path, (that is /usr/local/bin/libQt**), all things are all right, So I'm wordering if there is some problem with the plugin loading with the '@loader_path‘ reference.

Any help will appreciate.

Thanks,

D.J.

TOPICS
SDK

Views

952

Translate

Translate

Report

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
Adobe
Participant ,
Oct 29, 2016 Oct 29, 2016

Copy link to clipboard

Copied

Hi,

Did you manage to make it work?

Votes

Translate

Translate

Report

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
New Here ,
Dec 26, 2016 Dec 26, 2016

Copy link to clipboard

Copied

LATEST

As far as I can remember, it's because PS unloaded the plugin. I used the dlopen to increase ref count of the the plugin .

Votes

Translate

Translate

Report

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