From: Braden M. <br...@en...> - 2006-10-04 00:37:43
|
On Wed, 2006-10-04 at 12:24 +1300, Philip Lamb wrote: > Hi all, > > I thought it about time I updated my Mac OS X fink openvrml package > for the new release. However, I'm running into some fairly elementary > issues attempting to build it. > > Firstly, I am building from the 0.16.0+cvs, under Mac OS X 10.4.8 on > an Intel MacBook Pro. I hope this means you checked out using the OpenVRML-0_16_0-RELEASE or the OpenVRML-0_16-BRANCH tag. > I am using fink to satisfy the external > dependencies. Here are my build steps so far: > > fink install libpng3 > fink install libjpeg > fink install pkgconfig > fink install boost-1.33 > fink install sdl > fink install automake1.9 > setenv CPPFLAGS "-I/sw/include" > setenv LDFLAGS "-L/sw/lib" > setenv REZ "/Developer/Tools/Rez" > ./bootstrap > > Here the build falls over for the first time.. the moving of the gtk > plugin breaks the boostrap script and the underlying Makefile.am > files are out of date. I don't quite understand what this means. BTW, configure should be looking for Rez in the spot that you are specifying; thus it should not be necessary to set that environment variable. If it *is* necessary, I'd like to know about it. > If I remove offending bits, I can configure: By "remove the offending bits", are you referring to applying the patch I provided in response to Thomas Engelmeier's recent posting? (If not, you'll need it. I'll push those changes to the OpenVRML-0_16-BRANCH soon; but they aren't there as of this writing.) > ./configure --with-apple-opengl-framework --disable-script-node- > javascript --disable-gtkplug --disable-mozilla-plugin > > which gets as far as looking for antlr: > > checking for antlr... no > checking if antlr is available to the Java runtime... no > configure: error: antlr 2.7.4 not found > See `config.log' for more details. > > I can't use antlr from fink, because its a newer version (2.8), and > it appears that openvrml doesn't have any build commands to build the > bundled antlr library. The makefiles to build libantlr (as well as those to build the rest of OpenVRML) are generated from the GNUmakefile.in files by config.status, which gets run at the end of configure. You didn't get to the end of configure, so that didn't happen. The antlr executable has nothing to do with *building* libantlr; configure checks to ensure that the version of the antlr executable on the host system is compatible with the version of libantlr that is included with the OpenVRML package. You should not need a fink package of antlr in order to get this working. The antlr executable is a Java program; so you should be able to do something like: $ configure [OPTIONS] ANTLR='java -cp /path/to/antlr-2.7.4.jar antlr.Tool' And BTW, Antlr 2.8 is not so much a newer version as it is a fork of the codebase. Someone might want to make sure the fink packager for Antlr knows that. The latest non-beta version of Antlr proper is 2.7.6. But this really doesn't matter, since you must have 2.7.4 to build CVS OpenVRML. > If I try to manually build the bundled antlr: > > cd lib/antlr > make To be perfectly clear, lib/antlr is the antlr C++ support library needed by antlr-generated parsers. It is *not* the source code for the antlr executable. > it bombs out with: > > Makefile:16: /openvrml/lib/antlr/../../scripts/Config.make: No such > file or directory > Makefile:17: /openvrml/lib/antlr/../../scripts/Rules.make: No such > file or directory > make: *** No rule to make target `/Users/phil/Documents/Development/ > Projects/OpenVRML/openvrml-0.16.0-cvs/openvrml/lib/antlr/../../ > scripts/Rules.make'. Stop. > > Can anyone illuminate? Per above, those aren't the makefiles you should be using; to get the ones you need, configure will need to succeed. -- Braden McDaniel e-mail: <br...@en...> <http://endoframe.com> Jabber: <br...@ja...> |