# Cannot build distribution on MacOS

**URL:** <https://forum.graphviz.org/t/cannot-build-distribution-on-macos/1857>\
**Category:** Dev\
**Created:** [November 4, 2023, 3:01am UTC](https://forum.graphviz.org/t/cannot-build-distribution-on-macos/1857 "2023-11-04T03:01:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zosmac](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/zosmac/32/1185_2.png) [@zosmac](https://forum.graphviz.org/u/zosmac)\
**Post date:** [November 4, 2023, 3:01am UTC](https://forum.graphviz.org/t/cannot-build-distribution-on-macos/1857/1 "2023-11-04T03:01:52Z")

</div>

I clone the latest repo to my Mac. I try to build a distribution tar file with ‘make dist’. The make fails attempting to add gvedit because there is no QMAKE (so the command is blank):

QT\_SELECT=5 -o qMakefile gvedit.pro

I tried configuring --without-qt --without-gvedit. Regardless, the make dist fails with this output from cmd/gvedit/Makefile:

```auto
 (cd gvedit && /Applications/Xcode-beta.app/Contents/Developer/usr/bin/make top_distdir=../../graphviz-10.0.0~dev.20231103.0952 distdir=../../graphviz-10.0.0~dev.20231103.0952/cmd/gvedit am __remove_distdir=: am__ skip_length_check=: am__skip_mode_fix=: distdir)

/Applications/Xcode.app/Contents/Developer/usr/bin/make distdir-am
QT_SELECT=5 -o qMakefile gvedit.pro
/bin/sh: -o: command not found
make[6]: *** [qMakefile] Error 127
make[5]: *** [distdir] Error 2
make[4]: *** [distdir-am] Error 1
make[3]: *** [distdir] Error 2
make[2]: *** [distdir-am] Error 1
make[1]: *** [distdir] Error 2
make: *** [dist] Error 2

```

---

<div class="post-metadata">

**Author:** ![armengot](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/armengot/32/1395_2.png) [@armengot](https://forum.graphviz.org/u/armengot)\
**Post date:** [April 6, 2024, 8:59am UTC](https://forum.graphviz.org/t/cannot-build-distribution-on-macos/1857/2 "2024-04-06T08:59:58Z")

</div>

Hi @zosmac

I recently start to develop a project combining Qt, graphviz and my own classes, It compiles on Linux and Windows, may be help you studying my CMakeLists.txt file.

> **[GitHub - armengot/codemapper: Source code automatic graph analyzer](https://github.com/armengot/codemapper)**
>
> Source code automatic graph analyzer. Contribute to armengot/codemapper development by creating an account on GitHub.
