[ITK] Win64 SimpleITK build error: NMAKE : fatal error U1095 (command line too long)
Bradley Lowekamp
blowekamp at mail.nih.gov
Thu Aug 13 11:53:14 EDT 2015
Hello,
What version of CMake and Visual Studio are you using?
What is your build and source path?
Also know which Super build target that's causing the problem would be helpful too.
Try have having your build and your source in a really short paths like "C:/b/SimpleITK" and "C:/b/bld".
Brad
On Aug 13, 2015, at 11:22 AM, Philip Semanchuk <ond at semanchuk.com> wrote:
> Hi,
> I’m new to CMake and SimpleITK, and I’m trying to use the former to build a 64-bit version of the latter on Windows 7 with Microsoft Visual C++ for Python 2.7. I’m using the “SuperBuild” instructions from here:
> http://www.itk.org/Wiki/SimpleITK/GettingStarted#Build_It_Yourself
>
> I’m running into a problem where a build.make file creates a shell command that’s almost 5400 characters long. This leads to:
> NMAKE : fatal error U1095: expanded command line [blah blah blah x 5400] too long
>
> The root cause of the problem is that all of the CMake config variables are being passed on the command line (e.g,. -DCMAKE_BUILD_TYPE:STRING=RELEASE -DCMAKE_MAKE_PROGRAM:STRING=nmake etc.).
>
> Since I’m new to CMake and SimpleITK, I’m a little lost as to where I should look to resolve this problem, but my hunch is that I should start with SimpleITK. If I’m in the wrong place, would someone be kind enough to guide me elsewhere?
>
> I can post my build config and steps if that would help.
>
> Thanks
> Philip
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
More information about the Community
mailing list