# Compiling ~MinimalPathExtraction~ with ITK 5.2.1

**URL:** https://discourse.itk.org/t/compiling-minimalpathextraction-with-itk-5-2-1/4784
**Category:** Community
**Tags:** remotemodule
**Created:** [February 6, 2022, 4:16am UTC](https://discourse.itk.org/t/compiling-minimalpathextraction-with-itk-5-2-1/4784 "2022-02-06T04:16:54Z")
**Posts on this page:** 2
**Page:** 2

<div class="post-metadata">

### Author: ![edgar](https://discourse.itk.org/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@edgar](https://discourse.itk.org/u/edgar)
#### Post date: [February 19, 2022, 12:23am UTC](https://discourse.itk.org/t/compiling-minimalpathextraction-with-itk-5-2-1/4784/21 "2022-02-19T00:23:00Z")

</div>

> [@Stephen\_Aylward](#):
>
> Option 2) See if there is another file called MinimalPathExtractionExport.h in your build directory. if so, delete it. If not, try option 3

There is:

```auto
Modules/Remote/TubeTK/include/MinimalPathExtractionExport.h

```

but there is also (after CMake configures the building environment)

```auto
build/Modules/Core/Common/MinimalPathExtractionExport.h

```

If I delete the first of these, my compilation seems to run well (I stopped past the point where I would always get the error message)

---

<div class="post-metadata">

### Author: ![Stephen\_Aylward](https://discourse.itk.org/user_avatar/discourse.itk.org/stephen_aylward/32/654_2.png) [@Stephen\_Aylward](https://discourse.itk.org/u/Stephen_Aylward)
#### Post date: [February 19, 2022, 8:33pm UTC](https://discourse.itk.org/t/compiling-minimalpathextraction-with-itk-5-2-1/4784/22 "2022-02-19T20:33:33Z")

</div>

@matt.mccormick - the file MinimalPathExtractionExport.h was added to TubeTK/include directory by you with the commit message:

```
COMP: Add MinimalPathExtractionExport.h stub for Python package builds
This file is not available in the current Python packaging setup, so provide a safe stub and
definition for MinimalPathExtraction_EXPORT when ITK is build with static libraries.

```

See [https://github.com/InsightSoftwareConsortium/ITKTubeTK/commit/243fc7381e43d57968729065ec0a4c73047c6585](https://github.com/InsightSoftwareConsortium/ITKTubeTK/commit/243fc7381e43d57968729065ec0a4c73047c6585)

Is this file still needed? See this discourse chain. I have not encountered any problems, but @edgar is using a tool the specifies several custom build options, so…any ideas?

Thanks!

[Previous page](https://discourse.itk.org/t/compiling-minimalpathextraction-with-itk-5-2-1/4784.md?page=1)
