| The fltk-config script is specified in SConstruct, but it is not USED on Windows.
I added the include path to AEffEditor.hpp to customCPPPATH in Custom.py. For some reason I do not understand, having this path added in SConstruct did not work.
fl_xid on Windows gives you the Windows handle that corresponds to the widget. On X Windows I suppose it gives you the widget pointer. I added "#include " to widgets.cpp which fixed this.
So, now it builds for me on Windows/MSys/MinGW, and it runs as it did before... I use vst4cs all the time, especially to run the Pianoteq plugin.
I am not sure what to test to see if Gabriel's changes are OK on Windows, can you supply a test file or tell me what to test.
Thanks,
Mike
-----Original Message-----
>From: Andres Cabrera
>Sent: Apr 14, 2007 7:20 PM
>To: Developer discussions
>Subject: Re: [Cs-dev] Does not compile again
>
>OK, should build now.
>
>fltk-config stuff is part of the build instructions for vstEnvironment,
>csound5gui, cseditor and winsound. They've been there for a while.
>
>I'm not sure what you mean in point 4. fl_xid is valid on linux and
>vst4cs builds but crashes when the editor window is requested.
>
>Cheers,
>Andres
>
>Michael Gogins wrote:
>> Indeed. And on Windows/MSys/MinGW I also get the following....
>>
>> Observations:
>>
>> 1. The newwidgets.h file is not in CVS.
>>
>> 2. fltk-config is NOT USED on Windows; FLTK is configured in custom.py.
>>
>> 3. Please include the path to the VST SDK files, which are in frontends/CsoundVST, in your target's CPPPATH SCons configuration variable.
>>
>> 4. fl_xid IS a valid type on Windows, perhaps it is not recognized because you have not properly configured the build for Windows.
>>
>> Thanks for continuing to improve this, please make these changes and I will try your fixes as soon as possible.
>>
>> Regards,
>> Mike
>>
>> g++ -o InOut\widgets.o -c -fexceptions -Wall -g -O2 -D_WIN32 -DWIN32 -DPIPES -DOS_IS_WIN32 -mthreads -DCS_VSTHOST -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DBETA -DUSE_DOUBLE -DHAVE_IO_H -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -IC:\msys\1.0\local\include -ID:\utah\opt\libsndfile-1_0_17 -ID:\utah\opt\portaudio_varga\include -ID:\utah\opt\portmidi\pm_common -ID:\utah\opt\portmidi\pm_win -ID:\utah\opt\portmidi\porttime -ID:\utah\opt\fltk-1.1.7 -ID:\utah\opt\Python24\include -IC:\Python24\include -ID:\utah\opt\lua-5.1.1\src -ID:\utah\opt\Tcl\include -ID:\utah\opt\boost -ID:\utah\home\mkg\projects\fluid\fluidsynth\include -ID:\utah\opt\jdk1.5.0\include -ID:\utah\opt\jdk1.5.0\include\win32 -ID:\utah\opt\pd-0.38-4-devel-2\src -ID:\utah\opt\fftw-3.0.1\api -ID:\usr\local\include -ID:\usr\include -IInOut -IInOut\virtua
l_keyboard InOut\widgets.cpp
>> In file included from InOut\/widglobals.h:55,
>> from InOut\widgets.cpp:24:
>> ./Opcodes/vst4cs/src/vsthost.h:31:26: AEffEditor.hpp: No such file or directory
>> In file included from InOut\/widglobals.h:55,
>> from InOut\widgets.cpp:24:
>> ./Opcodes/vst4cs/src/vsthost.h:46: error: expected init-declarator before '*' token
>> ./Opcodes/vst4cs/src/vsthost.h:46: error: expected `,' or `;' before '*' token
>> ./Opcodes/vst4cs/src/vsthost.h:54: error: ISO C++ forbids declaration of `AEffect' with no type
>> ./Opcodes/vst4cs/src/vsthost.h:54: error: expected `;' before '*' token
>> ./Opcodes/vst4cs/src/vsthost.h:56: error: ISO C++ forbids declaration of `AEffEditor' with no type
>> ./Opcodes/vst4cs/src/vsthost.h:56: error: expected `;' before '*' token
>> ./Opcodes/vst4cs/src/vsthost.h:57: error: `ERect' does not name a type
>> ./Opcodes/vst4cs/src/vsthost.h:69: error: `VstMidiEvent' was not declared in this scope
>> ./Opcodes/vst4cs/src/vsthost.h:69: error: template argument 1 is invalid
>> ./Opcodes/vst4cs/src/vsthost.h:69: error: template argument 2 is invalid
>> ./Opcodes/vst4cs/src/vsthost.h:69: error: ISO C++ forbids declaration of `vstMidiEvents' with no type
>> ./Opcodes/vst4cs/src/vsthost.h:74: error: `VstTimeInfo' does not name a type
>> ./Opcodes/vst4cs/src/vsthost.h:91: error: `ERect' does not name a type
>> ./Opcodes/vst4cs/src/vsthost.h:126: error: ISO C++ forbids declaration of `VstTimeInfo' with no type
>> ./Opcodes/vst4cs/src/vsthost.h:126: error: `VstTimeInfo' declared as a `virtual' field
>> ./Opcodes/vst4cs/src/vsthost.h:126: error: expected `;' before '*' token
>> ./Opcodes/vst4cs/src/vsthost.h:127: error: expected `;' before '(' token
>> ./Opcodes/vst4cs/src/vsthost.h:128: error: expected `;' before '(' token
>> ./Opcodes/vst4cs/src/vsthost.h:129: error: expected `;' before '(' token
>> ./Opcodes/vst4cs/src/vsthost.h:131: error: expected `;' before '(' token
>> ./Opcodes/vst4cs/src/vsthost.h: In member function `long int VSTPlugin::EffGetChunk(void**, bool)':
>> ./Opcodes/vst4cs/src/vsthost.h:138: error: `effGetChunk' undeclared (first use this function)
>> ./Opcodes/vst4cs/src/vsthost.h:138: error: (Each undeclared identifier is reported only once for each function it appears in.)
>> ./Opcodes/vst4cs/src/vsthost.h: In member function `long int VSTPlugin::EffGetProgram()':
>> ./Opcodes/vst4cs/src/vsthost.h:140: error: `effGetProgram' undeclared (first use this function)
>> ./Opcodes/vst4cs/src/vsthost.h: In member function `void VSTPlugin::EffSetProgram(long int)':
>> ./Opcodes/vst4cs/src/vsthost.h:141: error: `effSetProgram' undeclared (first use this function)
>> ./Opcodes/vst4cs/src/vsthost.h: In member function `void VSTPlugin::EffGetProgramName(char*)':
>> ./Opcodes/vst4cs/src/vsthost.h:142: error: `effGetProgramName' undeclared (first use this function)
>> ./Opcodes/vst4cs/src/vsthost.h: In member function `virtual long int VSTPlugin::Dispatch(long int, long int, long int, void*, float)':
>> ./Opcodes/vst4cs/src/vsthost.h:148: error: `aeffect' undeclared (first use this function)
>> ./Opcodes/vst4cs/src/vsthost.h: In member function `virtual void VSTPlugin::processReplacing(float**, float**, long int)':
>> ./Opcodes/vst4cs/src/vsthost.h:156: error: `aeffect' undeclared (first use this function)
>> ./Opcodes/vst4cs/src/vsthost.h: In member function `virtual void VSTPlugin::process(float**, float**, long int)':
>> ./Opcodes/vst4cs/src/vsthost.h:164: error: `aeffect' undeclared (first use this function)
>> In file included from InOut\widgets.cpp:24:
>> InOut\/widglobals.h:71:30: newwidgets.h: No such file or directory
>> In file included from InOut\widgets.cpp:24:
>> InOut\/widglobals.h: At global scope:
>> InOut\/widglobals.h:249: error: ISO C++ forbids declaration of `FL_MIDI_WIDGET_VALUE' with no type
>> InOut\/widglobals.h:249: error: expected `;' before '*' token
>> InOut\/widglobals.h:253: error: ISO C++ forbids declaration of `VUMETER' with no type
>> InOut\/widglobals.h:253: error: expected `;' before '*' token
>> InOut\widgets.cpp: In function `uintptr_t fltkRun(void*)':
>> InOut\widgets.cpp:1774: warning: comparison between signed and unsigned integer expressions
>> InOut\widgets.cpp:1777: error: `fl_xid' undeclared (first use this function)
>> InOut\widgets.cpp: In function `void fl_callbackExecButton(Fl_Button*, void*)':
>> InOut\widgets.cpp:1900: warning: unused variable 'p'
>> scons: building terminated because of errors.
>> 'fltk-config' is not recognized as an internal or external command,
>> operable program or batch file.
>> scons: *** [InOut\widgets.o] Error 1
>>
>>
>> -----Original Message-----
>>
>>> From: jpff
>>> Sent: Apr 14, 2007 12:57 PM
>>> To: csound-devel@lists.sourceforge.net
>>> Subject: [Cs-dev] Does not compile again
>>>
>>> Again it does not compile
>>>
>>> g++ -o InOut/widgets.os -c -fexceptions -Wall -g -O2 -DLINUX -DPIPES -DCS_VSTHOST -DNO_FLTK_THREADS -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DBETA -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/lib/jvm/java-1.5.0/include -I/usr/lib/jvm/java-1.5.0/include/linux -I/usr/local/include -I/usr/include -I/usr/X11R6/include InOut/widgets.cpp
>>> In file included from InOut/widglobals.h:55,
>>> from InOut/widgets.cpp:24:
>>> ./Opcodes/vst4cs/src/vsthost.h:31:26: error: AEffEditor.hpp: No such file or directory
>>> In file included from InOut/widgets.cpp:24:
>>> InOut/widglobals.h:71:30: error: newwidgets.h: No such file or directory
>>> ./Opcodes/vst4cs/src/vsthost.h:46: error: expected initializer before '*' token
>>> ./Opcodes/vst4cs/src/vsthost.h:54: error: ISO C++ forbids declaration of 'AEffect' with no type
>>> ./Opcodes/vst4cs/src/vsthost.h:54: error: expected ';' before '*' token
>>> ./Opcodes/vst4cs/src/vsthost.h:56: error: ISO C++ forbids declaration of 'AEffEditor' with no type
>>> ./Opcodes/vst4cs/src/vsthost.h:56: error: expected ';' before '*' token
>>> ./Opcodes/vst4cs/src/vsthost.h:57: error: 'ERect' does not name a type
>>> ./Opcodes/vst4cs/src/vsthost.h:69: error: 'VstMidiEvent' was not declared in this scope
>>>
>>> ==John ffitch
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by DB2 Express
>Download DB2 Express C - the FREE version of DB2 express and take
>control of your XML. No limits. Just data. Click to get it now.
>http://sourceforge.net/powerbar/db2/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |