Csound Csound-dev Csound-tekno Search About

[Csnd] VST Host Opcodes

Date2005-09-05 00:48
FromDavid Akbari
Subject[Csnd] VST Host Opcodes
Hi List,

I just tried compiling the vst4cs opcodes WITHOUT building CsoundVST by 
modifying the SConstruct thusly:

pluginLibraries.append(pluginEnvironment.SharedLibrary('vst4cs',
      Split('''
          Opcodes/vst4cs/src/vst4cs.cpp
          Opcodes/vst4cs/src/fxbank.cpp
          Opcodes/vst4cs/src/vsthost.cpp
          ''')))

It looks like it can build the fxbank.os and the vst4cs.os but it 
cannot seem to build the vsthost.os. Here's the console error:

g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450 -fomit-frame-pointer 
-ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX -Wall -DPIPES 
-faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H 
-DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H -DHAVE_TERMIOS_H 
-DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK -fPIC -DBETA 
-DUSE_DOUBLE -I. -IH -c -o Opcodes/vst4cs/src/fxbank.os 
Opcodes/vst4cs/src/fxbank.cpp
g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450 -fomit-frame-pointer 
-ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX -Wall -DPIPES 
-faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H 
-DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H -DHAVE_TERMIOS_H 
-DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK -fPIC -DBETA 
-DUSE_DOUBLE -I. -IH -c -o Opcodes/vst4cs/src/vst4cs.os 
Opcodes/vst4cs/src/vst4cs.cpp
Opcodes/vst4cs/src/vst4cs.cpp:354:2: warning: #warning "Need to fix 
deinitialisation..."
g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450 -fomit-frame-pointer 
-ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX -Wall -DPIPES 
-faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H 
-DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H -DHAVE_TERMIOS_H 
-DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK -fPIC -DBETA 
-DUSE_DOUBLE -I. -IH -c -o Opcodes/vst4cs/src/vsthost.os 
Opcodes/vst4cs/src/vsthost.cpp
In file included from Opcodes/vst4cs/src/AEffectx.h:11,
                  from Opcodes/vst4cs/src/AEffEditor.hpp:22,
                  from Opcodes/vst4cs/src/vsthost.cpp:29:
Opcodes/vst4cs/src/AEffect.h:28:5: token "." is not valid in 
preprocessor expressions
Opcodes/vst4cs/src/AEffect.h:186:5: token "." is not valid in 
preprocessor expressions
Opcodes/vst4cs/src/vsthost.cpp: In member function `virtual bool
    VSTPlugin::AddNoteOn(double, int, double, double)':
Opcodes/vst4cs/src/vsthost.cpp:244: warning: assignment to `char' from 
`double'
Opcodes/vst4cs/src/vsthost.cpp:244: warning: argument to `char' from 
`double'
Opcodes/vst4cs/src/vsthost.cpp:251: warning: assignment to `char' from 
`double'
Opcodes/vst4cs/src/vsthost.cpp:251: warning: argument to `char' from 
`double'
Opcodes/vst4cs/src/vsthost.cpp:252: warning: assignment to `char' from 
`double'
Opcodes/vst4cs/src/vsthost.cpp:252: warning: argument to `char' from 
`double'
Opcodes/vst4cs/src/vsthost.cpp: In member function `virtual bool
    VSTPlugin::AddNoteOff(double, int, double)':
Opcodes/vst4cs/src/vsthost.cpp:279: warning: assignment to `char' from 
`double'
Opcodes/vst4cs/src/vsthost.cpp:279: warning: argument to `char' from 
`double'
Opcodes/vst4cs/src/vsthost.cpp: In member function `virtual void
    VSTPlugin::Info()':
Opcodes/vst4cs/src/vsthost.cpp:398: warning: int format, long int arg 
(arg 3)
scons: *** [Opcodes/vst4cs/src/vsthost.os] Error 1
scons: building terminated because of errors.

Any suggestions on how to avoid these warnings and errors?


-David

-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-09-06 21:49
FromAndres Cabrera
SubjectRe: [Csnd] VST Host Opcodes
Hi David,
I haven't built the VST opcodes in a while since my main platform now is
Linux. The problem seems to be something in the vst header AEffectx.h
and it looks like a simple syntax error.
Are you using the clean vst headers (directly from steinberg) or the
ones included in frontends/CsoundVST? What do lines 28 and 186 read on
your sources?
What platform are you building for? It would be very cool if you are
trying on the mac.

Cheers,
Andres

On Sun, 2005-09-04 at 18:48, David Akbari wrote:
> Hi List,
> 
> I just tried compiling the vst4cs opcodes WITHOUT building CsoundVST by 
> modifying the SConstruct thusly:
> 
> pluginLibraries.append(pluginEnvironment.SharedLibrary('vst4cs',
>       Split('''
>           Opcodes/vst4cs/src/vst4cs.cpp
>           Opcodes/vst4cs/src/fxbank.cpp
>           Opcodes/vst4cs/src/vsthost.cpp
>           ''')))
> 
> It looks like it can build the fxbank.os and the vst4cs.os but it 
> cannot seem to build the vsthost.os. Here's the console error:
> 
> g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450 -fomit-frame-pointer 
> -ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX -Wall -DPIPES 
> -faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H 
> -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H -DHAVE_TERMIOS_H 
> -DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK -fPIC -DBETA 
> -DUSE_DOUBLE -I. -IH -c -o Opcodes/vst4cs/src/fxbank.os 
> Opcodes/vst4cs/src/fxbank.cpp
> g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450 -fomit-frame-pointer 
> -ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX -Wall -DPIPES 
> -faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H 
> -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H -DHAVE_TERMIOS_H 
> -DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK -fPIC -DBETA 
> -DUSE_DOUBLE -I. -IH -c -o Opcodes/vst4cs/src/vst4cs.os 
> Opcodes/vst4cs/src/vst4cs.cpp
> Opcodes/vst4cs/src/vst4cs.cpp:354:2: warning: #warning "Need to fix 
> deinitialisation..."
> g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450 -fomit-frame-pointer 
> -ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX -Wall -DPIPES 
> -faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H 
> -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H -DHAVE_TERMIOS_H 
> -DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK -fPIC -DBETA 
> -DUSE_DOUBLE -I. -IH -c -o Opcodes/vst4cs/src/vsthost.os 
> Opcodes/vst4cs/src/vsthost.cpp
> In file included from Opcodes/vst4cs/src/AEffectx.h:11,
>                   from Opcodes/vst4cs/src/AEffEditor.hpp:22,
>                   from Opcodes/vst4cs/src/vsthost.cpp:29:
> Opcodes/vst4cs/src/AEffect.h:28:5: token "." is not valid in 
> preprocessor expressions
> Opcodes/vst4cs/src/AEffect.h:186:5: token "." is not valid in 
> preprocessor expressions
> Opcodes/vst4cs/src/vsthost.cpp: In member function `virtual bool
>     VSTPlugin::AddNoteOn(double, int, double, double)':
> Opcodes/vst4cs/src/vsthost.cpp:244: warning: assignment to `char' from 
> `double'
> Opcodes/vst4cs/src/vsthost.cpp:244: warning: argument to `char' from 
> `double'
> Opcodes/vst4cs/src/vsthost.cpp:251: warning: assignment to `char' from 
> `double'
> Opcodes/vst4cs/src/vsthost.cpp:251: warning: argument to `char' from 
> `double'
> Opcodes/vst4cs/src/vsthost.cpp:252: warning: assignment to `char' from 
> `double'
> Opcodes/vst4cs/src/vsthost.cpp:252: warning: argument to `char' from 
> `double'
> Opcodes/vst4cs/src/vsthost.cpp: In member function `virtual bool
>     VSTPlugin::AddNoteOff(double, int, double)':
> Opcodes/vst4cs/src/vsthost.cpp:279: warning: assignment to `char' from 
> `double'
> Opcodes/vst4cs/src/vsthost.cpp:279: warning: argument to `char' from 
> `double'
> Opcodes/vst4cs/src/vsthost.cpp: In member function `virtual void
>     VSTPlugin::Info()':
> Opcodes/vst4cs/src/vsthost.cpp:398: warning: int format, long int arg 
> (arg 3)
> scons: *** [Opcodes/vst4cs/src/vsthost.os] Error 1
> scons: building terminated because of errors.
> 
> Any suggestions on how to avoid these warnings and errors?
> 
> 
> -David

-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-09-06 22:09
FromDavid Akbari
SubjectRe: [Csnd] VST Host Opcodes
On Sep 6, 2005, at 4:49 PM, Andres Cabrera wrote:

> Hi David,
> I haven't built the VST opcodes in a while since my main platform now 
> is
> Linux. The problem seems to be something in the vst header AEffectx.h
> and it looks like a simple syntax error.
> Are you using the clean vst headers (directly from steinberg) or the
> ones included in frontends/CsoundVST?

I have tried both and it looks like I get the same errors.

