7 November 2000
So, we've evolved a general layout where there are three directories of interest for a project.
testzoolib zoolib {a whole bunch of directories} zoolib-demos ButtonMessage ButtonMessage-build-be ButtonMessage-build-cw ButtonMessage-build-posix ZHelloWorld ZHelloWorld-build-be ZHelloWorld-build-cw ZHelloWorld-build-posixzoolib contains all the ZooLib source files. zoolib-demos contains the ButtonMessage and ZHelloWorld source directories (no suffix) and build directories (-build-xxxx).
testzoolib/zoolib-demos/ButtonMessage-build-posixand type "make". For BeOS, cd to
testzoolib/zoolib-demos/ButtonMessage-build-beand type "make". Generally, that's all you'll need to do. For both posix and beOS you'll notice that the makefile itself is very short. It simply sets up a handful of macros to identify where the source files live, then includes the "realmake" file containing the actual rules for the application and finally includes the appropriate platform-specific makefile-engine, which contains the generic rules for building an application. If you decide to keep the ZooLib source directory elsewhere in the file system, simply edit the definition of ZOOLIB_ROOT in makefile to reference that location (you can use either relative or absolute paths, as desired).
If you have immediate problems the most likely cause is that makefile, realmake or the source files have line endings that make or the compiler don't recognize. It's reached the point now that most development tools can deal with any of the line ending conventions, except on UNIX systems, which steadfastly insist on LF (0x0A). So that's what ZooLib uses (and we recommend you do too).
When build for POSIX systems you might also need to either create a link from /usr/X11/lib/ to (for example) /usr/X11R6/lib/. Or edit the LIBPATHS_POSIX line in ButtonMessage/realmake or ZHelloWorld/realmake to reference the location of your X11 libraries.
Having created the source tree entries, you can either open the binary .mcp file, or import the .mcp.xml file into a new project -- they're entirely equivalent, we're just providing the xml file in case you're archive expansion tool munges the binary file.
Using the source trees entries makes it very easy to move the zoolib source directory elsewhere on your machine, or indeed on to a volume mounted over AppleShare or other network file system.
Build your demo application of choice as normal (selecting "Make" from the Project menu). There are several targets for each application: debug and release versions of PowerPC, 68K, Win32 and Carbon. NOTE: Support for Carbon is incomplete, the problems are well isolated though and will get fixed soon.
Tilting at Windmills for a Better Tomorrow.
[ZooLib Home] [info@zoolib.org]