I just checked out a whole new miXed dir from cvs and am trying to compile toxy on MacOS X. I get this:
hans@sla:toxy > make gcc2 -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -O2 -funroll-loops -fomit-frame-pointer -DUNIX -DMACOSX -I. -I../../../pd/src -I../shared -c -o widgettype.o widgettype.c widgettype.c:16: illegal expression, found `;' cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode widgettype.c:16: parse error before `;' make: *** [widgettype.o] Error 1
Which is caused by this unusual construction(at least in my book):
static char masterwidget_builtin[] = #include "default.wiq" ;
default.wiq is empty on my machine: -rw-r--r-- 1 hans staff 0 Mar 8 23:52 default.wiq
How should I fix this?
.hc
hi Hans-Christoph,
after running make, did not you get any error message from the shell? Prior to the gcc stuff, you should see at least something like:
/bin/sh: ../quoteinitializer: /usr/bin/gawk: bad interpreter: No such file or directory
(But probably you do not -- when I tried building my things on osx, only once until now, make was playing very strange tricks without even letting me know.)
So, you probably need an osx variant of the first line in the 'quoteinitializer' script, on linux:
#!/usr/bin/gawk -f
I mean, this should be gawk, not just awk, because on some systems awk is symlinked to mawk, which follows slightly different character escaping rules. Perhaps I am missing something -- what is a universally available, and properly standardized scripting tool (for all flavors of linux and osx, at least)?
The purpose of the default.wiq file is to have a built-in version of default.wid, serving as a fail-safe allowing the external to work, even if default.wid cannot be found. This only makes sense, if the .wiq is generated by make... ok, perhaps, having it pre-generated in the cvs makes sense as well... but, would not this result in people committing their re-generated versions, unwillingly?
Last thing, and it is quite an important warning, really -- toxy widgets are very alpha. They failed to work for me on osx, and I do not expect being able to support that platform anytime soon.
However, I will be very grateful for any report, or complaint, or any hint.
Krzysztof
Btw, default.wid (and .wiq) has been renamed to setup.wid in toxy alpha6, which I am about to commit now.
Hans-Christoph Steiner wrote: ...
default.wiq is empty on my machine:
hello,
I've got the same problem on linux : (red hat 9, ccrma package)
[cyrille@nunux miXed]$ make
make[1]: Entre dans le répertoire `/data/pdexternal/externals/miXed/toxy' gcc -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer -DUNIX -I. -I../../../pd/src -I../shared -c -o widgettype.o widgettype.c widgettype.c:16: erreur d'analyse syntaxique avant le jeton « ; » make[1]: *** [widgettype.o] Erreur 1 make[1]: Quitte le répertoire `/data/pdexternal/externals/miXed/toxy' make: *** [all] Erreur 2
I've got gcc 3.2 and not 2.95. gawk is installed
any idea?
anyway : congratulation for you work, it's really great.
thanks
Cyrille
Krzysztof Czaja a écrit:
hi Hans-Christoph,
after running make, did not you get any error message from the shell? Prior to the gcc stuff, you should see at least something like:
/bin/sh: ../quoteinitializer: /usr/bin/gawk: bad interpreter: No such file or directory
(But probably you do not -- when I tried building my things on osx, only once until now, make was playing very strange tricks without even letting me know.)
So, you probably need an osx variant of the first line in the 'quoteinitializer' script, on linux:
#!/usr/bin/gawk -f
I mean, this should be gawk, not just awk, because on some systems awk is symlinked to mawk, which follows slightly different character escaping rules. Perhaps I am missing something -- what is a universally available, and properly standardized scripting tool (for all flavors of linux and osx, at least)?
The purpose of the default.wiq file is to have a built-in version of default.wid, serving as a fail-safe allowing the external to work, even if default.wid cannot be found. This only makes sense, if the .wiq is generated by make... ok, perhaps, having it pre-generated in the cvs makes sense as well... but, would not this result in people committing their re-generated versions, unwillingly?
Last thing, and it is quite an important warning, really -- toxy widgets are very alpha. They failed to work for me on osx, and I do not expect being able to support that platform anytime soon.
However, I will be very grateful for any report, or complaint, or any hint.
Krzysztof
Btw, default.wid (and .wiq) has been renamed to setup.wid in toxy alpha6, which I am about to commit now.
Hans-Christoph Steiner wrote: ...
default.wiq is empty on my machine:
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
hi Cyrille,
thanks for letting me know. Wonder, how comes that make starts from widgettype.c:
cyrille.henry wrote: ...
make[1]: Entre dans le répertoire `/data/pdexternal/externals/miXed/toxy' gcc -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer -DUNIX -I. -I../../../pd/src -I../shared -c -o widgettype.o widgettype.c
could you please: cd <miXed-dir>; cvs update -d; cd toxy; cat build_counter (make sure it is alpha7); make cleanall; make depend; make, and send me the *whole* printout (from make), privately?
As the last resort, there are linux binaries on my page, always fresh. Alternatively, the setup.wiq might be copied from the source tarball there.
Krzysztof