>  What do lines 28 and 186 read on
> your sources?

 From AEffect.h:28

#if PRAGMA_ALIGN_SUPPORTED || __MWERKS__

 From AEffect.h:186

#if PRAGMA_ALIGN_SUPPORTED || __MWERKS__

It seems very close to compiling it all straight from CVS. It may be 
important to note that I'm using XCode and not CodeWarrior... should I 
be using the Metrowerks compiler ??

Also curious... is that it posts all of the error messages but looks 
like it's trying to continue to compile. It seems to "hang" for 2 
minutes and then errors out.

> What platform are you building for? It would be very cool if you are
> trying on the mac.
>

Mac OSX 10.3.9 -- It seems to build 2 of the 3 parts fine but I would 
be willing to bet it has to do with the vstedit opcodes and GUI 
initialization. I'll take a look at the carbonmacho headers from the 
VSTGUI SDK and keep trying to compile on OSX.


-David

> On Sun, 2005-09-04 at 18:48, David Akbari wrote:
>> Hi List,
>>
>> I just tried compiling the vst4cs opcodes WITHOUT building CsoundVST 
>> by
>> modifying the SConstruct thusly:
>>
>> pluginLibraries.append(pluginEnvironment.SharedLibrary('vst4cs',
>>       Split('''
>>           Opcodes/vst4cs/src/vst4cs.cpp
>>           Opcodes/vst4cs/src/fxbank.cpp
>>           Opcodes/vst4cs/src/vsthost.cpp
>>           ''')))
>>
>> It looks like it can build the fxbank.os and the vst4cs.os but it
>> cannot seem to build the vsthost.os. Here's the console error:
>>
>> g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450 -fomit-frame-pointer
>> -ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX -Wall -DPIPES
>> -faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H
>> -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H -DHAVE_TERMIOS_H
>> -DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK -fPIC -DBETA
>> -DUSE_DOUBLE -I. -IH -c -o Opcodes/vst4cs/src/fxbank.os
>> Opcodes/vst4cs/src/fxbank.cpp
>> g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450 -fomit-frame-pointer
>> -ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX -Wall -DPIPES
>> -faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H
>> -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H -DHAVE_TERMIOS_H
>> -DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK -fPIC -DBETA
>> -DUSE_DOUBLE -I. -IH -c -o Opcodes/vst4cs/src/vst4cs.os
>> Opcodes/vst4cs/src/vst4cs.cpp
>> Opcodes/vst4cs/src/vst4cs.cpp:354:2: warning: #warning "Need to fix
>> deinitialisation..."
>> g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450 -fomit-frame-pointer
>> -ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX -Wall -DPIPES
>> -faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H
>> -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H -DHAVE_TERMIOS_H
>> -DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK -fPIC -DBETA
>> -DUSE_DOUBLE -I. -IH -c -o Opcodes/vst4cs/src/vsthost.os
>> Opcodes/vst4cs/src/vsthost.cpp
>> In file included from Opcodes/vst4cs/src/AEffectx.h:11,
>>                   from Opcodes/vst4cs/src/AEffEditor.hpp:22,
>>                   from Opcodes/vst4cs/src/vsthost.cpp:29:
>> Opcodes/vst4cs/src/AEffect.h:28:5: token "." is not valid in
>> preprocessor expressions
>> Opcodes/vst4cs/src/AEffect.h:186:5: token "." is not valid in
>> preprocessor expressions
>> Opcodes/vst4cs/src/vsthost.cpp: In member function `virtual bool
>>     VSTPlugin::AddNoteOn(double, int, double, double)':
>> Opcodes/vst4cs/src/vsthost.cpp:244: warning: assignment to `char' from
>> `double'
>> Opcodes/vst4cs/src/vsthost.cpp:244: warning: argument to `char' from
>> `double'
>> Opcodes/vst4cs/src/vsthost.cpp:251: warning: assignment to `char' from
>> `double'
>> Opcodes/vst4cs/src/vsthost.cpp:251: warning: argument to `char' from
>> `double'
>> Opcodes/vst4cs/src/vsthost.cpp:252: warning: assignment to `char' from
>> `double'
>> Opcodes/vst4cs/src/vsthost.cpp:252: warning: argument to `char' from
>> `double'
>> Opcodes/vst4cs/src/vsthost.cpp: In member function `virtual bool
>>     VSTPlugin::AddNoteOff(double, int, double)':
>> Opcodes/vst4cs/src/vsthost.cpp:279: warning: assignment to `char' from
>> `double'
>> Opcodes/vst4cs/src/vsthost.cpp:279: warning: argument to `char' from
>> `double'
>> Opcodes/vst4cs/src/vsthost.cpp: In member function `virtual void
>>     VSTPlugin::Info()':
>> Opcodes/vst4cs/src/vsthost.cpp:398: warning: int format, long int arg
>> (arg 3)
>> scons: *** [Opcodes/vst4cs/src/vsthost.os] Error 1
>> scons: building terminated because of errors.
>>
>> Any suggestions on how to avoid these warnings and errors?
>>
>>
>> -David
>
> -- 
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>

Date2005-09-07 04:19
FromAndres Cabrera
SubjectRe: [Csnd] VST Host Opcodes
Hi,

I'd say just comment out lines 28-30 and comment out all the #if
statement near line 186 (from the #if all the way to the next #endif)
It looks like the vst headers are broken for 10.3.
Good luck,
Andres


On Tue, 2005-09-06 at 16:09, David Akbari wrote:
> On Sep 6, 2005, at 4:49 PM, Andres Cabrera wrote:
> 
>         Hi David,
>         I haven't built the VST opcodes in a while since my main
>         platform nowis
>         Linux. The problem seems to be something in the vst header
>         AEffectx.h
>         and it looks like a simple syntax error.
>         Are you using the clean vst headers (directly from steinberg)
>         or the
>         ones included in frontends/CsoundVST?
> 
> I have tried both and it looks like I get the same errors.
> 
>         What do lines 28 and 186 read on
>         your sources?
> 
> >From AEffect.h:28
> 
> #if PRAGMA_ALIGN_SUPPORTED || __MWERKS__
> 
> >From AEffect.h:186
> 
> #if PRAGMA_ALIGN_SUPPORTED|| __MWERKS__
> 
> It seems very close to compiling it all straight from CVS. It may
> beimportant to note that I'm using XCode and not CodeWarrior... should
> Ibe using the Metrowerks compiler ??
> 
> Also curious... is that it posts all of the error messages but
> lookslike it's trying to continue to compile. It seems to "hang" for
> 2minutes and then errors out.
> 
>         What platform are you building for? It would be very cool
>         ifyou are
>         trying on the mac.
>         
> 
> Mac OSX 10.3.9 -- It seems to build 2 of the 3 parts fine but I
> wouldbe willing to bet it has to do with the vstedit opcodes and
> GUIinitialization. I'll take a look at the carbonmacho headers from
> theVSTGUI SDK and keep trying to compile on OSX.
> 
> 
> -David
> 
>         On Sun, 2005-09-04 at 18:48, David Akbari wrote:
>                 Hi List,
>                 
>                 I just tried compiling the vst4cs opcodes WITHOUT
>                 building CsoundVSTby 
>                 modifying the SConstruct thusly:
>                 
>                 pluginLibraries.append(pluginEnvironment.SharedLibrary('vst4cs',
>                       Split('''
>                           Opcodes/vst4cs/src/vst4cs.cpp
>                           Opcodes/vst4cs/src/fxbank.cpp
>                           Opcodes/vst4cs/src/vsthost.cpp
>                           ''')))
>                 
>                 It looks like it can build the fxbank.os and the
>                 vst4cs.os but it 
>                 cannot seem to build the vsthost.os. Here's the
>                 console error:
>                 
>                 g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450
>                 -fomit-frame-pointer 
>                 -ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX
>                 -Wall -DPIPES 
>                 -faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H
>                 -DHAVE_STDINT_H 
>                 -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H
>                 -DHAVE_TERMIOS_H 
>                 -DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK
>                 -fPIC -DBETA 
>                 -DUSE_DOUBLE -I. -IH -c -o
>                 Opcodes/vst4cs/src/fxbank.os 
>                 Opcodes/vst4cs/src/fxbank.cpp
>                 g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450
>                 -fomit-frame-pointer 
>                 -ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX
>                 -Wall -DPIPES 
>                 -faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H
>                 -DHAVE_STDINT_H 
>                 -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H
>                 -DHAVE_TERMIOS_H 
>                 -DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK
>                 -fPIC -DBETA 
>                 -DUSE_DOUBLE -I. -IH -c -o
>                 Opcodes/vst4cs/src/vst4cs.os 
>                 Opcodes/vst4cs/src/vst4cs.cpp
>                 Opcodes/vst4cs/src/vst4cs.cpp:354:2: warning: #warning
>                 "Need to fix 
>                 deinitialisation..."
>                 g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450
>                 -fomit-frame-pointer 
>                 -ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX
>                 -Wall -DPIPES 
>                 -faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H
>                 -DHAVE_STDINT_H 
>                 -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H
>                 -DHAVE_TERMIOS_H 
>                 -DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK
>                 -fPIC -DBETA 
>                 -DUSE_DOUBLE -I. -IH -c -o
>                 Opcodes/vst4cs/src/vsthost.os 
>                 Opcodes/vst4cs/src/vsthost.cpp
>                 In file included from
>                 Opcodes/vst4cs/src/AEffectx.h:11,
>                                   from
>                 Opcodes/vst4cs/src/AEffEditor.hpp:22,
>                                   from
>                 Opcodes/vst4cs/src/vsthost.cpp:29:
>                 Opcodes/vst4cs/src/AEffect.h:28:5: token "." is not
>                 valid in 
>                 preprocessor expressions
>                 Opcodes/vst4cs/src/AEffect.h:186:5: token "." is not
>                 valid in 
>                 preprocessor expressions
>                 Opcodes/vst4cs/src/vsthost.cpp: In member function
>                 `virtual bool
>                     VSTPlugin::AddNoteOn(double, int, double,
>                 double)':
>                 Opcodes/vst4cs/src/vsthost.cpp:244: warning:
>                 assignment to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp:244: warning: argument
>                 to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp:251: warning:
>                 assignment to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp:251: warning: argument
>                 to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp:252: warning:
>                 assignment to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp:252: warning: argument
>                 to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp: In member function
>                 `virtual bool
>                     VSTPlugin::AddNoteOff(double, int, double)':
>                 Opcodes/vst4cs/src/vsthost.cpp:279: warning:
>                 assignment to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp:279: warning: argument
>                 to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp: In member function
>                 `virtual void
>                     VSTPlugin::Info()':
>                 Opcodes/vst4cs/src/vsthost.cpp:398: warning: int
>                 format, long int arg 
>                 (arg 3)
>                 scons: *** [Opcodes/vst4cs/src/vsthost.os] Error 1
>                 scons: building terminated because of errors.
>                 
>                 Any suggestions on how to avoid these warnings and
>                 errors?
>                 
>                 
>                 -David
>         
>         -- 
>         Send bugs reports to this list.
>         To unsubscribe, send email to
>         csound-unsubscribe@lists.bath.ac.uk
>         

