Archived

This forum has been archived. Please start a new discussion on GitHub.

Slice2cs.exe exited with code 1

When I tried to build the project received below error

Error 1 error MSB3721: The command "mkdir [CplusplusVerifiedOutputDirectory] [CSharpVerifiedOutputDirectory] [JavaVerifiedOutputDirectory] [VBVerifiedOutputDirectory] [PythonVerifiedOutputDirectory] [RubyVerifiedOutputDirectory] 2>NUL
slice2cs.exe [GenericOptions][CSharpOptions] [Inputs]
" exited with code 1. E:\RIA2012 - Copy\CustomBuildRulesRIAssistant.targets 45 5 Interfaces

Attaching the target file..

OS: Win 7
Trying to build in VS2012
ICE3.2.0

Tagged:

Comments

  • benoit
    benoit Rennes, France

    It looks like a problem with your custom build rule. I recommend using the latest Ice 3.6.2 version with the Ice Builder for Visual Studio instead.

    Cheers,
    Benoit.

  • Thanks for the response Benoit. Today I installed latest ICE 3.6.2 version and also ICE builder for Visual Studio but no luck, still the issue remains same.
    also I could not see democs folder in latest ICE 3.6.2, in the other post someone written that to check whether we are able to build the demo project or not.

    Problem is with the custom build rule, I would like to know whether slice2cs.exe is expecting any inputs or something like folder permissions etc...
    Appreciate for your quick response.

  • benoit
    benoit Rennes, France

    The C# demos are now under the Ice-3.6.2-demos\csharp directory which is installed in your Documents folder. You can also get the demos by cloning our GitHub demo repository, see Using the sample programs on Windows.

    Cheers,
    Benoit.

  • Thanks for the information I have used GitHub also able to successfully build the demo folders.
    I could see one thing in the log file stating that
    'slice2cs.exe' is not recognized as an internal or external command, (TaskId:17)'

    After this I added the bin folder to PATH environment variable still the problem persists.
    I tried manually to run slice2cs.exe and it is running fine. But unable to build the code, please refer the log file for more information.

    Please find the attached log file and cmd prompt screenshot.

  • Benoit, did you got a chance to look into this.

  • bernard
    bernard Jupiter, FL

    Benoit was suggesting to replace your custom build rules with the Ice Builder, which provides its own rules to compile Slice files with slice2cs (or slice2cpp for C++ projects).

    If you were using the Ice Builder to compile your Slice files and this compilation failed, we could help.

    But if you really want to keep using your own custom build rules, we can't provide much assistance. Here it looks like slice2cs is not in the PATH when you run your own build rules. Why this happens, and how to debug your custom build rules is unrelated to Ice or the Ice Builder.

    Best regards,
    Bernard