← Back to team overview

kicad-developers team mailing list archive

Re: Building with visual studio? looking for a tutorial.

 

Way out of touch now Wayne ;)

VS can open CMake projects directly without generator. Also supports
GDB.....MINGW....and even ships with Clang. MS even patched all their VC++
headers to be compatible with Clang.


I haven't tried this yet though, but in theory it should be possible to run
MSYS2/MINGW and debug via this new feature from last year that lets you
configure toolchains and even use gdb:

https://blogs.msdn.microsoft.com/vcblog/2017/07/19/using-
mingw-and-cygwin-with-visual-cpp-and-open-folder/

In this example it is using MSYS2.



On Fri, Mar 9, 2018 at 9:54 AM, Wayne Stambaugh <stambaughw@xxxxxxxxx>
wrote:

> It's been a really long time since I've done this but you should be able
> to tell cmake to create a VSxxxx project (`cmake -G "Visual Studio 14
> 2015 [arch]`") and then use msvs to build.  You might want to disable
> python scripting, oce, and ngspice unless you feel like building msvc
> variant of those dependencies.  You will also need a msvc build of boost
> as well for the unit test library.  I'm pretty sure Simon Richter
> creates msvs builds so he may have some more up to date information than
> I do.
>
> Wayne
>
> On 3/9/2018 9:48 AM, Tomasz Wlostowski wrote:
> > Dear Windows experts,
> >
> > I'm desperately trying to debug a segfault in a Windows build of Kicad.
> > So far I've been unable to pause the program in gdb, because gdb exits
> > when I press Ctrl-C instead of pausing the application.
> >
> > I'm fed up with this 'unix style of doing things'.
> >
> > Could you help me set up a VS2015 project for building and debugging
> > Kicad? Is there some tutorial?
> >
> > Cheers,
> > Tom
> >
> >
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help   : https://help.launchpad.net/ListHelp
> >
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>



-- 
Mark

Follow ups

References