Skip to main content
Known Participant
September 6, 2013
Question

.fres is an empty file

  • September 6, 2013
  • 3 replies
  • 3109 views

Hi All,

Can anybody help me, im trying to create my first plugin for CS6. Im unable to build a plugin the following errors are occur while building.

1>------ Build started: Project: test, Configuration: Debug Win32 ------

1>  VCPlugInHeaders.cpp

1>  testActionComponent.cpp

1>  testDialogController.cpp

1>  testDialogObserver.cpp

1>  PlugInStatics.cpp

1>  SDKPlugInEntrypoint.cpp

1>  testID.cpp

1>  testNoStrip.cpp

1>  TriggerResourceDeps.cpp

1>  Generating Code...

1>  Performing Custom Build Tools

1>  ODFRC deleting old resources...

1>  Could Not Find C:\Indesign_Plugin\CS6SDK\build\win\objD\test\*.idrc

1>  merge_res.cmd - calling ConcatRes

1>          1 file(s) copied.

1>  ConcatRes skipped since "..\objD\test"\test.fres is an empty file.

1>  merge_res.cmd done.

1>  Deleting old resources...

1>  The system cannot find the file specified.

1>  'xcopy' is not recognized as an internal or external command,

1>  operable program or batch file.

1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(108,5): error MSB3073: The command "merge_res.cmd "..\objD\test\"  test & echo Deleting old resources... & del /f /s "C:\Indesign_Plugin\CS6SDK\build\win\debug\sdk\(test.sdk Resources)\"*.idrc > ..\objD\Chinna\prevDeletedResources.txt &  xcopy /Q /E "..\objD\test\"*.idrc "C:\Indesign_Plugin\CS6SDK\build\win\debug\sdk\(test.sdk Resources)\" /Y

1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(108,5): error MSB3073: :VCEnd" exited with code 1.

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Regards,

Learner

This topic has been closed for replies.

3 replies

Community Expert
December 14, 2016

Seems you have a corrupted PATH env variable. Please refer the following links to see if it helps you.

windows - XCOPY not recognized as internal or external command - Stack Overflow

xcopy is not recognized as an internal or external command, operable program or batch file - Stack Overflow 

And regarding if the resources are compiled correctly or not, right click on the .fr file in your project explorer. You should see a compile option, click it and see the output folders with the .idrc being created. In case the compile option is disabled for every .fr file in the project(only one .fr should have this option as active), that means your custom build steps is not set correctly to build the fr file, refer the sdk sample to get this sorted.

But since you said that the sample sdk plugin also has the same issue as your plugin, i am sure the links provided above should resolve your issue.

-Manan

-Manan
jochens5907408
Known Participant
December 14, 2016

Hi Manan,

I've experienced lots of problems with XP, VC70 and SDK 4.0.2.

One of these is the format of the ouput of the source files and of the CustomerBuildStep at the fr-file.

The reason for using CS2 etc. was. that I've CS2 running at my system.

To get a better maintained implementetion environment I should use CC etc.

Do you know, if there is a way, to get an Adobe deleloper account with the installation key for CC only for development purposes?

A friend of mine told me that he has got such an acount from EBay.

Community Expert
December 15, 2016

In order to get the debug builds of InDesign you need to get into the prerelease program of InDesign. For that you need to get an invitation, which requires a recommendation by an Adobe employee.

The details of this is mentioned on the top of landing page of this forum.

And regarding getting the SDK for development you can follow the following discussion

InDesign cc 2017 sdk

And what your friend told you, i don't think that is a legal way to get a copy. Would recommend you go the right way.

-Manan

-Manan
Bartek_Kropaczewski
Inspiring
September 6, 2013

Hi

Since InDesign CS5 (7.0) .fres files were replaced with bunch of folders [idrc_****].

Instead of merging .fres file into plugins binary, you'll need to copy all the idrc_**** folders into (YOURPLUGIN Resources).

That's what xcopy is used for, and that's where your problem is. Have a look on your build log

again - 'xcopy' is not recognized as an internal or external command, operable program or batch file.

Regards

Bartek

Known Participant
September 6, 2013

HI Bartek,

Sorry to ask as im new to this where can i find "YOURPLUGIN Resources"

Regards,

Learner

Bartek_Kropaczewski
Inspiring
September 6, 2013

If you open any sample project from InDesign SDK you can find it under "Pre Link Event" in the project.

Since your Visual Studio "can't find" xcopy util, (YOURPLUGIN Resources) probaly wasn't created at all.

(YOURPLUGIN Resources) should be always next to the plugins binary (check how it looks for the existing plugins i.e. C:\Program Files (x86)\Adobe\Adobe InDesign CS6\Plug-Ins\PMPack\)

Legend
September 6, 2013

Hello,

I am not really sure about this. I think you will need to set a path to the ODFRC resource compiler in your project search paths. You will find ODFRC in the SDK.

P.

Known Participant
September 6, 2013

Hi Pickory,

Could you please explain what are the paths to put in vc++ 2010.

Regards,

Learner

Legend
September 6, 2013

Hello,

From the getting started pdf.

=======

Before building on Windows, you need to alter the environment so Visual Studio knows where to find our

custom Adobe build tools, such as ODFRC:

1. Start Developer Studio 2008.

2. Bring up the Visual Studio Options dialog by clicking on the Tools menu and choosing Options.

3. In the widget on the left, expand Projects and Solutions, then click on VC++ Directories.

4. Add the path to your local copy of <SDK>\devtools\bin.

========

It talks about 2008, but it applied to my 2010 on XP. On a newer install of 2010 it has changed, you add the path to the source paths. ( I think ).

I don't have access to my win machines at the moment.

P.