From: mr.proxxxy ()
Date: May 17, 2008
Subject:
Re: Building Sclang Executable on OS X (leopard or
The reply above was right. I was just starting to fiddle and, silly ole me, I
thought that the sclang/scsynth pair that came with SC would work. Oops.
So I built them from source and after some frustration, managed to get scvim
(yes, i know ... ) working. I'm able to get the server to boot as well as
get it to play simple synths ; however, when trying to use any cocoa gui
elements, my server window barfs. Looks like it's a problem with ScView.
Stack trace follows, but it definitely fails here -
SCView:init 0106DE70
arg this =
arg argParent = nil
arg argBounds =
Is it possible because the Parent is null that the initialization fails
because it has nowhere to put the window? Not sure. Has anyone run into this
error before or know what it means? How is this fixed in the Emacs version
of the SCInterpreter?
my OSXPlatform.sc:
OSXPlatform : UnixPlatform
{
initPlatform {
super.initPlatform;
recordingsDir = "~/Music/SuperCollider Recordings".standardizePath;
}
name { ^\osx }
startupFiles {
var filename = "startup.rtf";
^[this.systemAppSupportDir +/+ filename, this.userAppSupportDir +/+
filename];
}
startup {
//Document.implementationClass.startup;
// make server window
//Server.internal.makeWindow;
//Server.local.makeWindow;
this.loadStartupFiles;
}
shutdown {
HIDDeviceService.releaseDeviceList;
}
// only osx uses Cocoa guis
defaultGUIScheme { ^\cocoa }
defaultHIDScheme { ^\osx_hid }
}
error message:
ERROR: A primitive was not bound. 0 551
Instance of Method { (0065F5F0, gc=01, fmt=00, flg=11, set=04)
instance variables [15]
raw1 : Float 2.670109001368235e-307 0048000C 00000000
raw2 : Float 2.437076554554034e-289 04030004 00000400
code : instance of Int8Array (0065F730, size=4, set=1)
selectors : nil
constants : nil
prototypeFrame : instance of Array (0065F6E0, size=4, set=2)
context : nil
argNames : instance of SymbolArray (0065F6A0, size=4, set=1)
varNames : nil
sourceCode : nil
ownerClass : class SCView (00658590)
name : Symbol 'prInit'
primitiveName : Symbol '_SCView_New'
filenameSymbol : Symbol
'/Applications/SuperCollider/SCClassLibrary/Common/GUI/Base/SCView.sc'
charPos : Integer 6387
}
ERROR: Primitive 'none' failed.
Failed.
RECEIVER:
nil
CALL STACK:
MethodError:reportError 017CE240
arg this =
Nil:handleError 017B6FB0
arg this = nil
arg error =
Thread:handleError 01066FB0
arg this =
arg error =
Object:throw 0107A8F0
arg this =
Object:primitiveFailed 0106A0D0
arg this = nil
SCView:init 0106DE70
arg this =
arg argParent = nil
arg argBounds =
SCContainerView:init 01069EF0
arg this =
arg argParent = nil
arg argBounds =
SCWindow:initSCWindow 011DE9F0
arg this =
arg argName = "stethoscope"
arg argBounds =
arg resizable = true
arg border = true
arg scroll = false
Stethoscope:makeWindow 0107AD10
arg this =
arg view = nil
Meta_Stethoscope:new 011DE4B0
arg this = class Stethoscope
arg server =
arg numChannels = 1
arg bufsize = 4096
arg zoom = nil
arg rate = 'audio'
arg view = nil
arg bufnum = 1024
Server:scope 011B13C0
arg this =
arg numChannels = 1
arg index = 0
arg bufsize = 4096
arg zoom = nil
arg rate = 'audio'
var gui = class CocoaGUI
Function:scope 011E85F0
arg this =
arg numChannels = 1
arg outbus = 0
arg fadeTime = 0.05
arg bufsize = 4096
arg zoom = nil
var synth =
var synthDef =
var bytes =
var synthMsg = [*9]
var outUGen =
var server =
var gui = class CocoaGUI
Interpreter:interpretPrintCmdLine 0119C250
arg this =
var res = nil
var func =
var code = "
{SinOsc.ar(500,0,1.0)}.scope;
"
Process:interpretPrintCmdLine 0107ED30
arg this =
blackrain-2 wrote:
>
> Hi Prko,
>
> Glad you have sclang working.
>
> The dot emacs file is the emacs configuration file.
> This file is found (if you already have one) in your home directory.
>
> To edit its contents or create a new one, do the following in emacs
> (or Aquamacs):
>
> - open (visit in emacs lingo) the file by pressing Ctrl-x Ctrl-f
> - emacs will ask you for the name of the file you want to open in the
> minibuffer (at the bottom of the emacs window)
>
> ....
>
>
--
View this message in context: http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17297601.html
Sent from the Supercollider - User mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list [EMAIL REMOVED] http://lists.create.ucsb.edu/mailman/listinfo/sc-users