|
From: Ian S. A. <ia...@ae...> - 2013-05-29 19:13:56
|
On 28/05/13 05:03 PM, doug sanden wrote: >> >> I'd like FREEWRL_STEREO_RENDERING to be defined in my linux build. I can hack the .c code to define it, and I see sidebyside and anaglyph rendering work well, toggled by the statsbarHud options page. I know little about the linux build system. I did do ./configure --with-statusbar=hud and that worked. >> Q. How do I do define FREEWRL_STEREO_RENDERING during the linux build process? >> >> >> Apparently, FREEWRL_STEREO_RENDERING, is only defined in these files: >> >> projectfiles_vc10/config.h >> 273:#define FREEWRL_STEREO_RENDERING 1 >> >> projectfiles_vc9/config.h >> 273:#define FREEWRL_STEREO_RENDERING 1 >> >> Which leads me to believe that whoever implemented stereo never >> implemented the definition of the variable for the linux build system. >> To achieve that, one needs to create that variable. >> >> something like this in configure.ac should do the trick. >> >> ------ Cut here----- >> AC_MY_DEFINE_SWITCH([stereo],[enable stereo >> (default=off)],off,FREEWRL_STEREO_RENDERING) >> AM_CONDITIONAL([FREEWRL_STEREO_RENDERING],[test "$sw_stereo" != no]) >> --------------- >> >> After these lines have been added to configure.ac, run autoreconf and >> afterwards ./configure --help should give you an option which starts >> with "--enable-stereo". > Yes - works, and checked in. Thanks Paulo. > -Doug Curious -- is there any particular need for this to ever be off? Or are we using compile-time #ifdefs to do something that should probably be configured at runtime? |