Jump to content

Strange Error when trying to build


Recommended Posts

I get a strange error when trying to build the latest source for Paint.net.

Can anyone give me a clue what this is about? Double clicking this doesn't take to an error line in the source code. If this question is lame I apologize in advance. I'm a fairly new convert from Dephi to Visual Studio.

The error:

Error 1 The command "@rem Embed manifest

call "D:\My Documents\Visual Studio 2005\Projects\Paint.net\Manifests\embedManifest.bat" "D:\My Documents\Visual Studio 2005\Projects\Paint.net\SetupNgen\bin\Release\SetupNgen.exe" "D:\My Documents\Visual Studio 2005\Projects\Paint.net\Manifests\asInvoker.xml"

call "D:\My Documents\Visual Studio 2005\Projects\Paint.net\Manifests\embedManifest.bat" "D:\My Documents\Visual Studio 2005\Projects\Paint.net\SetupNgen\obj\Release\SetupNgen.exe" "D:\My Documents\Visual Studio 2005\Projects\Paint.net\Manifests\requireAdministrator.xml"

@rem Sign

rem call "D:\My Documents\Visual Studio 2005\Projects\Paint.net\signfile.bat" "D:\My Documents\Visual Studio 2005\Projects\Paint.net\SetupNgen\obj\Release\SetupNgen.exe"

rem call "D:\My Documents\Visual Studio 2005\Projects\Paint.net\signfile.bat" "D:\My Documents\Visual Studio 2005\Projects\Paint.net\SetupNgen\bin\Release\SetupNgen.exe"

" exited with code 1. SetupNgen

Link to comment
Share on other sites

Thanks for your suggestion. After adding mt.exe to the PATH environment variable I also got this error several times.

(with file mt.exe)

Error 1 Unexpected/Unknown option "Documents\Visual". Use the /? option for help on usage and samples. D:\My Documents\Visual Studio 2005\Projects\paintdotnet\src\mt.exe paintdotnet

The fragments of the path gave me a clue. I moved the whole project folder to the root directory of the drive and the build succeeded. mt.exe obviously has a problem with paths with spaces in them.

Link to comment
Share on other sites

I just haven't tried building from a location that has spaces in it. When there are problems in this area it's usually from not quote-escaping pathnames, especially when expanding environment or build variables. For example, if part of my build script looks like this,

some_command %BUILDPATH%\%BUILDCONFIG%\blah.exe

If BUILDPATH or BUILDCONFIG expand out to have spaces in them, then 'some_command' will end up with what it believes are multiple command line parameters. It's not that we don't "support" paths with spaces in them, we just don't really use them ourselves and it doesn't cause us trouble.

As for mt.exe not being in the readme.txt, that's just a simple oversight.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...