# Progress on Native ODM on Windows

**URL:** <https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424>\
**Category:** ODM\
**Created:** [April 22, 2021, 6:52pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424 "2021-04-22T18:52:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 22, 2021, 6:52pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/1 "2021-04-22T18:52:32Z")

</div>

I’ve recently started a substantial effort to (attempt to) bring ODM to Windows. Natively (no docker, no WSL, no nothing). This is my third attempt at doing so across the years. I have good faith that third time is a charm and that I will succeed.

I’ve managed to build (and run) the two main dependencies (OpenSfM and mvs-texturing):

 ![image](https://community.opendronemap.org/uploads/default/original/2X/b/b14db4b67a534af6cf136e717a203d609b2c8b02.png)

 ![image](https://community.opendronemap.org/uploads/default/original/2X/7/76e9838fed516243274759298f523a3417d1ce05.jpeg)

Next up, VTK, PCL, dem2mesh, dem2points, PDAL, entwine and untwine, OpenMVS and the rest to follow.

I will keep updates on this thread, to share the progress.

---

<div class="post-metadata">

**Author:** ![Saijin\_Naib](https://community.opendronemap.org/user_avatar/community.opendronemap.org/saijin_naib/32/1583_2.png) [@Saijin\_Naib](https://community.opendronemap.org/u/Saijin_Naib)\
**Post date:** [April 22, 2021, 7:28pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/2 "2021-04-22T19:28:51Z")

</div>

Yoooooooooooooooooo.

That’s amazing.

I believe a good number of those dependencies should be built or buildable already via the OSGeo4W-NG repository, which is 64-bit native these days.

Is that a tenable thing to loop in and save you headaches, or do we carry enough patches that it wouldn’t help?

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 23, 2021, 12:21am UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/3 "2021-04-23T00:21:06Z")

</div>

We have a lot of patches 😬

I’m hoping the end result will be able to stand on its own.

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 26, 2021, 3:16pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/4 "2021-04-26T15:16:39Z")

</div>

Removed VTK altogether: [Removed VTK, odm\_cleanmesh module by pierotofy · Pull Request #1275 · OpenDroneMap/ODM · GitHub](https://github.com/OpenDroneMap/ODM/pull/1275)

---

<div class="post-metadata">

**Author:** ![Saijin\_Naib](https://community.opendronemap.org/user_avatar/community.opendronemap.org/saijin_naib/32/1583_2.png) [@Saijin\_Naib](https://community.opendronemap.org/u/Saijin_Naib)\
**Post date:** [April 26, 2021, 4:14pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/5 "2021-04-26T16:14:55Z")

</div>

I remember that being a huge pain to get sorted when I was YOLO-attempting an upgrade path to 20.04 before we hired Dan to do it right 🤣

Any dropped heavy dependency is great news!

Might be time to revisit making my Alpine-based LiveODM…

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 26, 2021, 6:45pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/6 "2021-04-26T18:45:44Z")

</div>

PCL shall build too:

 ![image](https://community.opendronemap.org/uploads/default/original/2X/2/220b5a8a9447b8b0c5fcce50128f0fabf78cb2af.png)

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 26, 2021, 6:59pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/7 "2021-04-26T18:59:44Z")

</div>

Removed dependency on zstd.

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 27, 2021, 4:28pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/8 "2021-04-27T16:28:22Z")

</div>

dem2mesh, dem2points, poissonrecon all build too.

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 27, 2021, 6:45pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/9 "2021-04-27T18:45:43Z")

</div>

hexer, laszip ✅

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 27, 2021, 7:52pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/10 "2021-04-27T19:52:06Z")

</div>

PDAL:

 ![image](https://community.opendronemap.org/uploads/default/original/2X/6/6426785d8c629c976a084868e6bb8ef96af8cf4c.png)

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 28, 2021, 3:33pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/11 "2021-04-28T15:33:13Z")

</div>

Untwine:

