[PD-dev] desire OSX

Hans-Christoph Steiner hans at eds.org
Fri Dec 16 01:01:40 CET 2005


On Dec 15, 2005, at 1:17 PM, james tittle wrote:

> matju (or anyone else working on desire),
>
> ...just got around to trying (again) to get desire running on osx,  
> with the app_pkg setup...seems like only some minor tweaks were needed  
> to current cvs of desire.tk:  as before, the problems have to do with  
> setting up tcl so it knows where pd is...personally, I think that
>
> set $OS $tcl_platform(platform)
>
> isn't fine grained enough for our purposes, but would be better if it  
> were:
>
> set $OS $tcl_platform(os)
>
> ...doing that, $OS is set to Darwin here, but with (platform) I also  
> get unix, which isn't very specific 8-\
>
> ...likewise, I changed the $OS ref's from "osx" to "Darwin", and now  
> I'm back to starting up:

Actually, I think you need a combo of both  $tcl_platform(platform) and  
  $tcl_platform(os) to cover all the supported situations.  This is what  
is at the top of u_main.tk:

if { $tcl_platform(platform) == "windows" }  {
          set pd_nt 1
} elseif { $tcl_platform(os) == "Darwin" } {
          set pd_nt 2
} else {
          set pd_nt 0
}

We don't need to treat different versions of Windows differently  
($tcl_platform(platform)== "windows"), but for Darwin/Mac OSX,   
($tcl_platform(platform) == "unix"), but that OS needs to be handled  
very differently than GNU/Linux, FreeBSD, etc. which are also  
($tcl_platform(platform) == "unix").

.hc

>
> DesireData 0.39.ATcl 8.5, Tk 8.5
> tcl_platform(osVersion) = 8.3.0
> tcl_platform(byteOrder) = bigEndian
> tcl_platform(threaded) = 1
> tcl_platform(machine) = Power Macintosh
> tcl_platform(platform) = unix
> tcl_platform(os) = Darwin
> tcl_platform(user) = tigital
> tcl_platform(wordSize) = 4
> thing
> [gdb] GNU gdb 6.1-20040303 (Apple version gdb-434) (Wed Nov  2  
> 17:28:16 GMT 2005)
> [gdb] Copyright 2004 Free Software Foundation, Inc.
> [gdb] GDB is free software, covered by the GNU General Public License,  
> and you are
> [gdb] welcome to change it and/or distribute copies of it under  
> certain conditions.
> [gdb] Type "show copying" to see the conditions.
> [gdb] There is absolutely no warranty for GDB.  Type "show warranty"  
> for details.
> [gdb] This GDB was configured as "powerpc-apple-darwin"...
> [gdb] (gdb) (gdb) Starting program:  -guiport 13666
>
> ...but then it doesn't go any further:  here's what I get when trying  
> to open a patch:
>
> can not find channel named ""
> can not find channel named ""
>     while executing
> "puts $sock "$s;""
>     (procedure "pd" line 4)
>     invoked from within
> "pd pd open [enquote $basename] [enquote $directory]"
>     (procedure "client_open_file_really" line 8)
>     invoked from within
> "client_open_file_really 00000001  
> /Users/tigital/puredataDev/devel_0_39/pd/doc/2.control.examples/ 
> 03.connections.pd"
>     ("eval" body line 1)
>     invoked from within
> "eval [concat [list $name $self] [lrange $args 2 end]]"
>     (procedure "::unknown" line 18)
>     invoked from within
> "$self open_file_really $filename"
>     (procedure "client_open_file" line 4)
>     invoked from within
> "client_open_file 00000001"
>     ("eval" body line 1)
>     invoked from within
> "eval [concat [list $name $self] [lrange $args 2 end]]"
>     (procedure "::unknown" line 18)
>     invoked from within
> "00000001 open_file"
>     (menu invoke)
>
> ...any insight here?  I'm wondering if it still tries to just call pd  
> without the pd_path:  the app_pkg bundle doesn't have the "standard"  
> install locations for pd and friends:
>
> desire.app/
> desire.app/Contents/
> desire.app/Contents/MacOS/desire (ie. "wish", + locale/ &  
> objective.tcl)
> desire.app/Contents/Resources/bin/pd (+ libpdtcl.dylib, desire.tk,  
> icons/, etc...)
> desire.app/Contents/Resources/doc
> desire.app/Contents/Resources/extra
> desire.app/Contents/Resources/include
> desire.app/Contents/Resources/man
> desire.app/Contents/Resources/Scripts
>
> ...etc...
>
> james
>
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev
>

________________________________________________________________________ 
____

News is what people want to keep hidden and everything else is  
publicity.
                                                                          
                      - Bill Moyers





More information about the Pd-dev mailing list