On Thursday 01 December 2005 13:34, Victor Lazzarini wrote: > Can we have version-based dynamic libs, with libcsound.so/etc as > a symbolic link? Overwriting of static libs. While it seems to be ignored by most people, I already solved that on Linux. The dynamic Csound library has a name in the format libcsound.so.x.y (floats) libcsound64.so.x.y (doubles) where x is the Csound major version (i.e. 5), and y is the API major version (currently 1, will be incremented for every change after the release that is not backward compatible). So, the initial names are libcsound.so.5.1 and libcsound64.so.5.1. It is possible that the Csound version could be dropped, leaving only the API version, e.g. libcsound.so.1, as the '5' is actually redundant. There are symbolic links to these files as libcsound.so and libcsound64.so, so that linking as -lcsound or -lcsound64 will find the library, however, the real name with the version number is compiled into the library with the -soname linker option, so that at run-time the system will look for the full name even though you just linked with -lcsound. This is all already implemented in SConstruct. Also, I install _csnd.so to /usr/local/lib with the name lib_csnd.so, and generate a symbolic link for Python as /usr/lib/python/VERSION/lib-dynload/_csnd.so (VERSION is something like 2.4), and this library links to the double precision dynamic API library (TODO: floats, and version number of csnd ?). This way, you can just 'import csnd' in Python (of course, csnd.py* are also installed to the correct directory so that they will be found). I do not use or care about Java, though, so no ideas on that. > what do you mean by wrapped/unwrapped? The use of simple shell scripts that call the actual Csound binaries (installed to a private directory), after setting up the necessary environment variables. This approach does not work very well with modules for external software (PD, Python, etc.), though. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net