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

Sample plugin

New Here ,
Jul 14, 2010 Jul 14, 2010

Hi,

I am totally new to Adobe Indesign, having got the task to write Indesign plugins.

So I installed IndesignCS4-SDK and tried to start with sample plugins.

In the SDK there is a batchfile buildAllSamples.bat which I started.

For every every sample project there was created a folder [project].sdk.Resources but all thes folders are empty (?).

Furthermore for every project there was created a '.pln' and a '.pdb.file'

I guess, there is something missing, the so created plugins are not recognized by Indesign.

Compiling one single project in Visual Studio I get the warning:

SDK\build\win\debug\SDK\(WFP.sdk Resources)\*.idrc could not be found.

so what's wrong here?

any help would be appreciated.

Helmut

TOPICS
SDK
9.6K
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
Participant ,
Jul 21, 2010 Jul 21, 2010

Hi Helmut25,

I think it should the problem of InDesign CS5 debug version, because i find another person meets the same issue of "FONT MANAGER.PLN" with you. Please refer to http://forums.adobe.com/thread/656045?tstart=0. Maybe you can ask him whether the issue has been resolved.

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
Participant ,
Jul 28, 2010 Jul 28, 2010

My misunderstanding, please ignore this reply.

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
New Here ,
Jul 29, 2010 Jul 29, 2010

Hi Aidy,

in the project properties (prelink-event) there is already the entry:

merge_res.cmd "$(IntDir)" BscDlg & echo Deleting old resources... & del /f /s "$(TargetDir)($(TargetName) Resources)\".idrc > $(IntDir)\prevDeletedResources.txt & xcopy /Q /E "$(IntDir)\".idrc "$(TargetDir)($(TargetName) Resources)\" /Y

..which is nearly identical to what you have suggested.

Nonetheless the idrc-files are not being generated....

Helmut

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
Participant ,
Jul 29, 2010 Jul 29, 2010

I made a CS5 project today, I think the first time to build the project or rebuild the project, it should have the information "not found *.idrc", it's normal and correct. So, don't worry about it.

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
New Here ,
Jul 29, 2010 Jul 29, 2010

Hi Ady,

the point is that *all* existing plug-ins in the program folder comprise a dozen folders named *idrc_....*.

so I suppose these folders are indispensable to make the plug-in run.

Why are these folders not being created by the compiler?

Helmut

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
Participant ,
Jul 29, 2010 Jul 29, 2010

Just a comment.

I don't know whether you have fixed the problem with message "Plug-in is either missing plug-in resource or the Model/UI attribute is not specified in PlugIn Version resource!" when launching InDesign.

I met that message too yesterday, with the project convert from VS 2005 to 2008. Then i regenerated the project using DollyXs in CS5 SDK, and adding my sources to the project. The plug-in works after compiling. Of course it's my personal project, not the samples in SDK.

About the idrc-files, i compiled BasicDialog.sdk.vcproj, and there does have idrc-files under folder "[CS5 SDK]\build\win\debug\SDK\(BasicDialog.sdk Resources)".

So, i think the quick way to fix the problem you are facing, is to re-downlaod CS5 SDK, if the issue still existing, verify your compiling environment from starting following the porting guide or Getting Start topic in "[CS5 SDK]\docs\references\index.chm".

Regards.

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
New Here ,
Jul 30, 2010 Jul 30, 2010

Hi Aidy,

I followed your advice, deleted the entire SDK folder and re-installed from scratch.

Then I chose the *WriteFishPrice* sample project because all code normally to be added by the user is already given upfront.

But the result is the same as ever, no idrc_ - files were generated.

In project settings I had added the path to sdk-bin-folder.

And the build log does not state any significant errors.

regards, Helmut

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
Participant ,
Jul 30, 2010 Jul 30, 2010

Then, i suppose it would be something wrong with your compiling environment, if you followed every step from the guide.

To check it, just make sure your project can works on other machines but yours. If it does, it would be the problem with VS 2008 or OS i think.

