Csound Csound-dev Csound-tekno Search About

[Csnd] Re: building opcode problem

Date2008-02-27 14:10
FromMichael Gogins
Subject[Csnd] Re: building opcode problem
Add the directory containing csdl.h to your builder environment like this:

jackEnvironment.Append(CPPPATH = ["directory/containing/csdl"])

Same goes for other paths (LIBPATH) and flags (CCFLAGS, CXXFLAGS, LINKFLAGS, SHLINKFLAGS).

See the Csound SConstruct for examples that work.

Hope this helps,
Mike

-----Original Message-----
>From: Atte André Jensen 
>Sent: Feb 27, 2008 2:38 AM
>To: csound@lists.bath.ac.uk
>Subject: [Csnd] building opcode problem
>
>Hi
>
>I run csound from cvs and instead of actually installing it, I simply 
>add the build dir to my PATH (I'm runnng linux). This allows me to 
>switch to new versions and back very cleanly and normally it works just 
>great.
>
>However now I'm trying to build an opcode (jackTransportOpcode) 
>something that I've never done before. I extracted the tarball, cd'ed to 
>the dir and ran scons, which ends like this:
>
>atte@ajstrup:~/software/csound/opcodes/jackTransportOpcode$ scons
>...
>gcc -o jackTransportOpcode.os -c -Wall -g -gstabs -O2 -DLINUX -DPIPES 
>-fPIC -DBETA -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H 
>-DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -DHAVE_DIRENT_H 
>-I. -IH -I/usr/local/include/csound -I/usr/local/include -I/usr/include 
>-I/usr/X11R6/include jackTransportOpcode.c
>jackTransportOpcode.c:32:19: error: csdl.h: No such file or directory
>jackTransportOpcode.c:52: error: expected specifier-qualifier-list 
>before 'CSOUND'
>jackTransportOpcode.c:85: error: expected specifier-qualifier-list 
>before 'OPDS'
>jackTransportOpcode.c:89: error: expected ')' before '*' token
>jackTransportOpcode.c:127: error: expected '=', ',', ';', 'asm' or 
>'__attribute__' before 'localops'
>jackTransportOpcode.c:133: error: expected '=', ',', ';', 'asm' or 
>'__attribute__' at end of input
>scons: *** [jackTransportOpcode.os] Error 1
>scons: building terminated because of errors.
>
>It seems it can't find csdl.h which is here (I tried puttin gthis in my 
>PATH also):
>atte@ajstrup:~/software/csound/opcodes/jackTransportOpcode$ slocate csdl.h
>/home/atte/software/csound/07_11_28/H/csdl.h
>
>How do I tell scons to look in that directory for csdl.h?
>
>-- 
>peace, love & harmony
>Atte
>
>http://atte.dk       | http://myspace.com/attejensen
>http://anagrammer.dk | http://modlys.dk
>
>
>Send bugs reports to this list.
>To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"