Csound Csound-dev Csound-tekno Search About

[Cs-dev] CsoundVST Status on linux

Date2005-09-20 22:18
Fromschwaahed
Subject[Cs-dev] CsoundVST Status on linux
AttachmentsNone  None  

Date2005-09-21 00:37
From"russell"
SubjectRe: [Cs-dev] CsoundVST Status on linux
You are building with the new version of boost, which eliminated
operator[] for the matrix class.  I posted a backwards-compatible
patch for this a few weeks ago, but the message didn't get any
response.  I do think this should be changed before the release,
otherwise there will be a lot of people having the same confusion
you are.  Could someone with checkin privilages take a look at
my previous message?  It's really a very small fix. 

Thanks, Russell 

schwaahed writes: 

> Does anyone know the status of CsoundVST on linux at the moment? 
> 
> I tried to build today on Gentoo linux without any luck. Everything else
> seems to be working fine for me. 
> 
> This is from today's cvs checkout ( Sept. 20, 2005). 
> 
> I built successfully with these commands: 
> 
> scons buildPDClass=1 buildCsoundVST=0
> scons buildPDClass=1 buildCsoundVST=0 install 
> 
> My failure goes something like this: 
> 
> scons buildPDClass=1 buildCsoundVST=1 
> 
> 
> 
> CONFIGURATION DECISION: Building fluid opcodes.
> CONFIGURATION DECISION: Building CsoundVST plugin and standalone.
> PATH =
> /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.4:/opt/blackdown-
> jdk-1.4.2.02/bin:/opt/blackdown-jdk-1.4.2.02
> /jre/bin:/usr/qt/3/bin:/usr/kde/3.4/sbin:/usr/kde/3.4/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin
> Checking for C++ header file jni.h... no
> CONFIGURATION DECISION: Not building Java wrappers for CsoundVST.
> CONFIGURATION DECISION: Not building STK opcodes.
> CONFIGURATION DECISION: Building PD csoundapi~ class
> CONFIGURATION DECISION: Building DSSI plugin host opcodes.
> CONFIGURATION DECISION: Not calling TAGS
> CONFIGURATION DECISION: Calling makedb
> CONFIGURATION DECISION: Not compiling zip file for release.
> scons: done reading SConscript files.
> scons: Building targets ...
> g++ -fexceptions -Wall -g -gstabs -O2 -DLINUX -DPIPES -DHAVE_FCNTL_H
> -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H
> -DHAVE_TERMIOS_H -DHAVE_DIRENT_H -O3 -march=athlon-xp -fomit-frame-pointer
> -pipe -O3 -march=athlon-xp -fomit-frame-pointer -pipe -DWINDOWS -DUSE_FLTK
> -fPIC -DBETA -I. -IH -I/usr/include/python2.3
> -I/usr/local/src/Archive/Csound/fltk-1.1.6 -I/usr/local/include
> -I/usr/include -I/usr/X11R6/include -I/usr/include/fltk-1.1-I/usr/include/fltk-
> 1.1 -I/usr/include/freetype2 -Ifrontends/CsoundVST -I/usr/include/python2.3
> -c -o frontends/CsoundVST/Counterpoint.os
> frontends/CsoundVST/Counterpoint.cpp
> In file included from frontends/CsoundVST/Counterpoint.cpp:2:
> frontends/CsoundVST/Counterpoint.hpp: In member function `int
> Counterpoint::Us(int, int)':
> frontends/CsoundVST/Counterpoint.hpp:326: error: no match for 'operator[]'
> in '((Counterpoint*)this)->Counterpoint::Ctrpt[n]'
> frontends/CsoundVST/Counterpoint.hpp: In member function `void
> Counterpoint::SetUs(int, int, int)':
> frontends/CsoundVST/Counterpoint.hpp:330: error: no match for 'operator[]'
> in '((Counterpoint*)this)->Counterpoint::Ctrpt[n]'
> .
> .
> .
> ##### More of the same sort of errors in here ############
> .
> .
> .
> frontends/CsoundVST/Counterpoint.cpp: In member function `void
> Counterpoint::toCsoundScore(std::string, double)':
> frontends/CsoundVST/Counterpoint.cpp:95: error: no match for 'operator[]' in
> '((Counterpoint*)this)->Counterpoint::Onset[note]'
> frontends/CsoundVST/Counterpoint.cpp:96: error: no match for 'operator[]' in
> '((Counterpoint*)this)->Counterpoint::Dur[note]'
> frontends/CsoundVST/Counterpoint.cpp:97: error: no match for 'operator[]' in
> '((Counterpoint*)this)->Counterpoint::Ctrpt[note]'
> scons: *** [frontends/CsoundVST/Counterpoint.os] Error 1
> scons: building terminated because of errors.
>  
> 
> Just wondering if this is what I should expect for now, or could I be doing
> something else
> that would would allow me to build CsoundVST right now. 
> 
> Thanks
> schwaahed 
> 
>  
> 
>  
> 
> schwaalap Working # emerge -p python scons libsndfile portaudio fltk swig
> boost 
> 
> These are the packages that I would merge, in order: 
> 
> Calculating dependencies ...done!
> [ebuild R ] dev-lang/python-2.4.1-r1
> [ebuild R ] dev-util/scons-0.96.1
> [ebuild R ] media-libs/libsndfile-1.0.11
> [ebuild R ] media-libs/portaudio-18.1-r3
> [ebuild R ] x11-libs/fltk-1.1.6
> [ebuild U ] dev-lang/swig-1.3.25 [1.3.21]
> [ebuild R ] dev-libs/boost-1.33.0 
> 
> portmidi is also installed. 
> 
> 
> # exerpt from custom.py
> if sys.platform[:5] == 'linux':
> platform = 'linux'
> customCPPPATH.append('/usr/include/python2.3')
> customLIBPATH.append('/usr/lib/python2.3/config')
> customCPPPATH.append('/usr/local/src/Archive/Csound/fltk-1.1.6')
> customLIBPATH.append('/usr/local/src/Archive/Csound/fltk-1.1.6/lib')
 



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-09-21 01:15
FromRussell Johnston
SubjectRe: [Cs-dev] CsoundVST Status on linux
An afterthought: the patch in my earlier (8/18) message was
created against the then-current cvs.  It still works fine
on the "release" version from 8/27; I've not tested against
today's CVS, but none of the files to which the patch applies
look to have changed in the meantime, so it should still work.

If you are using the 8/27 zip file, you will need to be in
directory csound5/src (not just csound5) before you apply
the patch.

Hope it helps,
Russell


russell wrote:
> You are building with the new version of boost, which eliminated
> operator[] for the matrix class.  I posted a backwards-compatible
> patch for this a few weeks ago, but the message didn't get any
> response.  I do think this should be changed before the release,
> otherwise there will be a lot of people having the same confusion
> you are.  Could someone with checkin privilages take a look at
> my previous message?  It's really a very small fix.
> Thanks, Russell
> schwaahed writes:
> 
>> Does anyone know the status of CsoundVST on linux at the moment?
>> I tried to build today on Gentoo linux without any luck. Everything else
>> seems to be working fine for me.
>> This is from today's cvs checkout ( Sept. 20, 2005).
>> I built successfully with these commands:
>> scons buildPDClass=1 buildCsoundVST=0
>> scons buildPDClass=1 buildCsoundVST=0 install
>> My failure goes something like this:
>> scons buildPDClass=1 buildCsoundVST=1
>>
>> 
>> CONFIGURATION DECISION: Building fluid opcodes.
>> CONFIGURATION DECISION: Building CsoundVST plugin and standalone.
>> PATH =
>> /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.4:/opt/blackdown- 
>>
>> jdk-1.4.2.02/bin:/opt/blackdown-jdk-1.4.2.02
>> /jre/bin:/usr/qt/3/bin:/usr/kde/3.4/sbin:/usr/kde/3.4/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin 
>>
>> Checking for C++ header file jni.h... no
>> CONFIGURATION DECISION: Not building Java wrappers for CsoundVST.
>> CONFIGURATION DECISION: Not building STK opcodes.
>> CONFIGURATION DECISION: Building PD csoundapi~ class
>> CONFIGURATION DECISION: Building DSSI plugin host opcodes.
>> CONFIGURATION DECISION: Not calling TAGS
>> CONFIGURATION DECISION: Calling makedb
>> CONFIGURATION DECISION: Not compiling zip file for release.
>> scons: done reading SConscript files.
>> scons: Building targets ...
>> g++ -fexceptions -Wall -g -gstabs -O2 -DLINUX -DPIPES -DHAVE_FCNTL_H
>> -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H
>> -DHAVE_TERMIOS_H -DHAVE_DIRENT_H -O3 -march=athlon-xp 
>> -fomit-frame-pointer
>> -pipe -O3 -march=athlon-xp -fomit-frame-pointer -pipe -DWINDOWS 
>> -DUSE_FLTK
>> -fPIC -DBETA -I. -IH -I/usr/include/python2.3
>> -I/usr/local/src/Archive/Csound/fltk-1.1.6 -I/usr/local/include
>> -I/usr/include -I/usr/X11R6/include 
>> -I/usr/include/fltk-1.1-I/usr/include/fltk-
>> 1.1 -I/usr/include/freetype2 -Ifrontends/CsoundVST 
>> -I/usr/include/python2.3
>> -c -o frontends/CsoundVST/Counterpoint.os
>> frontends/CsoundVST/Counterpoint.cpp
>> In file included from frontends/CsoundVST/Counterpoint.cpp:2:
>> frontends/CsoundVST/Counterpoint.hpp: In member function `int
>> Counterpoint::Us(int, int)':
>> frontends/CsoundVST/Counterpoint.hpp:326: error: no match for 
>> 'operator[]'
>> in '((Counterpoint*)this)->Counterpoint::Ctrpt[n]'
>> frontends/CsoundVST/Counterpoint.hpp: In member function `void
>> Counterpoint::SetUs(int, int, int)':
>> frontends/CsoundVST/Counterpoint.hpp:330: error: no match for 
>> 'operator[]'
>> in '((Counterpoint*)this)->Counterpoint::Ctrpt[n]'
>> .
>> .
>> .
>> ##### More of the same sort of errors in here ############
>> .
>> .
>> .
>> frontends/CsoundVST/Counterpoint.cpp: In member function `void
>> Counterpoint::toCsoundScore(std::string, double)':
>> frontends/CsoundVST/Counterpoint.cpp:95: error: no match for 
>> 'operator[]' in
>> '((Counterpoint*)this)->Counterpoint::Onset[note]'
>> frontends/CsoundVST/Counterpoint.cpp:96: error: no match for 
>> 'operator[]' in
>> '((Counterpoint*)this)->Counterpoint::Dur[note]'
>> frontends/CsoundVST/Counterpoint.cpp:97: error: no match for 
>> 'operator[]' in
>> '((Counterpoint*)this)->Counterpoint::Ctrpt[note]'
>> scons: *** [frontends/CsoundVST/Counterpoint.os] Error 1
>> scons: building terminated because of errors.
>> 
>> Just wondering if this is what I should expect for now, or could I be 
>> doing
>> something else
>> that would would allow me to build CsoundVST right now.
>> Thanks
>> schwaahed
>>  
>>
>>  
>>
>> schwaalap Working # emerge -p python scons libsndfile portaudio fltk swig
>> boost
>> These are the packages that I would merge, in order:
>> Calculating dependencies ...done!
>> [ebuild R ] dev-lang/python-2.4.1-r1
>> [ebuild R ] dev-util/scons-0.96.1
>> [ebuild R ] media-libs/libsndfile-1.0.11
>> [ebuild R ] media-libs/portaudio-18.1-r3
>> [ebuild R ] x11-libs/fltk-1.1.6
>> [ebuild U ] dev-lang/swig-1.3.25 [1.3.21]
>> [ebuild R ] dev-libs/boost-1.33.0
>> portmidi is also installed.
>>
>> # exerpt from custom.py
>> if sys.platform[:5] == 'linux':
>> platform = 'linux'
>> customCPPPATH.append('/usr/include/python2.3')
>> customLIBPATH.append('/usr/lib/python2.3/config')
>> customCPPPATH.append('/usr/local/src/Archive/Csound/fltk-1.1.6')
>> customLIBPATH.append('/usr/local/src/Archive/Csound/fltk-1.1.6/lib')
> 
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. 
> Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-09-21 03:05
Fromschwaahed
SubjectRe: [Cs-dev] CsoundVST Status on linux
AttachmentsNone  None  

Date2005-09-21 04:27
FromRussell Johnston
SubjectRe: [Cs-dev] CsoundVST Status on linux
Hmm, I just did a clean checkout from anonymous cvs and the patch
still applied cleanly for me.  Since it sounds like Michael will
make the change in cvs shortly, it's not worth much effort to get
the patch working.  You could make the changes yourself, if so
inclined, with the following command in vi for the five affected
files:

%s/\[\([^\]]\+\)\]\[\([^\]]\+\)\]/(\1,\2)/g

which gets almost all of them - I wasn't dedicated (or skilled?)
enough to come up with a regex that handled cases where a matrix
or array/vector reference is the index for another matrix.
i.e. you'll still have manually to find things like:

  Dur[TotalNotes[v]][v]

and replace them with things like:

  Dur(TotalNotes[v],v)

Anyway I'm getting much too compulsive now, so I'm going to stop.

Russell

schwaahed wrote:
> 
> 
> On 9/20/05, *Russell Johnston*  > wrote:
> 
>     An afterthought: the patch in my earlier (8/18) message was
>     created against the then-current cvs.  It still works fine
>     on the "release" version from 8/27; I've not tested against
>     today's CVS, but none of the files to which the patch applies
>     look to have changed in the meantime, so it should still work.
> 
>     If you are using the 8/27 zip file, you will need to be in
>     directory csound5/src (not just csound5) before you apply
>     the patch.
> 
>     Hope it helps,
>     Russell
> 
> 
>     russell wrote:
>      > You are building with the new version of boost, which eliminated
>      > operator[] for the matrix class.  I posted a backwards-compatible
>      > patch for this a few weeks ago, but the message didn't get any
>      > response.  I do think this should be changed before the release,
>      > otherwise there will be a lot of people having the same confusion
>      > you are.  Could someone with checkin privilages take a look at
>      > my previous message?  It's really a very small fix.
>      > Thanks, Russell
> 
> 
> Thanks for the heads up and the patch. Unfortunately I was not successful
> in applying it to the current cvs. I will try to apply it to the 8/27 
> release. This
> was the result of applying the patch to the current cvs.
> 
> Thanks again
> -schwaahed
> 
> schwaalap csound5 #  patch -p0 < csound-matrix-patch
> patching file frontends/CsoundVST/Counterpoint.cpp
> Hunk #1 FAILED at 62.
> Hunk #2 FAILED at 92.
> 2 out of 2 hunks FAILED -- saving rejects to file 
> frontends/CsoundVST/Counterpoint.cpp.rej
> patching file frontends/CsoundVST/Counterpoint.hpp
> Hunk #1 FAILED at 323.
> Hunk #2 FAILED at 343.
> Hunk #3 FAILED at 374.
> Hunk #4 FAILED at 421.
> Hunk #5 FAILED at 433.
> Hunk #6 FAILED at 447.
> Hunk #7 FAILED at 472.
> Hunk #8 FAILED at 627.
> Hunk #9 FAILED at 638.
> Hunk #10 FAILED at 646.
> Hunk #11 FAILED at 655.
> Hunk #12 FAILED at 686.
> Hunk #13 FAILED at 714.
> Hunk #14 FAILED at 723.
> Hunk #15 FAILED at 742.
> Hunk #16 FAILED at 1282.
> Hunk #17 FAILED at 1294.
> Hunk #18 FAILED at 1308.
> Hunk #19 FAILED at 1365.
> Hunk #20 FAILED at 1420.
> Hunk #21 FAILED at 1454.
> Hunk #22 FAILED at 1474.
> Hunk #23 FAILED at 1483.
> Hunk #24 FAILED at 1491.
> Hunk #25 FAILED at 1503.
> Hunk #26 FAILED at 1531.
> Hunk #27 FAILED at 1547.
> Hunk #28 FAILED at 1562.
> 28 out of 28 hunks FAILED -- saving rejects to file 
> frontends/CsoundVST/Counterpoint.hpp.rej
> patching file frontends/CsoundVST/CounterpointMain.cpp
> Hunk #1 FAILED at 62.
> Hunk #2 FAILED at 90.
> 2 out of 2 hunks FAILED -- saving rejects to file 
> frontends/CsoundVST/CounterpointMain.cpp.rej
> patching file frontends/CsoundVST/CounterpointNode.cpp
> Hunk #1 FAILED at 103.
> 1 out of 1 hunk FAILED -- saving rejects to file 
> frontends/CsoundVST/CounterpointNode.cpp.rej
> patching file frontends/CsoundVST/Lindenmayer.cpp
> Hunk #1 FAILED at 297.
> 1 out of 1 hunk FAILED -- saving rejects to file 
> frontends/CsoundVST/Lindenmayer.cpp.rej
> patching file frontends/CsoundVST/MCRM.cpp
> Hunk #1 FAILED at 49.
> Hunk #2 FAILED at 89.
> 2 out of 2 hunks FAILED -- saving rejects to file 
> frontends/CsoundVST/MCRM.cpp.rej
> patching file frontends/CsoundVST/Random.cpp
> Hunk #1 FAILED at 124.
> 1 out of 1 hunk FAILED -- saving rejects to file 
> frontends/CsoundVST/Random.cpp.rej
> 
> 



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-09-21 12:40
Fromschwaahed
SubjectRe: [Cs-dev] CsoundVST Status on linux
AttachmentsNone  None