[Cs-dev] Default values of environment variables
Date | 2013-04-26 02:44 |
From | Michael Gogins |
Subject | [Cs-dev] Default values of environment variables |
Attachments | None None |
At the Csound Conference 2011 we discussed default paths for Csound environment variables. This has not been implemented.
Is this still a good idea? If so, I will implement them. I think it is a good idea. It would mean that on some systems, certainly Windows, environment and PATH variables could be set, but would not NEED to be set if things were found in standard locations.
The idea is that PREFIX points to the root of the "standard" installation directory. On Windows, this would be something like C:/Program Files (x86)/Csound. On Linux, this could be anything. It could be a local installation in, say, /home/mkg/csound6 or in /usr/local.
At any rate, at run time, if no values have been assigned to these environment variables, their value is defaulted to PREFIX/something, where PREFIX is the parent of the Csound shared library directory. The Csound library will discover this PREFIX directory at run time but use it only if one of these variables has not been defined.
PREFIX=parent of directory containing the Csound library. OPCODE6DIR64=$PREFIX/plugins6_64 PYTHONPATH=$PREFIX/bin RAWWAVE_PATH=$PREFIX/rawwave SFDIR=$PREFIX/share/soundfiles SSDIR=$PREFIX/share/samples SADIR=$PREFIX/share/analysis INCDIR=$PREFIX/share/inc SNAPDIR=$PREFIX/share/snap MFDIR=$PREFIX/share/examples In addition the following would be default directories: $CSOUND_HOME/include $CSOUND_HOME/lib $CSOUND_HOME/doc/manual $CSOUND_HOME/doc/apiref $CSOUND_HOME/doc/tutorial Your comments and suggestions are of course welcome.
Regards, Mike Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-04-26 05:10 |
From | pete.goodeve@computer.org |
Subject | Re: [Cs-dev] Default values of environment variables |
Attachments | None |
Date | 2013-04-26 12:35 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Default values of environment variables |
Attachments | None None |
Good point. perhaps just opcodes then, some sort of functional minimum. On Apr 26, 2013 12:39 AM, <pete.goodeve@computer.org> wrote:
On Thu, Apr 25, 2013 at 09:44:24PM -0400, Michael Gogins wrote: |