From: Daniel R. <de...@vi...> - 2008-08-09 03:17:10
|
Sooc appears to compile just fine on vanilla 10.5 Leopard. Fink is no longer required strictly for downloading and compiling the sooc library. With the OS and the Xcode suite installed, all libraries necessary for compilation appear to be available by default. This includes the autotools (in the past, I recall it being somewhat difficult to obtain a recent enough copy of this package). One program that is a little tricky is "libtoolize." OS X does not include this; however, it does have glibtoolize, which by all accounts is the same thing. The user has a few options to get around this: (1) Edit ./bootstrap to change the command, (2) create an alias in .profile, (3) create a symlink somewhere in $PATH. Perhaps this OS X-specific scenario could be addressed in the bootstrap script itself? For instance, could it try "libtoolize" and then, if unsuccessful, try "glibtoolize?" It seems that this would, theoretically, account for other POSIX systems that use this version of the package. What do you think? So aside from determining how to get around the libtoolize thing, compiling is quite straightforward. Next, I have not specifically tested the linking of sooc applications with the sooc library (since I don't have a sooc application to test). However, what I do know is that Leopard appears not to have /etc/ld.so.conf. I think that /usr/local/lib is searched by default anyhow based on something I saw through Google. I have a number of libraries related to LaTeX already installed in /usr/local/lib, and that all seems to work fine. It's * possible* that the LaTeX installation did something to make the local libraries available, but I suspect they simply were from the start. Finally, pkg-config is not part of the vanilla OS install. Sooc's configuration script does not need it, but sooc does provide a .pc file, as I recall. So, if someone *chooses* to use that file when compiling a sooc program, then pkg-config will need to be obtained. *So, in summary, here are the steps to compile, install, and use sooc on Leopard:* 1) User must substitute glibtoolize for libtoolize 2) User may then run ./bootstrap and the compilation sequence 3) User probably does not have to update the library search path (it doesn't exist anyhow) 4) User should still need to run sudo ldconfig after updates. 5) User will need to obtain pkg-config (e.g. through "fink" or "macports") if user wishes to use this in future config scripts for applications that link to the sooc library Meanwhile, if the user is compiling under previous versions of OS X, it may be necessary to download additional dependencies through fink or macports. In the past, I believe I have used fink to obtain up-to-date versions of the autotools, pkg-config, and (I think) libtoolize. Again, however, the only thing that appears to be missing from 10.5 is pkg-config, and this isn't even required for compiling the library. In other words, the status is good ;-) Next thing is to actually run a test program, but I don't have one... |