# ALL\_BUILD Access Denied

**URL:** https://discourse.vtk.org/t/all-build-access-denied/231
**Category:** Support
**Created:** [February 6, 2019, 7:14pm UTC](https://discourse.vtk.org/t/all-build-access-denied/231 "2019-02-06T19:14:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![fengting](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/f/bcef8e/32.png) [@fengting](https://discourse.vtk.org/u/fengting)
#### Post date: [February 6, 2019, 7:14pm UTC](https://discourse.vtk.org/t/all-build-access-denied/231/1 "2019-02-06T19:14:36Z")

</div>

I am new to VTK, and I am trying to compiling&installing C++ VTK.

I have downloaded VTK-8.2.0 and follow the instruction like this :

The VTK source code can be downloaded from [http://www.vtk.org/](http://www.vtk.org/) on the **Download** page. _source_ release ( **`vtk-8.2.0.zip`** ) and extact it into **`C:\MIMIA\`**. This will create the folder **`C:\MIMIA\VTK-`**  **`8.2.0`** , after which you should manually create the build folder **`C:\MIMIA\VTKBin.`**

Now run the **CMake** GUI:

**On Windows** It should be in your Applications folder (or Start Menu) under CMake. At some point CMake will ask what compiler system you are using, e.g. Visual Studio 14 (64-bit).  
**Warning: if you installed a 64-bit version of Python, you should choose a 64-bit build, such as Visual Studio 14 Win64. WARNING: NEVER choose IA64** (unless you are absolutely sure you are using this Microsoft-abandoned, enterprise-server architecture that is not x86-64 compatible).

At the top of the CMake GUI are two fields, one for source code and one for where to build the binaries; the source code directory is the directory where VTK has been extracted (e.g. **`C:\MIMIA\VTK-8.2.0`** ), and the binary directory is the directory in which you want to build (e.g. **`C:\MIMIA\VTKBin`** ).

Once your CMake GUI is running, make sure that “Grouped” is checked and that “Advanced” is not checked. You now want to “configure” the system. This will cause cmake to establish environment settings for the build process. Once finished, you will be presented with a (nested) list of optional or unknown values for you to change as needed (these will typically be shown in red).

Make sure that **BUILD\_SHARED\_LIBS** , **BUILD\_EXAMPLES** , and **BUILD\_TESTING** are turned _off_ .  
Turn _on_ **VTK\_Group\_Rendering** and **VTK\_Group\_StandAlone**.

Once these variables have been set, Configure again. If the “Generate” button is still grayed out, click “Configure” yet again. Finally, you should be able to generate the build environment (i.e., on Windows you “Generate” button).  
On Windows, this will create a Visual Studio workspace solution named **`VTK.sln`** , in your ‘VTKBin’ folder, that can be used for the build. Open up VTK.sln and then compile/build it using the ‘All Build’ option for the ‘ALL\_BUILD’ target inside it.

My question appears here: when I compiled and builded ‘ALL\_BUILD’, it always shows a window and says **“ALL\_BUILD” access denied.** However there is no error shows in Visual Studio. Can anyone help me find out what’s wrong with the access? Thank you.

---

<div class="post-metadata">

### Author: ![Haocheng\_Liu](https://discourse.vtk.org/user_avatar/discourse.vtk.org/haocheng_liu/32/258_2.png) [@Haocheng\_Liu](https://discourse.vtk.org/u/Haocheng_Liu)
#### Post date: [February 6, 2019, 8:07pm UTC](https://discourse.vtk.org/t/all-build-access-denied/231/2 "2019-02-06T20:07:35Z")

</div>

Hi, IMO a better question is why you want to use `ALL_BUILD` option? To minimize possible error paths, you should just build things that you need.

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [February 6, 2019, 8:24pm UTC](https://discourse.vtk.org/t/all-build-access-denied/231/3 "2019-02-06T20:24:06Z")

</div>

You normally _build_ the ALL\_BUILD project, so that is fine.

You get the “access denied” error if you attempt to _run_ the project. Choose an executable project, such as a tests or an examples, as startup project; or set a valid executable file name in ALL\_BUILD project properties / Debugging / Command.

---

<div class="post-metadata">

### Author: ![fengting](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/f/bcef8e/32.png) [@fengting](https://discourse.vtk.org/u/fengting)
#### Post date: [February 6, 2019, 9:03pm UTC](https://discourse.vtk.org/t/all-build-access-denied/231/4 "2019-02-06T21:03:40Z")

</div>

Thank you. I think that is the problem.
