Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: Re: Re: Re: downloading csoundvst

Date2009-09-24 00:20
Frommichael.gogins@gmail.com
Subject[Csnd] Re: Re: Re: Re: Re: downloading csoundvst
CsoundVST depends on csnd, but it looks like this dependency is declared in 
SConstruct even though csnd is not being built by you.

I think with the latest version of SConstruct this should work, which 
version are you using? Anyway, even if it does not in the latest SConstruct, 
you can get it to work by building the Java, Python, or Lua interface, which 
will create csnd.

Hope this helps,
Mike

----- Original Message ----- 
From: "Atte Andre Jensen" 
To: 
Sent: Wednesday, September 23, 2009 6:01 PM
Subject: [Csnd] Re: Re: Re: Re: downloading csoundvst


> Michael Gogins wrote:
>
>> SConstruct and the sources do include CsoundVST, but you have to
>> follow the instructions in csound-build.tex (which is for Windows, but
>> for CsoundVST it would be the same on Linux).
>
> Sorry for not getting back before, things are hectic here :-)
>
> I read csound-build.tex, but it seems like some sort of checklist (with 
> all those "done"'s), but I tried building current cvs with the following:
>
> scons buildCsoundVST=1
>
> But get errors like this:
> 
> CONFIGURATION DECISION: Building ALSA plugin.
> CONFIGURATION DECISION: Building PortAudio module.
> Adding Jack library for PortAudio
> CONFIGURATION DECISION: Building JACK plugin.
> CONFIGURATION DECISION: Not building with PortMIDI.
> CONFIGURATION DECISION: Not building OSC plugin.
> CONFIGURATION DECISION: Building UDP plugins.
> Checking for C header file fluidsynth.h... (cached) yes
> CONFIGURATION DECISION: Building fluid opcodes.
> CONFIGURATION DECISION: Not building vst4cs opcodes.
> Checking for C header file ladspa.h... (cached) yes
> Checking for C header file dssi.h... (cached) yes
> CONFIGURATION DECISION: Building DSSI plugin host opcodes.
> Checking for C header file Opcodes/Loris/src/loris.h... (cached) no
> CONFIGURATION DECISION: Not building Loris Python extension and Csound 
> opcodes.
> CONFIGURATION DECISION: Not building STK opcodes.
> CONFIGURATION DECISION: Not building Python opcodes.
> CONFIGURATION DECISION: Not building FLTK CSOUND5GUI frontend.
> CONFIGURATION DECISION: Not building Csound Text Editor.
> CONFIGURATION DECISION: Not building CsoundAC extension module for Csound 
> with algorithmic composition.
> CONFIGURATION DECISION: Building CsoundVST plugin and standalone.
> PATH = 
> ./:/home/atte/bin:./:/home/atte/bin:/bin:/usr/bin:/sbin:/usr/sbin:/opt/glest/bin:/opt/java/bin:/opt/java/jre/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/qt/bin:/opt/java/jre/bin:/usr/local/bin:/usr/games:/opt/java/jre/bin:/usr/local/bin:/usr/games
> NameError: name 'csnd' is not defined:
>   File "/home/atte/software/csound/09_09_23/SConstruct", line 2544:
>     Depends(csoundvst, csnd)
>
> Am I on the right track? What am I missing?
>
> -- 
> Atte
>
> http://atte.dk   http://modlys.dk   http://virb.com/atte
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
> 



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-09-24 07:24
FromAtte Andre Jensen
Subject[Csnd] downloading csoundvst
michael.gogins@gmail.com wrote:

> I think with the latest version of SConstruct this should work, which 
> version are you using?

Do you mean which version of scons?

[atte@vestbjerg 09_09_23]$ scons --version
SCons by Steven Knight et al.:
	script: v1.2.0.r3842, 2008/12/20 22:59:52, by scons on scons-dev
	engine: v1.2.0.r3842, 2008/12/20 22:59:52, by scons on scons-dev
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons 
Foundation

> Anyway, even if it does not in the latest 
> SConstruct, you can get it to work by building the Java, Python, or Lua 
> interface, which will create csnd.

Ok with

scons buildCsoundVST=1 buildInterfaces=1

I got as far as the vstsdk stuff. I have already downloaded them 
(versions 2.3, 2.4 and 3) and have successfully build vst plugins with 
them before. Admittedly I don't really understanding the difference 
between versions and the inner logic of it all, but let's leave that.

So I did (from the root of csound5 dir as created by cvs co:

ln -s ~/software/vst/vstsdk2.4/public.sdk/
ln -s ~/software/vst/vstsdk2.4/pluginterfaces/

But building seems to complain about an error in one of the vstsdk 
files. I tried looking that the other versions (2.3 and 3) but the 
directory layout of those suggests that this is not what csound expects...

Anyways:

[atte@vestbjerg 09_09_23]$ scons buildCsoundVST=1 buildInterfaces=1

CONFIGURATION DECISION: Not calling TAGS
scons: done reading SConscript files.
scons: Building targets ...
g++ -o frontends/CsoundVST/csoundvst_main.o -c -fexceptions 
-fno-strict-aliasing -Wno-format -DGNU_GETTEXT -g -fomit-frame-pointer 
-freorder-blocks -DLINUX -DPIPES -fno-strict-aliasing 
-DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DBETA -DHAVE_SOCKETS 
-DHAVE_PTHREAD_BARRIER_INIT -DHAVE_SYNC_LOCK_TEST_AND_SET -DHAVE_FCNTL_H 
-DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H 
-DHAVE_TERMIOS_H -DHAVE_VALUES_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
In file included from ./public.sdk/source/vst2.x/audioeffect.h:16,
                  from ./public.sdk/source/vst2.x/audioeffectx.h:17,
                  from frontends/CsoundVST/CsoundVST.hpp:32,
                  from frontends/CsoundVST/csoundvst_main.cpp:22:
./pluginterfaces/vst2.x/aeffect.h:125: error: expected ‘)’ before ‘*’ token
In file included from ./public.sdk/source/vst2.x/audioeffect.h:16,
                  from ./public.sdk/source/vst2.x/audioeffectx.h:17,
                  from frontends/CsoundVST/CsoundVST.hpp:32,
                  from frontends/CsoundVST/csoundvst_main.cpp:22:
./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
In file included from ./public.sdk/source/vst2.x/audioeffectx.h:17,
                  from frontends/CsoundVST/CsoundVST.hpp:32,
                  from frontends/CsoundVST/csoundvst_main.cpp:22:
./public.sdk/source/vst2.x/audioeffect.h:27: error: expected ‘)’ before 
‘audioMaster’
In file included from ./public.sdk/source/vst2.x/audioeffectx.h:17,
                  from frontends/CsoundVST/CsoundVST.hpp:32,
                  from frontends/CsoundVST/csoundvst_main.cpp:22:
