-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hans Ulrich Niedermann wrote: > I need to revise > > Hans Ulrich Niedermann wrote: > >> However, src/GUI/libGUI.a is linked against plib - and plib choses at >> compile time which backend it will use. FG CVS does that via AC_DEFINEs >> in configure.ac (PU_USE_GLUT, PU_USE_SDL, PU_USE_NATIVE), i.e. via >> #defines in config.h. >> >> For compiling libGUI-FOO.a, one can just use the proper >> libGUI-FOO_a_CPPFLAGS definitions, but having all three libGUI-FOO.a >> statically linked to the same executable for the "chose-at-runtime" >> scenario will almost certainly not work. > > After Tim and me have taken a more detailed look at plib/pu.h, it looks > like we could just use the run-time decision after all by calling > puInitSDL(), puInitGLUT(), puInitNativ() instead of puInit(). These > three functions cannot go away without plib breaking binary > compatibility, and plib development is not very daring these days, so > using these functions directly is not very risky. > Binary compatibility with what? These functions don't appear in any plib library. I think you can just call puSetWindowFuncs(), puRealInit() yourself in gui_init().
Tim -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFGpkjleDhWHdXrDRURAkQJAJ9SZ78lhDzadCMWFnf2ogCfsNn/bQCfbMjQ EA64wtqjbRClPnk3thi5iIM= =RhU5 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel