Thread: [Plib-users] The examples
Brought to you by:
sjbaker
From: Ramy S. <sa...@ic...> - 2002-09-10 21:34:52
|
Hi all. I hope I'm not stating a known or obvious problem. The examples don't work for me. If I try to get 1.6.1, configure complains about install-sh missing. If I run the compile by hand (which works) for, say, viewer, I get an error complaining that ssgInit is called without a valid OpenGL context. This seems bizarre since I haven't touched the code itself. Anyone have similar problems? -Ramy |
From: Sebastian U. <ud...@ha...> - 2002-09-10 21:56:56
|
On Tue, 10 Sep 2002, sa...@ic... (Ramy Sadek) wrote: > Date: Tue, 10 Sep 2002 14:35:16 -0700 > To: pli...@li... > From: sa...@ic... (Ramy Sadek) > Reply-To: pli...@li... > Subject: [Plib-users] The examples > > Hi all. I hope I'm not stating a known or obvious problem. > > The examples don't work for me. If I try to get 1.6.1, configure > complains about install-sh missing. If I run the compile by hand (which > works) for, say, viewer, I get an error complaining that ssgInit is > called without a valid OpenGL context. This seems bizarre since I > haven't touched the code itself. Aaargh - Steve, the 'config.guess', 'config.sub', 'install-sh', 'missing' and 'mkinstalldirs' scripts (automatically copied into the directory when doing "autoconf") are missing in the plib_examples, p-guide and exposer tarballs. Argh ! - Sebastian |
From: Steve B. <sjb...@ai...> - 2002-09-11 01:40:41
|
Sebastian Ude wrote: > Aaargh - Steve, the 'config.guess', 'config.sub', 'install-sh', 'missing' > and 'mkinstalldirs' scripts (automatically copied into the directory when > doing "autoconf") are missing in the plib_examples, p-guide and exposer > tarballs. So, I use 'make dist' to make the distribution tarball - and it *used* to work. Something must have happened to 'Makefile.am's "extra-dist" entry. Ah - yes - checking the CVS records, I see that *SOMEONE* has removed the entry requiring those files. That happened between version 1.5 and 1.6 of examples/Makefile.am ...and that entry was committed by.... Revision 1.6, Wed May 8 21:24:24 2002 UTC (4 months ago) by ude Hmmmm - someone by the name of "ude" ?? ----------------------------- 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 |
From: Sebastian U. <ud...@ha...> - 2002-09-11 13:48:46
|
On Tue, 10 Sep 2002, sjb...@ai... (Steve Baker) wrote: > Date: Tue, 10 Sep 2002 20:39:01 -0500 > To: pli...@li... > From: sjb...@ai... (Steve Baker) > Reply-To: pli...@li... > Subject: Re: [Plib-users] The examples [...] > So, I use 'make dist' to make the distribution tarball - and it *used* to > work. Something must have happened to 'Makefile.am's "extra-dist" entry. > > Ah - yes - checking the CVS records, I see that *SOMEONE* has removed the > entry requiring those files. > > That happened between version 1.5 and 1.6 of examples/Makefile.am ...and > that entry was committed by.... > > Revision 1.6, Wed May 8 21:24:24 2002 UTC (4 months ago) by ude > > Hmmmm - someone by the name of "ude" ?? Again - argh ! From the automake manual: What Goes in a Distribution *************************** [...] For the most part, the files to distribute are automatically found by Automake: all source files are automatically included in a distribution, as are all `Makefile.am's and `Makefile.in's. Automake also has a built-in list of commonly used files which, if present in the current directory, are automatically included. This list is printed by `automake --help'. Also, files which are read by `configure' (i.e. the source files corresponding to the files specified in the `AC_OUTPUT' invocation) are automatically distributed. ~$ automake --version automake (GNU automake) 1.4-p2 Copyright (C) 1999, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Tom Tromey <tr...@cy...> ~$ automake --help Usage: automake [OPTION] ... [Makefile]... Generate Makefile.in for autoconf from Makefile.am [...] Files which are automatically distributed, if found: ABOUT-GNU README config.h.bot ltcf-cxx.sh ABOUT-NLS THANKS config.h.top ltcf-gcj.sh AUTHORS TODO config.sub ltconfig BACKLOG acconfig.h configure ltmain.sh COPYING acinclude.m4 configure.in mdate-sh COPYING.LIB aclocal.m4 elisp-comp missing ChangeLog ansi2knr.1 install-sh mkinstalldirs INSTALL ansi2knr.c libversion.in stamp-h.in NEWS config.guess ltcf-c.sh stamp-vti README config.h.bot Report bugs to <bug...@gn...>. install-sh, mkinstalldirs, config.guess and config.sub are listed there. What is going on ? - Sebastian |
From: Steve B. <sjb...@ai...> - 2002-09-11 23:37:50
|
Sebastian Ude wrote: > Again - argh ! From the automake manual: Well, on the theory of "Go With What Works" - and "Don't F**k With What You Don't Understand"...perhaps you'd be so kind as to put the Makefile.am's back to where they work - then I'll do another quick Examples/Demo's release. We can figure out what's really wrong later - but it's important that everyone can download working examples/demos. Thanks! ----------------------------- 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 |
From: Sebastian U. <ud...@ha...> - 2002-09-12 00:16:23
|
On Wed, 11 Sep 2002, sjb...@ai... (Steve Baker) wrote: > Date: Wed, 11 Sep 2002 18:36:00 -0500 > To: pli...@li... > From: sjb...@ai... (Steve Baker) > Reply-To: pli...@li... > Subject: Re: [Plib-users] The examples > > Sebastian Ude wrote: > > > Again - argh ! From the automake manual: > > Well, on the theory of "Go With What Works" - and "Don't F**k With What > You Don't Understand"...perhaps you'd be so kind as to put the > Makefile.am's back to where they work - then I'll do another quick > Examples/Demo's release. > > We can figure out what's really wrong later - but it's important that > everyone can download working examples/demos. > > Thanks! I am sorry Steve, but you can't blame the missing configure helper scripts on me, and what you suggest does NOT solve the problem. Look - mkinstalldirs, config.sub, config.guess and install.sh are not listed the top-level Makefile.am; and not because I removed them, but because they have never been in there (check the CVS archive, if you want) ! So how did the files make into the plib-1.6.0.tar.gz tarball, then ? The answer is simple: Because autoconf has always _automatically_ added these files to the distribution. I verified it, it really does. If the files were not added to the distribution, the reason for that was that they were not in the directory prior to the 'make dist' ! In this case, it does not help AT ALL to (re-)add anything to Makefile.am; the build system just can't add a non-existing file to the distribution. The question we need to ask is why the files were missing in the "examples" directory, and the answer is that autoconf does NOT install the 'mkinstalldirs', 'missing', 'install-sh', 'config.sub', 'config.guess' in the current directory if it finds them in '..'. Try it - take a fresh PLIB CVS tree, run ./autogen.sh from the top-level plib directory. autoconf will install the configure helper scripts to the top-level plib dir. Now, cd to 'examples' and run ./autogen.sh from there as well. autoconf finds the helper scripts in '..' and does NOT install them to the 'examples' directory again. As you see, everything works as long as you keep the directory hirarchie - but if you distribute the 'examples' directory seperately, the example's configure script won't find its helper scripts in '..' as it expected -> BUMMER ! That's just the behaviour of autoconf. As you can see, the problem has *nothing* to do with me removing the helper scripts from the examples Makefile.am file, which I think was a good move by the way, because it is just unnecessary to list them there. Again - re-adding them would not help a single bit, because the problem is not that the build system does not know about the scripts, but that the build-system can't add non-existing files to the distribution. Perhaps you'd be so kind as to do a bit of research in the future prior to blaming me for problems that I am not responsible for. Thanks. The solution of the problem is - if it is not obvious - either to remove the scripts from the top-level plib directory prior to excecuting 'autogen.sh' from the examples directory in order to make the distribution, or to move the 'examples' dir out of the plib source tree. In both cases, 'autoconf' won't find the helper scripts in '..', which is what we want to achieve. - Sebastian |
From: <ha...@sl...> - 2002-09-10 22:39:16
|
About the OpenGL Context, are you using Red Hat 7.2? If so, I believe they updated their Mesa package to fix this problem. -- Brian On Tue, 10 Sep 2002, Ramy Sadek wrote: >Hi all. I hope I'm not stating a known or obvious problem. > > The examples don't work for me. If I try to get 1.6.1, configure >complains about install-sh missing. If I run the compile by hand (which >works) for, say, viewer, I get an error complaining that ssgInit is >called without a valid OpenGL context. This seems bizarre since I >haven't touched the code itself. > >Anyone have similar problems? > >-Ramy > > > >------------------------------------------------------- >In remembrance >www.osdn.com/911/ >_______________________________________________ >plib-users mailing list >pli...@li... >https://lists.sourceforge.net/lists/listinfo/plib-users > -- Brian Hayward |
From: Ramy S. <sa...@ic...> - 2002-09-11 06:32:58
|
Wow you guys are fast. Thanks SO much for getting back to me so quick. I truly appreciate it. Yes, I am, in fact using RH 7.2 (I'm going to call it 7 point "poo" from now on). I will seek the new mesa package. Thanks a million! -Ramy ha...@sl... wrote: >About the OpenGL Context, are you using Red Hat 7.2? If so, I believe >they updated their Mesa package to fix this problem. > >-- >Brian > > >On Tue, 10 Sep 2002, Ramy Sadek wrote: > >>Hi all. I hope I'm not stating a known or obvious problem. >> >>The examples don't work for me. If I try to get 1.6.1, configure >>complains about install-sh missing. If I run the compile by hand (which >>works) for, say, viewer, I get an error complaining that ssgInit is >>called without a valid OpenGL context. This seems bizarre since I >>haven't touched the code itself. >> >>Anyone have similar problems? >> >>-Ramy >> >> >> >>------------------------------------------------------- >>In remembrance >>www.osdn.com/911/ >>_______________________________________________ >>plib-users mailing list >>pli...@li... >>https://lists.sourceforge.net/lists/listinfo/plib-users >> > |