Regards,

Aidy

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
New Here ,
Aug 02, 2010 Aug 02, 2010

Hi Aidy,

another clue:

in the .vsprops files of SDK the entry for Visual Studio version states "8.00" which points to VS2005.

so I changed "8.00" to "9.00", but when selecting the WriteFishPrice sample project, I got an error message:

"XML parser error...value 9.00 does not match value 8.00 in DTD/Schema"

So what is the correct entry?

maybe this has nothing to do with my problem, but I have to check every possibility.....

regards.

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
Participant ,
Aug 02, 2010 Aug 02, 2010

Yes, i checked .vsprops files in SDK samples and my own project that generated by DollyXs, and they are all setting with Version="8.00".

I think 8.00 would be correct because they work well on my computer, but i have no idea why.

Regards

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
New Here ,
Aug 03, 2010 Aug 03, 2010

Hi Aidy,

are there any entries in your build log which point to the creation of idrc-files / folders?

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
Participant ,
Aug 03, 2010 Aug 03, 2010

No, i'm afraid no.

Creating temporary file "d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\BAT00002957201144.bat" with contents
[
@echo off

odfrc "d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\source\sdksamples\basicdialog\BscDlg.fr" -o ".\..\objd\BasicDialog\BscDlg.fres" -d DEBUG  -i ..\..\..\source\sdksamples\basicdialog @SDKODFRCOptions.rsp



if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"

exit 1

:VCEnd
]
Creating command line """d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\BAT00002957201144.bat"""
Creating temporary file "d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\RSP00002A57201144.rsp" with contents
[
/Od /Ob1 /D "_CRT_SECURE_NO_DEPRECATE" /D "DEBUG" /D "STRICT" /D "_VC80_UPGRADE=0x0710" /D "_SECURE_SCL=0" /D "_SCL_SECURE_NO_DEPRECATE" /D "_HAS_ITERATOR_DEBUGGING=0" /D "_WINDLL" /FD /EHsc /MDd /GS- /Yu"VCPlugInHeaders.h" /Fp".\..\objd\BasicDialog\BasicDialog.pch" /Fo".\..\objd\BasicDialog\\" /Fd".\..\objd\BasicDialog\vc90.pdb" /W3 /WX /c /Zi /TP  /vmg @"SDKCPPOptions.rsp"   /MP

"..\..\..\source\sdksamples\basicdialog\TriggerResourceDeps.cpp"

"..\..\..\source\public\libs\publiclib\statics\PlugInStatics.cpp"

"..\..\..\source\sdksamples\basicdialog\BscDlgNoStrip.cpp"

"..\..\..\source\sdksamples\basicdialog\BscDlgID.cpp"

"..\..\..\source\sdksamples\basicdialog\BscDlgEntrypoint.cpp"

"..\..\..\source\sdksamples\basicdialog\BscDlgDialogObserver.cpp"

"..\..\..\source\sdksamples\basicdialog\BscDlgDialogController.cpp"

"..\..\..\source\sdksamples\basicdialog\BscDlgActionComponent.cpp"
]
Creating command line "cl.exe @"d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\RSP00002A57201144.rsp" /nologo /errorReport:prompt"
Creating temporary file "d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\RSP00002B57201144.rsp" with contents
[
/Od /Ob1 /D "_CRT_SECURE_NO_DEPRECATE" /D "DEBUG" /D "STRICT" /D "_VC80_UPGRADE=0x0710" /D "_SECURE_SCL=0" /D "_SCL_SECURE_NO_DEPRECATE" /D "_HAS_ITERATOR_DEBUGGING=0" /D "_WINDLL" /FD /EHsc /MDd /GS- /Yc"VCPlugInHeaders.h" /Fp".\..\objd\BasicDialog\BasicDialog.pch" /Fo".\..\objd\BasicDialog\\" /Fd".\..\objd\BasicDialog\vc90.pdb" /W3 /WX /c /Zi /TP  /vmg @"SDKCPPOptions.rsp"   /MP

"..\..\..\source\precomp\msvc\VCPlugInHeaders.cpp"
]
Creating command line "cl.exe @"d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\RSP00002B57201144.rsp" /nologo /errorReport:prompt"
Creating command line "rc.exe /d "_CRT_SECURE_NO_DEPRECATE" /d "DEBUG" /l 0x809 /I "..\..\..\source\sdksamples\basicdialog" /I "..\..\..\source\sdksamples\common" /I "..\..\..\source\precomp\msvc" /I "..\..\..\source\public\includes" /fo".\..\objd\BasicDialog/BscDlg.res" "..\..\..\source\sdksamples\basicdialog\BscDlg.rc""
Creating temporary file "d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\BAT00002C57201144.bat" with contents
[
@echo off

merge_res.cmd ".\..\objd\BasicDialog"  BscDlg & echo Deleting old resources... & del /f /s "d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\debug\SDK\(BasicDialog.sdk Resources)\"*.idrc > .\..\objd\BasicDialog\prevDeletedResources.txt & xcopy /Q /E ".\..\objd\BasicDialog\"*.idrc "d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\debug\SDK\(BasicDialog.sdk Resources)\" /Y

if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: A tool returned an error code from "Performing Pre-Link Event..."

exit 1

:VCEnd
]
Creating command line """d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\BAT00002C57201144.bat"""
Creating temporary file "d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\RSP00002D57201144.rsp" with contents
[
/OUT:"..\debug\SDK\BasicDialog.sdk.pln" /INCREMENTAL:NO /DLL /MANIFEST /MANIFESTFILE:".\..\objd\BasicDialog\BasicDialog.sdk.pln.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"..\debug\SDK\BasicDialog.pdb" /SUBSYSTEM:WINDOWS /OPT:REF /DYNAMICBASE /NXCOMPAT /IMPLIB:"..\..\..\build\win\objD\BasicDialog/BasicDialog.lib" /MACHINE:X86 ..\..\..\build\win\objd\PMRuntime.lib ..\..\..\build\win\objd\Public.lib ..\..\..\build\win\objd\WidgetBin.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

"..\objd\BasicDialog\BscDlgActionComponent.obj"

"..\objd\BasicDialog\BscDlgDialogController.obj"

"..\objd\BasicDialog\BscDlgDialogObserver.obj"

"..\objd\BasicDialog\BscDlgEntrypoint.obj"

"..\objd\BasicDialog\BscDlgID.obj"

"..\objd\BasicDialog\BscDlgNoStrip.obj"

"..\objd\BasicDialog\PlugInStatics.obj"

"..\objd\BasicDialog\TriggerResourceDeps.obj"

"..\objd\BasicDialog\VCPlugInHeaders.obj"

"..\objd\BasicDialog\BscDlg.res"
]
Creating command line "link.exe @"d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\RSP00002D57201144.rsp" /NOLOGO /ERRORREPORT:PROMPT"
Creating temporary file "d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\RSP00002E57201144.rsp" with contents
[
/outputresource:"..\debug\SDK\BasicDialog.sdk.pln;#2" /manifest

"..\objd\BasicDialog\BasicDialog.sdk.pln.intermediate.manifest"
]
Creating command line "mt.exe @"d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\RSP00002E57201144.rsp" /nologo"
Creating temporary file "d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\BAT00002F57201144.bat" with contents
[
@echo Manifest resource last updated at %TIME% on %DATE% > "..\objd\BasicDialog\mt.dep"
]
Creating command line """d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\BAT00002F57201144.bat"""
Creating temporary file "d:\Program Files\Adobe\Adobe InDesign CS5 Products SDK\build\win\objd\BasicDialog\BAT00003057201144.bat" with contents
[
@echo off

restore_res.cmd ".\..\objd\BasicDialog"  BscDlg

if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."

exit 1

:VCEnd
]
Creating command line """d:\Program Files\Adobe\Adobe InDesign 

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