[Insight-users] Fwd: Fwd: Building version 3.6 : Windows Vista & UAC

Luis Ibanez luis.ibanez at kitware.com
Fri May 2 13:22:45 EDT 2008



Hi Raja,


We looked closer at this problem with Dave Cole,
and found the following:


    We can reproduce the error that you posted,
    by doing the following:

    a) Login as a user with Administrator
       privileges.

    b) Having User Access Control (UAC) enabled

    c) Running CMake

    d) When clicking in "Configure", and after
       selecting the compiler we get the same
       error messages that you posted.



Therefore, we suspect that you are currently
logged-in using an account with Administration
privileges and that your Windows Vista UAC is
enabled.



We also find that there are three possible
ways to avoid this problem.


A) You could change your Windows Vista user to
    be a "normal" user, instead of a user with
    Administration privileges.

    We have verified that in that case, you can
    run CMake and Visual Studio without problem.
    (e.g. no question about "Cancel or Allow")


or


B) If you want to stay as a user with
    Administration privileges, you can right
    click on the CMake icon and select:

           "Run as Administrator"

    in which case, the same permissions get
    propagated to Visual Studio when it is
    called from CMake.


or


C) You could stay as a user with Administration
    privileges, then you will have to disable the
    User Access Control in order to make possible
    for CMake to invoke Visual Studio during the
    configuration process.



----


Option (A) is probably the "right" thing to do.


Option (B) can let you go around for today,
            but after a while you probably will
            get tired of the right-clicking


Option (C) is quite unsafe, and we discourage
            you from following that path.
            It will be the equivalent of logging
            as "root" in a Linux system.

---



Please try option (A) and let us know
if you find any problems,


     Thanks



         Luis


------------------
Luis Ibanez wrote:
> 
> Hi Raja,
> 
> Thanks for the additional information.
> 
> 
> The screenshot with the error message was quite useful.
> 
> It seems that CMake is not finding the executables:
> 
>            cmTryCompileExec.exe
> 
> Given that you are running Windows Vista, it is likely
> that you may be having problems with the User Account
> Control (UAC).
> 
> In Windows Vista, you must be "Administrator" in
> order to run Visual Studio.
> 
> Can you please try disabling UAC, and running the
> CMake configuration again ?
> 
> 
> Please let us know what you find,
> 
> 
> 
>    Thanks,
> 
> 
>        Luis
> 
> 
> ---------------------
> Raja' S. Alomari wrote:
> 
>> I did not mention that I have the Windows vista Bussiness edition. 
>> However, i can reformat the machine and install any other "windows." I 
>> need to get it working.
>>  
>>  
>> Thanks,
>> Raja'
>>
>>
>> Hi Luis,
>> 1- I downloaded the zip file (latest version from website).
>> 2- CMake Version 2.4 (latest from website).
>> 3- Unable to find Executable for Try Run: with pathes ... Enclosed 
>> picture for the error ..
>>  
>> I tried different pathes for the binary of CMake...
>>  
>> Thanks,
>> Raja'
>>  
>>  
>>  
>>
>>
>>  
>> On Wed, Apr 30, 2008 at 6:46 PM, Luis Ibanez <luis.ibanez at kitware.com 
>> <mailto:luis.ibanez at kitware.com>> wrote:
>>
>>
>>     Hi Raja,
>>
>>
>>     Thanks for your report.
>>
>>
>>     Could you please also mention the following:
>>
>>
>>     1) Did you take the .zip file of ITK 3.6 ?
>>       or obtained ITK via a CVS checkout ?
>>
>>
>>     2) What version of CMake are you using ?
>>
>>
>>     3) Please post the *full* and *exact* error
>>       message that you are getting from CMake.
>>
>>
>>      Thanks
>>
>>
>>        Luis
>>
>>
>>
>>     ------------------------
>>     Raja' S. Alomari wrote:
>>
>>         Hi,
>>         I am trying to build itk v3.60 with CMake for Visual Studio .Net
>>         2003. It is giving error: Try_run ...
>>           Thanks,
>>         
>>         
>> ------------------------------------------------------------------------
>>
>>         _______________________________________________
>>         Insight-users mailing list
>>         Insight-users at itk.org <mailto:Insight-users at itk.org>
>>         http://www.itk.org/mailman/listinfo/insight-users
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
> 


More information about the Insight-users mailing list