[PD] pd 0.43 branch with the new GUI code

Hans-Christoph Steiner hans at at.or.at
Thu Aug 27 16:11:28 CEST 2009


On Aug 27, 2009, at 3:25 AM, marius schebella wrote:

> hi hans,
> thanks, looks good. here's some feedback...
> don't know whether you are using a new font, or osx is just  
> replacing the usual font, but the font looks so much better
> here an error I got, when running a search:
> bad switch "-all": must be --, -backward, -count, -elide, -exact, - 
> forward, -nocase, or -regexp
> bad switch "-all": must be --, -backward, -count, -elide, -exact, - 
> forward, -nocase, or -regexp
>    while executing
> ".pdwindow.text search -all -nocase -- $findstring 0.0"
>    (procedure "dialog_find::ok" line 11)
>    invoked from within
> "dialog_find::ok .find"
>    (command bound to event)

Bug!  Thanks.  I must have used something not supported by Tcl/Tk 8.4.

> the menubar says "wish" instead of Pd, and has no icon.

Yeah, that happens when you run it like ./pd on Mac OS X

> the only button (dsp) in the pd window won't turn on audio, but does  
> turn audio off, once it's running.

Bug... thanks for reporting.

> undo seems broken, too.

Not implemented yet :)  Should be pretty easy tho.

> I see an open recent menu entry, but it does not display any items.

It doesn't save currently, we need to figure out how the GUI should  
save preferences first.  So right now, its Open Recent for this  
session only.

.hc