./public.sdk/source/vst2.x/audioeffect.h:155: error: 
‘audioMasterCallback’ does not name a type
In file included from frontends/CsoundVST/CsoundVST.hpp:32,
                  from frontends/CsoundVST/csoundvst_main.cpp:22:
./public.sdk/source/vst2.x/audioeffectx.h:27: error: expected ‘)’ before 
‘audioMaster’
In file included from frontends/CsoundVST/csoundvst_main.cpp:22:
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:40: error: ‘RunCsoundVST_’ was 
not declared in this scope
scons: *** [frontends/CsoundVST/csoundvst_main.o] Error 1
scons: building terminated because of errors.

Date2009-09-24 09:37
FromAtte Andre Jensen
Subject[Csnd] Re: downloading csoundvst
Atte Andre Jensen wrote:

> But building seems to complain about an error in one of the vstsdk 
> files. I tried looking that the other versions (2.3 and 3) but the 
> directory layout of those suggests that this is not what csound expects...

Google gave me this solution:
http://forum.audacityteam.org/viewtopic.php?f=14&t=3214

Now it seems I'm one step further, but now the build process stops like 
this:

scons: done reading SConscript files.
scons: Building targets ...
g++ -o frontends/CsoundVST/csoundvst_main.o -c -fexceptions 
-fno-strict-aliasing -Wno-format -DGNU_GETTEXT -g -fomit-frame-pointer 
-freorder-blocks -DLINUX -DPIPES -fno-strict-aliasing 
-DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DBETA -DHAVE_SOCKETS 
-DHAVE_PTHREAD_BARRIER_INIT -DHAVE_SYNC_LOCK_TEST_AND_SET -DHAVE_FCNTL_H 
-DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H 
-DHAVE_TERMIOS_H -DHAVE_VALUES_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
frontends/CsoundVST/csoundvst_main.cpp: In function ‘int main(int, char**)’:
frontends/CsoundVST/csoundvst_main.cpp:40: error: ‘RunCsoundVST_’ was 
not declared in this scope
scons: *** [frontends/CsoundVST/csoundvst_main.o] Error 1
scons: building terminated because of errors.

