[Cs-dev] compile issue (probably my fault)
| Date | 2011-11-17 14:57 |
| From | Oeyvind Brandtsegg |
| Subject | [Cs-dev] compile issue (probably my fault) |
I'm back to fixing my build system,
hope some of you would have the patience to look for anything obvious
that I might have missed in the console output below
best
Oeyvind
Oeyvind@Starfleet11 /c/MinGW/source/csound5
$ c:/Python27/Scripts/scons useDouble=1
scons: Reading SConscript files ...
C S O U N D 5
SCons build file for Csound 5:
API library, plugin opcodes, utilities, and front ends.
By Michael Gogins |
| Date | 2011-11-17 15:14 |
| From | Victor Lazzarini |
| Subject | Re: [Cs-dev] compile issue (probably my fault) |
I think somewhere in your system there is a macro defining "frm" or even "frm1". All variables named so then get substituted and a mess of spurious messages ensues. Now, what is defining frm etc might be hard to find. Try to place at the top of ugnorman.c #undef frm or #undef frm1 Victor On 17 Nov 2011, at 14:57, Oeyvind Brandtsegg wrote: > I'm back to fixing my build system, > hope some of you would have the patience to look for anything obvious > that I might have missed in the console output below > best > Oeyvind > > Oeyvind@Starfleet11 /c/MinGW/source/csound5 > $ c:/Python27/Scripts/scons useDouble=1 > scons: Reading SConscript files ... > > C S O U N D 5 > > SCons build file for Csound 5: > API library, plugin opcodes, utilities, and front ends. > > By Michael Gogins |
| Date | 2011-11-17 18:43 |
| From | Øyvind Brandtsegg |
| Subject | Re: [Cs-dev] compile issue (probably my fault) |
hm, did not help, sorry,
but I deleted the text "Opcodes/ugnorman.c" from Sconstruct line 1175, and got further.
Would this give any hint as to what was wrong:
gcc -o Opcodes\sfont.o -c -Wall -fexceptions -shared-libgcc -Wno-format -g -fomit-frame-pointer -freorder-blocks -D_WIN3
2 -DWIN32 -DPIPES -DOS_IS_WIN32 -DHAVE_LIBSNDFILE=1016 -DBETA -DUSE_DOUBLE -DHAVE_PTHREAD_SPIN_LOCK -DHAVE_PTHREAD_BARRI
ER_INIT -DHAVE_SYNC_LOCK_TEST_AND_SET -DHAVE_IO_H -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAV
E_SYS_TYPES_H -DHAVE_VALUES_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -DPARCS -DPARCS -DENABLE_NEW_PARSER -D__BUILDING_LIBCSOUND
-I. -IH -IC:\MinGW\source\libsndfile\include -IC:\MinGW\include -IC:\zip\lib\boost_1_45_0 -IC:\Python27\include -IC:\msy
s\1.0\source\portaudio\include -IC:\msys\1.0\source\portmidi_victor -IC:\usr\local\include -IC:\usr\include -IEngine Opc
odes\sfont.c
In file included from Opcodes\/sfont.h:24:0,
from Opcodes\sfont.c:41:
Opcodes\/sftype.h:54:21: error: conflicting types for 'DWORD'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:229:23: note: previous declaration of 'DWORD' was her
e
scons: *** [Opcodes\sfont.o] Error 1
scons: building terminated because of errors.
Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
________________________________________
Fra: Victor Lazzarini [Victor.Lazzarini@nuim.ie]
Sendt: 17. november 2011 16:14
Til: Developer discussions
Emne: Re: [Cs-dev] compile issue (probably my fault)
I think somewhere in your system there is a macro defining "frm" or even "frm1". All variables named so then get substituted and a mess of spurious messages ensues.
Now, what is defining frm etc might be hard to find. Try to place at the top of ugnorman.c
#undef frm
or
#undef frm1
Victor
On 17 Nov 2011, at 14:57, Oeyvind Brandtsegg wrote:
> I'm back to fixing my build system,
> hope some of you would have the patience to look for anything obvious
> that I might have missed in the console output below
> best
> Oeyvind
>
> Oeyvind@Starfleet11 /c/MinGW/source/csound5
> $ c:/Python27/Scripts/scons useDouble=1
> scons: Reading SConscript files ...
>
> C S O U N D 5
>
> SCons build file for Csound 5:
> API library, plugin opcodes, utilities, and front ends.
>
> By Michael Gogins |
| Date | 2011-11-17 19:56 |
| From | Victor.Lazzarini@nuim.ie |
| Subject | Re: [Cs-dev] compile issue (probably my fault) |
| Attachments | None None None None |
| Date | 2011-11-17 23:10 |
| From | Øyvind Brandtsegg |
| Subject | Re: [Cs-dev] compile issue (probably my fault) |
| Attachments | None None |
|
argh, this let me proceed to another of the *frm related errors
Opcodes\dsputil.c: In function 'FetchIn': Opcodes\dsputil.c:134:21: error: expected identifier or '(' before numeric constant Opcodes\dsputil.c:143:5: error: lvalue required as left operand of assignment Opcodes\dsputil.c:149:50: error: subscripted value is neither array nor pointer Opcodes\dsputil.c:150:50: error: subscripted value is neither array nor pointer scons: *** [Opcodes\dsputil.o] Error 1 scons: building terminated because of errors. I figured I could do without the ATS opcodes for now, but I think I should not disable dsputil.
Just a shot in the dark: Earlier, stdint.h could not be found, so I added customCPPPATH.append('C:/MinGW/include') to my custom.py (where I have a stdint.h) Could there be a version mismatch of stdint.h? Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Fra: Victor.Lazzarini@nuim.ie [Victor.Lazzarini@nuim.ie]
Sendt: 17. november 2011 20:56 Til: Developer discussions Emne: Re: [Cs-dev] compile issue (probably my fault) This one should have been protected by a #ifndef WIN32 or something. Just comment out the offending line (probably a typedef ...).
----- Original Message ----- From: Øyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> Date: Thursday, November 17, 2011 6:45 pm Subject: Re: [Cs-dev] compile issue (probably my fault) To: Developer discussions <csound-devel@lists.sourceforge.net> > hm, did not help, sorry, > but I deleted the text "Opcodes/ugnorman.c" from Sconstruct line > 1175, and got further. > Would this give any hint as to what was wrong: > > gcc -o Opcodes\sfont.o -c -Wall -fexceptions -shared-libgcc -Wno- > format -g -fomit-frame-pointer -freorder-blocks -D_WIN3 > 2 -DWIN32 -DPIPES -DOS_IS_WIN32 -DHAVE_LIBSNDFILE=1016 -DBETA - > DUSE_DOUBLE -DHAVE_PTHREAD_SPIN_LOCK -DHAVE_PTHREAD_BARRI > ER_INIT -DHAVE_SYNC_LOCK_TEST_AND_SET -DHAVE_IO_H -DHAVE_FCNTL_H > -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAV > E_SYS_TYPES_H -DHAVE_VALUES_H -DHAVE_SOCKETS -DHAVE_DIRENT_H - > DPARCS -DPARCS -DENABLE_NEW_PARSER -D__BUILDING_LIBCSOUND > -I. -IH -IC:\MinGW\source\libsndfile\include -IC:\MinGW\include - > IC:\zip\lib\boost_1_45_0 -IC:\Python27\include -IC:\msy > s\1.0\source\portaudio\include - > IC:\msys\1.0\source\portmidi_victor -IC:\usr\local\include - > IC:\usr\include -IEngine Opc > odes\sfont.c > In file included from Opcodes\/sfont.h:24:0, > from Opcodes\sfont.c:41: > Opcodes\/sftype.h:54:21: error: conflicting types for 'DWORD' > c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:229:23: note: previous declaration of 'DWORD' was her > e > scons: *** [Opcodes\sfont.o] Error 1 > scons: building terminated because of errors. > > > > > Oeyvind Brandtsegg > Professor of Music Technology > NTNU > 7491 Trondheim > Norway > > ________________________________________ > Fra: Victor Lazzarini [Victor.Lazzarini@nuim.ie] > Sendt: 17. november 2011 16:14 > Til: Developer discussions > Emne: Re: [Cs-dev] compile issue (probably my fault) > > I think somewhere in your system there is a macro defining > "frm" or even "frm1". All variables named so then get > substituted and a mess of spurious messages ensues. > > Now, what is defining frm etc might be hard to find. Try to > place at the top of ugnorman.c > > #undef frm > > or > > #undef frm1 > > > > Victor > On 17 Nov 2011, at 14:57, Oeyvind Brandtsegg wrote: > > > I'm back to fixing my build system, > > hope some of you would have the patience to look for anything > obvious> that I might have missed in the console output below > > best > > Oeyvind > > > > Oeyvind@Starfleet11 /c/MinGW/source/csound5 > > $ c:/Python27/Scripts/scons useDouble=1 > > scons: Reading SConscript files ... > > > > C S O U N D 5 > > > > SCons build file for Csound 5: > > API library, plugin opcodes, utilities, and front ends. > > > > By Michael Gogins <gogins at pipeline dot com> > > > > For custom options, run 'scons -h'. > > For default options, run 'scons -H'. > > If headers or libraries are not found, edit 'custom.py'. > > For Linux, run in the standard shell > > with standard Python and just run 'scons'. > > For MinGW, run in the MSys shell > > and use www.python.org WIN32 Python to run scons. > > For Microsoft Visual C++, run in the Platform SDK > > command shell, and use www.python.org WIN32 > Python to run scons. > > > > System platform is 'win32'. > > Using options from 'custom.py.' > > > > scons: warning: The Options class is deprecated; use the Variables > > class instead. > > File "C:\MinGW\source\csound5\SConstruct", line 352, in <module> > > Adding custom path > > Build platform is MinGW/MSYS > > SCons tools on this platform: ['mingw', 'gcc', 'g++', > 'gnulink',> 'ar', 'gas', 'm4', 'swig', 'javac', 'jar'] > > CONFIGURATION DECISION: No localisation > > CONFIGURATION DECISION: Using double-precision floating point > for audio samples. > > Checking for C header file stdio.h... (cached) yes > > Checking for C library sndfile... (cached) yes > > Checking for C library pthread... (cached) yes > > CONFIGURATION DECISION: No MP3 support > > CONFIGURATION DECISION: No Wiimote support > > CONFIGURATION DECISION: No P5 Glove support > > CONFIGURATION DECISION: Building with Serial code support > > Checking for pthread_barrier_init(0, NULL, 0) in C library > pthread...> (cached) yes > > CONFIGURATION DECISION: Using HAVE_PTHREAD_BARRIER_INIT > > Checking for int n = omp_get_num_threads() in C++ library > gomp... (cached) yes > > Checking for __sync_lock_test_and_set((int32_t *)0, 0) in C library > > m... (cached) yes > > found sync lock > > Checking for C++ header file > > > frontends/CsoundVST/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h...> (cached) no > > Checking for C header file portaudio.h... (cached) yes > > Checking for C header file portmidi.h... (cached) yes > > Checking for C++ header file FL/Fl.H... (cached) no > > Checking for C++ header file boost/any.hpp... (cached) yes > > Checking for C++ header file gmm/gmm.h... (cached) no > > Checking for C library asound... (cached) no > > Checking for C library lo... (cached) no > > Checking for MusicXML2::SXMLFile f = > MusicXML2::TXMLFile::create() in > > C++ library musicxml2... (cached) no > > Checking for C header file jack/jack.h... (cached) no > > Checking for C header file pulse/simple.h... (cached) no > > Checking for C++ header file Opcodes/stk/include/Stk.h... > (cached) no > > Checking for C header file m_pd.h... (cached) no > > Checking for C header file tcl.h... (cached) no > > Checking for C header file zlib.h... (cached) no > > Checking for C++ header file funknown.h... (cached) no > > Checking for C header file lua.h... (cached) no > > Checking for SWIG... yes > > Python Version: 2.7 > > Checking for C header file Python.h... (cached) yes > > Checking for C++ header file jni.h... (cached) no > > Checking for C header file io.h... (cached) yes > > Checking for C header file fcntl.h... (cached) yes > > Checking for C header file unistd.h... (cached) yes > > Checking for C header file stdint.h... (cached) yes > > Checking for C header file sys/time.h... (cached) yes > > Checking for C header file sys/types.h... (cached) yes > > Checking for C header file termios.h... (cached) no > > Checking for C header file values.h... (cached) yes > > Checking for C header file winsock.h... (cached) yes > > Checking for C header file dirent.h... (cached) yes > > Checking for libsndfile version 1.0.16 or later... (cached) yes > > CONFIGURATION DECISION: Building with new parser enabled > > CONFIGURATION DECISION: Not building with new parser debugging > > CONFIGURATION DECISION: Building dynamic Csound library > > CONFIGURATION DECISION: Not building Csound C++ interface library. > > CONFIGURATION DECISION: Not generating Csound API PDF documentation. > > CONFIGURATION DECISION: Not building UDP plugins. > > CONFIGURATION DECISION: Not building OSC plugin. > > CONFIGURATION DECISION: Not building linear algebra opcodes. > > Checking for C library fltk_png... (cached) no > > CONFIGURATION DECISION: Not building with FLTK graphs and widgets. > > CONFIGURATION DECISION: Not building CoreAudio plugin. > > CONFIGURATION DECISION: Not building ALSA plugin. > > CONFIGURATION DECISION: Building PortAudio module. > > CONFIGURATION DECISION: Not building JACK plugin. > > CONFIGURATION DECISION: Building with PortMIDI. > > Checking for C header file fluidsynth.h... (cached) no > > CONFIGURATION DECISION: Not building fluid opcodes. > > CONFIGURATION DECISION: Not building vst4cs opcodes. > > CONFIGURATION DECISION: Not 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 Lua 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: Not building CsoundVST plugin and > standalone.> 0 False > > CONFIGURATION DECISION: Not building Tclcsound > > CONFIGURATION DECISION: Not building Winsound > > CONFIGURATION DECISION: Not building OSX GUI frontend > > CONFIGURATION DEFAULT: Building csLadspa. > > CONFIGURATION DECISION: Not building beats score frontend. > > CONFIGURATION DECISION: Not building catalog builder. > > CONFIGURATION DECISION: Not calling TAGS > > scons: done reading SConscript files. > > scons: Building targets ... > > g++ -fexceptions -shared-libgcc -fexceptions -shared-libgcc > > -mno-cygwin -Wl,--enable-auto-import -Wl,--enable-runtime-ps > > eudo-reloc -shared -mno-cygwin -Wl,--enable-auto-import > > -Wl,--enable-runtime-pseudo-reloc -o ampmidid.dll Opcodes\ampmid > > id.o -L. -L. -LC:\usr\local\lib -L. -L. > > -LC:\MinGW\source\libsndfile\bin -LC:\Python27\Libs > > -LC:\msys\1.0\source\portaud > > io\build\msvc\Win32\Release -lsndfile -lpthread -lpthread - > lgomp -lm > > -lsndfile -Wl,--out-implib,libampmidid.a > > Creating library file: libampmidid.a > > gcc -o Opcodes\ugnorman.o -c -Wall -fexceptions -shared-libgcc > > -Wno-format -g -fomit-frame-pointer -freorder-blocks -D_W > > IN32 -DWIN32 -DPIPES -DOS_IS_WIN32 -DHAVE_LIBSNDFILE=1016 -DBETA > > -DUSE_DOUBLE -DHAVE_PTHREAD_SPIN_LOCK -DHAVE_PTHREAD_BA > > RRIER_INIT -DHAVE_SYNC_LOCK_TEST_AND_SET -DHAVE_IO_H -DHAVE_FCNTL_H > > -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -D > > HAVE_SYS_TYPES_H -DHAVE_VALUES_H -DHAVE_SOCKETS -DHAVE_DIRENT_H > > -DPARCS -DPARCS -DENABLE_NEW_PARSER -D__BUILDING_LIBCSOU > > ND -I. -IH -IC:\MinGW\source\libsndfile\include -IC:\MinGW\include > > -IC:\zip\lib\boost_1_45_0 -IC:\Python27\include -IC:\ > > msys\1.0\source\portaudio\include - > IC:\msys\1.0\source\portmidi_victor> -IC:\usr\local\include - > IC:\usr\include -IEngine > > Opcodes\ugnorman.c > > Opcodes\ugnorman.c: In function 'FetchPartial': > > Opcodes\ugnorman.c:197:14: error: expected identifier or '(' before > > numeric constant > > Opcodes\ugnorman.c:201:5: error: lvalue required as left > operand of assignment > > Opcodes\ugnorman.c:207:9: warning: passing argument 1 of > 'bswap' makes > > pointer from integer without a cast > > Opcodes\ugnorman.c:82:23: note: expected 'const double *' but > argument> is of type 'int' > > Opcodes\ugnorman.c:208:9: warning: passing argument 1 of > 'bswap' makes > > pointer from integer without a cast > > Opcodes\ugnorman.c:82:23: note: expected 'const double *' but > argument> is of type 'int' > > Opcodes\ugnorman.c:211:26: error: invalid type argument of > unary '*' > > (have 'int') > > Opcodes\ugnorman.c:212:26: error: invalid type argument of > unary '*' > > (have 'int') > > Opcodes\ugnorman.c:216:5: error: lvalue required as left > operand of assignment > > Opcodes\ugnorman.c:221:7: warning: passing argument 1 of > 'bswap' makes > > pointer from integer without a cast > > Opcodes\ugnorman.c:82:23: note: expected 'const double *' but > argument> is of type 'int' > > Opcodes\ugnorman.c:222:7: warning: passing argument 1 of > 'bswap' makes > > pointer from integer without a cast > > Opcodes\ugnorman.c:82:23: note: expected 'const double *' but > argument> is of type 'int' > > Opcodes\ugnorman.c:223:7: warning: passing argument 1 of > 'bswap' makes > > pointer from integer without a cast > > Opcodes\ugnorman.c:82:23: note: expected 'const double *' but > argument> is of type 'int' > > Opcodes\ugnorman.c:224:7: warning: passing argument 1 of > 'bswap' makes > > pointer from integer without a cast > > Opcodes\ugnorman.c:82:23: note: expected 'const double *' but > argument> is of type 'int' > > Opcodes\ugnorman.c:227:17: error: invalid type argument of > unary '*' > > (have 'int') > > Opcodes\ugnorman.c:228:17: error: invalid type argument of > unary '*' > > (have 'int') > > Opcodes\ugnorman.c:229:18: error: invalid type argument of > unary '*' > > (have 'int') > > Opcodes\ugnorman.c:230:18: error: invalid type argument of > unary '*' > > (have 'int') > > Opcodes\ugnorman.c: In function 'FetchNzBand': > > Opcodes\ugnorman.c:343:14: error: expected identifier or '(' before > > numeric constant > > Opcodes\ugnorman.c:347:5: error: lvalue required as left > operand of assignment > > Opcodes\ugnorman.c:348:5: warning: passing argument 1 of > 'bswap' makes > > pointer from integer without a cast > > Opcodes\ugnorman.c:82:23: note: expected 'const double *' but > argument> is of type 'int' > > Opcodes\ugnorman.c:348:49: error: invalid type argument of > unary '*' > > (have 'int') > > Opcodes\ugnorman.c:355:5: error: lvalue required as left > operand of assignment > > Opcodes\ugnorman.c:357:5: warning: passing argument 1 of > 'bswap' makes > > pointer from integer without a cast > > Opcodes\ugnorman.c:82:23: note: expected 'const double *' but > argument> is of type 'int' > > Opcodes\ugnorman.c:357:49: error: invalid type argument of > unary '*' > > (have 'int') > > Opcodes\ugnorman.c: In function 'FetchADDPartials': > > Opcodes\ugnorman.c:645:21: error: expected identifier or '(' before > > numeric constant > > Opcodes\ugnorman.c:674:5: error: lvalue required as left > operand of assignment > > Opcodes\ugnorman.c:679:31: error: subscripted value is neither > array nor pointer > > Opcodes\ugnorman.c:681:32: error: subscripted value is neither > array nor pointer > > Opcodes\ugnorman.c:685:24: error: subscripted value is neither > array nor pointer > > Opcodes\ugnorman.c:687:25: error: subscripted value is neither > array nor pointer > > Opcodes\ugnorman.c: In function 'FetchADDNZbands': > > Opcodes\ugnorman.c:775:21: error: expected identifier or '(' before > > numeric constant > > Opcodes\ugnorman.c:797:5: error: lvalue required as left > operand of assignment > > Opcodes\ugnorman.c:803:31: error: subscripted value is neither > array nor pointer > > Opcodes\ugnorman.c:807:23: error: subscripted value is neither > array nor pointer > > Opcodes\ugnorman.c: In function 'fetchSINNOIpartials': > > Opcodes\ugnorman.c:1407:21: error: expected identifier or '(' before > > numeric constant > > Opcodes\ugnorman.c:1468:5: error: lvalue required as left > operand of assignment > > Opcodes\ugnorman.c:1476:11: warning: passing argument 1 of 'bswap' > > makes pointer from integer without a cast > > Opcodes\ugnorman.c:82:23: note: expected 'const double *' but > argument> is of type 'int' > > Opcodes\ugnorman.c:1478:11: warning: passing argument 1 of 'bswap' > > makes pointer from integer without a cast > > Opcodes\ugnorman.c:82:23: note: expected 'const double *' but > argument> is of type 'int' > > Opcodes\ugnorman.c:1488:21: error: invalid type argument of > unary '*' > > (have 'int') > > Opcodes\ugnorman.c:1490:22: error: invalid type argument of > unary '*' > > (have 'int') > > Opcodes\ugnorman.c:1502:11: warning: passing argument 1 of 'bswap' > > makes pointer from integer without a cast > > Opcodes\ugnorman.c:82:23: note: expected 'const double *' but > argument> is of type 'int' > > Opcodes\ugnorman.c:1504:11: warning: passing argument 1 of 'bswap' > > makes pointer from integer without a cast > > Opcodes\ugnorman.c:82:23: note: expected 'const double *' but > argument> is of type 'int' > > Opcodes\ugnorman.c:1519:21: error: invalid type argument of > unary '*' > > (have 'int') > > Opcodes\ugnorman.c:1521:22: error: invalid type argument of > unary '*' > > (have 'int') > > Opcodes\ugnorman.c: In function 'FetchBUFPartials': > > Opcodes\ugnorman.c:1651:21: error: expected identifier or '(' before > > numeric constant > > Opcodes\ugnorman.c:1682:5: error: lvalue required as left > operand of assignment > > Opcodes\ugnorman.c:1687:30: error: subscripted value is > neither array > > nor pointer > > Opcodes\ugnorman.c:1688:31: error: subscripted value is > neither array > > nor pointer > > Opcodes\ugnorman.c:1701:44: error: subscripted value is > neither array > > nor pointer > > Opcodes\ugnorman.c:1705:40: error: subscripted value is > neither array > > nor pointer > > Opcodes\ugnorman.c: In function 'FetchCROSSPartials': > > Opcodes\ugnorman.c:1952:21: error: expected identifier or '(' before > > numeric constant > > Opcodes\ugnorman.c:1983:5: error: lvalue required as left > operand of assignment > > Opcodes\ugnorman.c:1988:23: error: subscripted value is > neither array > > nor pointer > > Opcodes\ugnorman.c:1989:24: error: subscripted value is > neither array > > nor pointer > > Opcodes\ugnorman.c:2000:36: error: subscripted value is > neither array > > nor pointer > > Opcodes\ugnorman.c:2003:37: error: subscripted value is > neither array > > nor pointer > > Opcodes\ugnorman.c: At top level: > > Opcodes\ugnorman.c:752:14: warning: 'randifats' defined but > not used > > scons: *** [Opcodes\ugnorman.o] Error 1 > > scons: building terminated because of errors. > > > > Oeyvind@Starfleet11 /c/MinGW/source/csound5 > > $ > > > > -- > > > > Oeyvind Brandtsegg > > Professor of Music Technology > > NTNU > > 7491 Trondheim > > Norway > > > > --------------------------------------------------------------- > --------------- > > All the data continuously generated in your IT infrastructure > > contains a definitive record of customers, application performance, > > security threats, fraudulent activity, and more. Splunk takes this > > data and makes sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-novd2d > > _______________________________________________ > > Csound-devel mailing list > > Csound-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/csound-devel > > Dr Victor Lazzarini > Senior Lecturer > Dept. of Music > NUI Maynooth Ireland > tel.: +353 1 708 3545 > Victor dot Lazzarini AT nuim dot ie > > > > > ----------------------------------------------------------------- > ------------- > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > > ----------------------------------------------------------------- > ------------- > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application > performance, > security threats, fraudulent activity, and more. Splunk takes > this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini, Senior Lecturer, Dept. of Music, National University of Ireland, Maynooth |
| Date | 2011-11-17 23:15 |
| From | Victor.Lazzarini@nuim.ie |
| Subject | Re: [Cs-dev] compile issue (probably my fault) |
| Attachments | None None None None |
| Date | 2011-11-18 00:25 | |
| From | Øyvind Brandtsegg | |
| Subject | Re: [Cs-dev] compile issue (probably my fault) | |
| Attachments | None None | |
|
ok.
I tried the instructions here for displaying all predefined macros http://www.willus.com/mingw/_predefined.shtml
but got no macros with the name frm (or frm1 or frm2) Also, the #undef frm1 did not make any difference It's kinda strange, as I have a fresh mingw auto-install, so I should not have managed to clutter it. Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Fra: Victor.Lazzarini@nuim.ie [Victor.Lazzarini@nuim.ie]
Sendt: 18. november 2011 00:15 Til: Developer discussions Emne: Re: [Cs-dev] compile issue (probably my fault) No, I still think it's a macro problem, because the lines pointed by the error are fine and there
are no 'numerical constants' there, just variables. So if the variables are taken to be macros, then constants substitute it, inproperly. ----- Original Message ----- From: Øyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> Date: Thursday, November 17, 2011 11:10 pm Subject: Re: [Cs-dev] compile issue (probably my fault) To: Developer discussions <csound-devel@lists.sourceforge.net>
> ------------- > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application > performance, > security threats, fraudulent activity, and more. Splunk takes > this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d> _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini, Senior Lecturer, Dept. of Music, National University of Ireland, Maynooth |
| Date | 2011-11-18 09:49 | |
| From | Tito | |
| Subject | Re: [Cs-dev] compile issue (probably my fault) | |
| Attachments | None None | |
| I use GNU/Linux but I can help you. I have found this file in wine (windows emulator): /usr/local/include/wine/windows/dlgs.h and grep frm dlgs.h #define frm1 0x0434 #define frm2 0x0435 #define frm3 0x0436 #define frm4 0x0437 I have added #include "/usr/local/include/wine/windows/dlgs.h" in ugnorman.c and gcc -o Opcodes/ugnorman.os -c -Wno-format -DGNU_GETTEXT -g -fomit-frame-pointer -freorder-blocks -fPIC -DLINUX -DPIPES -fPIC -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DBETA -DUSE_DOUBLE -DHAVE_SOCKETS -DHAVE_PTHREAD_SPIN_LOCK -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/share/musicxml-v2/src/elements -I/usr/share/musicxml-v2/src/files -I/usr/share/musicxml-v2/src/parser -I/usr/share/musicxml-v2/src/lib -I/usr/share/musicxml-v2/src/visitors -I/home/mkg/share/LuaJIT-1.1.5/src -I/home/mkg/csound5/frontends/CsoundVST -I/home/mkg/csound5/frontends/CsoundVST/vstsdk2.4 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/X11R6/include Opcodes/ugnorman.c Opcodes/ugnorman.c: In function 'FetchPartial': Opcodes/ugnorman.c:197: error: expected identifier or '(' before numeric constant Opcodes/ugnorman.c:201: error: lvalue required as left operand of assignment Opcodes/ugnorman.c:207: warning: passing argument 1 of 'bswap' makes pointer from integer without a cast Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is of type 'int' Opcodes/ugnorman.c:208: warning: passing argument 1 of 'bswap' makes pointer from integer without a cast Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is of type 'int' Opcodes/ugnorman.c:211: error: invalid type argument of 'unary *' (have 'int') Opcodes/ugnorman.c:212: error: invalid type argument of 'unary *' (have 'int') Opcodes/ugnorman.c:216: error: lvalue required as left operand of assignment Opcodes/ugnorman.c:221: warning: passing argument 1 of 'bswap' makes pointer from integer without a cast Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is of type 'int' Opcodes/ugnorman.c:222: warning: passing argument 1 of 'bswap' makes pointer from integer without a cast Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is of type 'int' Opcodes/ugnorman.c:223: warning: passing argument 1 of 'bswap' makes pointer from integer without a cast ... For windows I have found this http://msdn.microsoft.com/en-us/library/windows/desktop/ms646960(v=vs.85).aspx http://www.koders.com/c/fidD57E493B5A54B95ABB98AE5EE5BAFB462EE70337.aspx tito 2011/11/18 Øyvind Brandtsegg <oyvind.brandtsegg@ntnu.no>
|
| Date | 2011-11-18 10:45 | |
| From | Victor Lazzarini | |
| Subject | Re: [Cs-dev] compile issue (probably my fault) | |
| Attachments | None None | |
| ... told you ;) Well, these are some dialog windows definitions, which in principle you should not need. I wonder how Mike Gogins avoids this in his build. Victor On 18 Nov 2011, at 09:49, Tito wrote: I use GNU/Linux but I can help you. Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
| Date | 2011-11-18 11:14 | |
| From | Øyvind Brandtsegg | |
| Subject | Re: [Cs-dev] compile issue (probably my fault) | |
| Attachments | None None | |
|
Fantastic, thank you so much Tito.
And thanks Victor for pointing it out too. Now, I tried deleting dlgs.h (moving it anyway), but then it complains about it being missing (so it's used for something?) I then tried deleting line 70 to 73 in dlgs.h, and it works. I guess modifying dlgs.h is not the way to do it properly, so we should change the csound source in some way to make it work without this hack (?) Note also that I commented out line 54 of sftype.h /*typedef uint32_t DWORD;*/ I was also missing the portmidi library, but was able to compile with usePortMidi=0 All good so far, But, the original reason why I wanted to compile now was to test the new serial opcodes, and those will not build (I can only build if I use includeSerial=0). Here's the error when using includeSerial=1 -IC:\Python27\include -IC:\msys\1.0\source\portaudio\include -IC:\usr\local\include -IC:\usr\include Opcodes\serial.c Opcodes\serial.c: In function 'serialport_init': Opcodes\serial.c:221:67: error: 'src' undeclared (first use in this function) Opcodes\serial.c:221:67: note: each undeclared identifier is reported only once for each function it appears in Opcodes\serial.c:224:26: warning: passing argument 1 of 'CreateFileA' from incompatible pointer type c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:1364:26: note: expected 'LPCSTR' but argument is of type 'WCHAR *' Opcodes\serial.c:228:14: error: 'csound' undeclared (first use in this function) Opcodes\serial.c:230:5: error: 'dcbSerial' undeclared (first use in this function) Opcodes\serial.c: In function 'serialEnd': Opcodes\serial.c:287:5: error: incompatible type for argument 1 of 'CloseHandle' c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:1327:24: note: expected 'HANDLE' but argument is of type 'float' Opcodes\serial.c: In function 'serialWrite': Opcodes\serial.c:299:7: error: incompatible type for argument 1 of 'WriteFile' c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2206:24: note: expected 'HANDLE' but argument is of type 'float' Opcodes\serial.c:299:7: warning: passing argument 4 of 'WriteFile' from incompatible pointer type c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2206:24: note: expected 'PDWORD' but argument is of type 'int *' Opcodes\serial.c:308:7: error: incompatible type for argument 1 of 'WriteFile' c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2206:24: note: expected 'HANDLE' but argument is of type 'float' Opcodes\serial.c:308:7: warning: passing argument 4 of 'WriteFile' from incompatible pointer type c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2206:24: note: expected 'PDWORD' but argument is of type 'int *' Opcodes\serial.c: In function 'serialRead': Opcodes\serial.c:322:5: error: incompatible type for argument 1 of 'ReadFile' c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2012:24: note: expected 'HANDLE' but argument is of type 'float' Opcodes\serial.c:322:5: warning: pointer targets in passing argument 4 of 'ReadFile' differ in signedness c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2012:24: note: expected 'PDWORD' but argument is of type 'ssize_t *' Opcodes\serial.c:322:44: error: expected ';' before ')' token Opcodes\serial.c:322:44: error: expected statement before ')' token Opcodes\serial.c: In function 'serialPrint': Opcodes\serial.c:339:5: error: incompatible type for argument 1 of 'ReadFile' c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2012:24: note: expected 'HANDLE' but argument is of type 'float' Opcodes\serial.c:339:5: warning: pointer targets in passing argument 4 of 'ReadFile' differ in signedness c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2012:24: note: expected 'PDWORD' but argument is of type 'ssize_t *' Opcodes\serial.c:339:49: error: expected ';' before ')' token Opcodes\serial.c:339:49: error: expected statement before ')' token scons: *** [Opcodes\serial.o] Error 1 scons: building terminated because of errors. Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Fra: Tito [tito.01beta@gmail.com]
Sendt: 18. november 2011 10:49 Til: Developer discussions Emne: Re: [Cs-dev] compile issue (probably my fault) I use GNU/Linux but I can help you.
I have found this file in wine (windows emulator): /usr/local/include/wine/windows/dlgs.h and grep frm dlgs.h #define frm1 0x0434 #define frm2 0x0435 #define frm3 0x0436 #define frm4 0x0437 I have added #include "/usr/local/include/wine/windows/dlgs.h" in ugnorman.c and gcc -o Opcodes/ugnorman.os -c -Wno-format -DGNU_GETTEXT -g -fomit-frame-pointer -freorder-blocks -fPIC -DLINUX -DPIPES -fPIC -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DBETA -DUSE_DOUBLE -DHAVE_SOCKETS -DHAVE_PTHREAD_SPIN_LOCK -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/share/musicxml-v2/src/elements -I/usr/share/musicxml-v2/src/files -I/usr/share/musicxml-v2/src/parser -I/usr/share/musicxml-v2/src/lib -I/usr/share/musicxml-v2/src/visitors -I/home/mkg/share/LuaJIT-1.1.5/src -I/home/mkg/csound5/frontends/CsoundVST -I/home/mkg/csound5/frontends/CsoundVST/vstsdk2.4 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/X11R6/include Opcodes/ugnorman.c Opcodes/ugnorman.c: In function 'FetchPartial': Opcodes/ugnorman.c:197: error: expected identifier or '(' before numeric constant Opcodes/ugnorman.c:201: error: lvalue required as left operand of assignment Opcodes/ugnorman.c:207: warning: passing argument 1 of 'bswap' makes pointer from integer without a cast Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is of type 'int' Opcodes/ugnorman.c:208: warning: passing argument 1 of 'bswap' makes pointer from integer without a cast Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is of type 'int' Opcodes/ugnorman.c:211: error: invalid type argument of 'unary *' (have 'int') Opcodes/ugnorman.c:212: error: invalid type argument of 'unary *' (have 'int') Opcodes/ugnorman.c:216: error: lvalue required as left operand of assignment Opcodes/ugnorman.c:221: warning: passing argument 1 of 'bswap' makes pointer from integer without a cast Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is of type 'int' Opcodes/ugnorman.c:222: warning: passing argument 1 of 'bswap' makes pointer from integer without a cast Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is of type 'int' Opcodes/ugnorman.c:223: warning: passing argument 1 of 'bswap' makes pointer from integer without a cast ... For windows I have found this http://msdn.microsoft.com/en-us/library/windows/desktop/ms646960(v=vs.85).aspx http://www.koders.com/c/fidD57E493B5A54B95ABB98AE5EE5BAFB462EE70337.aspx tito 2011/11/18 Øyvind Brandtsegg <oyvind.brandtsegg@ntnu.no>
|
| Date | 2011-11-18 11:16 |
| From | jpff@cs.bath.ac.uk |
| Subject | Re: [Cs-dev] compile issue (probably my fault) |
I had no trouble when I built Windows Csound on XP. Is this a Windows7
effect?
==John
> ... told you ;)
>
> Well, these are some dialog windows definitions, which in principle you
> should not need. I wonder how Mike Gogins avoids this in his build.
>
> Victor
>
> On 18 Nov 2011, at 09:49, Tito wrote:
>
>> I use GNU/Linux but I can help you.
>> I have found this file in wine (windows emulator):
>>
>> /usr/local/include/wine/windows/dlgs.h
>>
>> and
>>
>> grep frm dlgs.h
>> #define frm1 0x0434
>> #define frm2 0x0435
>> #define frm3 0x0436
>> #define frm4 0x0437
>>
>> I have added
>>
>> #include "/usr/local/include/wine/windows/dlgs.h"
>>
>> in ugnorman.c and
>>
>> gcc -o Opcodes/ugnorman.os -c -Wno-format -DGNU_GETTEXT -g
>> -fomit-frame-pointer -freorder-blocks -fPIC -DLINUX -DPIPES -fPIC
>> -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DBETA -DUSE_DOUBLE -DHAVE_SOCKETS
>> -DHAVE_PTHREAD_SPIN_LOCK -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/share/musicxml-v2/src/elements
>> -I/usr/share/musicxml-v2/src/files -I/usr/share/musicxml-v2/src/parser
>> -I/usr/share/musicxml-v2/src/lib -I/usr/share/musicxml-v2/src/visitors
>> -I/home/mkg/share/LuaJIT-1.1.5/src
>> -I/home/mkg/csound5/frontends/CsoundVST
>> -I/home/mkg/csound5/frontends/CsoundVST/vstsdk2.4 -I/usr/local/include
>> -I/usr/include -I/usr/include -I/usr/X11R6/include Opcodes/ugnorman.c
>> Opcodes/ugnorman.c: In function 'FetchPartial':
>> Opcodes/ugnorman.c:197: error: expected identifier or '(' before numeric
>> constant
>> Opcodes/ugnorman.c:201: error: lvalue required as left operand of
>> assignment
>> Opcodes/ugnorman.c:207: warning: passing argument 1 of 'bswap' makes
>> pointer from integer without a cast
>> Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is
>> of type 'int'
>> Opcodes/ugnorman.c:208: warning: passing argument 1 of 'bswap' makes
>> pointer from integer without a cast
>> Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is
>> of type 'int'
>> Opcodes/ugnorman.c:211: error: invalid type argument of 'unary *' (have
>> 'int')
>> Opcodes/ugnorman.c:212: error: invalid type argument of 'unary *' (have
>> 'int')
>> Opcodes/ugnorman.c:216: error: lvalue required as left operand of
>> assignment
>> Opcodes/ugnorman.c:221: warning: passing argument 1 of 'bswap' makes
>> pointer from integer without a cast
>> Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is
>> of type 'int'
>> Opcodes/ugnorman.c:222: warning: passing argument 1 of 'bswap' makes
>> pointer from integer without a cast
>> Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is
>> of type 'int'
>> Opcodes/ugnorman.c:223: warning: passing argument 1 of 'bswap' makes
>> pointer from integer without a cast
>> ...
>>
>> For windows I have found this
>>
>> http://msdn.microsoft.com/en-us/library/windows/desktop/ms646960(v=vs.85).aspx
>> http://www.koders.com/c/fidD57E493B5A54B95ABB98AE5EE5BAFB462EE70337.aspx
>>
>> tito
>>
>> 2011/11/18 Øyvind Brandtsegg |
| Date | 2011-11-18 11:18 |
| From | jpff@cs.bath.ac.uk |
| Subject | Re: [Cs-dev] compile issue (probably my fault) |
Will look at the trouble with serial. It built for me....
> Fantastic, thank you so much Tito.
> And thanks Victor for pointing it out too.
>
> Now,
> I tried deleting dlgs.h (moving it anyway),
> but then it complains about it being missing (so it's used for something?)
> I then tried deleting line 70 to 73 in dlgs.h,
> and it works.
> I guess modifying dlgs.h is not the way to do it properly,
> so we should change the csound source in some way to make it work without
> this hack (?)
>
> Note also that I commented out line 54 of sftype.h
> /*typedef uint32_t DWORD;*/
>
> I was also missing the portmidi library, but was able to compile with
> usePortMidi=0
>
> All good so far,
>
> But, the original reason why I wanted to compile now was to test the new
> serial opcodes,
> and those will not build (I can only build if I use includeSerial=0).
>
> Here's the error when using includeSerial=1
>
> -IC:\Python27\include -IC:\msys\1.0\source\portaudio\include
> -IC:\usr\local\include -IC:\usr\include Opcodes\serial.c
> Opcodes\serial.c: In function 'serialport_init':
> Opcodes\serial.c:221:67: error: 'src' undeclared (first use in this
> function)
> Opcodes\serial.c:221:67: note: each undeclared identifier is reported only
> once for each function it appears in
> Opcodes\serial.c:224:26: warning: passing argument 1 of 'CreateFileA' from
> incompatible pointer type
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:1364:26:
> note: expected 'LPCSTR' but argument is of
> type 'WCHAR *'
> Opcodes\serial.c:228:14: error: 'csound' undeclared (first use in this
> function)
> Opcodes\serial.c:230:5: error: 'dcbSerial' undeclared (first use in this
> function)
> Opcodes\serial.c: In function 'serialEnd':
> Opcodes\serial.c:287:5: error: incompatible type for argument 1 of
> 'CloseHandle'
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:1327:24:
> note: expected 'HANDLE' but argument is of
> type 'float'
> Opcodes\serial.c: In function 'serialWrite':
> Opcodes\serial.c:299:7: error: incompatible type for argument 1 of
> 'WriteFile'
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2206:24:
> note: expected 'HANDLE' but argument is of
> type 'float'
> Opcodes\serial.c:299:7: warning: passing argument 4 of 'WriteFile' from
> incompatible pointer type
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2206:24:
> note: expected 'PDWORD' but argument is of
> type 'int *'
> Opcodes\serial.c:308:7: error: incompatible type for argument 1 of
> 'WriteFile'
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2206:24:
> note: expected 'HANDLE' but argument is of
> type 'float'
> Opcodes\serial.c:308:7: warning: passing argument 4 of 'WriteFile' from
> incompatible pointer type
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2206:24:
> note: expected 'PDWORD' but argument is of
> type 'int *'
> Opcodes\serial.c: In function 'serialRead':
> Opcodes\serial.c:322:5: error: incompatible type for argument 1 of
> 'ReadFile'
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2012:24:
> note: expected 'HANDLE' but argument is of
> type 'float'
> Opcodes\serial.c:322:5: warning: pointer targets in passing argument 4 of
> 'ReadFile' differ in signedness
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2012:24:
> note: expected 'PDWORD' but argument is of
> type 'ssize_t *'
> Opcodes\serial.c:322:44: error: expected ';' before ')' token
> Opcodes\serial.c:322:44: error: expected statement before ')' token
> Opcodes\serial.c: In function 'serialPrint':
> Opcodes\serial.c:339:5: error: incompatible type for argument 1 of
> 'ReadFile'
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2012:24:
> note: expected 'HANDLE' but argument is of
> type 'float'
> Opcodes\serial.c:339:5: warning: pointer targets in passing argument 4 of
> 'ReadFile' differ in signedness
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2012:24:
> note: expected 'PDWORD' but argument is of
> type 'ssize_t *'
> Opcodes\serial.c:339:49: error: expected ';' before ')' token
> Opcodes\serial.c:339:49: error: expected statement before ')' token
> scons: *** [Opcodes\serial.o] Error 1
> scons: building terminated because of errors.
>
>
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> ________________________________
> Fra: Tito [tito.01beta@gmail.com]
> Sendt: 18. november 2011 10:49
> Til: Developer discussions
> Emne: Re: [Cs-dev] compile issue (probably my fault)
>
> I use GNU/Linux but I can help you.
> I have found this file in wine (windows emulator):
>
> /usr/local/include/wine/windows/dlgs.h
>
> and
>
> grep frm dlgs.h
> #define frm1 0x0434
> #define frm2 0x0435
> #define frm3 0x0436
> #define frm4 0x0437
>
> I have added
>
> #include "/usr/local/include/wine/windows/dlgs.h"
>
> in ugnorman.c and
>
> gcc -o Opcodes/ugnorman.os -c -Wno-format -DGNU_GETTEXT -g
> -fomit-frame-pointer -freorder-blocks -fPIC -DLINUX -DPIPES -fPIC
> -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DBETA -DUSE_DOUBLE -DHAVE_SOCKETS
> -DHAVE_PTHREAD_SPIN_LOCK -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/share/musicxml-v2/src/elements
> -I/usr/share/musicxml-v2/src/files -I/usr/share/musicxml-v2/src/parser
> -I/usr/share/musicxml-v2/src/lib -I/usr/share/musicxml-v2/src/visitors
> -I/home/mkg/share/LuaJIT-1.1.5/src -I/home/mkg/csound5/frontends/CsoundVST
> -I/home/mkg/csound5/frontends/CsoundVST/vstsdk2.4 -I/usr/local/include
> -I/usr/include -I/usr/include -I/usr/X11R6/include Opcodes/ugnorman.c
> Opcodes/ugnorman.c: In function 'FetchPartial':
> Opcodes/ugnorman.c:197: error: expected identifier or '(' before numeric
> constant
> Opcodes/ugnorman.c:201: error: lvalue required as left operand of
> assignment
> Opcodes/ugnorman.c:207: warning: passing argument 1 of 'bswap' makes
> pointer from integer without a cast
> Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is of
> type 'int'
> Opcodes/ugnorman.c:208: warning: passing argument 1 of 'bswap' makes
> pointer from integer without a cast
> Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is of
> type 'int'
> Opcodes/ugnorman.c:211: error: invalid type argument of 'unary *' (have
> 'int')
> Opcodes/ugnorman.c:212: error: invalid type argument of 'unary *' (have
> 'int')
> Opcodes/ugnorman.c:216: error: lvalue required as left operand of
> assignment
> Opcodes/ugnorman.c:221: warning: passing argument 1 of 'bswap' makes
> pointer from integer without a cast
> Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is of
> type 'int'
> Opcodes/ugnorman.c:222: warning: passing argument 1 of 'bswap' makes
> pointer from integer without a cast
> Opcodes/ugnorman.c:82: note: expected 'const double *' but argument is of
> type 'int'
> Opcodes/ugnorman.c:223: warning: passing argument 1 of 'bswap' makes
> pointer from integer without a cast
> ...
>
> For windows I have found this
>
> http://msdn.microsoft.com/en-us/library/windows/desktop/ms646960(v=vs.85).aspx
> http://www.koders.com/c/fidD57E493B5A54B95ABB98AE5EE5BAFB462EE70337.aspx
>
> tito
>
> 2011/11/18 Øyvind Brandtsegg
> |
| Date | 2011-11-18 11:19 |
| From | jpff@cs.bath.ac.uk |
| Subject | Re: [Cs-dev] compile issue (probably my fault) |
re seriall, change src to serialport Sorry about that ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
| Date | 2011-11-18 11:22 |
| From | Øyvind Brandtsegg |
| Subject | Re: [Cs-dev] compile issue (probably my fault) |
all good, that got rid of the first error, but there's more -IC:\Python27\include -IC:\msys\1.0\source\portaudio\include -IC:\usr\local\include -IC:\usr\include Opcodes\serial.c Opcodes\serial.c: In function 'serialport_init': Opcodes\serial.c:224:26: warning: passing argument 1 of 'CreateFileA' from incompatible pointer type c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:1364:26: note: expected 'LPCSTR' but argument is of type 'WCHAR *' Opcodes\serial.c:228:14: error: 'csound' undeclared (first use in this function) Opcodes\serial.c:228:14: note: each undeclared identifier is reported only once for each function it appears in Opcodes\serial.c:230:5: error: 'dcbSerial' undeclared (first use in this function) Opcodes\serial.c: In function 'serialEnd': Opcodes\serial.c:287:5: error: incompatible type for argument 1 of 'CloseHandle' c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:1327:24: note: expected 'HANDLE' but argument is of type 'float' Opcodes\serial.c: In function 'serialWrite': Opcodes\serial.c:299:7: error: incompatible type for argument 1 of 'WriteFile' c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2206:24: note: expected 'HANDLE' but argument is of type 'float' Opcodes\serial.c:299:7: warning: passing argument 4 of 'WriteFile' from incompatible pointer type c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2206:24: note: expected 'PDWORD' but argument is of type 'int *' Opcodes\serial.c:308:7: error: incompatible type for argument 1 of 'WriteFile' c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2206:24: note: expected 'HANDLE' but argument is of type 'float' Opcodes\serial.c:308:7: warning: passing argument 4 of 'WriteFile' from incompatible pointer type c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2206:24: note: expected 'PDWORD' but argument is of type 'int *' Opcodes\serial.c: In function 'serialRead': Opcodes\serial.c:322:5: error: incompatible type for argument 1 of 'ReadFile' c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2012:24: note: expected 'HANDLE' but argument is of type 'float' Opcodes\serial.c:322:5: warning: pointer targets in passing argument 4 of 'ReadFile' differ in signedness c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2012:24: note: expected 'PDWORD' but argument is of type 'ssize_t *' Opcodes\serial.c:322:44: error: expected ';' before ')' token Opcodes\serial.c:322:44: error: expected statement before ')' token Opcodes\serial.c: In function 'serialPrint': Opcodes\serial.c:339:5: error: incompatible type for argument 1 of 'ReadFile' c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2012:24: note: expected 'HANDLE' but argument is of type 'float' Opcodes\serial.c:339:5: warning: pointer targets in passing argument 4 of 'ReadFile' differ in signedness c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winbase.h:2012:24: note: expected 'PDWORD' but argument is of type 'ssize_t *' Opcodes\serial.c:339:49: error: expected ';' before ')' token Opcodes\serial.c:339:49: error: expected statement before ')' token scons: *** [Opcodes\serial.o] Error 1 scons: building terminated because of errors. Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway ________________________________________ Fra: jpff@cs.bath.ac.uk [jpff@cs.bath.ac.uk] Sendt: 18. november 2011 12:19 Til: Developer discussions Emne: Re: [Cs-dev] compile issue (probably my fault) re seriall, change src to serialport Sorry about that ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-devel ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
| Date | 2011-11-18 11:30 |
| From | jpff@cs.bath.ac.uk |
| Subject | Re: [Cs-dev] compile issue (probably my fault) |
> all good, > that got rid of the first error, but there's more So I got it totally wrong! Will look ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |