Thread: [Plib-users] problems with configure
Brought to you by:
sjbaker
From: <ph...@bo...> - 2000-07-29 16:00:24
|
configure does not seem to be picking up my installation of mesa. I have /usr/local/include/GL/gl.h, etc. I have /usr/local/lib/libGL.so I'm using g++ installed in /opt/sfw (solaris 8) But I tried both configure with no args, and configure --includedir=/usr/local/include --libdir=/usr/local/lib It still says checking for glNewList in -lGL... no checking for glNewList in -lMesaGL... no checking for gluLookAt in -lGLU... no checking for gluLookAt in -lMesaGLU... no But when I do it myself, I see it. zaphod$ nm /usr/local/lib/libGL.so | grep glNewList [2909] | 309496| 56|FUNC |GLOB |0 |9 |glNewList Similarly, the pui compilation is not seeing the include files: ../../src/fnt/fnt.h:11: GL/gl.h: No such file or directory ../../src/fnt/fnt.h:12: GL/glu.h: No such file or directory But they are in /usr/local/include! |
From: Steve B. <sjb...@ai...> - 2000-07-29 23:18:37
|
Philip Brown wrote: > > configure does not seem to be picking up my installation of mesa. > > I have /usr/local/include/GL/gl.h, etc. > I have /usr/local/lib/libGL.so Those are not the correct places. OpenGL *MUST* be installed here: /usr/include/GL/gl.h /usr/lib/libGL.so /usr/lib/libGLU.so These are the 'official' locations on every Linux/UNIX derivative I can think of. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |
From: <ph...@bo...> - 2000-07-30 02:21:58
|
[ Steve Baker writes ] > Philip Brown wrote: > > > > configure does not seem to be picking up my installation of mesa. > > > > I have /usr/local/include/GL/gl.h, etc. > > I have /usr/local/lib/libGL.so > > Those are not the correct places. OpenGL *MUST* be installed here: > > /usr/include/GL/gl.h > /usr/lib/libGL.so > /usr/lib/libGLU.so > > These are the 'official' locations on every Linux/UNIX derivative > I can think of. That is not true. It is commonly installed in /usr/local In fact, when compiling from source, [mesa] DEFAULTS TO INSTALL IN /usr/local unless you specifically override it. So there are two things odd with plib configure; 1. it doesn't automatically check in /usr/local for GL stuff. Why not? Other GNU software knows to check /usr/local/include for stuff 2. Why isn't it doing anythig when I give the --includedir and --libdir args? If those flags are only used for include/lib file INSTALLATION, it should be better documented. |
From: Steve B. <sjb...@ai...> - 2000-07-30 04:08:54
|
Philip Brown wrote: > > [ Steve Baker writes ] > > Philip Brown wrote: > > > > > > configure does not seem to be picking up my installation of mesa. > > > > > > I have /usr/local/include/GL/gl.h, etc. > > > I have /usr/local/lib/libGL.so > > > > Those are not the correct places. OpenGL *MUST* be installed here: > > > > /usr/include/GL/gl.h > > /usr/lib/libGL.so > > /usr/lib/libGLU.so > > > > These are the 'official' locations on every Linux/UNIX derivative > > I can think of. > > That is not true. It is commonly installed in /usr/local Commonly - perhaps - but certainly incorrectly. I refer you to the standard: http://oss.sgi.com/projects/ogl-sample/ABI/ ...this is the standard for Linux, IRIX has always been this way, BSD and Solaris. The practical problem with allowing libraries (especially OpenGL) to be in any of a gazillion places is that people frequently get one OpenGL installed on their machine (hopefully in the correct place) then install another somewhere else when they get the right version for their hardware - they frequently have it installed in three or four places (/usr/X11R6/lib is another frequent place). What happens is that the wrong one gets loaded in some programs and not others - and the resulting complaint ("Program X runs fast, program Y crashes and program Z runs - but really slowly") is *REALLY* hard to diagnose...not only do you not know which library is installed in which of the usual places - but you also don't know which one the complex interaction of symlinks, configure 'guesses', ldconfig and /etc/ld.so.conf may have landed you with. Hence there is now ONE STANDARD - agreed by more or less everyone. It works - it's the rule. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |
From: <ph...@bo...> - 2000-07-30 16:11:54
|
[ Steve Baker writes ] > Philip Brown wrote: > > > > [ Steve Baker writes ] > > > Those are not the correct places. OpenGL *MUST* be installed here: > > > > > > /usr/include/GL/gl.h > > > /usr/lib/libGL.so > > > /usr/lib/libGLU.so > > > > > > These are the 'official' locations on every Linux/UNIX derivative > > > I can think of. > > > > That is not true. It is commonly installed in /usr/local > > Commonly - perhaps - but certainly incorrectly. > > I refer you to the standard: > > http://oss.sgi.com/projects/ogl-sample/ABI/ > Like I already said; Mesa defaults to /usr/local. It does that now. It's been that way for many years. If you are not willing to change your autoconfiguration to work with the number 2 most common OpenGL implementation (heck, by now, possibly number *1* most common OpenGL implementation), then kindly take out the claims of "these libraries are designed to be easily portable" in your README file. |