Any idea?

Date2009-09-24 10:33
FromAtte Andre Jensen
Subject[Csnd] Re: Re: downloading csoundvst
Atte Andre Jensen wrote:

> frontends/CsoundVST/csoundvst_main.cpp:40: error: ‘RunCsoundVST_’ was 
> not declared in this scope
> scons: *** [frontends/CsoundVST/csoundvst_main.o] Error 1
> scons: building terminated because of errors.

changing "RunCsoundVST_" to "RunCsoundVST" (2 instances) in 
frontends/CsoundVST/csoundvst_main.cpp got me a little further.

Next problem, Python.h is no found, although it's sitting right there in 
/usr/include/python2.6/Python.h:

frontends/CsoundVST/CsoundVST.cpp:24:20: error: Python.h: No such file 
or directory

Adding this line to custom.py (under the the "if sys.platform[:5] == 
'linux':") clause took care of that, though:

     customCPPPATH.append('/usr/include/python2.6')

Now I'm getting as far as the linking:

g++ -o libCsoundVST.so -Wl,-Bdynamic -Wl,-rpath,/usr/lib 
-Wl,-rpath-link,. -shared --no-export-all-symbols 
frontends/CsoundVST/vstsdk2.4/public.sdk/source/vst2.x/audioeffect.os 
frontends/CsoundVST/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.os 
frontends/CsoundVST/vstsdk2.4/public.sdk/source/vst2.x/vstplugmain.os 
frontends/CsoundVST/CsoundVST.os frontends/CsoundVST/CsoundVstFltk.os 
frontends/CsoundVST/CsoundVSTMain.os frontends/CsoundVST/CsoundVstUi.os 
-L. -L. -L/usr/local/lib -L. -L. -L/usr/lib/fltk-1.1 -lcsnd -lsndfile 
-lportaudio -lasound -llo -lfltk_images -lpng -lz -ljpeg -lfltk -lXft 
-lpthread -ldl -lm -lXext -lX11 -ldl -lstdc++ -lpthread -lm libcsound.a 
-lsndfile -lutil -ldl -lm
g++ -o CsoundVSTShell -Wl,-rpath-link,. -Wl,-Bdynamic 
frontends/CsoundVST/csoundvst_main.o -L. -L. -L/usr/local/lib -L. -L. 
-L/usr/lib/fltk-1.1 -lcsound32 -lcsnd -lCsoundVST
/usr/bin/ld: cannot find -lcsound32
collect2: ld returned 1 exit status
scons: *** [CsoundVSTShell] Error 1
scons: building terminated because of errors.

Hmm, grep tells me this:

[atte@vestbjerg 09_09_23]$ grep -R lcsound32 *
Makefile-win32:CSLIB_LNK = -lcsound32

But, I'm building for linux, not win32 (assuming win32 means "windows 32 
bit platform").

Any ideas from here?