|
From: Paulo E. C. <pau...@gm...> - 2013-05-28 17:54:58
|
On 28/05/13 17:55, 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". Please have a look at what I've done here to add a similar optional switch to generate the Doxygen documentation. https://github.com/pecastro/freewrl/commit/20c2628999457c1a64262b11524fcc805ef853b2#L1R153 |