# Build with VS 2019

**URL:** https://forum.graphviz.org/t/build-with-vs-2019/122
**Category:** Help
**Created:** [May 24, 2020, 8:13pm UTC](https://forum.graphviz.org/t/build-with-vs-2019/122 "2020-05-24T20:13:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Marc](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@Marc](https://forum.graphviz.org/u/Marc)
#### Post date: [May 24, 2020, 8:13pm UTC](https://forum.graphviz.org/t/build-with-vs-2019/122/1 "2020-05-24T20:13:12Z")

</div>

Hello,

I was using Graphviz 2.38 that has allready build exe-files.  
I want to use the new realase, and saw that I have to build it myself.  
I downloaded visual studio community 2019, and wanted to build it, but no succes…  
Alway’s errors. I already set the include-file-directory, but is it only one?  
Is it possible with 2019, or do I have to use 2014?

I’m not used to use visual studio, because I normaly create programs with BCC.

Thanks in advance

---

<div class="post-metadata">

### Author: ![Marc](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@Marc](https://forum.graphviz.org/u/Marc)
#### Post date: [May 29, 2020, 7:19am UTC](https://forum.graphviz.org/t/build-with-vs-2019/122/2 "2020-05-29T07:19:04Z")

</div>

Hi,

I downloaded Visual Studio 2015. Also the files via the Git.  
I folowed the instruction from [http://www.graphviz.org/\_pages/doc/winbuild.html](http://www.graphviz.org/_pages/doc/winbuild.html)  
I still can’t build the dot.exe file. Do I have to do anything else?

---

<div class="post-metadata">

### Author: ![mark](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/mark/32/84_2.png) [@mark](https://forum.graphviz.org/u/mark)
#### Post date: [May 29, 2020, 12:17pm UTC](https://forum.graphviz.org/t/build-with-vs-2019/122/3 "2020-05-29T12:17:35Z")

</div>

Hi Marc. What errors are you getting? When you say you can’t build, what exact step is failing?

To set expectations, I think none of the maintainers of Graphviz have a Windows box or much experience with Windows, but we can perhaps walk you through debugging it?

---

<div class="post-metadata">

### Author: ![Marc](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@Marc](https://forum.graphviz.org/u/Marc)
#### Post date: [May 31, 2020, 9:28am UTC](https://forum.graphviz.org/t/build-with-vs-2019/122/4 "2020-05-31T09:28:03Z")

</div>

Hello,

I want to build the dot.exe file.  
If I build it with visual-studio, I get this error.

```
1>------ Build started: Project: cgraph, Configuration: Debug Win32 ------

```

2\>------ Build started: Project: gvortho, Configuration: Debug Win32 ------  
2\> gvortho.vcxproj -\> C:\temp\Repos\graphviz\Debug\Graphviz\bin\gvortho.lib  
1\> ‘bison’ is not recognized as an internal or external command,  
1\> operable program or batch file.  
1\> ‘flex’ is not recognized as an internal or external command,  
1\> operable program or batch file.  
1\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: The command “bison -dy grammar.y -o grammar.c  
1\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: flex -oscan.c scan.l  
1\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: :VCEnd” exited with code 9009.  
3\>------ Build started: Project: xdot, Configuration: Debug Win32 ------  
3\>LINK : fatal error LNK1104: cannot open file ‘C:\temp\Repos\graphviz\Debug\Graphviz\bin\cgraph.lib’  
4\>------ Build started: Project: gvc, Configuration: Debug Win32 ------  
4\> ‘bison’ is not recognized as an internal or external command,  
4\> operable program or batch file.  
4\> Het systeem kan het opgegeven bestand niet vinden.  
4\> Het systeem kan het opgegeven bestand niet vinden.  
4\> Could Not Find C:\temp\Repos\graphviz\lib\common\htmlparse-intermediate.c  
4\> Could Not Find C:\temp\Repos\graphviz\lib\common\htmlparse-intermediate.h  
4\> ‘awk’ is not recognized as an internal or external command,  
4\> operable program or batch file.  
4\> ‘awk’ is not recognized as an internal or external command,  
4\> operable program or batch file.  
4\>  
4\> common\color\_names  
4\>  
4\>  
4\> ‘awk’ is not recognized as an internal or external command,  
4\> operable program or batch file.  
4\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: The command “bison -dy common\htmlparse.y -o common\htmlparse-intermediate.c  
4\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: sed “s/yy/html/g” \< common\htmlparse-intermediate.c \> common\htmlparse.c  
4\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: sed “s/yy/html/g” \< common\htmlparse-intermediate.h \> common\htmlparse.h  
4\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: del common\htmlparse-intermediate.c  
4\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: del common\htmlparse-intermediate.h  
4\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: awk -f C:\temp\Repos\graphviz\awk\svgcolor.awk common\svgcolor\_names \> common\svgcolor\_lib  
4\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: awk -f C:\temp\Repos\graphviz\awk\brewer.awk common\brewer\_colors \> common\brewer\_lib  
4\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: type common\brewer\_lib common\svgcolor\_lib common\color\_names | sort /L C \> color\_lib  
4\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: awk -f C:\temp\Repos\graphviz\awk\colortbl.awk color\_lib \> common\colortbl.h  
4\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: :VCEnd” exited with code 9009.  
5\>------ Build started: Project: gvplugin\_core, Configuration: Debug Win32 ------  
5\> ‘awk’ is not recognized as an internal or external command,  
5\> operable program or batch file.  
5\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: The command “awk -f C:\temp\Repos\graphviz\awk\stringize.awk ps.txt \> ps.h  
5\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: :VCEnd” exited with code 9009.  
6\>------ Build started: Project: gvplugin\_dot\_layout, Configuration: Debug Win32 ------  
7\>------ Build started: Project: gvplugin\_neato\_layout, Configuration: Debug Win32 ------  
7\>LINK : fatal error LNK1104: cannot open file ‘cgraph.lib’  
8\>------ Build started: Project: gvplugin\_pango, Configuration: Debug Win32 ------  
6\>LINK : fatal error LNK1104: cannot open file ‘cgraph.lib’  
8\>LINK : fatal error LNK1104: cannot open file ‘cgraph.lib’  
9\>------ Build started: Project: dot, Configuration: Debug Win32 ------  
9\>LINK : fatal error LNK1104: cannot open file ‘cgraph.lib’  
========== Build: 1 succeeded, 8 failed, 14 up-to-date, 0 skipped ==========

---

<div class="post-metadata">

### Author: ![Marc](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@Marc](https://forum.graphviz.org/u/Marc)
#### Post date: [June 6, 2020, 9:56am UTC](https://forum.graphviz.org/t/build-with-vs-2019/122/5 "2020-06-06T09:56:25Z")

</div>

Hello,

It’s working fine now. I followed the instructions on the site 😃
