# \[Tutorial\] Compiling MWGis in VS2017

**URL:** <https://mapwindow.discourse.group/t/tutorial-compiling-mwgis-in-vs2017/118>\
**Category:** MapWinGIS\
**Created:** [April 6, 2019, 6:12pm UTC](https://mapwindow.discourse.group/t/tutorial-compiling-mwgis-in-vs2017/118 "2019-04-06T18:12:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [April 6, 2019, 6:12pm UTC](https://mapwindow.discourse.group/t/tutorial-compiling-mwgis-in-vs2017/118/1 "2019-04-06T18:12:33Z")

</div>

In this video, I show how you can compile MapWinGIS using VS2017.

The links I used are:

- VS2017: [https://visualstudio.microsoft.com/downloads/](https://visualstudio.microsoft.com/downloads/)
- SourceTree: [https://www.sourcetreeapp.com/](https://www.sourcetreeapp.com/)
- GISInternals: [http://gisinternals.com/](http://gisinternals.com/)
- MapWinGIS Github: [https://github.com/MapWindow/MapWinGIS](https://github.com/MapWindow/MapWinGIS)
- MapWinGIS API documentation: [https://www.mapwindow.org/documentation/mapwingis4.9/index.html](https://www.mapwindow.org/documentation/mapwingis4.9/index.html)
- MapWinGIS forum: [https://mapwindow.discourse.group](https://mapwindow.discourse.group)

Do remember you need the 32-bit version of the ocx to debug it and to add it to your WinForm application,  
because Visual Studio does not support 64-bit ActiveX controls.

---

<div class="post-metadata">

**Author:** ![gpf](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@gpf](https://mapwindow.discourse.group/u/gpf)\
**Post date:** [May 3, 2019, 2:56pm UTC](https://mapwindow.discourse.group/t/tutorial-compiling-mwgis-in-vs2017/118/2 "2019-05-03T14:56:31Z")

</div>

is there a video too for mapwindow5 compilation. thanks-glenn

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [May 7, 2019, 7:40am UTC](https://mapwindow.discourse.group/t/tutorial-compiling-mwgis-in-vs2017/118/3 "2019-05-07T07:40:45Z")

</div>

Hi Glen,

I have not yet made such a video.  
Compiling MW5 is a bit more complicated because you also need to install the [Syncfusion Community WinForms binaries](https://www.syncfusion.com/downloads/communitylicense).  
When those are installed and MapWinGIS is properly registered, you should be able to compile MW5.

Are you running into problems compiling MW5?  
It also might be best to not alter MW5 but create a [pull request](https://help.github.com/en/articles/about-pull-requests) (against the develop-branch) so we can implement your change in the code. And when you want to add some custom functionality it might be better to create a plug-in. We have a [template plug-in](https://github.com/MapWindow/MapWindow5/releases/tag/v5.4.0) to get you started.

---

<div class="post-metadata">

**Author:** ![gpf](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@gpf](https://mapwindow.discourse.group/u/gpf)\
**Post date:** [May 8, 2019, 1:30pm UTC](https://mapwindow.discourse.group/t/tutorial-compiling-mwgis-in-vs2017/118/4 "2019-05-08T13:30:56Z")

</div>

Hi Paul,

I installed Syncfusion community binaries and run into problems compiling MW5 in VS15.  
Just clone the develop branch and tried compiling. I got MW5 installed so MapWingis is registered.

Am just interested in plugin development but tried also to compile MW5. Planning to do plugins for D4EM and Taudem just like in Basins.

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [May 8, 2019, 1:45pm UTC](https://mapwindow.discourse.group/t/tutorial-compiling-mwgis-in-vs2017/118/5 "2019-05-08T13:45:59Z")

</div>

What errors do you get while compiling MW5?  
It might help to try to compile each project seperate.  
And did you install and register the 32-Bit version of MWGis?

---

<div class="post-metadata">

**Author:** ![gpf](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@gpf](https://mapwindow.discourse.group/u/gpf)\
**Post date:** [May 8, 2019, 4:25pm UTC](https://mapwindow.discourse.group/t/tutorial-compiling-mwgis-in-vs2017/118/6 "2019-05-08T16:25:30Z")

</div>

Hi Paul,

Yes I registered the ocx. Here’s some of the errors I got

 ![Inline image](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/d6e3a0f99e0ea793f373f2944567fc0a83fbac27.png)

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [July 3, 2019, 7:28am UTC](https://mapwindow.discourse.group/t/tutorial-compiling-mwgis-in-vs2017/118/7 "2019-07-03T07:28:22Z")

</div>

Hi @gpf,

I completely missed your reply.

Looking at your screenshot it seems like your Visual Studio doesn’t like the new C#7 syntax.  
Which version of Visual Studio are you using? Can you upgrade to VS2017?

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [July 31, 2019, 7:28am UTC](https://mapwindow.discourse.group/t/tutorial-compiling-mwgis-in-vs2017/118/8 "2019-07-31T07:28:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
