Csound Csound-dev Csound-tekno Search About

OPCODEDIR IS NOT SET

Date2006-02-24 07:21
FromFergal Dowling
SubjectOPCODEDIR IS NOT SET
Hi,

Recently updated to Csound5 (Csound5.00_OSX10.3) on Mac OSX 10.3.9.
All is fine except that I get the following warning with ftgen.

error:  no legal opcode, line 12:
gitemp ftgen 20, 0, 1024, 9, 1, 1, 0
         instr   1
         ################################################################
         #               WARNING: OPCODEDIR IS NOT SET !                #
         # Csound requires this environment variable to be set to find  #
         # its plugin libraries. If it is not set, you may experience   #
         # missing opcodes, audio/MIDI drivers, or utilities.           #
         ################################################################

The orc runs fine with this line (gitemp ftgen 20, 0, 1024, 9, 1, 1, 0) 
commented out, that is to say, no other opcodes in this orchestra cause 
this warning. On environmental variables, the readme says,
"The Csound 5 framework sets the plugin opcode directory
automatically, so you do not have to do anything about it.
It is located inside the CsoundLib.Framework folder, under
Resources/Opcodes (Opcodes64 for doubles version)."

Any ideas why ftgen casues this?
Thanks,
Fergal Dowling



Date2006-02-24 08:37
From"Steven Yi"
SubjectRe: OPCODEDIR IS NOT SET
AttachmentsNone  

Date2006-02-24 09:54
FromVictor Lazzarini
SubjectRe: OPCODEDIR IS NOT SET
Hi Fergal,

the OPCODEDIR is indeed hardwired to 
/Library/Frameworks/CsoudLib.Framework/Resources/Opcodes,
so there are two main possibilities:

(i) you have the OPCODEDIR variable set in your system pointing to the 
wrong directory, you
can test this by typing either setenv (tcsh) or set (sh) and checking the 
values of the variables.

(ii) you are using a version of csound that is not the one distributed; 
this can happen if
there are two csound binaries in your path. If you do a 'which csound', the 
system will
tell what executable you were using. If you run /usr/local/csound   you 
will get the one
installed by the framework.

Victor

At 07:21 24/02/2006, you wrote:
>Hi,
>
>Recently updated to Csound5 (Csound5.00_OSX10.3) on Mac OSX 10.3.9.
>All is fine except that I get the following warning with ftgen.
>
>error:  no legal opcode, line 12:
>gitemp ftgen 20, 0, 1024, 9, 1, 1, 0
>         instr   1
>        ################################################################
>         #               WARNING: OPCODEDIR IS NOT SET !                #
>         # Csound requires this environment variable to be set to find  #
>         # its plugin libraries. If it is not set, you may experience   #
>         # missing opcodes, audio/MIDI drivers, or utilities.           #
>        ################################################################
>
>The orc runs fine with this line (gitemp ftgen 20, 0, 1024, 9, 1, 1, 0) 
>commented out, that is to say, no other opcodes in this orchestra cause 
>this warning. On environmental variables, the readme says,
>"The Csound 5 framework sets the plugin opcode directory
>automatically, so you do not have to do anything about it.
>It is located inside the CsoundLib.Framework folder, under
>Resources/Opcodes (Opcodes64 for doubles version)."
>
>Any ideas why ftgen casues this?
>Thanks,
>Fergal Dowling
>
>
>
>

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 

Date2006-02-24 13:09
FromIstvan Varga
SubjectRe: OPCODEDIR IS NOT SET
AttachmentsNone  

Date2006-02-24 13:51
FromVictor Lazzarini
SubjectRe: OPCODEDIR IS NOT SET
The framework was not built with buildRelease=1. My fault, I will replace
it with a fixed binary on Monday. I checked the OSX 10.4 version and
that one is OK.

In any case, if  the OPCODEDIR variable needs to be set, then it should
be set to /Library/Frameworks/CsoundLib.Framework/Resources/Opcodes

Victor

At 13:09 24/02/2006, you wrote:
>If the warning is printed, then the Csound library in use does not have
>the default path. So, either there is an old version that gets into the
>way, or the framework was not built with the 'buildRelease=1' SCons option.
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth