Kitware / KWStyle

Kitware Style Checker
Other
53 stars 30 forks source link

Build for Windows #101

Closed danielrcollins1 closed 3 years ago

danielrcollins1 commented 3 years ago

I've tried and failed to build KWStyle for Windows (7, 64-bit).

Are there explicit directions for that anywhere?

Or even better, anyone have a pre-built binary?

dzenanz commented 3 years ago

KWStyle uses CMake as meta-build system. Take a look here for a tutorial: https://preshing.com/20170511/how-to-build-a-cmake-based-project/

danielrcollins1 commented 3 years ago

KWStyle uses CMake as meta-build system. Take a look here for a tutorial: https://preshing.com/20170511/how-to-build-a-cmake-based-project/

Right, I've downloaded the KWStyle source and CMake, run that, generated the build file structure for the MinGW format, and then attempting to make from that fails silently. (I can't even tell if I have all the dependencies or whatever.)

Note that this seems like a very deep build process, esp. to someone planning on just running (and not developing) KWStyle. It would probably open up usage to many more people if a prebuilt binary existed.

dzenanz commented 3 years ago

KWStyle.zip This is compiled on my computer (Win10 x64) with VS2019, so you will need VC redist unless you already have it installed (there is a very good chance that you do).

danielrcollins1 commented 3 years ago

KWStyle.zip This is compiled on my computer (Win10 x64) with VS2019, so you will need VC redist unless you already have it installed (there is a very good chance that you do).

Excellent, I have it running here now. Thank you so much -- that's a huge help!