Debugging Windows Builds

pbbopenbor

New member
I've been working on making some tweaks to the OpenBOR engine. I've made good progress with this on Macos and I am able to successfully debug my builds using Xcode which helps immensely.

I'm a little less familiar with debugging on Windows. I've just about got a build of OpenBOR using mingw but I'm getting all sorts of strange crashes with it. I was initially going to use the Visual Studio Solution for building/debugging but when I tried it it didn't seem to be in a usable state.

Does anyone have any advice for OpenBOR Windows development/debugging?
 
I've been working on making some tweaks to the OpenBOR engine. I've made good progress with this on Macos and I am able to successfully debug my builds using Xcode which helps immensely.

I'm a little less familiar with debugging on Windows. I've just about got a build of OpenBOR using mingw but I'm getting all sorts of strange crashes with it. I was initially going to use the Visual Studio Solution for building/debugging but when I tried it it didn't seem to be in a usable state.

Does anyone have any advice for OpenBOR Windows development/debugging?

Unfortunately, most of the dev team is MIA right now, and all of them aside from me got bit by the Linux bug. The last person to really rework compiling decided to kill VS in favor of Codeblocks - I didn't agree but wasn't in charge at the time. Since then (over ten years ago), we've had to rely on a self contained bash compile routine.

In short, I'm the only one with any interest at all to get VS compiling going and I'm already too overwhelmed with long standing engine logic updates to even think about that right now. Frankly am afraid I'd make a mess out of it anyway.

If you have the ability and desire to get VS compiling up, by all means join the team and take a crack at it. :)

DC
 
Well I eventually got a working Windows build. It was either something to do with me trying to build a 64bit binary or some of the fixes for code warnings I got. Going to a 32 bit binary and ignoring all warnings seems to have got me a stable build.

Is the recommendation for Windows builds these days to cross compile from Linux? I'm unlikely to have the time or inclination to get a Visual Studio project sorted out.
 
Thanks for the link. I'd already been through that and got set up with a 64 bit mingw build but for some reason it kept randomly crashing. I also ran in to a bunch of compiler errors I had to fixed (which is maybe why the build ended up unstable).

I then went through the process again for 32 bit. I still ran in to some compiler errors but they seemed to just be for using strcpy in ways the compiler didn't like. I removed -Werror from the gcc line and now the build is stable.

Really what I'm asking is are people building for Windows regularly and if so how are they debugging those builds? Both the mingw and Visual Studio builds seem like they haven't been used in anger for a while.
 
Back
Top Bottom