<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">How are you setting the path "C:/Program Files/ITK4.12.2"? Do you set it in the code somewhere? Can you show us the code fragment? Or do you set it in the CMake GUI?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 15, 2017 at 8:38 PM, Gib Bogle <span dir="ltr"><<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>I have administrator rights on my machine. I have installed many packages, including ITK and VTK on several machines using cmake and VS2010.  Note that this line:</p><span class="">
<p>143>    file INSTALL cannot set permissions on "C:/Program</p>
</span><p>shows that VS is trying to install in C:/Program, a directory that does not exist.  It should be trying to install in C:/Program Files/itk4.12.2, which is what I set
</p>
CMAKE_INSTALL_PREFIX to, and is also the value shown in cmake_install.cmake.<br>
<br>
I don't run install outside of VS, I build INSTALL (as usual).<br>
<br>
This is completely the standard procedure for packages like ITK, and I have done it many times with this compiler.  The only thing that has changed is the ITK package.<br>
<br>
Which version of ITK did you install into C:/Program Files/ITK, and which version of Visual Studio did you use?<br>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div id="m_-6256944088390254324divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Dženan Zukić <<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>><br>
<b>Sent:</b> Saturday, 16 December 2017 2:18 p.m.<br>
<b>To:</b> Gib Bogle; Insight-users<div><div class="h5"><br>
<b>Subject:</b> Re: [ITK-users] Install problem on Windows 7</div></div></font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
Hi Gib,</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
<br>
</div>
<div class="gmail_default" style="font-size:small"><span style="font-family:verdana,sans-serif">are you running Visual Studio (or whatever is your make tool, e.g. ninja) as administrator? I suppose writing in Program Files requires administrative privileges.
 The Linux equivalent is </span><font face="monospace, monospace">make install</font><font face="verdana, sans-serif"> does not work, so you need to do
</font><font face="monospace, monospace">sudo make install</font><font face="verdana, sans-serif">.</font></div>
<div class="gmail_default" style="font-size:small"><font face="verdana, sans-serif"><br>
</font></div>
<div class="gmail_default" style="font-size:small"><font face="verdana, sans-serif">Regards,</font></div>
<div class="gmail_default" style="font-size:small"><font face="verdana, sans-serif">Dženan</font></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Dec 15, 2017 at 8:08 PM, Gib Bogle <span dir="ltr">
<<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Dzenan,</p>
<p><br>
</p>
<p>I just updated cmake to 3.10, and went though the build procedure again.  This is CMAKE_INSTALL_PREFIX:</p>
<p>C:/Program Files/ITK4.12.2</p>
<p>and this is the install error message:</p>
<p>143>  -- Install configuration: "Release"<br>
143>  -- Up-to-date: C:/Program Files/ITK4.12.2/lib/cmake/ITK-<wbr>4.12/ITKConfig.cmake<br>
143>  CMake Error at cmake_install.cmake:36 (file):<br>
143>    file INSTALL cannot set permissions on "C:/Program<br>
143>    Files/ITK4.12.2/lib/cmake/ITK-<wbr>4.12/ITKConfig.cmake"<br>
</p>
<p><br>
</p>
<p>(C:/Program Files/itk4.12.2 already exists)  I've never had problems with cmake before.  This is bizarre.</p>
<p><br>
</p>
<p>What version of VS are you using?<br>
</p>
<p><br>
</p>
<p>Cheers</p>
<p>Gib<br>
</p>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div id="m_-6256944088390254324m_4066840439723513310m_-4632485496490415076divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Dženan Zukić <<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>><br>
<b>Sent:</b> Saturday, 16 December 2017 12:52 p.m.<br>
<b>To:</b> Gib Bogle<br>
<b>Cc:</b> insight-users<br>
<b>Subject:</b> Re: [ITK-users] Install problem on Windows 7</font>
<div> </div>
</div>
<div>
<div class="m_-6256944088390254324m_4066840439723513310h5">
<div>
<div dir="ltr">
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
Hi Gib,</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
<br>
</div>
<div class="gmail_default" style="font-size:small"><span style="font-family:verdana,sans-serif">as installing into </span><font face="monospace, monospace">C:/Program Files/ITK</font><font face="verdana, sans-serif"> prefix works for me, it must be the CMake
 version. Fortunately, updating CMake is easy.</font></div>
<div class="gmail_default" style="font-size:small"><font face="verdana, sans-serif"><br>
</font></div>
<div class="gmail_default" style="font-size:small"><font face="verdana, sans-serif">Regards,</font></div>
<div class="gmail_default" style="font-size:small"><font face="verdana, sans-serif">Dženan</font></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Dec 15, 2017 at 5:15 PM, Gib Bogle <span dir="ltr">
<<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>I spoke too soon.  I saw the install proceeding successfully, and leapt to the conclusion that it was putting the files in the right place (I'd got the mistaken idea that C:/Program Files/ITK4.12.2 was the default install directory, by misinterpreting cmake_install.cmake).
  So the directories - bin, include, lib, share - were all created under D:/.  No big deal to copy them to C:/Program Files/ITK4.12.2, but this is clearly an issue.  Has anybody else encountered this?<br>
</p>
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<hr style="display:inline-block;width:98%">
<div id="m_-6256944088390254324m_4066840439723513310m_-4632485496490415076m_-520215195336711280divRplyFwdMsg" dir="ltr">
<font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><span><b>From:</b> Insight-users <<a href="mailto:insight-users-bounces@itk.org" target="_blank">insight-users-bounces@itk.org</a><wbr>> on behalf of Gib Bogle <<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>><br>
</span><b>Sent:</b> Saturday, 16 December 2017 10:49 a.m.<br>
<b>To:</b> insight-users<br>
<b>Subject:</b> [FORGED] Re: [ITK-users] Install problem on Windows 7</font>
<div> </div>
</div>
<div>
<div class="m_-6256944088390254324m_4066840439723513310m_-4632485496490415076h5">
<div>
<p>If I leave the CMAKE_INSTALL_PREFIX blank, it installs correctly (in the same place I specified).  It must be a cmake bug - no problem once you know how to avoid it.<br>
</p>
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<hr style="display:inline-block;width:98%">
<div id="m_-6256944088390254324m_4066840439723513310m_-4632485496490415076m_-520215195336711280divRplyFwdMsg" dir="ltr">
<font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Insight-users <<a href="mailto:insight-users-bounces@itk.org" target="_blank">insight-users-bounces@itk.org</a><wbr>> on behalf of Gib Bogle <<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>><br>
<b>Sent:</b> Saturday, 16 December 2017 10:14 a.m.<br>
<b>To:</b> insight-users<br>
<b>Subject:</b> [FORGED] [ITK-users] Install problem on Windows 7</font>
<div> </div>
</div>
<div>
<p>I've been using ITK4.8.0, which I built two years ago, so I decided to build 4.12.2, in case something has been fixed since then.</p>
<p><br>
</p>
<p>Following exactly the same procedure with cmake-gui as before, and setting CMAKE_INSTALL_PREFIX as</p>
<p>C:/Program Files/ITK4.12.2</p>
<p>everything goes fine (building with VS2010 Win64) until the actual install step of copying the files to the install directory.  The error message is:</p>
<p><br>
</p>
<p>135>  -- Install configuration: "Release"<br>
135>  CMake Error at cmake_install.cmake:31 (file):<br>
135>    file cannot create directory: C:/Program<br>
135>    Files/ITK4.12.2/lib/cmake/ITK-<wbr>4.12.  Maybe need administrative privileges.</p>
<p><br>
</p>
<p>Clearly the CMAKE_INSTALL_PREFIX is not being treated correctly, and the space is terminating the directory name.  I tried putting quotes around it, but that produced a similar but even more strange result - cmake had inserted a ';', making the directory
 C:/Program;Files/ITK4.12.2<br>
</p>
<p>Is this an issue with the cmake version?  I am using cmake 3.0.2.</p>
<p><br>
</p>
<p>I considered copying all the files by hand, but I'm not sure if that's really feasible.<br>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
The ITK community is transitioning from this mailing list to <a href="http://discourse.itk.org" rel="noreferrer" target="_blank">
discourse.itk.org</a>. Please join us there!<br>
______________________________<wbr>__<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/product<wbr>s/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FA<wbr>Q</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://itk.org/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">https://itk.org/mailman/listin<wbr>fo/insight-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>