Short path (D:/) or not, the following error will always be there:<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial; ">NMAKE : fatal error U1095: expanded command line 'echo      && "C:\Program File<br>

 (x86)\CMake 2.8\bin\cmake.exe" -DBUILD_TESTING:BOOL=ON [...] d:/Developer/Sources/CTK' too long</span><br><br></div><div>Because what takes space (more than 256 characters) is list of all the options and libraries names that are given. So you need to use response files. Does anyone know how to activate them? Aren't they supposed to be activated by default with nmake ?</div>

<div><br></div><div>Julien.</div><div><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 5:08 PM, Dean Inglis <span dir="ltr"><<a href="mailto:dean.inglis@camris.ca">dean.inglis@camris.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">







<div bgcolor="#ffffff">
<div><font size="2" face="Arial">Hi Jc,</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Yes, this is before trying to build any of the 
CTK_APPs too.  I even tried building</font></div>
<div><font size="2" face="Arial">with ctk pulling its own copy of vtk and the same 
thing occurs.  I turned off the vtk</font></div>
<div><font size="2" face="Arial">widgets and tried building some of the apps, and 
the error also occurs.  Can anyone</font></div>
<div><font size="2" face="Arial">else confirm this with VS 2010 command 
line tools using nmake?</font></div>
<div><font size="2" face="Arial"></font> </div><font color="#888888">
<div><font size="2" face="Arial">Dean</font></div>
</font><blockquote style="border-left:#000000 2px solid;padding-left:5px;padding-right:0px;margin-left:5px;margin-right:0px"><div class="im">
  <div style="font:10pt arial">----- Original Message ----- </div>
  <div style="font:10pt arial;background:#e4e4e4"><b>From:</b> 
  <a title="jchris.fillionr@kitware.com" href="mailto:jchris.fillionr@kitware.com" target="_blank">Jean-Christophe Fillion-Robin</a> 
  </div>
  <div style="font:10pt arial"><b>To:</b> <a title="dean.inglis@camris.ca" href="mailto:dean.inglis@camris.ca" target="_blank">Dean Inglis</a> </div>
  <div style="font:10pt arial"><b>Cc:</b> <a title="Ctk-developers@commontk.org" href="mailto:Ctk-developers@commontk.org" target="_blank">Ctk-developers@commontk.org</a> 
  </div>
  </div><div><div></div><div class="h5"><div style="font:10pt arial"><b>Sent:</b> Tuesday, February 15, 2011 4:42 
  PM</div>
  <div style="font:10pt arial"><b>Subject:</b> Re: [Ctk-developers] ctk VS2010 
  nmake build error</div>
  <div><br></div>Hi Dean, <br><br>If I understand properly, after you enable 
  VisualizationVTKCore library, the error '<font size="2" face="Arial">U1095' 
  described earlier starts to occur ? <br><br>Thks<br>Jc<br></font><br>
  <div class="gmail_quote">On Tue, Feb 15, 2011 at 2:51 PM, Dean Inglis <span dir="ltr"><<a href="mailto:dean.inglis@camris.ca" target="_blank">dean.inglis@camris.ca</a>></span> 
  wrote:<br>
  <blockquote style="border-left:rgb(204,204,204) 1px solid;margin:0pt 0pt 0pt 0.8ex;padding-left:1ex" class="gmail_quote">
    <div bgcolor="#ffffff">
    <div><font size="2" face="Arial">Hi Jc,</font></div>
    <div><font size="2" face="Arial"></font> </div>
    <div><font size="2" face="Arial">I tried configuring the ctk build in D:/ but 
    nothing gets built:</font></div>
    <div><font size="2" face="Arial"></font> </div>
    <div><font size="2" face="Arial">D:\>cmake d:/Developer/Sources/CTK -G"NMake 
    Makefiles"<br>-- Generated: D://DGraphInput-alldep.txt<br>-- Generated: 
    D://DGraphInput-alldep-withext.txt<br>-- Generated: 
    D://DGraphInput.txt<br>-- Generated: D://Project.xml<br>-- Configuring 
    done<br>-- Generating done<br>-- Build files have been written to: 
    D:/</font></div>
    <div><font size="2" face="Arial"></font> </div>
    <div><font size="2" face="Arial">D:\>nmake</font></div>
    <div><font size="2" face="Arial"></font> </div>
    <div><font size="2" face="Arial">Microsoft (R) Program Maintenance Utility 
    Version 10.00.30319.01<br>Copyright (C) Microsoft Corporation.  All 
    rights reserved.</font></div>
    <div><font size="2" face="Arial"></font> </div>
    <div><font size="2" face="Arial">Built target Log4Qt<br>Built target 
    CTKData<br>Built target DCMTK<br>Built target CTK-Utilities<br>Built target 
    CTK-Configure<br>Built target CTK-build</font></div>
    <div><font size="2" face="Arial"></font> </div>
    <div><font size="2" face="Arial">so I tried building in D:/ctk incrementally 
    turning on different modules.  I got</font></div>
    <div><font size="2" face="Arial">as far as </font></div>
    <div><font size="2" face="Arial">//Enable Visualization/VTK/Core 
    Library.<br>CTK_LIB_Visualization/VTK/Core:BOOL=ON</font></div>
    <div> </div>
    <div><font size="2" face="Arial">//Enable Visualization/VTK/Widgets Library.
    <div><br>CTK_LIB_Visualization/VTK/Widgets:BOOL=ON</div></font> </div>
    <div><font size="2" face="Arial"></font> </div>
    <div><font size="2" face="Arial">and thats when the nmake error occurs.  Im 
    linking to an external vtk build so</font></div>
    <div><font size="2" face="Arial">that I dont have to download and wait for it to 
    build within ctk. So i specify</font></div><font size="2" face="Arial">
    <div><br>VTK_DIR:PATH=D:/Developer/VS10/x86/SHARED/Install/lib/vtk-5.7</div>
    <div> </div>
    <div>in my ctk root cmakecache.txt</div>
    <div> </div><font color="#888888">
    <div>Dean</div></font></font></div>
    <div>
    <div></div>
    <div>
    <blockquote style="border-left:rgb(0,0,0) 2px solid;padding-left:5px;padding-right:0px;margin-left:5px;margin-right:0px">
      <div style="font:10pt arial">----- Original Message ----- </div>
      <div style="font:10pt arial;background:rgb(228,228,228)"><b>From:</b> 
      <a title="jchris.fillionr@kitware.com" href="mailto:jchris.fillionr@kitware.com" target="_blank">Jean-Christophe 
      Fillion-Robin</a> </div>
      <div style="font:10pt arial"><b>To:</b> <a title="dean.inglis@camris.ca" href="mailto:dean.inglis@camris.ca" target="_blank">Dean Inglis</a> </div>
      <div style="font:10pt arial"><b>Cc:</b> <a title="Ctk-developers@commontk.org" href="mailto:Ctk-developers@commontk.org" target="_blank">Ctk-developers@commontk.org</a> </div>
      <div style="font:10pt arial"><b>Sent:</b> Tuesday, February 15, 2011 
      11:24 AM</div>
      <div style="font:10pt arial"><b>Subject:</b> Re: [Ctk-developers] ctk 
      VS2010 nmake build error</div>
      <div><br></div><br>Could you try to build CTK from D:/ itself, seems the 
      problem come from the path length limitation on 
      windows.<br><br>Thks<br>Jc<br><br>
      <div class="gmail_quote">On Tue, Feb 15, 2011 at 11:21 AM, Dean Inglis <span dir="ltr"><<a href="mailto:dean.inglis@camris.ca" target="_blank">dean.inglis@camris.ca</a>></span> wrote:<br>
      <blockquote style="border-left:rgb(204,204,204) 1px solid;margin:0pt 0pt 0pt 0.8ex;padding-left:1ex" class="gmail_quote">
        <div bgcolor="#ffffff">
        <div><font size="2" face="Arial">Hi all,</font></div>
        <div><font size="2" face="Arial">Ive been trying to keep up with all the 
        development and compile ctk to see if it</font></div>
        <div><font size="2" face="Arial">can be done with my toolchain.  Im 
        using VS 2010 nmake, 32bit, on Win7, shared, debug </font></div>
        <div><font size="2" face="Arial">configured with </font><font size="2" face="Arial">cmake 2.8.3.  NMake is stopping with the following 
        error: </font></div>
        <div><font size="2" face="Arial">Dean</font></div>
        <div><font size="2" face="Arial"></font> </div>
        <div><font size="2" face="Arial">[ 24%] Completed 'DCMTK'<br>[ 38%] Built 
        target DCMTK<br>[ 50%] Built target QtSOAP<br>[ 63%] Built target 
        VTK<br>[ 63%] No configure step for 'CTK-Utilities'<br>[ 63%] No build 
        step for 'CTK-Utilities'<br>[ 63%] No install step for 
        'CTK-Utilities'<br>[ 63%] Completed 'CTK-Utilities'<br>[ 75%] Built 
        target CTK-Utilities<br>[ 75%] Performing configure step for 
        'CTK-Configure'<br>NMAKE : fatal error U1095: expanded command line 
        'echo      && "C:\Program 
        File<br> (x86)\CMake 2.8\bin\cmake.exe" -DBUILD_TESTING:BOOL=ON 
        -DCTK_USE_KWSTYLE:BOOL=<br>FF -DWITH_COVERAGE:BOOL=OFF 
        -DDOCUMENTATION_TARGET_IN_ALL:BOOL=OFF -DCTEST_USE_<br>AUNCHERS:BOOL= 
        -DCTK_WRAP_PYTHONQT_FULL:BOOL= -DCTK_WRAP_PYTHONQT_LIGHT:BOOL= 
        -<br>CTK_LIB_Core:BOOL=ON -DCTK_LIB_PluginFramework:BOOL=ON 
        -DCTK_LIB_Widgets:BOOL=O<br> -DCTK_LIB_DICOM/Core:BOOL=ON 
        -DCTK_LIB_DICOM/Widgets:BOOL=ON 
        -DCTK_LIB_Scripti<br>g/Python/Core:BOOL=OFF 
        -DCTK_LIB_Scripting/Python/Widgets:BOOL=OFF 
        -DCTK_LIB_Vi<br>ualization/VTK/Core:BOOL=ON 
        -DCTK_LIB_Visualization/VTK/Widgets:BOOL=ON 
        -DCTK_P<br>UGIN_org.commontk.eventbus:BOOL=OFF 
        -DCTK_PLUGIN_org.commontk.configadmin:BOOL=<br>N 
        -DCTK_PLUGIN_org.commontk.dah.app:BOOL=ON 
        -DCTK_PLUGIN_org.commontk.dah.core:<br>OOL=ON 
        -DCTK_PLUGIN_org.commontk.dah.exampleapp:BOOL=ON 
        -DCTK_PLUGIN_org.common<br>k.dah.examplehost:BOOL=ON 
        -DCTK_PLUGIN_org.commontk.dah.host:BOOL=ON 
        -DCTK_PLUG<br>N_org.commontk.eventadmin:BOOL=ON 
        -DCTK_PLUGIN_org.commontk.log:BOOL=ON 
        -DCTK_P<br>UGIN_org.commontk.log4qt:BOOL=ON 
        -DCTK_PLUGIN_org.commontk.metatype:BOOL=ON 
        -DC<br>K_PLUGIN_org.commontk.plugingenerator.core:BOOL=ON -<a href="http://DCTK_PLUGIN_org.commontk.pl" target="_blank">DCTK_PLUGIN_org.commontk.pl</a><br>gingenerator.ui:BOOL=ON 
        -DCTK_PLUGIN_org.commontk.qtmobility.service:BOOL=OFF 
        -<br>CTK_APP_ctkCLIPluginExplorer:BOOL=OFF -DCTK_APP_ctkDICOM:BOOL=OFF 
        -DCTK_APP_ctk<br>ICOMIndexer:BOOL=OFF -DCTK_APP_ctkDICOMDemoSCU:BOOL=OFF 
        -DCTK_APP_ctkDICOMQuery<br>BOOL=OFF -DCTK_APP_ctkDICOMRetrieve:BOOL=OFF 
        -DCTK_APP_ctkDICOMQueryRetrieve:BO<br>L=OFF 
        -DCTK_APP_ctkExampleHost:BOOL=OFF 
        -DCTK_APP_ctkExampleHostedApp:BOOL=OFF<br>DCTK_APP_ctkPluginBrowser:BOOL=OFF 
        -DCTK_APP_ctkPluginGenerator:BOOL=OFF 
        -DCTK_<br>PP_ctkDICOMObjectViewer:BOOL=OFF 
        -DCTK_APP_ctkSimplePythonShell:BOOL=OFF 
        -DCTK_<br>IB_Scripting/Python/Core_PYTHONQT_USE_VTK:BOOL=OFF 
        -DCTK_LIB_Scripting/Python/C<br>re_PYTHONQT_WRAP_QTCORE:BOOL=OFF 
        -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_<br>TGUI:BOOL=OFF 
        -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTNETWORK:BOOL=OFF<br>DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTOPENGL:BOOL=OFF 
        -DCTK_LIB_Script<br>ng/Python/Core_PYTHONQT_WRAP_QTSQL:BOOL=OFF 
        -DCTK_LIB_Scripting/Python/Core_PYT<br>ONQT_WRAP_QTSVG:BOOL=OFF 
        -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTUITOOL<br>:BOOL=OFF 
        -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTWEBKIT:BOOL=OFF 
        -DCTK<br>LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTXML:BOOL=OFF 
        -DCTK_LIB_Scripting/Pyth<br>n/Core_PYTHONQT_WRAP_QTXMLPATTERNS:BOOL=OFF 
        -DCTK_SUPERBUILD:BOOL=OFF 
        -DDOCUMEN<br>ATION_ARCHIVES_OUTPUT_DIRECTORY:PATH=D:/Developer/VS10/x86/SHARED/ctk 
        "-DDOXYGE<br>_EXECUTABLE:FILEPATH=C:/Program Files 
        (x86)/doxygen/bin/doxygen.exe" 
        -DCTK_SUPE<br>BUILD_BINARY_DIR:PATH=D:/Developer/VS10/x86/SHARED/ctk 
        -DCTK_CMAKE_ARCHIVE_OUTP<br>T_DIRECTORY:PATH=D:/Developer/VS10/x86/SHARED/ctk/CTK-build/bin 
        -DCTK_CMAKE_LIB<br>ARY_OUTPUT_DIRECTORY:PATH=D:/Developer/VS10/x86/SHARED/ctk/CTK-build/bin 
        -DCTK_<br>MAKE_RUNTIME_OUTPUT_DIRECTORY:PATH=D:/Developer/VS10/x86/SHARED/ctk/CTK-build/b<br>n 
        -DCTK_INSTALL_BIN_DIR:STRING=bin 
        -DCTK_INSTALL_LIB_DIR:STRING=lib/ctk-0.1 
        -DC<br>K_INSTALL_INCLUDE_DIR:STRING=include/ctk-0.1 
        -DCTK_INSTALL_DOC_DIR:STRING=doc 
        -<br>CMAKE_INSTALL_PREFIX:PATH=D:/Developer/VS10/x86/SHARED/ctk/CMakeExternals/Insta<br>l 
        -DCMAKE_BUILD_TYPE:STRING=Debug "-DCTK_CXX_FLAGS:STRING= /DWIN32 
        /D_WINDOWS /<br>3 /Zm1000 /EHsc /GR    /wd4290" 
        "-DCTK_C_FLAGS:STRING=/DWIN32 /D_WINDOWS /W3 /Z<br>1000  " 
        -DCTK_EXTERNAL_LIBRARY_DIRS:STRING= 
        -DQT_QMAKE_EXECUTABLE:FILEPATH=D:/D<br>veloper/VS10/x86/SHARED/qt-4.7.1/bin/qmake.exe 
        -DCTKData_DIR:PATH=D:/Developer/<br>S10/x86/SHARED/ctk/CMakeExternals/Source/CTKData 
        -DZMQ_DIR:PATH= -DOpenIGTLink_<br>IR:PATH= 
        -DCTK_KWSTYLE_EXECUTABLE:FILEPATH= 
        -DDCMTK_DIR:PATH=D:/Developer/VS10/<br>86/SHARED/ctk/CMakeExternals/Install 
        -DVTK_DIR:PATH=D:/Developer/VS10/x86/SHARE<br>/Install/lib/vtk-5.7 
        -DPYTHON_EXECUTABLE:FILEPATH= -DPYTHON_INCLUDE_DIR:PATH= 
        -<br>PYTHON_LIBRARY:FILEPATH= -DPYTHONQT_INSTALL_DIR:PATH= 
        -DPYTHONQTGENERATOR_EXECU<br>ABLE:FILEPATH= 
        -DLog4Qt_DIR:PATH=D:/Developer/VS10/x86/SHARED/ctk/CMakeExternal<br>/Install 
        -DQtSOAP_DIR:PATH=D:/Developer/VS10/x86/SHARED/ctk/Utilities/QtSOAP/ 
        -<br>QtMobility_DIR:PATH= 
        -DLog4Qt_LIBRARIES_INCLUDE_DIRS:STRING=Log4Qt_INCLUDE_DIR<br>DLog4Qt_LIBRARIES_LIBRARY_DIRS:STRING= 
        -DLog4Qt_LIBRARIES_FIND_PACKAGE_CMD:STRI<br>G=Log4Qt 
        -DVTK_LIBRARIES_INCLUDE_DIRS:STRING=VTK_INCLUDE_DIRS 
        -DVTK_LIBRARIES_L<br>BRARY_DIRS:STRING=VTK_LIBRARY_DIRS 
        -DVTK_LIBRARIES_FIND_PACKAGE_CMD:STRING=VTK<br>DDCMTK_LIBRARIES_INCLUDE_DIRS:STRING=DCMTK_INCLUDE_DIR 
        -DDCMTK_LIBRARIES_LIBRAR<br>_DIRS:STRING= 
        -DDCMTK_LIBRARIES_FIND_PACKAGE_CMD:STRING=DCMTK 
        -DQTSOAP_LIBRARY_<br>NCLUDE_DIRS:STRING=QTSOAP_INCLUDE_DIR 
        -DQTSOAP_LIBRARY_LIBRARY_DIRS:STRING= 
        -DQ<br>SOAP_LIBRARY_FIND_PACKAGE_CMD:STRING=QtSOAP "-GNMake Makefiles" 
        d:/Developer/So<br>rces/CTK' too long<br>Stop.<br>NMAKE : fatal error 
        U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 
        10.<br>\VC\BIN\nmake.exe"' : return code '0x2'<br>Stop.<br>NMAKE : fatal 
        error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 
        10.<br>\VC\BIN\nmake.exe"' : return code 
        '0x2'<br>Stop.</font></div></div><br>_______________________________________________<br>Ctk-developers 
        mailing list<br><a href="mailto:Ctk-developers@commontk.org" target="_blank">Ctk-developers@commontk.org</a><br><a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>

<br></blockquote></div><br><br clear="all"><br>-- <br>Direct: 1-518-836-2174<br>Ext: 
    304<br></blockquote></div></div></blockquote></div><br><br clear="all"><br>-- 
  <br>Direct: 1-518-836-2174<br>Ext: 304<br></div></div></blockquote></div>
<br>_______________________________________________<br>
Ctk-developers mailing list<br>
<a href="mailto:Ctk-developers@commontk.org">Ctk-developers@commontk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
<br></blockquote></div><br></div>