>
> cheers,
> marius.
>
>
> Hans-Christoph Steiner wrote:
>> On Aug 26, 2009, at 8:23 PM, marius schebella wrote:
>>> Hans-Christoph Steiner wrote:
>>>> On Aug 26, 2009, at 7:41 PM, marius schebella wrote:
>>>>> Hans-Christoph Steiner wrote:
>>>>>> On Aug 26, 2009, at 6:43 PM, marius schebella wrote:
>>>>>>> Hans-Christoph Steiner wrote:
>>>>>>>> On Aug 26, 2009, at 5:14 PM, marius schebella wrote:
>>>>>>>>> Hans-Christoph Steiner wrote:
>>>>>>>>>> A complete rewrite of Pd's GUI is starting to be usable.   
>>>>>>>>>> Miller has accepted the core of this code into his repo for  
>>>>>>>>>> 0.43.  Now we need to get the whole thing done!  There is  
>>>>>>>>>> now a branch for continuing off of Miller's initial 0.43  
>>>>>>>>>> commit here:
>>>>>>>>>> http://pure-data.svn.sourceforge.net/viewvc/pure-data/branches/pd-gui-rewrite/0.43
>>>>>>>>>
>>>>>>>>> no configure??
>>>>>>>>> marius.
>>>>>>>> read the page a little closer: http://puredata.info/dev/PdGuiRewrite
>>>>>>>
>>>>>>> i fail with the first line
>>>>>>> svn co http://pure-data.svn.sourceforge.net/viewvc/pure-data/branches/pd-gui-rewrite/0.43 
>>>>>>>  pd-gui-rewrite
>>>>>>> svn: PROPFIND request failed on '/viewvc/pure-data/branches/pd- 
>>>>>>> gui-rewrite/0.43'
>>>>>>> svn: PROPFIND of '/viewvc/pure-data/branches/pd-gui-rewrite/ 
>>>>>>> 0.43': 302 Found (http://pure-data.svn.sourceforge.net)
>>>>>>> hmmm...
>>>>>>> grabed the tarball from the webpage, but compiling gives me  
>>>>>>> errors, too.
>>>>>>> marius.
>>>>>> Doh sorry, put the wrong link there, please try again:)
>>>>>
>>>>> doh, still getting errors... portaudio?
>>>>>
>>>>> if gcc -DPACKAGE_NAME=\"pd\" -DPACKAGE_TARNAME=\"pd\" - 
>>>>> DPACKAGE_VERSION=\"0.41.4\" -DPACKAGE_STRING=\"pd\ 0.41.4\" - 
>>>>> DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pd\" -DVERSION=\"0.41.4\" - 
>>>>> DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 - 
>>>>> DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 - 
>>>>> DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 - 
>>>>> DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBDL=1 -DHAVE_LIBM=1 - 
>>>>> DSTDC_HEADERS=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 - 
>>>>> DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_NETDB_H=1 - 
>>>>> DHAVE_NETINET_IN_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 - 
>>>>> DHAVE_STRING_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 - 
>>>>> DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMEB_H=1 - 
>>>>> DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 - 
>>>>> DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 - 
>>>>> DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 - 
>>>>> DRETSIGTYPE=void -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETCWD=1 - 
>>>>> DHAVE_GETHOSTBYNAME=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMMOVE=1 - 
>>>>> DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_REGCOMP=1 -DHAVE_SELECT=1 - 
>>>>> DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRERROR=1 - 
>>>>> DHAVE_STRRCHR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -I. -I. -I/sw/ 
>>>>> include -I../portmidi/pm_common -I../portmidi/porttime   - 
>>>>> DPACKAGE_NAME=\"pd\" -DPACKAGE_TARNAME=\"pd\" -DPACKAGE_VERSION= 
>>>>> \"0.41.4\" -DPACKAGE_STRING=\"pd\ 0.41.4\" -DPACKAGE_BUGREPORT= 
>>>>> \"\" -DPACKAGE=\"pd\" -DVERSION=\"0.41.4\" -DSTDC_HEADERS=1 - 
>>>>> DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 - 
>>>>> DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 - 
>>>>> DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 - 
>>>>> DHAVE_DLFCN_H=1 -DHAVE_LIBDL=1 -DHAVE_LIBM=1 -DSTDC_HEADERS=1 - 
>>>>> DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_FCNTL_H=1 - 
>>>>> DHAVE_LIMITS_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 - 
>>>>> DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 - 
>>>>> DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SOCKET_H=1 - 
>>>>> DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMEB_H=1 -DHAVE_UNISTD_H=1 - 
>>>>> DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 - 
>>>>> DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 - 
>>>>> DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DRETSIGTYPE=void - 
>>>>> DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETCWD=1 - 
>>>>> DHAVE_GETHOSTBYNAME=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMMOVE=1 - 
>>>>> DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_REGCOMP=1 -DHAVE_SELECT=1 - 
>>>>> DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRERROR=1 - 
>>>>> DHAVE_STRRCHR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DPD    - 
>>>>> DUSEAPI_PORTAUDIO  -I../portaudio/include -DMACOSX   -g -O2 -MT  
>>>>> pd-s_audio_pa.o -MD -MP -MF ".deps/pd-s_audio_pa.Tpo" -c -o pd- 
>>>>> s_audio_pa.o `test -f 's_audio_pa.c' || echo './'`s_audio_pa.c; \
>>>>>   then mv -f ".deps/pd-s_audio_pa.Tpo" ".deps/pd-s_audio_pa.Po";  
>>>>> else rm -f ".deps/pd-s_audio_pa.Tpo"; exit 1; fi
>>>>> s_audio_pa.c:72: error: syntax error before '*' token
>>>>> s_audio_pa.c: In function 'pa_lowlevel_callback':
>>>>> s_audio_pa.c:80: error: 'framesPerBuffer' undeclared (first use  
>>>>> in this function)
>>>>> s_audio_pa.c:80: error: (Each undeclared identifier is reported  
>>>>> only once
>>>>> s_audio_pa.c:80: error: for each function it appears in.)
>>>>> s_audio_pa.c:85: error: 'inputBuffer' undeclared (first use in  
>>>>> this function)
>>>>> s_audio_pa.c:98: error: 'outputBuffer' undeclared (first use in  
>>>>> this function)
>>>>> s_audio_pa.c: In function 'pa_open_callback':
>>>>> s_audio_pa.c:118: error: 'PaStreamParameters' undeclared (first  
>>>>> use in this function)
>>>>> s_audio_pa.c:118: error: syntax error before 'instreamparams'
>>>>> s_audio_pa.c:153: error: 'instreamparams' undeclared (first use  
>>>>> in this function)
>>>>> s_audio_pa.c:159: error: 'outstreamparams' undeclared (first use  
>>>>> in this function)
>>>>> s_audio_pa.c:173: warning: passing argument 5 of 'Pa_OpenStream'  
>>>>> makes pointer from integer without a cast
>>>>> s_audio_pa.c:173: warning: passing argument 7 of 'Pa_OpenStream'  
>>>>> makes integer from pointer without a cast
>>>>> s_audio_pa.c:173: warning: passing argument 8 of 'Pa_OpenStream'  
>>>>> makes integer from pointer without a cast
>>>>> s_audio_pa.c:173: error: too few arguments to function  
>>>>> 'Pa_OpenStream'
>>>>> s_audio_pa.c: In function 'pa_getdevs':
>>>>> s_audio_pa.c:420: error: 'struct <anonymous>' has no member  
>>>>> named 'hostApi'
>>>>> s_audio_pa.c:427: error: 'struct <anonymous>' has no member  
>>>>> named 'hostApi'
>>>>> make[2]: *** [pd-s_audio_pa.o] Error 1
>>>>> make[1]: *** [all-recursive] Error 1
>>>>> make: *** [all] Error 2
>>>>>
>>>>> marius.
>>>> Weird... which platform are you on?  I've build this thing from  
>>>> scratch many times on Ubuntu, Debian, and Mac OS X/Intel.
>>>
>>> still leopard, no snow yet... 10.5.8.
>>> I guess I am doing something wrong..
>>>
>>> I get nothing more than a warning (I mean no error) from ./configure
>>> config.status: WARNING:  'makefile.in' seems to ignore the -- 
>>> datarootdir setting and a slightly different error with the old  
>>> build system
>>>
>>>
>>> cd ../obj;  cc -Wl -framework CoreAudio         -framework  
>>> AudioUnit -framework AudioToolbox         -framework Carbon - 
>>> framework CoreMIDI -arch i386 -arch ppc  -o ../src/pd g_canvas.o  
>>> g_graph.o g_text.o g_rtext.o g_array.o g_template.o g_io.o  
>>> g_scalar.o g_traversal.o g_guiconnect.o g_readwrite.o g_editor.o  
>>> g_all_guis.o g_bang.o g_hdial.o g_hslider.o g_mycanvas.o  
>>> g_numbox.o g_toggle.o g_vdial.o g_vslider.o g_vumeter.o m_pd.o  
>>> m_class.o m_obj.o m_atom.o m_memory.o m_binbuf.o m_conf.o m_glob.o  
>>> m_sched.o s_main.o s_inter.o s_file.o s_print.o s_loader.o  
>>> s_path.o s_entry.o s_audio.o s_midi.o d_ugen.o d_ctl.o  
>>> d_arithmetic.o d_osc.o d_filter.o d_dac.o d_misc.o d_math.o  
>>> d_fft.o d_array.o d_global.o d_delay.o d_resample.o x_arithmetic.o  
>>> x_connective.o x_interface.o x_midi.o x_misc.o x_time.o  
>>> x_acoustics.o x_net.o x_qlist.o x_gui.o x_list.o d_soundfile.o  
>>> s_midi_pm.o s_audio_pa.o s_audio_pablio.o s_audio_paring.o ../ 
>>> portaudio/src/common/pa_allocation.o ../portaudio/src/common/ 
>>> pa_converters.o ../portaudio/src/common/pa_cpuload.o ../portaudio/ 
>>> src/common/pa_dither.o ../portaudio/src/common/pa_front.o ../ 
>>> portaudio/src/common/pa_process.o ../portaudio/src/common/ 
>>> pa_skeleton.o ../portaudio/src/common/pa_stream.o ../portaudio/src/ 
>>> common/pa_trace.o ../portaudio/src/common/pa_debugprint.o ../ 
>>> portaudio/src/common/pa_ringbuffer.o ../portaudio/src/os/unix/ 
>>> pa_unix_util.o ../portaudio/src/os/mac_osx/pa_mac_hostapis.o ../ 
>>> portaudio/src/hostapi/coreaudio/pa_mac_core.o ../portaudio/src/ 
>>> hostapi/coreaudio/pa_mac_core_blocking.o ../portaudio/src/hostapi/ 
>>> coreaudio/pa_mac_core_utilities.o ../portmidi/pm_mac/pmmac.o ../ 
>>> portmidi/pm_mac/pmmacosxcm.o ../portmidi/pm_common/pmutil.o ../ 
>>> portmidi/pm_common/portmidi.o ../portmidi/porttime/ptmacosx_cf.o  
>>> d_fft_mayer.o d_fftroutine.o  -ldl -lm -lpthread
>>> cc -g -O2 -DPD  -Wall -W -Wstrict-prototypes -Wno-unused -Wno- 
>>> parentheses -Wno-switch -DHAVE_LIBDL -DMACOSX -DHAVE_UNISTD_H -I/ 
>>> usr/X11R6/include         -I../portaudio/include -I../portaudio/ 
>>> src/common         -I../portaudio/src/os/mac_osx/  -I../portmidi/ 
>>> pm_common -I../portmidi/pm_mac -I../portmidi/porttime         - 
>>> DUSEAPI_PORTAUDIO -DPA19 -DPA_USE_COREAUDIO -DNEWBUFFER -isysroot / 
>>> Developer/SDKs/MacOSX10.4u.sdk             -arch i386 -arch ppc - 
>>> Wno-error -O2  -o ../src/pd-watchdog s_watchdog.c
>>> ld: library not found for -lcrt1.10.5.o
>>> collect2: ld returned 1 exit status
>>> ld: library not found for -lcrt1.10.5.o
>>> collect2: ld returned 1 exit status
>>> lipo: can't open input file: /var/folders/TH/THjm5UAnEZSSB-y6nQY-6+ 
>>> +++TI/-Tmp-//cc5Eh2ZJ.out (No such file or directory)
>>> make: *** [../src/pd-watchdog] Error 1
>>>
>>> anyway, according to http://www.miscdebris.net/blog/2007/11/30/compiling-universal-binaries-in-mac-osx-105-leopard-against-104u-sdk-problem/
>>> the following did the trick:
>>> sudo ln -s /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o / 
>>> Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.10.5.o
>>> but then,
>>> Error in startup script: couldn't read file "../bin/pd-gui.tcl":  
>>> no such file or directory
>>> weird, pd-gui.tcl is in src. what's the startup script?
>>> marius.
>> Try this:
>> (delete the link) sudo rm /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/ 
>> crt1.10.5.o
>> and then try the updated build instructions for the old build  
>> system, from scratch:
>> http://puredata.info/dev/PdGuiRewrite
>> Thanks for testing, we are almost there!
>> .hc
>> ---------------------------------------------------------------------------- Programs 
>>  should be written for people to read, and only incidentally for  
>> machines to execute.
>> - from Structure and Interpretation of Computer Programs
>



----------------------------------------------------------------------------

The arc of history bends towards justice.     - Dr. Martin Luther  
King, Jr.






More information about the Pd-list mailing list