[vos-d] Got wxTerangreal to build in MSVC++!

Ken Taylor taylork at alum.mit.edu
Tue Apr 17 02:34:40 EDT 2007


Woo!

It's been an epic adventure, but I'm successfully running wxterangreal built
from scratch (and boost, wxwidgets, and CS built from scratch, too) through
Visual C++. And I should still be able to build with mingw, as well, so I
can verify any changes against the two different build systems
simultaneously.

At some point after the dust clears I'll have to sort through all my mad
hacking and figure out what I actually did to make it work... actually it
wasn't quite that bad. But there were a few interesting things along the
way, such as:
- A bug in wxwidgets' msw/main.cpp where it used WXMAKINGDLL instead of
WXMAKINGDLL_CORE (I'm guessing they've fixed this by now)
- Adding CS_NO_NEW_OVERRIDE to the CS setup file -- their special debugging
new/delete stuff was just causing too much trouble and I didn't want to
figure out exactly why.
- having to track down a weird bug in object movement that seemed to have
something to do with snprintf...

That last one is worth talking about here -- my avatar movement was all
wonky. But now that i have an IDE debugger that actually works decently, I
was able to trace the problem to snprintf printing the floats wrong for
position/oritentation in the 3dobject properties in some cases. It was using
the custom snprintf function, but I didn't actually identify where in that
function the problem lay. Instead I just went ahead and made it use
_snprintf (just like MinGW)... is there any particular reason not to use
_snprintf? The microsoft headers define it...

Anyway, just throught you'd be interested. I haven't tried building the new
demo server yet, but when I do I'll see if I can track down that crashing
bug (unless it's been fixed). I did go ahead and walk around the new gallery
COD in "local-file mode" in terangreal, and it's pretty spiffy. The solid
camera, even as simple as it is, is a nice addition, too. Oh, and grabbing
things is fun :)

(However, I can't actually log in to the interreality server at the
moment... )

-Ken




More information about the vos-d mailing list