<font size="2"><font face="verdana,sans-serif">Hi Luis,</font></font><div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">when I try to configure Spine to use "C:\Program Files\ITK", it does not accept this path. Precisely:</font></font></div>
<div><font size="2"><font face="verdana,sans-serif">0. I "installed" ITK4</font></font></div><div><font size="2"><font face="verdana,sans-serif">1. I set ITK_DIR to C:\Program Files\ITK<br></font></font>2. I click configure in CMake</div>
<div>3. Now <span class="Apple-style-span" style="font-family: verdana, sans-serif; ">ITK_DIR has value "D:/SDK/ITK4build", not "</span><span class="Apple-style-span" style="font-family: verdana, sans-serif; ">C:/Program Files/ITK</span><span class="Apple-style-span" style="font-family: verdana, sans-serif; ">"</span></div>
<div><font class="Apple-style-span" face="verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" face="verdana, sans-serif">If I click generate directly the effect is the same (ITK_DIR first gets changed to </font><span class="Apple-style-span" style="font-family: verdana, sans-serif; ">D:/SDK/ITK4build</span><span class="Apple-style-span" style="font-family: verdana, sans-serif; ">).</span></div>
<div><span class="Apple-style-span" style="font-family: verdana, sans-serif; "><br></span></div><div><span class="Apple-style-span" style="font-family: verdana, sans-serif; ">Any more suggestions?</span></div><div><span class="Apple-style-span" style="font-family: verdana, sans-serif; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: verdana, sans-serif; ">Thanks,</span></div><div><span class="Apple-style-span" style="font-family: verdana, sans-serif; ">Dženan</span></div><div><br><div class="gmail_quote">
2011/6/6 Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Dženan,<br>
<br>
If the command line is getting too long,<br>
you can do:<br>
<br>
1) build ITK<br>
2) install ITK<br>
3) build Spine versus the installed version of ITK<br>
<br>
In that way, you will have less paths in the<br>
command line.<br>
<br>
<br>
Luis<br>
<br>
<br>
------------------------------------<br>
2011/5/31 Dženan Zukić <<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi all,<br>
> I wanted to try ITK4 from git, among other things because it already<br>
> includes IJ contribution 176. It configures and builds without problems.<br>
> However when I switch from ITK 3.20 to it in my project (called "Spine"), I<br>
> start getting a new mysterious error:<br>
> 1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------<br>
> 2>------ Build started: Project: Spine, Configuration: Debug x64 ------<br>
> 2> Building NVCC (Device) object Debug/Spine_generated_LHstuff.cu.obj<br>
> 2> The command line is too long.<br>
> 2> CMake Error at CMakeFiles/Spine_generated_LHstuff.cu.obj.cmake:198<br>
> (message):<br>
> 2> Error generating D:/Repo/Spine/Debug/Spine_generated_LHstuff.cu.obj<br>
> 2><br>
> 2><br>
> 2>C:\Program Files<br>
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error<br>
> MSB6006: "cmd.exe" exited with code 1.<br>
> 3>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------<br>
> 3>Project not selected to build for this solution configuration<br>
> ========== Build: 1 succeeded, 1 failed, 1 up-to-date, 1 skipped ==========<br>
> LHstuff.cu compiles normally, both with CUDA toolkit 3.2 and the recently<br>
> installed 4.0. I switched to VS2010 since I installed CUDA 4.0 a few days<br>
> ago (when it was released). This is the only CUDA file in my project.<br>
> LHstuff.cu has the following custom build command (part of the<br>
> CMake-generated .vcxproj):<br>
> "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E make_directory<br>
> D:/Repo/Spine/$(Configuration)<br>
> if errorlevel 1 goto :VCEnd<br>
> "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -D verbose:BOOL=OFF -D<br>
> "CCBIN:PATH=$(VCInstallDir)bin" -D<br>
> build_configuration:STRING=$(ConfigurationName) -D<br>
> generated_file:STRING=D:/Repo/Spine/$(Configuration)/Spine_generated_LHstuff.cu.obj<br>
> -D<br>
> generated_cubin_file:STRING=D:/Repo/Spine/$(Configuration)/Spine_generated_LHstuff.cu.obj.cubin.txt<br>
> -P D:/Repo/Spine/CMakeFiles/Spine_generated_LHstuff.cu.obj.cmake<br>
> if errorlevel 1 goto :VCEnd<br>
> and the relevant part of "Spine_generated_LHstuff.cu.obj.cmake" (around line<br>
> 198):<br>
> # Generate the dependency file<br>
> cuda_execute_process(<br>
> "Generating dependency file: ${NVCC_generated_dependency_file}"<br>
> COMMAND "${CUDA_NVCC_EXECUTABLE}"<br>
> -M<br>
> ${CUDACC_DEFINE}<br>
> "${source_file}"<br>
> -o "${NVCC_generated_dependency_file}"<br>
> ${CCBIN}<br>
> ${nvcc_flags}<br>
> ${nvcc_host_compiler_flags}<br>
> ${depends_CUDA_NVCC_FLAGS}<br>
> -DNVCC<br>
> ${CUDA_NVCC_INCLUDE_ARGS}<br>
> )<br>
> if(CUDA_result)<br>
> message(FATAL_ERROR "Error generating ${generated_file}")<br>
> endif()<br>
> It seems that deeper directory structure of ITK4 is pushing this command in<br>
> "Spine_generated_LHstuff.cu.obj.cmake" over some limit (possibly 255<br>
> characters). Do you have any suggestions how to resolve this issue?<br>
> Regards,<br>
> Dženan<br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
</blockquote></div><br></div>