Thanks for your replies. I managed to build without CsoundVST but I'm still getting this:

$ python
Python 2.5 (r25:51908, Oct 19 2007, 09:47:40)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import csnd
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/csnd.py", line 7, in <module>
    import _csnd
ImportError: /usr/lib/python2.5/site-packages/_csnd.so: undefined symbol: csoundSetKillXYinCallback

and this...

$ pydoc csnd
problem in csnd - <type 'exceptions.ImportError'>: /usr/lib/python2.5/site-packages/_csnd.so: undefined symbol: csoundSetKillXYinCallback

I installed using the install.py script which doesn't copy _csnd.so automatically so I had to manually do it (copied to the /usr/lib/python2.5/site-packages directory).

Thanks for any help.


Hector




On Nov 1, 2007 8:24 AM, Michael Gogins <gogins@pipeline.com> wrote:
You don't need the VST stuff unless you need, on Linux, either (a) the VST opcodes or (b) the VST plugin version of Csound.
 
I haven't built on Linux for a while. Last time I did (Ubuntu, Csound 5.06), this VST stuff all built and worked. I will do it again soon, probably this weekend, and I should be able to fix anything that pops up.
 
Regards,
Mike
----- Original Message -----
Sent: Wednesday, October 31, 2007 11:08 PM
Subject: [Csnd] problems buildin CsoundVST and Python API question

Hello,

I'm trying to build Csound with Csound VST in Linux and using a checkout from CVS. First it asked for the VST sdk files which I copied into the Csound source directory, but then I can't get pass this errors:

g++ -o frontends/CsoundVST/csoundvst_main.o -c -fexceptions -Wall -g -O2 -DLINUX -DPIPES -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DSDFT -DBETA -DUSE_DOUBLE -DHAVE_SOCKETS -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -I/usr/include/fltk- 1.1 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/X11R6/include -Ifrontends/CsoundVST -Iinterfaces frontends/CsoundVST/csoundvst_main.cpp
./pluginterfaces/vst2.x/aeffect.h:125: error: expected `)' before '*' token
./pluginterfaces/vst2.x/aeffect.h:126: error: expected `)' before '*' token
./pluginterfaces/vst2.x/aeffect.h:127: error: expected `)' before '*' token
./pluginterfaces/vst2.x/aeffect.h:128: error: expected `)' before '*' token
./pluginterfaces/vst2.x/aeffect.h:129: error: expected `)' before '*' token
./pluginterfaces/vst2.x/aeffect.h:130: error: expected `)' before '*' token
./pluginterfaces/vst2.x/aeffect.h:149: error: 'AEffectDispatcherProc' does not name a type
./pluginterfaces/vst2.x/aeffect.h:152: error: 'AEffectProcessProc' does not name a type
./pluginterfaces/vst2.x/aeffect.h:155: error: 'AEffectSetParameterProc' does not name a type
./pluginterfaces/vst2.x/aeffect.h:158: error: 'AEffectGetParameterProc' does not name a type
./pluginterfaces/vst2.x/aeffect.h:183: error: 'AEffectProcessProc' does not name a type
./pluginterfaces/vst2.x/aeffect.h:187: error: 'AEffectProcessDoubleProc' does not name a type
./public.sdk/source/vst2.x/audioeffect.h:27: error: expected `)' before 'audioMaster'
./public.sdk/source/vst2.x/audioeffect.h:155: error: 'audioMasterCallback' does not name a type
./public.sdk/source/vst2.x/audioeffectx.h:27: error: expected `)' before 'audioMaster'
frontends/CsoundVST/CsoundVST.hpp:84: error: expected `)' before 'audioMaster'
frontends/CsoundVST/csoundvst_main.cpp: In function 'int main(int, char**)':
frontends/CsoundVST/csoundvst_main.cpp:42: error: 'CreateCsoundVST_' was not declared in this scope
frontends/CsoundVST/csoundvst_main.cpp:43: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'void*'
frontends/CsoundVST/csoundvst_main.cpp:49: warning: unused variable 'status'
scons: *** [frontends/CsoundVST/csoundvst_main.o] Error 1
scons: building terminated because of errors.

Do I need the VST SDK to build Csound VST? I thought it was only needed for vst4cs (which I'm not building). I'm using the VST SDK v 2.4 since that's the one that had the same directory structure that the CsoundVST source looks for, so I assumed 2.4 is the right version to use.

I'm trying to build CsoundVST because I want to start learning to build GUI's with Python and calling Csound from it. Do I have to build CsoundVST in order to have the Csound Python API? I tried importing the csound library using an installation of Csound without CsoundVST and I got this:

>>> import csnd
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/csnd.py", line 7, in <module>
    import _csnd
ImportError: /usr/lib/python2.5/site-packages/_csnd.so: undefined symbol: csoundSetKillXYinCallback


Thanks!


Hector