Re: [Plib-users] PLIB 1.8.2 --without-glut don't work
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-04-06 15:12:41
|
I've added this into the PUI documentation. Steve Baker wrote: > That's not how things work in 1.8.0 and later. > > Just build PLIB without any special compile flags: > > ./configure ; make ; make install > > It is now ready to work with GLUT, SDL, FLTK and PW...or > even (with some effort) with your own windowing routines. > > > in the makefile from pu there is a puGlut.h file. > > In the puGlut.h file is a glut.h > > Yes - that's true - but if you don't use GLUT, it won't > be included into your program. > >> I compiled my programm: >> >> /usr/include/plib/pu.h:2139: puGLUT.h: No such file or directory > > > Here is what you do: > > EITHER: > > 1) #define PU_USE_GLUT or PU_USE_PW or PU_USE_FLTK or PU_USE_SDL ...to > explicitly tell PUI which library you want it to use. > > ...OR... > > 2) Include the header file for whatever windowing library you are > using (PW, SDL, FLTK, GLUT, etc) BEFORE you '#include <plib/pu.h>'. > pu.h will then automatically detect which windowing library you are > using and set PU_USE_<whatever> appropriately. > > ...OR... > > 3) #define PU_USE_NONE ...and pu.h will assume nothing about your > windowing library. This is an OK thing to do for every file EXCEPT > the one that calls puInit(). If you have PU_USE_NONE in the file > that calls puInit then it may result in some small problems if you want > to do certain operations for which PUI needs to query the windowing > library. > > ...OR... > > 4) Do none of the above - in which case PUI will assume you are using > GLUT/freeglut for reverse-compatibility purposes. > > Check out the example programs for PU - notably fltk_demo and sdl_example > in the examples/src/pui area and pw_pui in the examples/src/pw area. > > If you have your own windowing library (ie not PW, GLUT, SDL or FLTK), > then you can make it work properly with PUI by defining four inline > functions and passing them into 'puSetWindowFuncs'. Look at (for > example) puGLUT.h to see how this is done. > > ---------------------------- Steve Baker ------------------------- > HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> > HomePage : http://www.sjbaker.org > Projects : http://plib.sf.net http://tuxaqfh.sf.net > http://tuxkart.sf.net http://prettypoly.sf.net > -----BEGIN GEEK CODE BLOCK----- > GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- > V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ > -----END GEEK CODE BLOCK----- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > -- ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |