<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I agree, good to put this on the mailing list.</p>
<p><br>
</p>
<p>I don't know how to stop Win7 from asking me to confirm that I want to use my administrator access rights.  Normally it's just mildly irritating, but in this case it created a more serious problem.<br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Dženan Zukić <dzenanz@gmail.com><br>
<b>Sent:</b> Saturday, 16 December 2017 3:33 p.m.<br>
<b>To:</b> Gib Bogle; Insight-users<br>
<b>Subject:</b> Re: [ITK-users] Install problem on Windows 7</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_default" style="font-family:verdana,sans-serif; font-size:small">
I usually disable the security prompts, they are too annoying. That might not matter on Win10 (I am running Win7).</div>
<div class="gmail_default" style="font-family:verdana,sans-serif; font-size:small">
<br>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif; font-size:small">
I am CC'ing the mailing list, so if someone comes across this again they can see what the solutions was.</div>
<div class="gmail_default" style="font-family:verdana,sans-serif; font-size:small">
<br>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif; font-size:small">
<div class="gmail_default">I have seen you shared xaas.tif. I will look into that next time I go to the office.</div>
<div><br>
</div>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif; font-size:small">
Regards,</div>
<div class="gmail_default" style="font-family:verdana,sans-serif; font-size:small">
Dženan</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Dec 15, 2017 at 9:25 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 just realised that I was mistaken in thinking that VS was truncating the install directory name.  It's just that the long filename was split over two lines.  Duh! Now it seems that in fact it is a permissions issue, as you suggested.  Although I have administrator
 rights, when I do things in some C: directories I am asked if I want to continue - to verify that I am using my administrator permission.  It seems that at some stage the VS install wants to set permissions on
</p>
<p>ITKConfig.cmake, for some reason.</p>
<p><br>
</p>
<p>I have now opened VS2010 by "Run as administrator", and successfully completed the install.</p>
<p><br>
</p>
<p>Thanks for your help.  By the way, did you see that I've put xaas.rar (compressed form of xaas.tif) on the Kitware data site?  For some peculiar reason some of my posts on the Discourse site are being hidden, apparently being flagged by several members as
 spam.  I have no idea what is causiing that.</p>
<p><br>
</p>
<div style="color:rgb(33,33,33)">Cheers</div>
<div style="color:rgb(33,33,33)">Gib<br>
<hr style="display:inline-block; width:98%">
<div id="m_791111812471158482divRplyFwdMsg" 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>><span class=""><br>
<b>Sent:</b> Saturday, 16 December 2017 2:18 p.m.<br>
<b>To:</b> Gib Bogle; Insight-users<br>
</span>
<div>
<div class="h5"><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_791111812471158482m_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_791111812471158482m_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_791111812471158482m_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_791111812471158482m_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_791111812471158482m_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>
</div>
</div>
</body>
</html>