[ITK-users] Install problem on Windows 7

Dženan Zukić dzenanz at gmail.com
Fri Dec 15 21:00:24 EST 2017


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?

On Fri, Dec 15, 2017 at 8:38 PM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:

> 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:
>
> 143>    file INSTALL cannot set permissions on "C:/Program
>
> 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
> CMAKE_INSTALL_PREFIX to, and is also the value shown in
> cmake_install.cmake.
>
> I don't run install outside of VS, I build INSTALL (as usual).
>
> 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.
>
> Which version of ITK did you install into C:/Program Files/ITK, and which
> version of Visual Studio did you use?
> ------------------------------
> *From:* Dženan Zukić <dzenanz at gmail.com>
> *Sent:* Saturday, 16 December 2017 2:18 p.m.
> *To:* Gib Bogle; Insight-users
>
> *Subject:* Re: [ITK-users] Install problem on Windows 7
>
> Hi Gib,
>
> 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 make install does not
> work, so you need to do sudo make install.
>
> Regards,
> Dženan
>
> On Fri, Dec 15, 2017 at 8:08 PM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
>
>> Hi Dzenan,
>>
>>
>> I just updated cmake to 3.10, and went though the build procedure again.
>> This is CMAKE_INSTALL_PREFIX:
>>
>> C:/Program Files/ITK4.12.2
>>
>> and this is the install error message:
>>
>> 143>  -- Install configuration: "Release"
>> 143>  -- Up-to-date: C:/Program Files/ITK4.12.2/lib/cmake/ITK-
>> 4.12/ITKConfig.cmake
>> 143>  CMake Error at cmake_install.cmake:36 (file):
>> 143>    file INSTALL cannot set permissions on "C:/Program
>> 143>    Files/ITK4.12.2/lib/cmake/ITK-4.12/ITKConfig.cmake"
>>
>>
>> (C:/Program Files/itk4.12.2 already exists)  I've never had problems with
>> cmake before.  This is bizarre.
>>
>>
>> What version of VS are you using?
>>
>>
>> Cheers
>>
>> Gib
>> ------------------------------
>> *From:* Dženan Zukić <dzenanz at gmail.com>
>> *Sent:* Saturday, 16 December 2017 12:52 p.m.
>> *To:* Gib Bogle
>> *Cc:* insight-users
>> *Subject:* Re: [ITK-users] Install problem on Windows 7
>>
>> Hi Gib,
>>
>> as installing into C:/Program Files/ITK prefix works for me, it must be
>> the CMake version. Fortunately, updating CMake is easy.
>>
>> Regards,
>> Dženan
>>
>> On Fri, Dec 15, 2017 at 5:15 PM, Gib Bogle <g.bogle at auckland.ac.nz>
>> wrote:
>>
>>> 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?
>>> ------------------------------
>>> *From:* Insight-users <insight-users-bounces at itk.org> on behalf of Gib
>>> Bogle <g.bogle at auckland.ac.nz>
>>> *Sent:* Saturday, 16 December 2017 10:49 a.m.
>>> *To:* insight-users
>>> *Subject:* [FORGED] Re: [ITK-users] Install problem on Windows 7
>>>
>>>
>>> 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.
>>> ------------------------------
>>> *From:* Insight-users <insight-users-bounces at itk.org> on behalf of Gib
>>> Bogle <g.bogle at auckland.ac.nz>
>>> *Sent:* Saturday, 16 December 2017 10:14 a.m.
>>> *To:* insight-users
>>> *Subject:* [FORGED] [ITK-users] Install problem on Windows 7
>>>
>>>
>>> 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.
>>>
>>>
>>> Following exactly the same procedure with cmake-gui as before, and
>>> setting CMAKE_INSTALL_PREFIX as
>>>
>>> C:/Program Files/ITK4.12.2
>>>
>>> everything goes fine (building with VS2010 Win64) until the actual
>>> install step of copying the files to the install directory.  The error
>>> message is:
>>>
>>>
>>> 135>  -- Install configuration: "Release"
>>> 135>  CMake Error at cmake_install.cmake:31 (file):
>>> 135>    file cannot create directory: C:/Program
>>> 135>    Files/ITK4.12.2/lib/cmake/ITK-4.12.  Maybe need administrative
>>> privileges.
>>>
>>>
>>> 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
>>>
>>> Is this an issue with the cmake version?  I am using cmake 3.0.2.
>>>
>>>
>>> I considered copying all the files by hand, but I'm not sure if that's
>>> really feasible.
>>>
>>> The ITK community is transitioning from this mailing list to
>>> discourse.itk.org. Please join us there!
>>> ________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://www.kitware.com/products/protraining.php
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> https://itk.org/mailman/listinfo/insight-users
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://itk.org/pipermail/insight-users/attachments/20171215/ec673e26/attachment.html>


More information about the Insight-users mailing list