![image](https://community.opendronemap.org/uploads/default/original/2X/1/1f63de76a5e07b96d81e1a9b3cbb3b9a034aad21.png)

Entwine has some deep path handling issues to work on Windows. We’ll just use Untwine.

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 28, 2021, 4:10pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/12 "2021-04-28T16:10:35Z")

</div>

lasmerge:

 ![image](https://community.opendronemap.org/uploads/default/original/2X/b/b95a9e4f028252a7fcd34e1797f95be4c4867115.png)

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 28, 2021, 6:36pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/13 "2021-04-28T18:36:26Z")

</div>

And OpenMVS of course (had no doubts on this one):

![image](https://community.opendronemap.org/uploads/default/original/2X/c/cb233a906579067081479531f55cc617d8b0a6ab.png)

This completes the SuperBuild dependencies.

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 28, 2021, 8:05pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/14 "2021-04-28T20:05:02Z")

</div>

odm\_orthophoto shall build too:

 ![image](https://community.opendronemap.org/uploads/default/original/2X/7/774a127fea106243061f77451792d8573ce749a6.png)

---

<div class="post-metadata">

**Author:** ![Saijin\_Naib](https://community.opendronemap.org/user_avatar/community.opendronemap.org/saijin_naib/32/1583_2.png) [@Saijin\_Naib](https://community.opendronemap.org/u/Saijin_Naib)\
**Post date:** [April 28, 2021, 8:23pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/15 "2021-04-28T20:23:43Z")

</div>

Are all these dependency drops and other changes applicable for the Linux/Mac/etc builds as well, or is the native Windows port a more separate/hard fork that is a special case that needs to be maintained differently?

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 29, 2021, 2:33pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/16 "2021-04-29T14:33:08Z")

</div>

No forks, everything will stay under the same branch / codebase.

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [April 30, 2021, 7:48pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/17 "2021-04-30T19:48:06Z")

</div>

![image](https://community.opendronemap.org/uploads/default/original/2X/2/2c3e2745f23eb1825eeed41a9f2573722ff98aa9.png)

At 15:45:29pm EST on 4/30/2021 ODM ran the first pipeline stage (`dataset`) successfully.

---

<div class="post-metadata">

**Author:** ![smathermather](https://community.opendronemap.org/user_avatar/community.opendronemap.org/smathermather/32/876_2.png) [@smathermather](https://community.opendronemap.org/u/smathermather)\
**Post date:** [April 30, 2021, 8:21pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/18 "2021-04-30T20:21:14Z")

</div>

To quote another Italian named Cristiano when I informed him of this effort: “Grande Piero.”

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [May 4, 2021, 6:49pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/19 "2021-05-04T18:49:45Z")

</div>

First native pipeline run completed from end-to-end. 🎉

Orthophoto, textured models look great.

Elevation models exhibit some strange artifacts and incorrect elevation values.

 ![image](https://community.opendronemap.org/uploads/default/original/2X/e/e053742aade6bfc433c728df430a1b45d2e63b6f.jpeg)

Troubleshooting continues.

---

<div class="post-metadata">

**Author:** ![pierotofy](https://community.opendronemap.org/user_avatar/community.opendronemap.org/pierotofy/32/17_2.png) [@pierotofy](https://community.opendronemap.org/u/pierotofy)\
**Post date:** [May 4, 2021, 7:41pm UTC](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424/20 "2021-05-04T19:41:04Z")

</div>

Turns out it was just a misplaced GCP file. Elevation models and point clouds look great!

 ![image](https://community.opendronemap.org/uploads/default/original/2X/e/e85b00960f97f40e6491f75c505ed6ecdb43e3c7.jpeg)

 ![image](https://community.opendronemap.org/uploads/default/original/2X/1/192cb2318196c8b19aa2c54aceee5e76d66d021c.png)

Split-merge is next…

[Next page](https://community.opendronemap.org/t/progress-on-native-odm-on-windows/7424.md?page=2)
