Copy link to clipboard
Copied
Heya,
I am developing one photoshop plugin in "Qt framework 5.5".
I follow the steps from "Automation Tutorial.pdf" ebook provided by adobe photoshop sdk.
First , My Project is Qt project not normal visual c++ project.
I add one text file with extension .r & then change properties of that text file & execute cl command there
cl /I..\..\common\Includes /I..\..\..\PhotoshopAPI\Photoshop /I..\..\..\PhotoshopAPI\PICA_SP /EP /DWIN32=1 /Tc"%(FullPath)" > "$(IntDir)%(Filename).rr"
..\..\resources\cnvtpipl.exe "$(IntDir)%(Filename).rr" "$(IntDir)%(Filename).pipl"
del "$(IntDir)%(Filename).rr"
So now i got
1> TestPluginOne.rr
1>..\..\resources\cnvtpipl.exe(2): fatal error C1004: unexpected end-of-file found
1> TestPluginOne.pipl
1>c1 : fatal error C1083: Cannot open source file: '.\..\..\Output\Objs\Debug64\TestPluginOne.rr': Permission denied
1>c1 : fatal error C1083: Cannot open source file: '.\..\..\Output\Objs\Debug64\TestPluginOne.pipl': No such file or directory
cl command execute successfully if i remove cnvtpipl.exe from the command (i.e remove entire 2nd line)
We can not say that cnvtpipl.exe not found because it found but it throws fatel error of unexpected end of file.
Please Help Me..!!
Copy link to clipboard
Copied
Try to add quotes around all paths and try to use absolute paths.
Something like this:
cl /I"d:\WORK\Visual Studio\bibl\psd\all" /EP /DWIN32=1 /Tc"%(FullPath)" > "$(IntDir)$(TargetName).rr"
"d:\WORK\Visual Studio\bibl\psd\all\cnvtpipl.exe" "$(IntDir)$(TargetName).rr" "$(IntDir)$(TargetName).pipl"
del "$(IntDir)$(TargetName).rr"
Copy link to clipboard
Copied
Does anyone can explain what this exactly do?
If one would like to so it in a batch file or CMake file, what should be done?
Copy link to clipboard
Copied
Have a look at this Programming plugins for Photoshop: Building a plug-in . Also view any vcxproj file in the samples within the the SDK.
RONC
Copy link to clipboard
Copied
rechmbrs, What I wanted is to remove the dependency on Visual Studio and move to CMake based compilation.
It is easy to work with h and c / cpp in CMake.
But the r files are something which should be treated in a special way.
I want to understand what should one do with them.