Re: [Plib-users] Using only PUI without GLUT
Brought to you by:
sjbaker
|
From: Steve B. <sjb...@ai...> - 2002-04-25 11:55:15
|
> Andrew Stewart wrote:
> What i need for my gui is very similar to the one created for the Pretty Poly Modeler
Actually, PrettyPoly doesn't use PUI - it uses FLTK which renders using X commands
and not OpenGL.
However something like that could probably be done in PUI if you needed to.
> and thats why i want PUI, it can do what i want. BUT i dont want to use GLUT.
Yes - I understand. It's hard to get Performer to work with GLUT because they
both want to "own the main event loop".
> I have written my own font routines and i know that i could replace all the
> calls from PUI to other external modules with my own too.
Well, you *could* - but then you'd be legally bound to release those into the
public under the LGPL restrictions of PLIB.
> But i like steve's idea now of just linking to the other libs.
Good - I strongly advise that.
> Unfortunately, all my experience with compiling is in vc++. I know the
> basics of makefiles and gcc but i dont know how to make libs.
Don't worry - the PLIB distribution comes with all that stuff. You just
download and unpack PLIB, then say:
./configure
make
make install
(The last step should be done as 'root').
Then it's just like any other system library - you can link to it just
as you'd link to Performer, OpenGL or X.
On some Linux distributions, you'll find that PLIB has already been
installed when you installed the operating system.
> could i please get some hints on how to compile the source of pui into one lib ?
Don't compile it into *one* library - leave it exactly how it is.
Don't treat PLIB as anything special - just #include the necessary headers
into your source code and add:
-lplibpui -lplibfnt -lplibsg -lplibul
...to your link command sometime before you pull in Performer, OpenGL and X.
There is no need to treat PLIB any differently than other libraries.
----------------------------- Steve Baker -------------------------------
Mail : <sjb...@ai...> WorkMail: <sj...@li...>
URLs : http://www.sjbaker.org
http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net
http://prettypoly.sf.net http://freeglut.sf.net
http://toobular.sf.net http://lodestone.sf.net
|