# cmake/MSVC build error (Windows XP)

**URL:** <https://www.ruby-forum.com/t/cmake-msvc-build-error-windows-xp/213586>\
**Category:** GNU Radio\
**Created:** [November 6, 2011, 3:16pm UTC](https://www.ruby-forum.com/t/cmake-msvc-build-error-windows-xp/213586 "2011-11-06T15:16:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [November 6, 2011, 3:16pm UTC](https://www.ruby-forum.com/t/cmake-msvc-build-error-windows-xp/213586/1 "2011-11-06T15:16:54Z")

</div>

While attempting to build GNU Radio (from git/master) on Windows XP with  
cmake and Visual C++ 2010 Express, I am getting:

4\>------ Build started: Project: gengen\_generated\_index, Configuration:  
Release Win32 ------  
[…]  
4\> Generating gengen/gengen\_generated.i  
4\>  
4\> The input line is too long.  
4\>  
C:\home\Don\gnuradio\build-msvc\gnuradio-core\src\lib\>C:\Python27\python.exe  
-B  
C:/home/Don/gnuradio/build-msvc/gnuradio-core/src/lib/gengen/gengen\_generated.py  
C:/home/Don/gnuradio/build-msvc/gnuradio-core/src/lib/gengen/gengen\_generated.i  
C:/home/Don/gnuradio/build-msvc/gnuradio-core/src/lib/gengen/gr\_vector\_source\_b.i  
[… most of single long line removed …]  
C:/home/Don/gnuradio/build-msvc/gnuradio-core/src/lib/gengen/gr\_peak  
4\>C:\Program  
Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5):  
error  
MSB6006: “cmd.exe” exited with code 255.

This line appears in the file gengen\_generated\_index.vcxproj. I suppose  
it  
was put there by cmake. Any ideas on how to fix or work around this? I  
can  
shorten the path names by building in another directory, but that seems  
like  
an unappealing and temporary workaround at best.

Thanks,

– Don W.

---

<div class="post-metadata">

**Author:** ![walkins](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/96bed5/32.png) [@walkins](https://www.ruby-forum.com/u/walkins)\
**Post date:** [November 6, 2011, 4:40pm UTC](https://www.ruby-forum.com/t/cmake-msvc-build-error-windows-xp/213586/2 "2011-11-06T16:40:20Z")

</div>

On 11/06/2011 06:16 AM, Don W. wrote:

> C:\home\Don\gnuradio\build-msvc\gnuradio-core\src\lib\>C:\Python27\python.exe  
> This line appears in the file gengen\_generated\_index.vcxproj. I suppose  
> it was put there by cmake. Any ideas on how to fix or work around  
> this? I can shorten the path names by building in another directory,  
> but that seems like an unappealing and temporary workaround at best.

Can you pull master and try again? I actually way of generating it and  
merged the work. This was the make -j8 thread.

-Josh

---

<div class="post-metadata">

**Author:** ![walkins](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/96bed5/32.png) [@walkins](https://www.ruby-forum.com/u/walkins)\
**Post date:** [November 6, 2011, 5:28pm UTC](https://www.ruby-forum.com/t/cmake-msvc-build-error-windows-xp/213586/3 "2011-11-06T17:28:01Z")

</div>

----- Original Message -----  
From: “Josh B.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Sunday, November 06, 2011 10:39 AM  
Subject: Re: [Discuss-gnuradio] cmake/MSVC build error (Windows XP)

> > 4\>  
> > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5):  
> > error MSB6006: “cmd.exe” exited with code 255.
> > 
> > This line appears in the file gengen\_generated\_index.vcxproj. I suppose  
> > it was put there by cmake. Any ideas on how to fix or work around  
> > this? I can shorten the path names by building in another directory,  
> > but that seems like an unappealing and temporary workaround at best.
> 
> Can you pull master and try again? I actually way of generating it and  
> merged the work. This was the make -j8 thread.

That seems to fix it. Thanks (again!) for the amazing support.

– Don W.
