Let's keep this on the list since its of general interest.
On Apr 26, 2006, at 2:25 PM, Damian Stewart wrote:
hey
i'm getting a bunch of issues compiling pd from cvs for windows using mingw32. i've followed the instructions at your how-to over at https://puredata.org/docs/developer/mingw
and am now up to the 'make' stage. just running 'make' gives me errors related to being unable to find sys/socket.h. so i add -DMSW to MORECFLAGS in the makefile, which fixes that, but gives me
Which makefile? There are many.
s_file.c:33: error: initializer element is not constant
instead. s_file.c line 33 is:
t_symbol *sys_flags = &s_;
any idea what might be causing this?
An actually copy-n-paste of the compilation transcript is more
helpful. Which version of Pd are you compiling? 0.39.2? the latest
in CVS?
.hc
"The arc of history bends towards justice."
- Dr. Martin Luther King,
Jr.
Hans-Christoph Steiner wrote:
Which makefile? There are many.
the one in pd/src :-)
An actually copy-n-paste of the compilation transcript is more
helpful.
Which version of Pd are you compiling? 0.39.2? the latest in CVS?
it's the latest in CVS.
and now i get something different:
damian@FREY-LAPTOP ~/pd/pure-data/pd/src
$ make clean
rm -f find ../extra/ -name "*.pd_*"
rm -f tags
rm -f ../obj/* ../bin/pd ../bin/ ../bin/pdsend
../bin/pdreceive ../bin/pd-watchdog m_stamp.c
rm: ../obj/CVS' is a directory rm:
../bin' is a directory
make: [local-clean] Error 1 (ignored)
rm -f find ../portaudio ../portaudio_v18 -name "*.o"
rm -f *~
(cd ../doc/6.externs; rm -f *.pd_linux)
rm -f makefile.dependencies
touch makefile.dependencies
chmod 666 makefile.dependencies
damian@FREY-LAPTOP ~/pd/pure-data/pd/src $ make depend make: Nothing to be done for `depend'.
damian@FREY-LAPTOP ~/pd/pure-data/pd/src $ make gcc -g -O2 -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno switch -DMSW -DINSTALL_PREFIX="/usr/local" -I. -c -o ../obj/g_canvas.o g_ca vas.c g_canvas.c:57: error: initializer element is not constant g_canvas.c:58: error: initializer element is not constant g_canvas.c:571: warning: 'canvas_makebindsym' defined locally after being refer nced with dllimport linkage g_canvas.c:674: warning: 'canvas_redraw' defined locally after being referenced with dllimport linkage g_canvas.c:746: warning: 'canvas_vis' defined locally after being referenced wi h dllimport linkage g_canvas.c:844: warning: 'glist_isvisible' defined locally after being referenc d with dllimport linkage g_canvas.c:849: warning: 'glist_istoplevel' defined locally after being referen ed with dllimport linkage g_canvas.c:1057: warning: 'canvas_loadbang' defined locally after being referen ed with dllimport linkage g_canvas.c:1202: warning: 'canvas_isabstraction' defined locally after being re erenced with dllimport linkage g_canvas.c:1229: warning: 'canvas_getrootfor' defined locally after being refer nced with dllimport linkage g_canvas.c:1321: warning: 'canvas_suspend_dsp' defined locally after being refe enced with dllimport linkage g_canvas.c:1328: warning: 'canvas_resume_dsp' defined locally after being refer nced with dllimport linkage make: *** [g_canvas.o] Error 1
damian@FREY-LAPTOP ~/pd/pure-data/pd/src $
g_canvas line 57 is: static t_symbol *canvas_newfilename = &s_;
gcc --ver says: Reading specs from d:/mingw/bin/../lib/gcc/mingw32/3.4.4/specs Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.4 (mingw special)
mwah.