-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-09-19 14:22
FromAndres Cabrera
SubjectRe: [Csnd] VST Host Opcodes
Hi David,
Did my suggestion work? I'm curious to know if vst4cs can run on os x.

Cheers,
Andres

On Tue, 2005-09-06 at 16:09, David Akbari wrote:
> On Sep 6, 2005, at 4:49 PM, Andres Cabrera wrote:
> 
>         Hi David,
>         I haven't built the VST opcodes in a while since my main
>         platform nowis
>         Linux. The problem seems to be something in the vst header
>         AEffectx.h
>         and it looks like a simple syntax error.
>         Are you using the clean vst headers (directly from steinberg)
>         or the
>         ones included in frontends/CsoundVST?
> 
> I have tried both and it looks like I get the same errors.
> 
>         What do lines 28 and 186 read on
>         your sources?
> 
> >From AEffect.h:28
> 
> #if PRAGMA_ALIGN_SUPPORTED || __MWERKS__
> 
> >From AEffect.h:186
> 
> #if PRAGMA_ALIGN_SUPPORTED|| __MWERKS__
> 
> It seems very close to compiling it all straight from CVS. It may
> beimportant to note that I'm using XCode and not CodeWarrior... should
> Ibe using the Metrowerks compiler ??
> 
> Also curious... is that it posts all of the error messages but
> lookslike it's trying to continue to compile. It seems to "hang" for
> 2minutes and then errors out.
> 
>         What platform are you building for? It would be very cool
>         ifyou are
>         trying on the mac.
>         
> 
> Mac OSX 10.3.9 -- It seems to build 2 of the 3 parts fine but I
> wouldbe willing to bet it has to do with the vstedit opcodes and
> GUIinitialization. I'll take a look at the carbonmacho headers from
> theVSTGUI SDK and keep trying to compile on OSX.
> 
> 
> -David
> 
>         On Sun, 2005-09-04 at 18:48, David Akbari wrote:
>                 Hi List,
>                 
>                 I just tried compiling the vst4cs opcodes WITHOUT
>                 building CsoundVSTby 
>                 modifying the SConstruct thusly:
>                 
>                 pluginLibraries.append(pluginEnvironment.SharedLibrary('vst4cs',
>                       Split('''
>                           Opcodes/vst4cs/src/vst4cs.cpp
>                           Opcodes/vst4cs/src/fxbank.cpp
>                           Opcodes/vst4cs/src/vsthost.cpp
>                           ''')))
>                 
>                 It looks like it can build the fxbank.os and the
>                 vst4cs.os but it 
>                 cannot seem to build the vsthost.os. Here's the
>                 console error:
>                 
>                 g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450
>                 -fomit-frame-pointer 
>                 -ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX
>                 -Wall -DPIPES 
>                 -faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H
>                 -DHAVE_STDINT_H 
>                 -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H
>                 -DHAVE_TERMIOS_H 
>                 -DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK
>                 -fPIC -DBETA 
>                 -DUSE_DOUBLE -I. -IH -c -o
>                 Opcodes/vst4cs/src/fxbank.os 
>                 Opcodes/vst4cs/src/fxbank.cpp
>                 g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450
>                 -fomit-frame-pointer 
>                 -ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX
>                 -Wall -DPIPES 
>                 -faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H
>                 -DHAVE_STDINT_H 
>                 -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H
>                 -DHAVE_TERMIOS_H 
>                 -DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK
>                 -fPIC -DBETA 
>                 -DUSE_DOUBLE -I. -IH -c -o
>                 Opcodes/vst4cs/src/vst4cs.os 
>                 Opcodes/vst4cs/src/vst4cs.cpp
>                 Opcodes/vst4cs/src/vst4cs.cpp:354:2: warning: #warning
>                 "Need to fix 
>                 deinitialisation..."
>                 g++ -DCSOUND_WITH_API -fexceptions -O3 -mcpu=7450
>                 -fomit-frame-pointer 
>                 -ffast-math -DCSOUND_WITH_API -fast -fPIC -DMACOSX
>                 -Wall -DPIPES 
>                 -faltivec -DHAVE_FCNTL_H -DHAVE_UNISTD_H
>                 -DHAVE_STDINT_H 
>                 -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_CTYPE_H
>                 -DHAVE_TERMIOS_H 
>                 -DHAVE_STRING_H -DHAVE_DIRENT_H -DWINDOWS -DUSE_FLTK
>                 -fPIC -DBETA 
>                 -DUSE_DOUBLE -I. -IH -c -o
>                 Opcodes/vst4cs/src/vsthost.os 
>                 Opcodes/vst4cs/src/vsthost.cpp
>                 In file included from
>                 Opcodes/vst4cs/src/AEffectx.h:11,
>                                   from
>                 Opcodes/vst4cs/src/AEffEditor.hpp:22,
>                                   from
>                 Opcodes/vst4cs/src/vsthost.cpp:29:
>                 Opcodes/vst4cs/src/AEffect.h:28:5: token "." is not
>                 valid in 
>                 preprocessor expressions
>                 Opcodes/vst4cs/src/AEffect.h:186:5: token "." is not
>                 valid in 
>                 preprocessor expressions
>                 Opcodes/vst4cs/src/vsthost.cpp: In member function
>                 `virtual bool
>                     VSTPlugin::AddNoteOn(double, int, double,
>                 double)':
>                 Opcodes/vst4cs/src/vsthost.cpp:244: warning:
>                 assignment to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp:244: warning: argument
>                 to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp:251: warning:
>                 assignment to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp:251: warning: argument
>                 to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp:252: warning:
>                 assignment to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp:252: warning: argument
>                 to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp: In member function
>                 `virtual bool
>                     VSTPlugin::AddNoteOff(double, int, double)':
>                 Opcodes/vst4cs/src/vsthost.cpp:279: warning:
>                 assignment to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp:279: warning: argument
>                 to `char' from 
>                 `double'
>                 Opcodes/vst4cs/src/vsthost.cpp: In member function
>                 `virtual void
>                     VSTPlugin::Info()':
>                 Opcodes/vst4cs/src/vsthost.cpp:398: warning: int
>                 format, long int arg 
>                 (arg 3)
>                 scons: *** [Opcodes/vst4cs/src/vsthost.os] Error 1
>                 scons: building terminated because of errors.
>                 
>                 Any suggestions on how to avoid these warnings and
>                 errors?
>                 
>                 
>                 -David
>         
>         -- 
>         Send bugs reports to this list.
>         To unsubscribe, send email to
>         csound-unsubscribe@lists.bath.ac.uk
>         

-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk