# Issue Compiling Pynest2D Library for Cura

**URL:** https://discourse.cmake.org/t/issue-compiling-pynest2d-library-for-cura/5021
**Category:** Usage
**Tags:** os:windows
**Created:** [February 16, 2022, 4:21pm UTC](https://discourse.cmake.org/t/issue-compiling-pynest2d-library-for-cura/5021 "2022-02-16T16:21:48Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![ZachHowell](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/z/5e9695/32.png) [@ZachHowell](https://discourse.cmake.org/u/ZachHowell)
#### Post date: [February 16, 2022, 4:21pm UTC](https://discourse.cmake.org/t/issue-compiling-pynest2d-library-for-cura/5021/1 "2022-02-16T16:21:48Z")

</div>

I am currently making my way through the library compilation detailed in the “Running Cura from Source on Windows” article on Ultimaker’s Cura Wiki.

I seem to have hit a snag at Pynest2D. Since as a new user I cannot attach my log files, below you may find Pastebin links to my terminal text and the log files created when I attempt to complete step 5.

Anybody have ideas as to how to best proceed? Thanks!

---

<div class="post-metadata">

### Author: ![ZachHowell](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/z/5e9695/32.png) [@ZachHowell](https://discourse.cmake.org/u/ZachHowell)
#### Post date: [February 16, 2022, 4:22pm UTC](https://discourse.cmake.org/t/issue-compiling-pynest2d-library-for-cura/5021/2 "2022-02-16T16:22:22Z")

</div>

[Terminal Text](https://pastebin.com/k9Mw7iHF)

---

<div class="post-metadata">

### Author: ![ZachHowell](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/z/5e9695/32.png) [@ZachHowell](https://discourse.cmake.org/u/ZachHowell)
#### Post date: [February 16, 2022, 4:22pm UTC](https://discourse.cmake.org/t/issue-compiling-pynest2d-library-for-cura/5021/3 "2022-02-16T16:22:57Z")

</div>

[CMakeError](https://pastebin.com/sWzuGf55)  
[CMakeOutput](https://pastebin.com/pnAC1cLw)

---

<div class="post-metadata">

### Author: ![fenrir](https://discourse.cmake.org/user_avatar/discourse.cmake.org/fenrir/32/734_2.png) [@fenrir](https://discourse.cmake.org/u/fenrir)
#### Post date: [February 16, 2022, 4:31pm UTC](https://discourse.cmake.org/t/issue-compiling-pynest2d-library-for-cura/5021/4 "2022-02-16T16:31:44Z")

</div>

I’m almost sure the problem is in the order of the CLI arguments.  
Try `cmake -DLIBNEST2D_HEADER_ONLY=OFF -DRP_ENABLE_DOWNLOADING=ON -DCMAKE_INSTALL_PREFIX=..\install_dir ..` instead.

---

<div class="post-metadata">

### Author: ![ZachHowell](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/z/5e9695/32.png) [@ZachHowell](https://discourse.cmake.org/u/ZachHowell)
#### Post date: [February 16, 2022, 5:19pm UTC](https://discourse.cmake.org/t/issue-compiling-pynest2d-library-for-cura/5021/5 "2022-02-16T17:19:39Z")

</div>

I tried it, but looks like I got the same error.  
I would like to post the link to the Pastebin, but unfortunately, I get a message from the forum stating the following: “Sorry you cannot post a link to that host.”

---

<div class="post-metadata">

### Author: ![ZachHowell](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/z/5e9695/32.png) [@ZachHowell](https://discourse.cmake.org/u/ZachHowell)
#### Post date: [February 16, 2022, 5:21pm UTC](https://discourse.cmake.org/t/issue-compiling-pynest2d-library-for-cura/5021/6 "2022-02-16T17:21:36Z")

</div>

In fact, it looks like my previous posts were flagged and hidden for containing hyperlinks.  
Is that normal behavior of the auto-mod here?

---

<div class="post-metadata">

### Author: ![fenrir](https://discourse.cmake.org/user_avatar/discourse.cmake.org/fenrir/32/734_2.png) [@fenrir](https://discourse.cmake.org/u/fenrir)
#### Post date: [February 16, 2022, 5:52pm UTC](https://discourse.cmake.org/t/issue-compiling-pynest2d-library-for-cura/5021/7 "2022-02-16T17:52:51Z")

</div>

I guess your post have been hidden because they contained only links.

To the problem itself - for me it looks like the `execute_process` command in RequirePackage.cmake:131 is somehow wrong. I’d say it’s something the author(s) of that file should take a look at.

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [February 16, 2022, 8:49pm UTC](https://discourse.cmake.org/t/issue-compiling-pynest2d-library-for-cura/5021/8 "2022-02-16T20:49:17Z")

</div>

@ZachHowell I’ve restored your posts, which did indeed get flagged due to the links. In future, rather than using [pastebin.com](http://pastebin.com), I suggest you paste the code directly in the post. For better readability, you can use the following tags to collapse the text with a useful summary line:

```auto
<details><summary>A helpful description of the content goes here</summary>

... put your content here

</details>

```

If you want the content to be monospaced, surround the content with the three backticks (```) and make sure there is a blank line between the backticks and the `</summary>` tag.

---

<div class="post-metadata">

### Author: ![ZachHowell](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/z/5e9695/32.png) [@ZachHowell](https://discourse.cmake.org/u/ZachHowell)
#### Post date: [February 16, 2022, 11:55pm UTC](https://discourse.cmake.org/t/issue-compiling-pynest2d-library-for-cura/5021/9 "2022-02-16T23:55:41Z")

</div>

> [@fenrir](#):
>
> To the problem itself - for me it looks like the `execute_process` command in RequirePackage.cmake:131 is somehow wrong. I’d say it’s something the author(s) of that file should take a look at.

What led you to that process in particular?

---

<div class="post-metadata">

### Author: ![fenrir](https://discourse.cmake.org/user_avatar/discourse.cmake.org/fenrir/32/734_2.png) [@fenrir](https://discourse.cmake.org/u/fenrir)
#### Post date: [February 17, 2022, 6:34am UTC](https://discourse.cmake.org/t/issue-compiling-pynest2d-library-for-cura/5021/10 "2022-02-17T06:34:16Z")

</div>

Basically reading your terminal output. There’s enough info in the error messages to identify the place when also looking at the file itself.  
But I am not going to debug what exactly went wrong there. It tells you that it tried to invoke CMake with a source directory that has no CMakeLists.txt and I don’t know whose responsibility would be to put/generate that file there.
