Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 - 3 | Next >

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by blackrain-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There is two parts to the process.  a) build the sclang binary (using
xcode) and b) customize a copy of the library to work in sclang.

a) Your binary is fine and was fine from the first build you did. you
were bulding a debug target (PPC only code with no optimizations and
debug symbols).
That target was fine in the project from the first svn checkin I did.
The building of deployment targets (Universal binary code, optimized)
was fixed minutes after the initial check in thanks to Josh for making
me notice I had forgotten to make a symbol definition.

if you get the lang switches help to display, your binary is fine.
        $ sclang -h

b) What I meant in my previous post was that you have a typo in your
mods to OSXPlatform.sc
This is why the library compile in sclang does not fly.

>From your error log:
\emacs (or 'emacs') would do but not /emacs

change that and tings will work. Please read the help on understandnig errors.

>  ERROR: Parse error
>    in file '/Platform/osx/OSXPlatform.sc'
>    line 17 char 24:
>         if ( this.hasFeature( /?emacs ) ) {
>                 Document.implementationClass.startup;
>  -----------------------------------
>  ERROR: file '/Platform/osx/OSXPlatform.sc' parse failed
>  error parsing

cheers,

x

On Mon, May 12, 2008 at 10:49 AM, scacinto
<scottpetersen@...> wrote:

>
>  Hey x,
>      This actually fails with the same error.  I must be doing something
>  wrong in the build process, as I followed the rest of your instructions to a
>  tee (though I'm not sure what the problem was with the '\emacs \emacs'
>  thing... was that something wrong on my end?  (I haven't even installed
>  emacs, let alone called it for anything... perhaps that's the problem?...)
>
>  I know this is a pain, but when you get a chance, could you clarify (or
>  someone else) the build-in-XCode process?  This must be where I'm going
>  wrong.  I'd also like to have Josh or another post those directions over at
>  the NewScores page so they're readily accessible to those wanted to follow
>  this dark path...
>
>  Many thanks,
>
>  -S
>
>
>
>
>
>  blackrain-2 wrote:
>  >
>  > Hi,
>  >
>  > On Mon, May 12, 2008 at 12:10 AM, scacinto
>  > <scottpetersen@...> wrote:
>  >>
>  >>  OK - can you define what you mean by "build the sclang target"?  I've
>  >> opened
>  >>  the language project in XCode and built the sclang under the Target
>  >> heading,
>  >
>  > yes exactly that =)
>  > please svn update and build again (oops), I was missing a symbol
>  > definition for the deployment target although the development target
>  > builds fine.
>  >
>  > also, you may want to select a deployment target for your builds - by
>  > default it will build the debug version wich is slower and PPC code.
>  >
>  > in XCode with the lang project opened:
>  > Project -> Set Active Build Configuration -> deployment
>  >
>  >
>  >>  but following the rest of your directions the execution of the binary
>  >> fails
>  >>  with the following error.
>  >>
>  >
>  > =)
>  >
>  > /emacs hmmm
>  > it should be a Symbol as in 'emacs' thus \emacs not /emacs
>  >
>  > let us know how it goes.
>  >
>  > cheers,
>  >
>  > x
>  >
>  >
>  >
>  >>
>  >>  Waz:~/SuperCollider3/build scott$ sclang -d ~/sclang/init_OSC
>  >>
>  >> compiling class library..
>  >>         NumPrimitives = 551
>  >>         compiling dir: '/Users/scott/sclang/SCClassLibrary'
>  >>
>  >>         compiling dir: '/Library/Application
>  >>  Support/SuperCollider/Extensions'
>  >>         compiling dir: '/Users/scott/Library/Application
>  >>  Support/SuperCollider/Extensions'
>  >>         pass 1 done
>  >>  ERROR: Parse error
>  >>    in file '/Platform/osx/OSXPlatform.sc'
>  >>    line 17 char 24:
>  >>         if ( this.hasFeature( /?emacs ) ) {
>  >>                 Document.implementationClass.startup;
>  >>  -----------------------------------
>  >>  ERROR: file '/Platform/osx/OSXPlatform.sc' parse failed
>  >>  error parsing
>  >>
>  >>         Extension overwriting SimpleNumber:asTimeString
>  >>                 in file '/Library/Application
>  >>  Support/SuperCollider/Extensions/ljpclasses/classes/LJP
>  >>  Classes/Extensions/SimpleNumber-asTimeString.sc'.
>  >>                 Original method in file '/Common/Math/SimpleNumber.sc'.
>  >>  WARNING: FunctionDef contains variable declarations and so will not be
>  >>  inlined.
>  >>    in file '/Users/scott/Library/Application
>  >>  Support/SuperCollider/Extensions/quarks/NonRT/batchNRT/batchNRT.sc'
>  >>    line 93 char 14:
>  >>                                         var psfr;? // Please ignore SC's
>  >>  warning about not inlining this function.
>  >>                                         psfr = SoundFile.new;
>  >>
>  >>  I'm sorry if I'm missing something obvious, but ...
>  >>
>  >>  thanks,
>  >>
>  >>  -S
>  >>
>  >>
>  >>
>  >>
>  >>
>  >>  scacinto wrote:
>  >>  >
>  >>  > word!  downloading ahora!
>  >>  >
>  >>  > -S
>  >>  >
>  >>  >
>  >>  >
>  >>  > blackrain-2 wrote:
>  >>  >>
>  >>  >> done.
>  >>  >> please svn update.
>  >>  >> try a build of sclang target.
>  >>  >> There is a new document 'README SCLang OSX' with steps to setup a
>  >>  >> library to work with sclang in os x.
>  >>  >>
>  >>  >> let me know how it goes.
>  >>  >>
>  >>  >> cheers,
>  >>  >>
>  >>  >> x
>  >>  >>
>  >>  >> On Sun, May 11, 2008 at 2:40 PM, scacinto
>  >> <scottpetersen@...>
>  >>  >> wrote:
>  >>  >>>
>  >>  >>>  Could you define what steps you are speaking of and provide a link?
>  >>  >>> Are they
>  >>  >>>  the same as the wiki?  I've tried all of the instructions on the
>  >> wiki
>  >>  >>> with
>  >>  >>>  two different computers and OSes and both fail to compile correctly
>  >>  >>> (with
>  >>  >>>  the modification of some files called for which are not present in
>  >> the
>  >>  >>>  current revision as per my original post.)
>  >>  >>>
>  >>  >>>  -S
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>  blackrain-2 wrote:
>  >>  >>>  >
>  >>  >>>  > The steps I posted here ages ago still work.
>  >>  >>>  > All source files still exist and there is no need to mod them at
>  >> all
>  >>  >>>  > but make some defines/additions to the project.
>  >>  >>>  > The current xcode sclang project is wrong; it hooks the cocoa
>  >> views
>  >>  >>>  > primitives and other stuff that will make sclang fail but appear
>  >> like
>  >>  >>>  > all is good (launch, compile and finish); I will check in the
>  >> changes
>  >>  >>>  > soon to svn.
>  >>  >>>  > I got no clue about scons - I dont use it on osx.
>  >>  >>>  >
>  >>  >>>  > x
>  >>  >>>  >
>  >>  >>>  >
>  >>  >>>  > On Fri, May 9, 2008 at 6:10 PM, scacinto
>  >>  >>> <scottpetersen@...>
>  >>  >>>  > wrote:
>  >>  >>>  >>
>  >>  >>>  >>  I just tried to build sclang following the directions on the
>  >> wiki.
>  >>  >>> The
>  >>  >>>  >>  directions seem to be seriously outdated and flawed in several
>  >>  >>> respects,
>  >>  >>>  >>  including calling for the editing of several files which no
>  >> longer
>  >>  >>> seem
>  >>  >>>  >> to
>  >>  >>>  >>  exist.  I'll post the output of my attempt to run the
>  >> executable at
>  >>  >>> the
>  >>  >>>  >> end
>  >>  >>>  >>  of this post.
>  >>  >>>  >>
>  >>  >>>  >>  So I've tried two different methods described on the wiki,
>  >> using
>  >>  >>> scons
>  >>  >>>  >> and
>  >>  >>>  >>  using XCode, both of which failed.  This seems like a bit of a
>  >>  >>> problem,
>  >>  >>>  >>  especially if someone new (without the commitment of a
>  >> long-time
>  >>  >>> user)
>  >>  >>>  >> would
>  >>  >>>  >>  like to get sclang running on OS X.
>  >>  >>>  >>
>  >>  >>>  >>  Could someone post clear instructions on how to compile SC with
>  >>  >>> sclang
>  >>  >>>  >> using
>  >>  >>>  >>  scons or XCode if they have managed to do so?  Also, please
>  >> post
>  >>  >>> the
>  >>  >>>  >> version
>  >>  >>>  >>  of XCode you are using (My failed attempt used 2.4.1) the OS
>  >> (ex.
>  >>  >>>  >> 10.4.11)
>  >>  >>>  >>  and whether you are using a PPC or Intel mac.
>  >>  >>>  >>
>  >>  >>>  >>  It seems that getting a reliable and simple method of compiling
>  >>  >>> with the
>  >>  >>>  >>  sclang executable available for peruzal on the wiki, in the
>  >> how-to
>  >>  >>> page
>  >>  >>>  >> of
>  >>  >>>  >>  the sourceforge page or even, perhaps preferably, in the OS X
>  >>  >>> README, is
>  >>  >>>  >> a
>  >>  >>>  >>  must as more and more people I talk to seem a little
>  >> dissatisfied
>  >>  >>> with
>  >>  >>>  >> the
>  >>  >>>  >>  current Interpreter.
>  >>  >>>  >>
>  >>  >>>  >>  Thoughts?
>  >>  >>>  >>
>  >>  >>>  >>  Thanks,
>  >>  >>>  >>
>  >>  >>>  >>  -S
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>  Waz:/Applications/Audio_Applications/SuperCollider3/build
>  >> scott$
>  >>  >>>  >> ./sclang
>  >>  >>>  >>  init_OSC
>  >>  >>>  >>  compiling class library..
>  >>  >>>  >>         NumPrimitives = 551
>  >>  >>>  >>         compiling dir:
>  >>  >>>  >>
>  >>  >>>
>  >> '/Applications/Audio_Applications/SuperCollider3/build/SCClassLibrary'
>  >>  >>>  >>         compiling dir: '/Library/Application
>  >>  >>>  >>  Support/SuperCollider/Extensions'
>  >>  >>>  >>         compiling dir: '/Users/scott/Library/Application
>  >>  >>>  >>  Support/SuperCollider/Extensions'
>  >>  >>>  >>         pass 1 done
>  >>  >>>  >>         Extension overwriting SimpleNumber:asTimeString
>  >>  >>>  >>                 in file '/Library/Application
>  >>  >>>  >>  Support/SuperCollider/Extensions/ljpclasses/classes/LJP
>  >>  >>>  >>  Classes/Extensions/SimpleNumber-asTimeString.sc'.
>  >>  >>>  >>                 Original method in file
>  >>  >>> '/Common/Math/SimpleNumber.sc'.
>  >>  >>>  >>  WARNING: FunctionDef contains variable declarations and so will
>  >> not
>  >>  >>> be
>  >>  >>>  >>  inlined.
>  >>  >>>  >>    in file '/Users/scott/Library/Application
>  >>  >>>  >>
>  >> Support/SuperCollider/Extensions/quarks/NonRT/batchNRT/batchNRT.sc'
>  >>  >>>  >>    line 93 char 14:
>  >>  >>>  >>                                         var psfr;? // Please
>  >> ignore
>  >>  >>> SC's
>  >>  >>>  >>  warning about not inlining this function.
>  >>  >>>  >>                                         psfr = SoundFile.new;
>  >>  >>>  >>  -----------------------------------
>  >>  >>>  >>  numentries = 1124454 / 18350124 = 0.061
>  >>  >>>  >>         Method Table Size 9205632 bytes
>  >>  >>>  >>         Number of Method Selectors 5738
>  >>  >>>  >>         Number of Classes 3198
>  >>  >>>  >>         big table size 73400496
>  >>  >>>  >>         Number of Symbols 14287
>  >>  >>>  >>         Byte Code Size 500140
>  >>  >>>  >>         compiled 565 files in 4.92 seconds
>  >>  >>>  >>  compile done
>  >>  >>>  >>  // History.logFolder: /Users/scott/Library/Application
>  >>  >>>  >>  Support/SuperCollider/HistoryLogs
>  >>  >>>  >>  Class tree inited in 0.18 seconds
>  >>  >>>  >>  ERROR: A primitive was not bound. 0 550
>  >>  >>>  >>  Instance of Method {    (0175CDF0, gc=01, fmt=00, flg=11,
>  >> set=04)
>  >>  >>>  >>   instance variables [15]
>  >>  >>>  >>     raw1 : Float 3.885846e-318   00000000 000C0048
>  >>  >>>  >>     raw2 : Float 5.56268497783366e-309   00040000 04000304
>  >>  >>>  >>     code : instance of Int8Array (0175CF30, size=4, set=1)
>  >>  >>>  >>     selectors : nil
>  >>  >>>  >>     constants : nil
>  >>  >>>  >>     prototypeFrame : instance of Array (0175CEE0, size=4, set=2)
>  >>  >>>  >>     context : nil
>  >>  >>>  >>     argNames : instance of SymbolArray (0175CEA0, size=4, set=1)
>  >>  >>>  >>     varNames : nil
>  >>  >>>  >>     sourceCode : nil
>  >>  >>>  >>     ownerClass : class SCView (01713D70)
>  >>  >>>  >>     name : Symbol 'prInit'
>  >>  >>>  >>     primitiveName : Symbol '_SCView_New'
>  >>  >>>  >>     filenameSymbol : Symbol
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>
>  >> '/Applications/Audio_Applications/SuperCollider3/build/SCClassLibrary/Common/GUI/Base/SCView.sc'
>  >>  >>>  >>     charPos : Integer 6387
>  >>  >>>  >>  }
>  >>  >>>  >>  ERROR: Primitive 'none' failed.
>  >>  >>>  >>  Failed.
>  >>  >>>  >>  RECEIVER:
>  >>  >>>  >>    nil
>  >>  >>>  >>  CALL STACK:
>  >>  >>>  >>         MethodError:reportError   0166AE30
>  >>  >>>  >>                 arg this = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Nil:handleError   0166AEF0
>  >>  >>>  >>                 arg this = nil
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Thread:handleError   0166AE90
>  >>  >>>  >>                 arg this = <instance of Thread>
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Object:throw   0166ADD0
>  >>  >>>  >>                 arg this = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Object:primitiveFailed   0166AD70
>  >>  >>>  >>                 arg this = nil
>  >>  >>>  >>         SCView:init   0166AD10
>  >>  >>>  >>                 arg this = <instance of SCTopView>
>  >>  >>>  >>                 arg argParent = nil
>  >>  >>>  >>                 arg argBounds = <instance of Rect>
>  >>  >>>  >>         SCContainerView:init   0166ACB0
>  >>  >>>  >>                 arg this = <instance of SCTopView>
>  >>  >>>  >>                 arg argParent = nil
>  >>  >>>  >>                 arg argBounds = <instance of Rect>
>  >>  >>>  >>         SCWindow:initSCWindow   016AA430
>  >>  >>>  >>                 arg this = <instance of SCWindow>
>  >>  >>>  >>                 arg argName = "internal server"
>  >>  >>>  >>                 arg argBounds = <instance of Rect>
>  >>  >>>  >>                 arg resizable = false
>  >>  >>>  >>                 arg border = true
>  >>  >>>  >>                 arg scroll = false
>  >>  >>>  >>         Server:makeGui   01621CB0
>  >>  >>>  >>                 arg this = <instance of Server>
>  >>  >>>  >>                 arg w = nil
>  >>  >>>  >>                 var active = nil
>  >>  >>>  >>                 var booter = nil
>  >>  >>>  >>                 var killer = nil
>  >>  >>>  >>                 var makeDefault = nil
>  >>  >>>  >>                 var running = nil
>  >>  >>>  >>                 var booting = nil
>  >>  >>>  >>                 var stopped = nil
>  >>  >>>  >>                 var bundling = nil
>  >>  >>>  >>                 var recorder = nil
>  >>  >>>  >>                 var scoper = nil
>  >>  >>>  >>                 var countsViews = nil
>  >>  >>>  >>                 var ctlr = nil
>  >>  >>>  >>                 var dumping = false
>  >>  >>>  >>                 var label = "internal server"
>  >>  >>>  >>                 var gui = class CocoaGUI
>  >>  >>>  >>                 var font = <instance of Font>
>  >>  >>>  >>                 var volumeNum = nil
>  >>  >>>  >>         Server:makeWindow   0166AA70
>  >>  >>>  >>                 arg this = <instance of Server>
>  >>  >>>  >>                 arg w = nil
>  >>  >>>  >>         OSXPlatform:startup   01716400
>  >>  >>>  >>                 arg this = <instance of OSXPlatform>
>  >>  >>>  >>         Main:startup   017163A0
>  >>  >>>  >>                 arg this = <instance of Main>
>  >>  >>>  >>  ERROR: A primitive was not bound. 0 550
>  >>  >>>  >>  Instance of Method {    (02095980, gc=01, fmt=00, flg=11,
>  >> set=04)
>  >>  >>>  >>   instance variables [15]
>  >>  >>>  >>     raw1 : Float 3.885727e-318   00000000 000C0030
>  >>  >>>  >>     raw2 : Float 1.390671244457466e-309   00010000 01000001
>  >>  >>>  >>     code : instance of Int8Array (02095A30, size=1, set=1)
>  >>  >>>  >>     selectors : nil
>  >>  >>>  >>     constants : nil
>  >>  >>>  >>     prototypeFrame : instance of Array (013A6FC0, size=1, set=1)
>  >>  >>>  >>     context : nil
>  >>  >>>  >>     argNames : instance of SymbolArray (013A7000, size=1, set=1)
>  >>  >>>  >>     varNames : nil
>  >>  >>>  >>     sourceCode : nil
>  >>  >>>  >>     ownerClass : class Meta_CocoaDocument (02091B70)
>  >>  >>>  >>     name : Symbol 'prGetIndexOfListener'
>  >>  >>>  >>     primitiveName : Symbol '_TextWindow_GetIndexOfListener'
>  >>  >>>  >>     filenameSymbol : Symbol
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>
>  >> '/Applications/Audio_Applications/SuperCollider3/build/SCClassLibrary/Platform/osx/CocoaDocument.sc'
>  >>  >>>  >>     charPos : Integer 3010
>  >>  >>>  >>  }
>  >>  >>>  >>  ERROR: Primitive '_BasicAt' failed.
>  >>  >>>  >>  Index not an Integer
>  >>  >>>  >>  RECEIVER:
>  >>  >>>  >>  Instance of Array {    (016AAC90, gc=20, fmt=01, flg=00,
>  >> set=00)
>  >>  >>>  >>   indexed slots [0]
>  >>  >>>  >>  }
>  >>  >>>  >>  CALL STACK:
>  >>  >>>  >>         MethodError:reportError   013CAC50
>  >>  >>>  >>                 arg this = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Nil:handleError   013CABF0
>  >>  >>>  >>                 arg this = nil
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Thread:handleError   013CAB90
>  >>  >>>  >>                 arg this = <instance of Thread>
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Thread:handleError   013CAB30
>  >>  >>>  >>                 arg this = <instance of Routine>
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Object:throw   013CAAD0
>  >>  >>>  >>                 arg this = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Object:primitiveFailed   013CAA70
>  >>  >>>  >>                 arg this = [*0]
>  >>  >>>  >>         < FunctionDef in Method Meta_CocoaDocument:startup >
>  >> (no
>  >>  >>>  >> arguments
>  >>  >>>  >>  or variables)
>  >>  >>>  >>         Routine:prStart   0166AAD0
>  >>  >>>  >>                 arg this = <instance of Routine>
>  >>  >>>  >>                 arg inval = 4.991427843
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>  scacinto wrote:
>  >>  >>>  >>  >
>  >>  >>>  >>  > Hi all,
>  >>  >>>  >>  >
>  >>  >>>  >>  > I've recently become dissatisfied with the supercollider
>  >>  >>> interpreter
>  >>  >>>  >> (for
>  >>  >>>  >>  > a number of reasons including no line numbers, no auto syntax
>  >>  >>>  >>  > highlighting, open windows all over causing headaches, etc.)
>  >> and
>  >>  >>> would
>  >>  >>>  >>  > like to be able to work with the sclang executable instead
>  >> via
>  >>  >>> another
>  >>  >>>  >>  > text editor.  I've attempted to build the executable from the
>  >>  >>> source
>  >>  >>>  >> using
>  >>  >>>  >>  > scons but get a host of errors.  Has anyone had success
>  >> building
>  >>  >>> the
>  >>  >>>  >>  > executable from source on a MacIntel with Leopard?  The error
>  >> (if
>  >>  >>> you
>  >>  >>>  >>  > care) is as follows.
>  >>  >>>  >>  >
>  >>  >>>  >>  > ...Source/lang/LangPrimSource/PyrSched.cpp: In function 'void
>  >>  >>>  >>  > syncOSCOffsetWithTimeOfDay()':
>  >>  >>>  >>  > Source/lang/LangPrimSource/PyrSched.cpp:290: error:
>  >>  >>> 'gettimeofday' was
>  >>  >>>  >> not
>  >>  >>>  >>  > declared in this scope
>  >>  >>>  >>  > scons: *** [Source/lang/LangPrimSource/PyrSched.os] Error 1
>  >>  >>>  >>  > scons: building terminated because of errors.
>  >>  >>>  >>  >
>  >>  >>>  >>  > If I edit out this section and try again, other files pop up
>  >> with
>  >>  >>>  >> errors.
>  >>  >>>  >>  >
>  >>  >>>  >>  > I know there are instructions on the wiki for ways to build
>  >> from
>  >>  >>>  >> source
>  >>  >>>  >>  > using XCode, and other means, but the instructions are rather
>  >>  >>> cryptic,
>  >>  >>>  >> and
>  >>  >>>  >>  > some didn't work for me at all.  Is there an easy (practical)
>  >> way
>  >>  >>> to
>  >>  >>>  >> do
>  >>  >>>  >>  > this that doesn't require hours of reading/editing?
>  >>  >>>  >>  >
>  >>  >>>  >>  > Another question.  Has anyone tried the text-editor Smultron?
>  >> It
>  >>  >>> has
>  >>  >>>  >> a
>  >>  >>>  >>  > number of nice features, from auto syntax highlighting to
>  >> auto
>  >>  >>> line
>  >>  >>>  >>  > numbering, in-window (quicklook) document opening so all docs
>  >> are
>  >>  >>>  >>  > contained within a single window, one need only click one to
>  >>  >>> access
>  >>  >>>  >> it.
>  >>  >>>  >>  > It has multiple view support and some other niceties.  It can
>  >>  >>> execute
>  >>  >>>  >>  > scripts, inline posts, etc.  It seems like one could easily
>  >>  >>> script
>  >>  >>>  >> this
>  >>  >>>  >>  > program to work like SCVim and get some of the features
>  >> missing
>  >>  >>> in the
>  >>  >>>  >>  > interpreter.
>  >>  >>>  >>  >
>  >>  >>>  >>  > I would love to hear what people are thinking about the
>  >> current
>  >>  >>> UI
>  >>  >>>  >>  > Interpreter and their workarounds for working with the sclang
>  >>  >>>  >> executable
>  >>  >>>  >>  > with other programs.
>  >>  >>>  >>  >
>  >>  >>>  >>  > Thanks,
>  >>  >>>  >>  >
>  >>  >>>  >>  > - Scott
>  >>  >>>  >>  >
>  >>  >>>  >>  >
>  >>  >>>  >>
>  >>  >>>  >>  --
>  >>  >>>  >>  View this message in context:
>  >>  >>>  >>
>  >>  >>>
>  >> http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17157927.html
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >> Sent from the Supercollider - User mailing list archive at
>  >>  >>> Nabble.com.
>  >>  >>>  >>
>  >>  >>>  >>  _______________________________________________
>  >>  >>>  >>  sc-users mailing list
>  >>  >>>  >>  sc-users@...
>  >>  >>>  >>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>  >>>  >>
>  >>  >>>  > _______________________________________________
>  >>  >>>  > sc-users mailing list
>  >>  >>>  > sc-users@...
>  >>  >>>  > http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>  >>>  >
>  >>  >>>  >
>  >>  >>>
>  >>  >>>  --
>  >>  >>>  View this message in context:
>  >>  >>>
>  >> http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17174023.html
>  >>  >>>
>  >>  >>>
>  >>  >>> Sent from the Supercollider - User mailing list archive at
>  >> Nabble.com.
>  >>  >>>
>  >>  >>>  _______________________________________________
>  >>  >>>  sc-users mailing list
>  >>  >>>  sc-users@...
>  >>  >>>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>  >>>
>  >>  >> _______________________________________________
>  >>  >> sc-users mailing list
>  >>  >> sc-users@...
>  >>  >> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>  >>
>  >>  >>
>  >>  >
>  >>  >
>  >>
>  >>  --
>  >>  View this message in context:
>  >> http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17181603.html
>  >>
>  >>
>  >> Sent from the Supercollider - User mailing list archive at Nabble.com.
>  >>
>  >>  _______________________________________________
>  >>  sc-users mailing list
>  >>  sc-users@...
>  >>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>
>  > _______________________________________________
>  > sc-users mailing list
>  > sc-users@...
>  > http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >
>  >
>
>  --
>  View this message in context: http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17189816.html
>
>
> Sent from the Supercollider - User mailing list archive at Nabble.com.
>
>  _______________________________________________
>  sc-users mailing list
>  sc-users@...
>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by blackrain-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Josh,

On Mon, May 12, 2008 at 11:43 AM, Josh Parmenter <josh@...> wrote:
> Do you mean the lang XCode project fails? I got it all working this
>  morning, but need to figure out a few more things about getting
>  scsynth to work properly... also, I have things working in Aquaemacs.
>

by default, sclang will look for scsynth (and the plugs folder) in the
directory where SCClassLibrary lives. say String:scDir
The standadrd behaviour, like the app does - symlinks will do too (not aliases).

for things to work in gui versions of emacs (scsynth perhaps not being
found?) you have to change your working path in emacs (dired) to
~/sclang or customize scel and emacs for the path you expect to use.

at any rate, you will always need a customized library as the document
explains. an off the shelf lib will  not work because of the
dependencies to cocoa primitives.

Marije posted a bit ago about some changes to the lib to make it
platform free; This would be nice to have but mean time we have to
make the mods I describe in the doc.


>  x - here are a couple things I noted... do these make sense to you?
>
>  in ~/sclang/scel/el rename sclang-vars.el.in to sclang-vars.el. You
>  can do this in Finder, or if you are in the directory already:
>
>  mv sclang-vars.el.in sclang-vars.el
>

It does make all the sense. I forgot to add that in the emacs part instructions.

However, the instructions at the bottom of the doc are more like a
real fast idea on how to get emacs-nox working with scel in osx; I
direct users to the actual scel documentation in order to get things
working properly.
The doc is only focused on having sclang running and setting up a
slightly  customized library that will not contain dependencies to
cocoa primitives _and_ use scel /if/ present.

thanks =)


>  NOW - if you want to use a Cocoa or Carbon based Emacs (CarbonEmacs or
>  Aquamacs Emacs), you will need the new SCClassLibrary to be in your
>  home directory (anyway to set this to look in ~/sclang??? is this
>  defined in the Emacs interface, or is it because Aquamacs Emacs is
>  starting from home??? hmm...).
>
>  Josh
>

applications launched from the finder inherit a basicaly empty
environment. This can be changed by adding definitions to the cocoa
env dictionary if developing an app from scratch.

This behaviour can be customized in Emacs and scel.

cheers,

x



>
>
>  On May 12, 2008, at 8:49 AM, scacinto wrote:
>
>  >
>  > Hey x,
>  >     This actually fails with the same error.  I must be doing
>  > something
>  > wrong in the build process, as I followed the rest of your
>  > instructions to a
>  > tee (though I'm not sure what the problem was with the '\emacs \emacs'
>  > thing... was that something wrong on my end?  (I haven't even
>  > installed
>  > emacs, let alone called it for anything... perhaps that's the
>  > problem?...)
>  >
>  > I know this is a pain, but when you get a chance, could you clarify
>  > (or
>  > someone else) the build-in-XCode process?  This must be where I'm
>  > going
>  > wrong.  I'd also like to have Josh or another post those directions
>  > over at
>  > the NewScores page so they're readily accessible to those wanted to
>  > follow
>  > this dark path...
>  >
>  > Many thanks,
>  >
>  > -S
>  >
>  >
>  >
>  > blackrain-2 wrote:
>  >>
>  >> Hi,
>  >>
>  >> On Mon, May 12, 2008 at 12:10 AM, scacinto
>  >> <scottpetersen@...> wrote:
>  >>>
>  >>> OK - can you define what you mean by "build the sclang target"?
>  >>> I've
>  >>> opened
>  >>> the language project in XCode and built the sclang under the Target
>  >>> heading,
>  >>
>  >> yes exactly that =)
>  >> please svn update and build again (oops), I was missing a symbol
>  >> definition for the deployment target although the development target
>  >> builds fine.
>  >>
>  >> also, you may want to select a deployment target for your builds - by
>  >> default it will build the debug version wich is slower and PPC code.
>  >>
>  >> in XCode with the lang project opened:
>  >> Project -> Set Active Build Configuration -> deployment
>  >>
>  >>
>  >>> but following the rest of your directions the execution of the
>  >>> binary
>  >>> fails
>  >>> with the following error.
>  >>>
>  >>
>  >> =)
>  >>
>  >> /emacs hmmm
>  >> it should be a Symbol as in 'emacs' thus \emacs not /emacs
>  >>
>  >> let us know how it goes.
>  >>
>  >> cheers,
>  >>
>  >> x
>  >>
>  >>
>  >>
>  >>>
>  >>> Waz:~/SuperCollider3/build scott$ sclang -d ~/sclang/init_OSC
>  >>>
>  >>> compiling class library..
>  >>>        NumPrimitives = 551
>  >>>        compiling dir: '/Users/scott/sclang/SCClassLibrary'
>  >>>
>  >>>        compiling dir: '/Library/Application
>  >>> Support/SuperCollider/Extensions'
>  >>>        compiling dir: '/Users/scott/Library/Application
>  >>> Support/SuperCollider/Extensions'
>  >>>        pass 1 done
>  >>> ERROR: Parse error
>  >>>   in file '/Platform/osx/OSXPlatform.sc'
>  >>>   line 17 char 24:
>  >>>        if ( this.hasFeature( /?emacs ) ) {
>  >>>                Document.implementationClass.startup;
>  >>> -----------------------------------
>  >>> ERROR: file '/Platform/osx/OSXPlatform.sc' parse failed
>  >>> error parsing
>  >>>
>  >>>        Extension overwriting SimpleNumber:asTimeString
>  >>>                in file '/Library/Application
>  >>> Support/SuperCollider/Extensions/ljpclasses/classes/LJP
>  >>> Classes/Extensions/SimpleNumber-asTimeString.sc'.
>  >>>                Original method in file '/Common/Math/
>  >>> SimpleNumber.sc'.
>  >>> WARNING: FunctionDef contains variable declarations and so will
>  >>> not be
>  >>> inlined.
>  >>>   in file '/Users/scott/Library/Application
>  >>> Support/SuperCollider/Extensions/quarks/NonRT/batchNRT/batchNRT.sc'
>  >>>   line 93 char 14:
>  >>>                                        var psfr;? // Please ignore
>  >>> SC's
>  >>> warning about not inlining this function.
>  >>>                                        psfr = SoundFile.new;
>  >>>
>  >>> I'm sorry if I'm missing something obvious, but ...
>  >>>
>  >>> thanks,
>  >>>
>  >>> -S
>  >>>
>  >>>
>  >>>
>  >>>
>  >>>
>  >>> scacinto wrote:
>  >>>>
>  >>>> word!  downloading ahora!
>  >>>>
>  >>>> -S
>  >>>>
>  >>>>
>  >>>>
>  >>>> blackrain-2 wrote:
>  >>>>>
>  >>>>> done.
>  >>>>> please svn update.
>  >>>>> try a build of sclang target.
>  >>>>> There is a new document 'README SCLang OSX' with steps to setup a
>  >>>>> library to work with sclang in os x.
>  >>>>>
>  >>>>> let me know how it goes.
>  >>>>>
>  >>>>> cheers,
>  >>>>>
>  >>>>> x
>  >>>>>
>  >>>>> On Sun, May 11, 2008 at 2:40 PM, scacinto
>  >>> <scottpetersen@...>
>  >>>>> wrote:
>  >>>>>>
>  >>>>>> Could you define what steps you are speaking of and provide a
>  >>>>>> link?
>  >>>>>> Are they
>  >>>>>> the same as the wiki?  I've tried all of the instructions on the
>  >>> wiki
>  >>>>>> with
>  >>>>>> two different computers and OSes and both fail to compile
>  >>>>>> correctly
>  >>>>>> (with
>  >>>>>> the modification of some files called for which are not present
>  >>>>>> in
>  >>> the
>  >>>>>> current revision as per my original post.)
>  >>>>>>
>  >>>>>> -S
>  >>>>>>
>  >>>>>>
>  >>>>>>
>  >>>>>>
>  >>>>>>
>  >>>>>>
>  >>>>>>
>  >>>>>> blackrain-2 wrote:
>  >>>>>>>
>  >>>>>>> The steps I posted here ages ago still work.
>  >>>>>>> All source files still exist and there is no need to mod them at
>  >>> all
>  >>>>>>> but make some defines/additions to the project.
>  >>>>>>> The current xcode sclang project is wrong; it hooks the cocoa
>  >>> views
>  >>>>>>> primitives and other stuff that will make sclang fail but appear
>  >>> like
>  >>>>>>> all is good (launch, compile and finish); I will check in the
>  >>> changes
>  >>>>>>> soon to svn.
>  >>>>>>> I got no clue about scons - I dont use it on osx.
>  >>>>>>>
>  >>>>>>> x
>  >>>>>>>
>  >>>>>>>
>  >>>>>>> On Fri, May 9, 2008 at 6:10 PM, scacinto
>  >>>>>> <scottpetersen@...>
>  >>>>>>> wrote:
>  >>>>>>>>
>  >>>>>>>> I just tried to build sclang following the directions on the
>  >>> wiki.
>  >>>>>> The
>  >>>>>>>> directions seem to be seriously outdated and flawed in several
>  >>>>>> respects,
>  >>>>>>>> including calling for the editing of several files which no
>  >>> longer
>  >>>>>> seem
>  >>>>>>>> to
>  >>>>>>>> exist.  I'll post the output of my attempt to run the
>  >>> executable at
>  >>>>>> the
>  >>>>>>>> end
>  >>>>>>>> of this post.
>  >>>>>>>>
>  >>>>>>>> So I've tried two different methods described on the wiki,
>  >>> using
>  >>>>>> scons
>  >>>>>>>> and
>  >>>>>>>> using XCode, both of which failed.  This seems like a bit of a
>  >>>>>> problem,
>  >>>>>>>> especially if someone new (without the commitment of a
>  >>> long-time
>  >>>>>> user)
>  >>>>>>>> would
>  >>>>>>>> like to get sclang running on OS X.
>  >>>>>>>>
>  >>>>>>>> Could someone post clear instructions on how to compile SC with
>  >>>>>> sclang
>  >>>>>>>> using
>  >>>>>>>> scons or XCode if they have managed to do so?  Also, please
>  >>> post
>  >>>>>> the
>  >>>>>>>> version
>  >>>>>>>> of XCode you are using (My failed attempt used 2.4.1) the OS
>  >>> (ex.
>  >>>>>>>> 10.4.11)
>  >>>>>>>> and whether you are using a PPC or Intel mac.
>  >>>>>>>>
>  >>>>>>>> It seems that getting a reliable and simple method of compiling
>  >>>>>> with the
>  >>>>>>>> sclang executable available for peruzal on the wiki, in the
>  >>> how-to
>  >>>>>> page
>  >>>>>>>> of
>  >>>>>>>> the sourceforge page or even, perhaps preferably, in the OS X
>  >>>>>> README, is
>  >>>>>>>> a
>  >>>>>>>> must as more and more people I talk to seem a little
>  >>> dissatisfied
>  >>>>>> with
>  >>>>>>>> the
>  >>>>>>>> current Interpreter.
>  >>>>>>>>
>  >>>>>>>> Thoughts?
>  >>>>>>>>
>  >>>>>>>> Thanks,
>  >>>>>>>>
>  >>>>>>>> -S
>  >>>>>>>>
>  >>>>>>>>
>  >>>>>>>>
>  >>>>>>>> Waz:/Applications/Audio_Applications/SuperCollider3/build
>  >>> scott$
>  >>>>>>>> ./sclang
>  >>>>>>>> init_OSC
>  >>>>>>>> compiling class library..
>  >>>>>>>>        NumPrimitives = 551
>  >>>>>>>>        compiling dir:
>  >>>>>>>>
>  >>>>>>
>  >>> '/Applications/Audio_Applications/SuperCollider3/build/
>  >>> SCClassLibrary'
>  >>>>>>>>        compiling dir: '/Library/Application
>  >>>>>>>> Support/SuperCollider/Extensions'
>  >>>>>>>>        compiling dir: '/Users/scott/Library/Application
>  >>>>>>>> Support/SuperCollider/Extensions'
>  >>>>>>>>        pass 1 done
>  >>>>>>>>        Extension overwriting SimpleNumber:asTimeString
>  >>>>>>>>                in file '/Library/Application
>  >>>>>>>> Support/SuperCollider/Extensions/ljpclasses/classes/LJP
>  >>>>>>>> Classes/Extensions/SimpleNumber-asTimeString.sc'.
>  >>>>>>>>                Original method in file
>  >>>>>> '/Common/Math/SimpleNumber.sc'.
>  >>>>>>>> WARNING: FunctionDef contains variable declarations and so will
>  >>> not
>  >>>>>> be
>  >>>>>>>> inlined.
>  >>>>>>>>   in file '/Users/scott/Library/Application
>  >>>>>>>>
>  >>> Support/SuperCollider/Extensions/quarks/NonRT/batchNRT/batchNRT.sc'
>  >>>>>>>>   line 93 char 14:
>  >>>>>>>>                                        var psfr;? // Please
>  >>> ignore
>  >>>>>> SC's
>  >>>>>>>> warning about not inlining this function.
>  >>>>>>>>                                        psfr = SoundFile.new;
>  >>>>>>>> -----------------------------------
>  >>>>>>>> numentries = 1124454 / 18350124 = 0.061
>  >>>>>>>>        Method Table Size 9205632 bytes
>  >>>>>>>>        Number of Method Selectors 5738
>  >>>>>>>>        Number of Classes 3198
>  >>>>>>>>        big table size 73400496
>  >>>>>>>>        Number of Symbols 14287
>  >>>>>>>>        Byte Code Size 500140
>  >>>>>>>>        compiled 565 files in 4.92 seconds
>  >>>>>>>> compile done
>  >>>>>>>> // History.logFolder: /Users/scott/Library/Application
>  >>>>>>>> Support/SuperCollider/HistoryLogs
>  >>>>>>>> Class tree inited in 0.18 seconds
>  >>>>>>>> ERROR: A primitive was not bound. 0 550
>  >>>>>>>> Instance of Method {    (0175CDF0, gc=01, fmt=00, flg=11,
>  >>> set=04)
>  >>>>>>>>  instance variables [15]
>  >>>>>>>>    raw1 : Float 3.885846e-318   00000000 000C0048
>  >>>>>>>>    raw2 : Float 5.56268497783366e-309   00040000 04000304
>  >>>>>>>>    code : instance of Int8Array (0175CF30, size=4, set=1)
>  >>>>>>>>    selectors : nil
>  >>>>>>>>    constants : nil
>  >>>>>>>>    prototypeFrame : instance of Array (0175CEE0, size=4, set=2)
>  >>>>>>>>    context : nil
>  >>>>>>>>    argNames : instance of SymbolArray (0175CEA0, size=4, set=1)
>  >>>>>>>>    varNames : nil
>  >>>>>>>>    sourceCode : nil
>  >>>>>>>>    ownerClass : class SCView (01713D70)
>  >>>>>>>>    name : Symbol 'prInit'
>  >>>>>>>>    primitiveName : Symbol '_SCView_New'
>  >>>>>>>>    filenameSymbol : Symbol
>  >>>>>>>>
>  >>>>>>>>
>  >>>>>>
>  >>> '/Applications/Audio_Applications/SuperCollider3/build/
>  >>> SCClassLibrary/Common/GUI/Base/SCView.sc'
>  >>>>>>>>    charPos : Integer 6387
>  >>>>>>>> }
>  >>>>>>>> ERROR: Primitive 'none' failed.
>  >>>>>>>> Failed.
>  >>>>>>>> RECEIVER:
>  >>>>>>>>   nil
>  >>>>>>>> CALL STACK:
>  >>>>>>>>        MethodError:reportError   0166AE30
>  >>>>>>>>                arg this = <instance of PrimitiveFailedError>
>  >>>>>>>>        Nil:handleError   0166AEF0
>  >>>>>>>>                arg this = nil
>  >>>>>>>>                arg error = <instance of PrimitiveFailedError>
>  >>>>>>>>        Thread:handleError   0166AE90
>  >>>>>>>>                arg this = <instance of Thread>
>  >>>>>>>>                arg error = <instance of PrimitiveFailedError>
>  >>>>>>>>        Object:throw   0166ADD0
>  >>>>>>>>                arg this = <instance of PrimitiveFailedError>
>  >>>>>>>>        Object:primitiveFailed   0166AD70
>  >>>>>>>>                arg this = nil
>  >>>>>>>>        SCView:init   0166AD10
>  >>>>>>>>                arg this = <instance of SCTopView>
>  >>>>>>>>                arg argParent = nil
>  >>>>>>>>                arg argBounds = <instance of Rect>
>  >>>>>>>>        SCContainerView:init   0166ACB0
>  >>>>>>>>                arg this = <instance of SCTopView>
>  >>>>>>>>                arg argParent = nil
>  >>>>>>>>                arg argBounds = <instance of Rect>
>  >>>>>>>>        SCWindow:initSCWindow   016AA430
>  >>>>>>>>                arg this = <instance of SCWindow>
>  >>>>>>>>                arg argName = "internal server"
>  >>>>>>>>                arg argBounds = <instance of Rect>
>  >>>>>>>>                arg resizable = false
>  >>>>>>>>                arg border = true
>  >>>>>>>>                arg scroll = false
>  >>>>>>>>        Server:makeGui   01621CB0
>  >>>>>>>>                arg this = <instance of Server>
>  >>>>>>>>                arg w = nil
>  >>>>>>>>                var active = nil
>  >>>>>>>>                var booter = nil
>  >>>>>>>>                var killer = nil
>  >>>>>>>>                var makeDefault = nil
>  >>>>>>>>                var running = nil
>  >>>>>>>>                var booting = nil
>  >>>>>>>>                var stopped = nil
>  >>>>>>>>                var bundling = nil
>  >>>>>>>>                var recorder = nil
>  >>>>>>>>                var scoper = nil
>  >>>>>>>>                var countsViews = nil
>  >>>>>>>>                var ctlr = nil
>  >>>>>>>>                var dumping = false
>  >>>>>>>>                var label = "internal server"
>  >>>>>>>>                var gui = class CocoaGUI
>  >>>>>>>>                var font = <instance of Font>
>  >>>>>>>>                var volumeNum = nil
>  >>>>>>>>        Server:makeWindow   0166AA70
>  >>>>>>>>                arg this = <instance of Server>
>  >>>>>>>>                arg w = nil
>  >>>>>>>>        OSXPlatform:startup   01716400
>  >>>>>>>>                arg this = <instance of OSXPlatform>
>  >>>>>>>>        Main:startup   017163A0
>  >>>>>>>>                arg this = <instance of Main>
>  >>>>>>>> ERROR: A primitive was not bound. 0 550
>  >>>>>>>> Instance of Method {    (02095980, gc=01, fmt=00, flg=11,
>  >>> set=04)
>  >>>>>>>>  instance variables [15]
>  >>>>>>>>    raw1 : Float 3.885727e-318   00000000 000C0030
>  >>>>>>>>    raw2 : Float 1.390671244457466e-309   00010000 01000001
>  >>>>>>>>    code : instance of Int8Array (02095A30, size=1, set=1)
>  >>>>>>>>    selectors : nil
>  >>>>>>>>    constants : nil
>  >>>>>>>>    prototypeFrame : instance of Array (013A6FC0, size=1, set=1)
>  >>>>>>>>    context : nil
>  >>>>>>>>    argNames : instance of SymbolArray (013A7000, size=1, set=1)
>  >>>>>>>>    varNames : nil
>  >>>>>>>>    sourceCode : nil
>  >>>>>>>>    ownerClass : class Meta_CocoaDocument (02091B70)
>  >>>>>>>>    name : Symbol 'prGetIndexOfListener'
>  >>>>>>>>    primitiveName : Symbol '_TextWindow_GetIndexOfListener'
>  >>>>>>>>    filenameSymbol : Symbol
>  >>>>>>>>
>  >>>>>>>>
>  >>>>>>
>  >>> '/Applications/Audio_Applications/SuperCollider3/build/
>  >>> SCClassLibrary/Platform/osx/CocoaDocument.sc'
>  >>>>>>>>    charPos : Integer 3010
>  >>>>>>>> }
>  >>>>>>>> ERROR: Primitive '_BasicAt' failed.
>  >>>>>>>> Index not an Integer
>  >>>>>>>> RECEIVER:
>  >>>>>>>> Instance of Array {    (016AAC90, gc=20, fmt=01, flg=00,
>  >>> set=00)
>  >>>>>>>>  indexed slots [0]
>  >>>>>>>> }
>  >>>>>>>> CALL STACK:
>  >>>>>>>>        MethodError:reportError   013CAC50
>  >>>>>>>>                arg this = <instance of PrimitiveFailedError>
>  >>>>>>>>        Nil:handleError   013CABF0
>  >>>>>>>>                arg this = nil
>  >>>>>>>>                arg error = <instance of PrimitiveFailedError>
>  >>>>>>>>        Thread:handleError   013CAB90
>  >>>>>>>>                arg this = <instance of Thread>
>  >>>>>>>>                arg error = <instance of PrimitiveFailedError>
>  >>>>>>>>        Thread:handleError   013CAB30
>  >>>>>>>>                arg this = <instance of Routine>
>  >>>>>>>>                arg error = <instance of PrimitiveFailedError>
>  >>>>>>>>        Object:throw   013CAAD0
>  >>>>>>>>                arg this = <instance of PrimitiveFailedError>
>  >>>>>>>>        Object:primitiveFailed   013CAA70
>  >>>>>>>>                arg this = [*0]
>  >>>>>>>>        < FunctionDef in Method Meta_CocoaDocument:startup >
>  >>> (no
>  >>>>>>>> arguments
>  >>>>>>>> or variables)
>  >>>>>>>>        Routine:prStart   0166AAD0
>  >>>>>>>>                arg this = <instance of Routine>
>  >>>>>>>>                arg inval = 4.991427843
>  >>>>>>>>
>  >>>>>>>>
>  >>>>>>>>
>  >>>>>>>>
>  >>>>>>>>
>  >>>>>>>>
>  >>>>>>>>
>  >>>>>>>>
>  >>>>>>>> scacinto wrote:
>  >>>>>>>>>
>  >>>>>>>>> Hi all,
>  >>>>>>>>>
>  >>>>>>>>> I've recently become dissatisfied with the supercollider
>  >>>>>> interpreter
>  >>>>>>>> (for
>  >>>>>>>>> a number of reasons including no line numbers, no auto syntax
>  >>>>>>>>> highlighting, open windows all over causing headaches, etc.)
>  >>> and
>  >>>>>> would
>  >>>>>>>>> like to be able to work with the sclang executable instead
>  >>> via
>  >>>>>> another
>  >>>>>>>>> text editor.  I've attempted to build the executable from the
>  >>>>>> source
>  >>>>>>>> using
>  >>>>>>>>> scons but get a host of errors.  Has anyone had success
>  >>> building
>  >>>>>> the
>  >>>>>>>>> executable from source on a MacIntel with Leopard?  The error
>  >>> (if
>  >>>>>> you
>  >>>>>>>>> care) is as follows.
>  >>>>>>>>>
>  >>>>>>>>> ...Source/lang/LangPrimSource/PyrSched.cpp: In function 'void
>  >>>>>>>>> syncOSCOffsetWithTimeOfDay()':
>  >>>>>>>>> Source/lang/LangPrimSource/PyrSched.cpp:290: error:
>  >>>>>> 'gettimeofday' was
>  >>>>>>>> not
>  >>>>>>>>> declared in this scope
>  >>>>>>>>> scons: *** [Source/lang/LangPrimSource/PyrSched.os] Error 1
>  >>>>>>>>> scons: building terminated because of errors.
>  >>>>>>>>>
>  >>>>>>>>> If I edit out this section and try again, other files pop up
>  >>> with
>  >>>>>>>> errors.
>  >>>>>>>>>
>  >>>>>>>>> I know there are instructions on the wiki for ways to build
>  >>> from
>  >>>>>>>> source
>  >>>>>>>>> using XCode, and other means, but the instructions are rather
>  >>>>>> cryptic,
>  >>>>>>>> and
>  >>>>>>>>> some didn't work for me at all.  Is there an easy (practical)
>  >>> way
>  >>>>>> to
>  >>>>>>>> do
>  >>>>>>>>> this that doesn't require hours of reading/editing?
>  >>>>>>>>>
>  >>>>>>>>> Another question.  Has anyone tried the text-editor Smultron?
>  >>> It
>  >>>>>> has
>  >>>>>>>> a
>  >>>>>>>>> number of nice features, from auto syntax highlighting to
>  >>> auto
>  >>>>>> line
>  >>>>>>>>> numbering, in-window (quicklook) document opening so all docs
>  >>> are
>  >>>>>>>>> contained within a single window, one need only click one to
>  >>>>>> access
>  >>>>>>>> it.
>  >>>>>>>>> It has multiple view support and some other niceties.  It can
>  >>>>>> execute
>  >>>>>>>>> scripts, inline posts, etc.  It seems like one could easily
>  >>>>>> script
>  >>>>>>>> this
>  >>>>>>>>> program to work like SCVim and get some of the features
>  >>> missing
>  >>>>>> in the
>  >>>>>>>>> interpreter.
>  >>>>>>>>>
>  >>>>>>>>> I would love to hear what people are thinking about the
>  >>> current
>  >>>>>> UI
>  >>>>>>>>> Interpreter and their workarounds for working with the sclang
>  >>>>>>>> executable
>  >>>>>>>>> with other programs.
>  >>>>>>>>>
>  >>>>>>>>> Thanks,
>  >>>>>>>>>
>  >>>>>>>>> - Scott
>  >>>>>>>>>
>  >>>>>>>>>
>  >>>>>>>>
>  >>>>>>>> --
>  >>>>>>>> View this message in context:
>  >>>>>>>>
>  >>>>>>
>  >>> http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17157927.html
>  >>>>>>>>
>  >>>>>>>>
>  >>>>>>>> Sent from the Supercollider - User mailing list archive at
>  >>>>>> Nabble.com.
>  >>>>>>>>
>  >>>>>>>> _______________________________________________
>  >>>>>>>> sc-users mailing list
>  >>>>>>>> sc-users@...
>  >>>>>>>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>>>>>>>
>  >>>>>>> _______________________________________________
>  >>>>>>> sc-users mailing list
>  >>>>>>> sc-users@...
>  >>>>>>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>>>>>>
>  >>>>>>>
>  >>>>>>
>  >>>>>> --
>  >>>>>> View this message in context:
>  >>>>>>
>  >>> http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17174023.html
>  >>>>>>
>  >>>>>>
>  >>>>>> Sent from the Supercollider - User mailing list archive at
>  >>> Nabble.com.
>  >>>>>>
>  >>>>>> _______________________________________________
>  >>>>>> sc-users mailing list
>  >>>>>> sc-users@...
>  >>>>>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>>>>>
>  >>>>> _______________________________________________
>  >>>>> sc-users mailing list
>  >>>>> sc-users@...
>  >>>>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>>>>
>  >>>>>
>  >>>>
>  >>>>
>  >>>
>  >>> --
>  >>> View this message in context:
>  >>> http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17181603.html
>  >>>
>  >>>
>  >>> Sent from the Supercollider - User mailing list archive at
>  >>> Nabble.com.
>  >>>
>  >>> _______________________________________________
>  >>> sc-users mailing list
>  >>> sc-users@...
>  >>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>>
>  >> _______________________________________________
>  >> sc-users mailing list
>  >> sc-users@...
>  >> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>
>  >>
>  >
>  > --
>  > View this message in context: http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17189816.html
>  > Sent from the Supercollider - User mailing list archive at Nabble.com.
>  >
>  > _______________________________________________
>  > sc-users mailing list
>  > sc-users@...
>  > http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
>
> ******************************************
>  /* Joshua D. Parmenter
>  http://www.realizedsound.net/josh/
>
>  "Every composer – at all times and in all cases – gives his own
>  interpretation of how modern society is structured: whether actively
>  or passively, consciously or unconsciously, he makes choices in this
>  regard. He may be conservative or he may subject himself to continual
>  renewal; or he may strive for a revolutionary, historical or social
>  palingenesis." - Luigi Nono
>  */
>
>  _______________________________________________
>
>
> sc-users mailing list
>  sc-users@...
>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by scacinto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ah yes - this was confusing as I had not edited this file.  But, that was on a different machine than the one on which I'm working now, so... who knows.

I've sort of gotten everything working on this machine - with some gotchas... so, for the sake of explicitness (explicitness being so much more fun than implicitness!) I'll recount my process.

1) Build the Language.xcodeproj in XCode.  This means selecting the sclang target under "Targets" and clicking build.  This succeeds with 27 warnings on my machine.

2) I then have to edit the file /SCClassLibrary/Platform/osx/OSXPlatform.sc so it looks like the following.

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;
// if ( this.hasFeature( \emacs ) ) {
 //       Document.implementationClass.startup;};
                this.loadStartupFiles;
        }
        shutdown {
                HIDDeviceService.releaseDeviceList;
        }
       
                // only osx uses Cocoa guis
        defaultGUIScheme { ^\cocoa }
        defaultHIDScheme { ^\osx_hid }
}


This edit reflects the use of the "emacs" code suggested earlier in this thread.  This caused an error however, so I've commented it out.

running './sclang -h' within the build directory now produces the following (which is good!)

WazBook:build scott$ ./sclang -h
Usage:
   sclang [options] [file..] [-]

Options:
   -d <path>                      Set runtime directory
   -D                             Enter daemon mode (no input)
   -g <memory-growth>[km]         Set heap growth (default 256k)
   -h                             Display this message and exit
   -l <path>                      Set library configuration file
   -m <memory-space>[km]          Set initial heap size (default 2m)
   -r                             Call Main.run on startup
   -s                             Call Main.stop on shutdown
   -u <network-port-number>       Set UDP listening port (default 57120)

Now, if I run some code as follows, I get some curious errors and the synth doesn't start, obviously because I don't have an scsynth executable in this directory.  (Supplying one from a different build sort of works - but has some curious side effects from Frankensteining the two together...)

The error that occurs whether the scsynth executable is present or not is a complaint about the CocoaDocument.sc file claiming a problem with an 'unbound primitive.'  I don't know what this means.

WazBook:build scott$ ./sclang /Users/scott/Desktop/Untitled.txt
init_OSC
compiling class library..
        NumPrimitives = 551
        compiling dir: '/Users/scott/Desktop/SuperCollider3/build/SCClassLibrary'
        compiling dir: '/Library/Application Support/SuperCollider/Extensions'
        compiling dir: '/Users/scott/Library/Application Support/SuperCollider/Extensions'
        pass 1 done
        Extension overwriting SimpleNumber:asTimeString
                in file '/Library/Application Support/SuperCollider/Extensions/ljpclasses/LJP Classes/Extensions/SimpleNumber-asTimeString.sc'.
                Original method in file '/Common/Math/SimpleNumber.sc'.
        Extension overwriting Meta_String:rand
                in file '/Users/scott/Library/Application Support/SuperCollider/Extensions/quarks/NetLib/classes/extStringRand.sc'.
                Original method in file '/Users/scott/Library/Application Support/SuperCollider/Extensions/quarks/NetLib/classes/extNetwork.sc'.
        Extension overwriting Meta_Symbol:rand
                in file '/Users/scott/Library/Application Support/SuperCollider/Extensions/quarks/NetLib/classes/extStringRand.sc'.
                Original method in file '/Users/scott/Library/Application Support/SuperCollider/Extensions/quarks/NetLib/classes/extNetwork.sc'.
WARNING: FunctionDef contains variable declarations and so will not be inlined.
   in file '/Users/scott/Library/Application Support/SuperCollider/Extensions/quarks/NonRT/batchNRT/batchNRT.sc'
   line 93 char 14:
  var psfr;? // Please ignore SC's warning about not inlining this function.
  psfr = SoundFile.new;
-----------------------------------
        Extension overwriting Quarks:gui
                in file '/Users/scott/Library/Application Support/SuperCollider/Extensions/QuarksPlus.sc'.
                Original method in file '/Common/Quarks/Quarks.sc'.
numentries = 1301243 / 25158850 = 0.052
        Method Table Size 12214324 bytes
        Number of Method Selectors 6745
        Number of Classes 3730
        big table size 100635400
        Number of Symbols 16956
        Byte Code Size 820329
        compiled 725 files in 2.56 seconds
compile done

Could not connect socket
// History.logFolder: /Users/scott/Library/Application Support/SuperCollider/HistoryLogs
WARNING:
'oggdec' executable not found. Please modify the MP3:oggdecpath class variable.
Class tree inited in 0.16 seconds
RESULT = 0
StartUp done.
Welcome to SuperCollider, type cmd-d for help
booting 57110
This worked!
a SynthDef
ERROR: A primitive was not bound. 0 550
Instance of Method {    (014152D0, gc=01, fmt=00, flg=11, set=04)
  instance variables [15]
    raw1 : Float 8.900397289826772e-308   0030000C 00000000
    raw2 : Float 7.29112897291262e-304   01000001 00000100
    code : instance of Int8Array (01415380, size=1, set=1)
    selectors : nil
    constants : nil
    prototypeFrame : instance of Array (01020FC0, size=1, set=1)
    context : nil
    argNames : instance of SymbolArray (01021000, size=1, set=1)
    varNames : nil
    sourceCode : nil
    ownerClass : class Meta_CocoaDocument (014114C0)
    name : Symbol 'prGetIndexOfListener'
    primitiveName : Symbol '_TextWindow_GetIndexOfListener'
    filenameSymbol : Symbol '/Users/scott/Desktop/SuperCollider3/build/SCClassLibrary/Platform/osx/CocoaDocument.sc'
    charPos : Integer 3010
}
ERROR: Primitive '_BasicAt' failed.
Index not an Integer
RECEIVER:
Instance of Array {    (004A84B0, gc=54, fmt=01, flg=00, set=00)
  indexed slots [0]
sh: ./scsynth: No such file or directory
}
CALL STACK:
        MethodError:reportError   00461230
                arg this = <instance of PrimitiveFailedError>
        Nil:handleError   00461110
                arg this = nil
                arg error = <instance of PrimitiveFailedError>
        Thread:handleError   004611D0
                arg this = <instance of Thread>
                arg error = <instance of PrimitiveFailedError>
        Thread:handleError   004C0AB0
                arg this = <instance of Routine>
                arg error = <instance of PrimitiveFailedError>
        Object:throw   00461170
                arg this = <instance of PrimitiveFailedError>
        Object:primitiveFailed   004C08D0
                arg this = [*0]
        < FunctionDef in Method Meta_CocoaDocument:startup >  (no arguments or variables)
        Routine:prStart   0046F870
                arg this = <instance of Routine>
                arg inval = 2.574197098
RESULT = 32512
...

So, the 'This worked!' posted within the code I ran lets me know that sclang is doing its best... this is encouraging.  So I build both of the other projects next, Synth.xcodeproj and Plugins.xcodeproj.

Now I don't get the funky errors from using the alien scsynth from the different build.  I still have the following errors.  

ERROR: A primitive was not bound. 0 550
Instance of Method {    (014152D0, gc=01, fmt=00, flg=11, set=04)
  instance variables [15]
    raw1 : Float 8.900397289826772e-308   0030000C 00000000
    raw2 : Float 7.29112897291262e-304   01000001 00000100
    code : instance of Int8Array (01415380, size=1, set=1)
    selectors : nil
    constants : nil
    prototypeFrame : instance of Array (01020FC0, size=1, set=1)
    context : nil
    argNames : instance of SymbolArray (01021000, size=1, set=1)
    varNames : nil
    sourceCode : nil
    ownerClass : class Meta_CocoaDocument (014114C0)
    name : Symbol 'prGetIndexOfListener'
    primitiveName : Symbol '_TextWindow_GetIndexOfListener'
    filenameSymbol : Symbol '/Users/scott/Desktop/SuperCollider3/build/SCClassLibrary/Platform/osx/CocoaDocument.sc'
    charPos : Integer 3010
}
ERROR: Primitive '_BasicAt' failed.
Index not an Integer
RECEIVER:
Instance of Array {    (004A84B0, gc=54, fmt=01, flg=00, set=00)
  indexed slots [0]
}
CALL STACK:
        MethodError:reportError   00461230
                arg this = <instance of PrimitiveFailedError>
        Nil:handleError   00461110
                arg this = nil
                arg error = <instance of PrimitiveFailedError>
        Thread:handleError   004611D0
                arg this = <instance of Thread>
                arg error = <instance of PrimitiveFailedError>
        Thread:handleError   004C0AB0
                arg this = <instance of Routine>
                arg error = <instance of PrimitiveFailedError>
        Object:throw   00461170
                arg this = <instance of PrimitiveFailedError>
        Object:primitiveFailed   004C08D0
                arg this = [*0]
        < FunctionDef in Method Meta_CocoaDocument:startup >  (no arguments or variables)
        Routine:prStart   0046F870
                arg this = <instance of Routine>
                arg inval = 2.485198918

Despite these errors it appears that scsynth is aware of its surroundings, at least telling me that it's not happy...

FAILURE /s_new Group not found
notification is on
FAILURE /n_free Node not found

Now, I'm new to all this madness, so my code may just be stupid... so I've copied it below.  (Sorry this is so d*mn long!)

----------------------------
s = Server.local;
s.waitForBoot;

~clock = Scheduler(SystemClock);

~clock.sched(5, {x = Synth.new("default");});
~clock.sched(10, {x.free;});
"This worked!".postln;

SynthDef("test", {
        var sound = SinOsc.ar;
        Out.ar(0, sound);
}).send(s).postln;

r = Routine({
        loop({
                ~clock.advance(1);
                1.wait;})
                });
       
r.reset.play;

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

So, I suppose I'll be content to wait for Josh to post instructions on how to get this working with Aquaemacs. ;)

Thanks.

-S






blackrain-2 wrote:
There is two parts to the process.  a) build the sclang binary (using
xcode) and b) customize a copy of the library to work in sclang.

a) Your binary is fine and was fine from the first build you did. you
were bulding a debug target (PPC only code with no optimizations and
debug symbols).
That target was fine in the project from the first svn checkin I did.
The building of deployment targets (Universal binary code, optimized)
was fixed minutes after the initial check in thanks to Josh for making
me notice I had forgotten to make a symbol definition.

if you get the lang switches help to display, your binary is fine.
        $ sclang -h

b) What I meant in my previous post was that you have a typo in your
mods to OSXPlatform.sc
This is why the library compile in sclang does not fly.

>From your error log:
\emacs (or 'emacs') would do but not /emacs

change that and tings will work. Please read the help on understandnig errors.

>  ERROR: Parse error
>    in file '/Platform/osx/OSXPlatform.sc'
>    line 17 char 24:
>         if ( this.hasFeature( /?emacs ) ) {
>                 Document.implementationClass.startup;
>  -----------------------------------
>  ERROR: file '/Platform/osx/OSXPlatform.sc' parse failed
>  error parsing

cheers,

x

On Mon, May 12, 2008 at 10:49 AM, scacinto
<scottpetersen@frontiernet.net> wrote:
>
>  Hey x,
>      This actually fails with the same error.  I must be doing something
>  wrong in the build process, as I followed the rest of your instructions to a
>  tee (though I'm not sure what the problem was with the '\emacs \emacs'
>  thing... was that something wrong on my end?  (I haven't even installed
>  emacs, let alone called it for anything... perhaps that's the problem?...)
>
>  I know this is a pain, but when you get a chance, could you clarify (or
>  someone else) the build-in-XCode process?  This must be where I'm going
>  wrong.  I'd also like to have Josh or another post those directions over at
>  the NewScores page so they're readily accessible to those wanted to follow
>  this dark path...
>
>  Many thanks,
>
>  -S
>
>
>
>
>
>  blackrain-2 wrote:
>  >
>  > Hi,
>  >
>  > On Mon, May 12, 2008 at 12:10 AM, scacinto
>  > <scottpetersen@frontiernet.net> wrote:
>  >>
>  >>  OK - can you define what you mean by "build the sclang target"?  I've
>  >> opened
>  >>  the language project in XCode and built the sclang under the Target
>  >> heading,
>  >
>  > yes exactly that =)
>  > please svn update and build again (oops), I was missing a symbol
>  > definition for the deployment target although the development target
>  > builds fine.
>  >
>  > also, you may want to select a deployment target for your builds - by
>  > default it will build the debug version wich is slower and PPC code.
>  >
>  > in XCode with the lang project opened:
>  > Project -> Set Active Build Configuration -> deployment
>  >
>  >
>  >>  but following the rest of your directions the execution of the binary
>  >> fails
>  >>  with the following error.
>  >>
>  >
>  > =)
>  >
>  > /emacs hmmm
>  > it should be a Symbol as in 'emacs' thus \emacs not /emacs
>  >
>  > let us know how it goes.
>  >
>  > cheers,
>  >
>  > x
>  >
>  >
>  >
>  >>
>  >>  Waz:~/SuperCollider3/build scott$ sclang -d ~/sclang/init_OSC
>  >>
>  >> compiling class library..
>  >>         NumPrimitives = 551
>  >>         compiling dir: '/Users/scott/sclang/SCClassLibrary'
>  >>
>  >>         compiling dir: '/Library/Application
>  >>  Support/SuperCollider/Extensions'
>  >>         compiling dir: '/Users/scott/Library/Application
>  >>  Support/SuperCollider/Extensions'
>  >>         pass 1 done
>  >>  ERROR: Parse error
>  >>    in file '/Platform/osx/OSXPlatform.sc'
>  >>    line 17 char 24:
>  >>         if ( this.hasFeature( /?emacs ) ) {
>  >>                 Document.implementationClass.startup;
>  >>  -----------------------------------
>  >>  ERROR: file '/Platform/osx/OSXPlatform.sc' parse failed
>  >>  error parsing
>  >>
>  >>         Extension overwriting SimpleNumber:asTimeString
>  >>                 in file '/Library/Application
>  >>  Support/SuperCollider/Extensions/ljpclasses/classes/LJP
>  >>  Classes/Extensions/SimpleNumber-asTimeString.sc'.
>  >>                 Original method in file '/Common/Math/SimpleNumber.sc'.
>  >>  WARNING: FunctionDef contains variable declarations and so will not be
>  >>  inlined.
>  >>    in file '/Users/scott/Library/Application
>  >>  Support/SuperCollider/Extensions/quarks/NonRT/batchNRT/batchNRT.sc'
>  >>    line 93 char 14:
>  >>                                         var psfr;? // Please ignore SC's
>  >>  warning about not inlining this function.
>  >>                                         psfr = SoundFile.new;
>  >>
>  >>  I'm sorry if I'm missing something obvious, but ...
>  >>
>  >>  thanks,
>  >>
>  >>  -S
>  >>
>  >>
>  >>
>  >>
>  >>
>  >>  scacinto wrote:
>  >>  >
>  >>  > word!  downloading ahora!
>  >>  >
>  >>  > -S
>  >>  >
>  >>  >
>  >>  >
>  >>  > blackrain-2 wrote:
>  >>  >>
>  >>  >> done.
>  >>  >> please svn update.
>  >>  >> try a build of sclang target.
>  >>  >> There is a new document 'README SCLang OSX' with steps to setup a
>  >>  >> library to work with sclang in os x.
>  >>  >>
>  >>  >> let me know how it goes.
>  >>  >>
>  >>  >> cheers,
>  >>  >>
>  >>  >> x
>  >>  >>
>  >>  >> On Sun, May 11, 2008 at 2:40 PM, scacinto
>  >> <scottpetersen@frontiernet.net>
>  >>  >> wrote:
>  >>  >>>
>  >>  >>>  Could you define what steps you are speaking of and provide a link?
>  >>  >>> Are they
>  >>  >>>  the same as the wiki?  I've tried all of the instructions on the
>  >> wiki
>  >>  >>> with
>  >>  >>>  two different computers and OSes and both fail to compile correctly
>  >>  >>> (with
>  >>  >>>  the modification of some files called for which are not present in
>  >> the
>  >>  >>>  current revision as per my original post.)
>  >>  >>>
>  >>  >>>  -S
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>  blackrain-2 wrote:
>  >>  >>>  >
>  >>  >>>  > The steps I posted here ages ago still work.
>  >>  >>>  > All source files still exist and there is no need to mod them at
>  >> all
>  >>  >>>  > but make some defines/additions to the project.
>  >>  >>>  > The current xcode sclang project is wrong; it hooks the cocoa
>  >> views
>  >>  >>>  > primitives and other stuff that will make sclang fail but appear
>  >> like
>  >>  >>>  > all is good (launch, compile and finish); I will check in the
>  >> changes
>  >>  >>>  > soon to svn.
>  >>  >>>  > I got no clue about scons - I dont use it on osx.
>  >>  >>>  >
>  >>  >>>  > x
>  >>  >>>  >
>  >>  >>>  >
>  >>  >>>  > On Fri, May 9, 2008 at 6:10 PM, scacinto
>  >>  >>> <scottpetersen@frontiernet.net>
>  >>  >>>  > wrote:
>  >>  >>>  >>
>  >>  >>>  >>  I just tried to build sclang following the directions on the
>  >> wiki.
>  >>  >>> The
>  >>  >>>  >>  directions seem to be seriously outdated and flawed in several
>  >>  >>> respects,
>  >>  >>>  >>  including calling for the editing of several files which no
>  >> longer
>  >>  >>> seem
>  >>  >>>  >> to
>  >>  >>>  >>  exist.  I'll post the output of my attempt to run the
>  >> executable at
>  >>  >>> the
>  >>  >>>  >> end
>  >>  >>>  >>  of this post.
>  >>  >>>  >>
>  >>  >>>  >>  So I've tried two different methods described on the wiki,
>  >> using
>  >>  >>> scons
>  >>  >>>  >> and
>  >>  >>>  >>  using XCode, both of which failed.  This seems like a bit of a
>  >>  >>> problem,
>  >>  >>>  >>  especially if someone new (without the commitment of a
>  >> long-time
>  >>  >>> user)
>  >>  >>>  >> would
>  >>  >>>  >>  like to get sclang running on OS X.
>  >>  >>>  >>
>  >>  >>>  >>  Could someone post clear instructions on how to compile SC with
>  >>  >>> sclang
>  >>  >>>  >> using
>  >>  >>>  >>  scons or XCode if they have managed to do so?  Also, please
>  >> post
>  >>  >>> the
>  >>  >>>  >> version
>  >>  >>>  >>  of XCode you are using (My failed attempt used 2.4.1) the OS
>  >> (ex.
>  >>  >>>  >> 10.4.11)
>  >>  >>>  >>  and whether you are using a PPC or Intel mac.
>  >>  >>>  >>
>  >>  >>>  >>  It seems that getting a reliable and simple method of compiling
>  >>  >>> with the
>  >>  >>>  >>  sclang executable available for peruzal on the wiki, in the
>  >> how-to
>  >>  >>> page
>  >>  >>>  >> of
>  >>  >>>  >>  the sourceforge page or even, perhaps preferably, in the OS X
>  >>  >>> README, is
>  >>  >>>  >> a
>  >>  >>>  >>  must as more and more people I talk to seem a little
>  >> dissatisfied
>  >>  >>> with
>  >>  >>>  >> the
>  >>  >>>  >>  current Interpreter.
>  >>  >>>  >>
>  >>  >>>  >>  Thoughts?
>  >>  >>>  >>
>  >>  >>>  >>  Thanks,
>  >>  >>>  >>
>  >>  >>>  >>  -S
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>  Waz:/Applications/Audio_Applications/SuperCollider3/build
>  >> scott$
>  >>  >>>  >> ./sclang
>  >>  >>>  >>  init_OSC
>  >>  >>>  >>  compiling class library..
>  >>  >>>  >>         NumPrimitives = 551
>  >>  >>>  >>         compiling dir:
>  >>  >>>  >>
>  >>  >>>
>  >> '/Applications/Audio_Applications/SuperCollider3/build/SCClassLibrary'
>  >>  >>>  >>         compiling dir: '/Library/Application
>  >>  >>>  >>  Support/SuperCollider/Extensions'
>  >>  >>>  >>         compiling dir: '/Users/scott/Library/Application
>  >>  >>>  >>  Support/SuperCollider/Extensions'
>  >>  >>>  >>         pass 1 done
>  >>  >>>  >>         Extension overwriting SimpleNumber:asTimeString
>  >>  >>>  >>                 in file '/Library/Application
>  >>  >>>  >>  Support/SuperCollider/Extensions/ljpclasses/classes/LJP
>  >>  >>>  >>  Classes/Extensions/SimpleNumber-asTimeString.sc'.
>  >>  >>>  >>                 Original method in file
>  >>  >>> '/Common/Math/SimpleNumber.sc'.
>  >>  >>>  >>  WARNING: FunctionDef contains variable declarations and so will
>  >> not
>  >>  >>> be
>  >>  >>>  >>  inlined.
>  >>  >>>  >>    in file '/Users/scott/Library/Application
>  >>  >>>  >>
>  >> Support/SuperCollider/Extensions/quarks/NonRT/batchNRT/batchNRT.sc'
>  >>  >>>  >>    line 93 char 14:
>  >>  >>>  >>                                         var psfr;? // Please
>  >> ignore
>  >>  >>> SC's
>  >>  >>>  >>  warning about not inlining this function.
>  >>  >>>  >>                                         psfr = SoundFile.new;
>  >>  >>>  >>  -----------------------------------
>  >>  >>>  >>  numentries = 1124454 / 18350124 = 0.061
>  >>  >>>  >>         Method Table Size 9205632 bytes
>  >>  >>>  >>         Number of Method Selectors 5738
>  >>  >>>  >>         Number of Classes 3198
>  >>  >>>  >>         big table size 73400496
>  >>  >>>  >>         Number of Symbols 14287
>  >>  >>>  >>         Byte Code Size 500140
>  >>  >>>  >>         compiled 565 files in 4.92 seconds
>  >>  >>>  >>  compile done
>  >>  >>>  >>  // History.logFolder: /Users/scott/Library/Application
>  >>  >>>  >>  Support/SuperCollider/HistoryLogs
>  >>  >>>  >>  Class tree inited in 0.18 seconds
>  >>  >>>  >>  ERROR: A primitive was not bound. 0 550
>  >>  >>>  >>  Instance of Method {    (0175CDF0, gc=01, fmt=00, flg=11,
>  >> set=04)
>  >>  >>>  >>   instance variables [15]
>  >>  >>>  >>     raw1 : Float 3.885846e-318   00000000 000C0048
>  >>  >>>  >>     raw2 : Float 5.56268497783366e-309   00040000 04000304
>  >>  >>>  >>     code : instance of Int8Array (0175CF30, size=4, set=1)
>  >>  >>>  >>     selectors : nil
>  >>  >>>  >>     constants : nil
>  >>  >>>  >>     prototypeFrame : instance of Array (0175CEE0, size=4, set=2)
>  >>  >>>  >>     context : nil
>  >>  >>>  >>     argNames : instance of SymbolArray (0175CEA0, size=4, set=1)
>  >>  >>>  >>     varNames : nil
>  >>  >>>  >>     sourceCode : nil
>  >>  >>>  >>     ownerClass : class SCView (01713D70)
>  >>  >>>  >>     name : Symbol 'prInit'
>  >>  >>>  >>     primitiveName : Symbol '_SCView_New'
>  >>  >>>  >>     filenameSymbol : Symbol
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>
>  >> '/Applications/Audio_Applications/SuperCollider3/build/SCClassLibrary/Common/GUI/Base/SCView.sc'
>  >>  >>>  >>     charPos : Integer 6387
>  >>  >>>  >>  }
>  >>  >>>  >>  ERROR: Primitive 'none' failed.
>  >>  >>>  >>  Failed.
>  >>  >>>  >>  RECEIVER:
>  >>  >>>  >>    nil
>  >>  >>>  >>  CALL STACK:
>  >>  >>>  >>         MethodError:reportError   0166AE30
>  >>  >>>  >>                 arg this = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Nil:handleError   0166AEF0
>  >>  >>>  >>                 arg this = nil
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Thread:handleError   0166AE90
>  >>  >>>  >>                 arg this = <instance of Thread>
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Object:throw   0166ADD0
>  >>  >>>  >>                 arg this = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Object:primitiveFailed   0166AD70
>  >>  >>>  >>                 arg this = nil
>  >>  >>>  >>         SCView:init   0166AD10
>  >>  >>>  >>                 arg this = <instance of SCTopView>
>  >>  >>>  >>                 arg argParent = nil
>  >>  >>>  >>                 arg argBounds = <instance of Rect>
>  >>  >>>  >>         SCContainerView:init   0166ACB0
>  >>  >>>  >>                 arg this = <instance of SCTopView>
>  >>  >>>  >>                 arg argParent = nil
>  >>  >>>  >>                 arg argBounds = <instance of Rect>
>  >>  >>>  >>         SCWindow:initSCWindow   016AA430
>  >>  >>>  >>                 arg this = <instance of SCWindow>
>  >>  >>>  >>                 arg argName = "internal server"
>  >>  >>>  >>                 arg argBounds = <instance of Rect>
>  >>  >>>  >>                 arg resizable = false
>  >>  >>>  >>                 arg border = true
>  >>  >>>  >>                 arg scroll = false
>  >>  >>>  >>         Server:makeGui   01621CB0
>  >>  >>>  >>                 arg this = <instance of Server>
>  >>  >>>  >>                 arg w = nil
>  >>  >>>  >>                 var active = nil
>  >>  >>>  >>                 var booter = nil
>  >>  >>>  >>                 var killer = nil
>  >>  >>>  >>                 var makeDefault = nil
>  >>  >>>  >>                 var running = nil
>  >>  >>>  >>                 var booting = nil
>  >>  >>>  >>                 var stopped = nil
>  >>  >>>  >>                 var bundling = nil
>  >>  >>>  >>                 var recorder = nil
>  >>  >>>  >>                 var scoper = nil
>  >>  >>>  >>                 var countsViews = nil
>  >>  >>>  >>                 var ctlr = nil
>  >>  >>>  >>                 var dumping = false
>  >>  >>>  >>                 var label = "internal server"
>  >>  >>>  >>                 var gui = class CocoaGUI
>  >>  >>>  >>                 var font = <instance of Font>
>  >>  >>>  >>                 var volumeNum = nil
>  >>  >>>  >>         Server:makeWindow   0166AA70
>  >>  >>>  >>                 arg this = <instance of Server>
>  >>  >>>  >>                 arg w = nil
>  >>  >>>  >>         OSXPlatform:startup   01716400
>  >>  >>>  >>                 arg this = <instance of OSXPlatform>
>  >>  >>>  >>         Main:startup   017163A0
>  >>  >>>  >>                 arg this = <instance of Main>
>  >>  >>>  >>  ERROR: A primitive was not bound. 0 550
>  >>  >>>  >>  Instance of Method {    (02095980, gc=01, fmt=00, flg=11,
>  >> set=04)
>  >>  >>>  >>   instance variables [15]
>  >>  >>>  >>     raw1 : Float 3.885727e-318   00000000 000C0030
>  >>  >>>  >>     raw2 : Float 1.390671244457466e-309   00010000 01000001
>  >>  >>>  >>     code : instance of Int8Array (02095A30, size=1, set=1)
>  >>  >>>  >>     selectors : nil
>  >>  >>>  >>     constants : nil
>  >>  >>>  >>     prototypeFrame : instance of Array (013A6FC0, size=1, set=1)
>  >>  >>>  >>     context : nil
>  >>  >>>  >>     argNames : instance of SymbolArray (013A7000, size=1, set=1)
>  >>  >>>  >>     varNames : nil
>  >>  >>>  >>     sourceCode : nil
>  >>  >>>  >>     ownerClass : class Meta_CocoaDocument (02091B70)
>  >>  >>>  >>     name : Symbol 'prGetIndexOfListener'
>  >>  >>>  >>     primitiveName : Symbol '_TextWindow_GetIndexOfListener'
>  >>  >>>  >>     filenameSymbol : Symbol
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>
>  >> '/Applications/Audio_Applications/SuperCollider3/build/SCClassLibrary/Platform/osx/CocoaDocument.sc'
>  >>  >>>  >>     charPos : Integer 3010
>  >>  >>>  >>  }
>  >>  >>>  >>  ERROR: Primitive '_BasicAt' failed.
>  >>  >>>  >>  Index not an Integer
>  >>  >>>  >>  RECEIVER:
>  >>  >>>  >>  Instance of Array {    (016AAC90, gc=20, fmt=01, flg=00,
>  >> set=00)
>  >>  >>>  >>   indexed slots [0]
>  >>  >>>  >>  }
>  >>  >>>  >>  CALL STACK:
>  >>  >>>  >>         MethodError:reportError   013CAC50
>  >>  >>>  >>                 arg this = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Nil:handleError   013CABF0
>  >>  >>>  >>                 arg this = nil
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Thread:handleError   013CAB90
>  >>  >>>  >>                 arg this = <instance of Thread>
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Thread:handleError   013CAB30
>  >>  >>>  >>                 arg this = <instance of Routine>
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Object:throw   013CAAD0
>  >>  >>>  >>                 arg this = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Object:primitiveFailed   013CAA70
>  >>  >>>  >>                 arg this = [*0]
>  >>  >>>  >>         < FunctionDef in Method Meta_CocoaDocument:startup >
>  >> (no
>  >>  >>>  >> arguments
>  >>  >>>  >>  or variables)
>  >>  >>>  >>         Routine:prStart   0166AAD0
>  >>  >>>  >>                 arg this = <instance of Routine>
>  >>  >>>  >>                 arg inval = 4.991427843
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>  scacinto wrote:
>  >>  >>>  >>  >
>  >>  >>>  >>  > Hi all,
>  >>  >>>  >>  >
>  >>  >>>  >>  > I've recently become dissatisfied with the supercollider
>  >>  >>> interpreter
>  >>  >>>  >> (for
>  >>  >>>  >>  > a number of reasons including no line numbers, no auto syntax
>  >>  >>>  >>  > highlighting, open windows all over causing headaches, etc.)
>  >> and
>  >>  >>> would
>  >>  >>>  >>  > like to be able to work with the sclang executable instead
>  >> via
>  >>  >>> another
>  >>  >>>  >>  > text editor.  I've attempted to build the executable from the
>  >>  >>> source
>  >>  >>>  >> using
>  >>  >>>  >>  > scons but get a host of errors.  Has anyone had success
>  >> building
>  >>  >>> the
>  >>  >>>  >>  > executable from source on a MacIntel with Leopard?  The error
>  >> (if
>  >>  >>> you
>  >>  >>>  >>  > care) is as follows.
>  >>  >>>  >>  >
>  >>  >>>  >>  > ...Source/lang/LangPrimSource/PyrSched.cpp: In function 'void
>  >>  >>>  >>  > syncOSCOffsetWithTimeOfDay()':
>  >>  >>>  >>  > Source/lang/LangPrimSource/PyrSched.cpp:290: error:
>  >>  >>> 'gettimeofday' was
>  >>  >>>  >> not
>  >>  >>>  >>  > declared in this scope
>  >>  >>>  >>  > scons: *** [Source/lang/LangPrimSource/PyrSched.os] Error 1
>  >>  >>>  >>  > scons: building terminated because of errors.
>  >>  >>>  >>  >
>  >>  >>>  >>  > If I edit out this section and try again, other files pop up
>  >> with
>  >>  >>>  >> errors.
>  >>  >>>  >>  >
>  >>  >>>  >>  > I know there are instructions on the wiki for ways to build
>  >> from
>  >>  >>>  >> source
>  >>  >>>  >>  > using XCode, and other means, but the instructions are rather
>  >>  >>> cryptic,
>  >>  >>>  >> and
>  >>  >>>  >>  > some didn't work for me at all.  Is there an easy (practical)
>  >> way
>  >>  >>> to
>  >>  >>>  >> do
>  >>  >>>  >>  > this that doesn't require hours of reading/editing?
>  >>  >>>  >>  >
>  >>  >>>  >>  > Another question.  Has anyone tried the text-editor Smultron?
>  >> It
>  >>  >>> has
>  >>  >>>  >> a
>  >>  >>>  >>  > number of nice features, from auto syntax highlighting to
>  >> auto
>  >>  >>> line
>  >>  >>>  >>  > numbering, in-window (quicklook) document opening so all docs
>  >> are
>  >>  >>>  >>  > contained within a single window, one need only click one to
>  >>  >>> access
>  >>  >>>  >> it.
>  >>  >>>  >>  > It has multiple view support and some other niceties.  It can
>  >>  >>> execute
>  >>  >>>  >>  > scripts, inline posts, etc.  It seems like one could easily
>  >>  >>> script
>  >>  >>>  >> this
>  >>  >>>  >>  > program to work like SCVim and get some of the features
>  >> missing
>  >>  >>> in the
>  >>  >>>  >>  > interpreter.
>  >>  >>>  >>  >
>  >>  >>>  >>  > I would love to hear what people are thinking about the
>  >> current
>  >>  >>> UI
>  >>  >>>  >>  > Interpreter and their workarounds for working with the sclang
>  >>  >>>  >> executable
>  >>  >>>  >>  > with other programs.
>  >>  >>>  >>  >
>  >>  >>>  >>  > Thanks,
>  >>  >>>  >>  >
>  >>  >>>  >>  > - Scott
>  >>  >>>  >>  >
>  >>  >>>  >>  >
>  >>  >>>  >>
>  >>  >>>  >>  --
>  >>  >>>  >>  View this message in context:
>  >>  >>>  >>
>  >>  >>>
>  >> http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17157927.html
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >> Sent from the Supercollider - User mailing list archive at
>  >>  >>> Nabble.com.
>  >>  >>>  >>
>  >>  >>>  >>  _______________________________________________
>  >>  >>>  >>  sc-users mailing list
>  >>  >>>  >>  sc-users@create.ucsb.edu
>  >>  >>>  >>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>  >>>  >>
>  >>  >>>  > _______________________________________________
>  >>  >>>  > sc-users mailing list
>  >>  >>>  > sc-users@create.ucsb.edu
>  >>  >>>  > http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>  >>>  >
>  >>  >>>  >
>  >>  >>>
>  >>  >>>  --
>  >>  >>>  View this message in context:
>  >>  >>>
>  >> http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17174023.html
>  >>  >>>
>  >>  >>>
>  >>  >>> Sent from the Supercollider - User mailing list archive at
>  >> Nabble.com.
>  >>  >>>
>  >>  >>>  _______________________________________________
>  >>  >>>  sc-users mailing list
>  >>  >>>  sc-users@create.ucsb.edu
>  >>  >>>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>  >>>
>  >>  >> _______________________________________________
>  >>  >> sc-users mailing list
>  >>  >> sc-users@create.ucsb.edu
>  >>  >> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>  >>
>  >>  >>
>  >>  >
>  >>  >
>  >>
>  >>  --
>  >>  View this message in context:
>  >> http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17181603.html
>  >>
>  >>
>  >> Sent from the Supercollider - User mailing list archive at Nabble.com.
>  >>
>  >>  _______________________________________________
>  >>  sc-users mailing list
>  >>  sc-users@create.ucsb.edu
>  >>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>
>  > _______________________________________________
>  > sc-users mailing list
>  > sc-users@create.ucsb.edu
>  > http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >
>  >
>
>  --
>  View this message in context: http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17189816.html
>
>
> Sent from the Supercollider - User mailing list archive at Nabble.com.
>
>  _______________________________________________
>  sc-users mailing list
>  sc-users@create.ucsb.edu
>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
_______________________________________________
sc-users mailing list
sc-users@create.ucsb.edu
http://lists.create.ucsb.edu/mailman/listinfo/sc-users
______________________________

Scott Petersen
Assistant Director, YalMusT
Music Technology Specialist
Department of Music
Yale University, New Haven, CT 06511
United States


Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by scacinto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So my code was stupid -- substituting a 's.sendMsg("\s_new", "default", 1001);' for the Synth("... and I'm finally making sound.

-S



ah yes - this was confusing as I had not edited this file.  But, that was on a different machine than the one on which I'm working now, so... who knows.

I've sort of gotten everything working on this machine - with some gotchas... so, for the sake of explicitness (explicitness being so much more fun than implicitness!) I'll recount my process.

1) Build the Language.xcodeproj in XCode.  This means selecting the sclang target under "Targets" and clicking build.  This succeeds with 27 warnings on my machine.

2) I then have to edit the file /SCClassLibrary/Platform/osx/OSXPlatform.sc so it looks like the following.

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;
// if ( this.hasFeature( \emacs ) ) {
 //       Document.implementationClass.startup;};
                this.loadStartupFiles;
        }
        shutdown {
                HIDDeviceService.releaseDeviceList;
        }
       
                // only osx uses Cocoa guis
        defaultGUIScheme { ^\cocoa }
        defaultHIDScheme { ^\osx_hid }
}


This edit reflects the use of the "emacs" code suggested earlier in this thread.  This caused an error however, so I've commented it out.

running './sclang -h' within the build directory now produces the following (which is good!)

WazBook:build scott$ ./sclang -h
Usage:
   sclang [options] [file..] [-]

Options:
   -d <path>                      Set runtime directory
   -D                             Enter daemon mode (no input)
   -g <memory-growth>[km]         Set heap growth (default 256k)
   -h                             Display this message and exit
   -l <path>                      Set library configuration file
   -m <memory-space>[km]          Set initial heap size (default 2m)
   -r                             Call Main.run on startup
   -s                             Call Main.stop on shutdown
   -u <network-port-number>       Set UDP listening port (default 57120)

Now, if I run some code as follows, I get some curious errors and the synth doesn't start, obviously because I don't have an scsynth executable in this directory.  (Supplying one from a different build sort of works - but has some curious side effects from Frankensteining the two together...)

The error that occurs whether the scsynth executable is present or not is a complaint about the CocoaDocument.sc file claiming a problem with an 'unbound primitive.'  I don't know what this means.

WazBook:build scott$ ./sclang /Users/scott/Desktop/Untitled.txt
init_OSC
compiling class library..
        NumPrimitives = 551
        compiling dir: '/Users/scott/Desktop/SuperCollider3/build/SCClassLibrary'
        compiling dir: '/Library/Application Support/SuperCollider/Extensions'
        compiling dir: '/Users/scott/Library/Application Support/SuperCollider/Extensions'
        pass 1 done
        Extension overwriting SimpleNumber:asTimeString
                in file '/Library/Application Support/SuperCollider/Extensions/ljpclasses/LJP Classes/Extensions/SimpleNumber-asTimeString.sc'.
                Original method in file '/Common/Math/SimpleNumber.sc'.
        Extension overwriting Meta_String:rand
                in file '/Users/scott/Library/Application Support/SuperCollider/Extensions/quarks/NetLib/classes/extStringRand.sc'.
                Original method in file '/Users/scott/Library/Application Support/SuperCollider/Extensions/quarks/NetLib/classes/extNetwork.sc'.
        Extension overwriting Meta_Symbol:rand
                in file '/Users/scott/Library/Application Support/SuperCollider/Extensions/quarks/NetLib/classes/extStringRand.sc'.
                Original method in file '/Users/scott/Library/Application Support/SuperCollider/Extensions/quarks/NetLib/classes/extNetwork.sc'.
WARNING: FunctionDef contains variable declarations and so will not be inlined.
   in file '/Users/scott/Library/Application Support/SuperCollider/Extensions/quarks/NonRT/batchNRT/batchNRT.sc'
   line 93 char 14:
  var psfr;? // Please ignore SC's warning about not inlining this function.
  psfr = SoundFile.new;
-----------------------------------
        Extension overwriting Quarks:gui
                in file '/Users/scott/Library/Application Support/SuperCollider/Extensions/QuarksPlus.sc'.
                Original method in file '/Common/Quarks/Quarks.sc'.
numentries = 1301243 / 25158850 = 0.052
        Method Table Size 12214324 bytes
        Number of Method Selectors 6745
        Number of Classes 3730
        big table size 100635400
        Number of Symbols 16956
        Byte Code Size 820329
        compiled 725 files in 2.56 seconds
compile done

Could not connect socket
// History.logFolder: /Users/scott/Library/Application Support/SuperCollider/HistoryLogs
WARNING:
'oggdec' executable not found. Please modify the MP3:oggdecpath class variable.
Class tree inited in 0.16 seconds
RESULT = 0
StartUp done.
Welcome to SuperCollider, type cmd-d for help
booting 57110
This worked!
a SynthDef
ERROR: A primitive was not bound. 0 550
Instance of Method {    (014152D0, gc=01, fmt=00, flg=11, set=04)
  instance variables [15]
    raw1 : Float 8.900397289826772e-308   0030000C 00000000
    raw2 : Float 7.29112897291262e-304   01000001 00000100
    code : instance of Int8Array (01415380, size=1, set=1)
    selectors : nil
    constants : nil
    prototypeFrame : instance of Array (01020FC0, size=1, set=1)
    context : nil
    argNames : instance of SymbolArray (01021000, size=1, set=1)
    varNames : nil
    sourceCode : nil
    ownerClass : class Meta_CocoaDocument (014114C0)
    name : Symbol 'prGetIndexOfListener'
    primitiveName : Symbol '_TextWindow_GetIndexOfListener'
    filenameSymbol : Symbol '/Users/scott/Desktop/SuperCollider3/build/SCClassLibrary/Platform/osx/CocoaDocument.sc'
    charPos : Integer 3010
}
ERROR: Primitive '_BasicAt' failed.
Index not an Integer
RECEIVER:
Instance of Array {    (004A84B0, gc=54, fmt=01, flg=00, set=00)
  indexed slots [0]
sh: ./scsynth: No such file or directory
}
CALL STACK:
        MethodError:reportError   00461230
                arg this = <instance of PrimitiveFailedError>
        Nil:handleError   00461110
                arg this = nil
                arg error = <instance of PrimitiveFailedError>
        Thread:handleError   004611D0
                arg this = <instance of Thread>
                arg error = <instance of PrimitiveFailedError>
        Thread:handleError   004C0AB0
                arg this = <instance of Routine>
                arg error = <instance of PrimitiveFailedError>
        Object:throw   00461170
                arg this = <instance of PrimitiveFailedError>
        Object:primitiveFailed   004C08D0
                arg this = [*0]
        < FunctionDef in Method Meta_CocoaDocument:startup >  (no arguments or variables)
        Routine:prStart   0046F870
                arg this = <instance of Routine>
                arg inval = 2.574197098
RESULT = 32512
...

So, the 'This worked!' posted within the code I ran lets me know that sclang is doing its best... this is encouraging.  So I build both of the other projects next, Synth.xcodeproj and Plugins.xcodeproj.

Now I don't get the funky errors from using the alien scsynth from the different build.  I still have the following errors.  

ERROR: A primitive was not bound. 0 550
Instance of Method {    (014152D0, gc=01, fmt=00, flg=11, set=04)
  instance variables [15]
    raw1 : Float 8.900397289826772e-308   0030000C 00000000
    raw2 : Float 7.29112897291262e-304   01000001 00000100
    code : instance of Int8Array (01415380, size=1, set=1)
    selectors : nil
    constants : nil
    prototypeFrame : instance of Array (01020FC0, size=1, set=1)
    context : nil
    argNames : instance of SymbolArray (01021000, size=1, set=1)
    varNames : nil
    sourceCode : nil
    ownerClass : class Meta_CocoaDocument (014114C0)
    name : Symbol 'prGetIndexOfListener'
    primitiveName : Symbol '_TextWindow_GetIndexOfListener'
    filenameSymbol : Symbol '/Users/scott/Desktop/SuperCollider3/build/SCClassLibrary/Platform/osx/CocoaDocument.sc'
    charPos : Integer 3010
}
ERROR: Primitive '_BasicAt' failed.
Index not an Integer
RECEIVER:
Instance of Array {    (004A84B0, gc=54, fmt=01, flg=00, set=00)
  indexed slots [0]
}
CALL STACK:
        MethodError:reportError   00461230
                arg this = <instance of PrimitiveFailedError>
        Nil:handleError   00461110
                arg this = nil
                arg error = <instance of PrimitiveFailedError>
        Thread:handleError   004611D0
                arg this = <instance of Thread>
                arg error = <instance of PrimitiveFailedError>
        Thread:handleError   004C0AB0
                arg this = <instance of Routine>
                arg error = <instance of PrimitiveFailedError>
        Object:throw   00461170
                arg this = <instance of PrimitiveFailedError>
        Object:primitiveFailed   004C08D0
                arg this = [*0]
        < FunctionDef in Method Meta_CocoaDocument:startup >  (no arguments or variables)
        Routine:prStart   0046F870
                arg this = <instance of Routine>
                arg inval = 2.485198918

Despite these errors it appears that scsynth is aware of its surroundings, at least telling me that it's not happy...

FAILURE /s_new Group not found
notification is on
FAILURE /n_free Node not found

Now, I'm new to all this madness, so my code may just be stupid... so I've copied it below.  (Sorry this is so d*mn long!)

----------------------------
s = Server.local;
s.waitForBoot;

~clock = Scheduler(SystemClock);

~clock.sched(5, {x = Synth.new("default");});
~clock.sched(10, {x.free;});
"This worked!".postln;

SynthDef("test", {
        var sound = SinOsc.ar;
        Out.ar(0, sound);
}).send(s).postln;

r = Routine({
        loop({
                ~clock.advance(1);
                1.wait;})
                });
       
r.reset.play;

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

So, I suppose I'll be content to wait for Josh to post instructions on how to get this working with Aquaemacs. ;)

Thanks.

-S






blackrain-2 wrote:
There is two parts to the process.  a) build the sclang binary (using
xcode) and b) customize a copy of the library to work in sclang.

a) Your binary is fine and was fine from the first build you did. you
were bulding a debug target (PPC only code with no optimizations and
debug symbols).
That target was fine in the project from the first svn checkin I did.
The building of deployment targets (Universal binary code, optimized)
was fixed minutes after the initial check in thanks to Josh for making
me notice I had forgotten to make a symbol definition.

if you get the lang switches help to display, your binary is fine.
        $ sclang -h

b) What I meant in my previous post was that you have a typo in your
mods to OSXPlatform.sc
This is why the library compile in sclang does not fly.

>From your error log:
\emacs (or 'emacs') would do but not /emacs

change that and tings will work. Please read the help on understandnig errors.

>  ERROR: Parse error
>    in file '/Platform/osx/OSXPlatform.sc'
>    line 17 char 24:
>         if ( this.hasFeature( /?emacs ) ) {
>                 Document.implementationClass.startup;
>  -----------------------------------
>  ERROR: file '/Platform/osx/OSXPlatform.sc' parse failed
>  error parsing

cheers,

x

On Mon, May 12, 2008 at 10:49 AM, scacinto
<scottpetersen@frontiernet.net> wrote:
>
>  Hey x,
>      This actually fails with the same error.  I must be doing something
>  wrong in the build process, as I followed the rest of your instructions to a
>  tee (though I'm not sure what the problem was with the '\emacs \emacs'
>  thing... was that something wrong on my end?  (I haven't even installed
>  emacs, let alone called it for anything... perhaps that's the problem?...)
>
>  I know this is a pain, but when you get a chance, could you clarify (or
>  someone else) the build-in-XCode process?  This must be where I'm going
>  wrong.  I'd also like to have Josh or another post those directions over at
>  the NewScores page so they're readily accessible to those wanted to follow
>  this dark path...
>
>  Many thanks,
>
>  -S
>
>
>
>
>
>  blackrain-2 wrote:
>  >
>  > Hi,
>  >
>  > On Mon, May 12, 2008 at 12:10 AM, scacinto
>  > <scottpetersen@frontiernet.net> wrote:
>  >>
>  >>  OK - can you define what you mean by "build the sclang target"?  I've
>  >> opened
>  >>  the language project in XCode and built the sclang under the Target
>  >> heading,
>  >
>  > yes exactly that =)
>  > please svn update and build again (oops), I was missing a symbol
>  > definition for the deployment target although the development target
>  > builds fine.
>  >
>  > also, you may want to select a deployment target for your builds - by
>  > default it will build the debug version wich is slower and PPC code.
>  >
>  > in XCode with the lang project opened:
>  > Project -> Set Active Build Configuration -> deployment
>  >
>  >
>  >>  but following the rest of your directions the execution of the binary
>  >> fails
>  >>  with the following error.
>  >>
>  >
>  > =)
>  >
>  > /emacs hmmm
>  > it should be a Symbol as in 'emacs' thus \emacs not /emacs
>  >
>  > let us know how it goes.
>  >
>  > cheers,
>  >
>  > x
>  >
>  >
>  >
>  >>
>  >>  Waz:~/SuperCollider3/build scott$ sclang -d ~/sclang/init_OSC
>  >>
>  >> compiling class library..
>  >>         NumPrimitives = 551
>  >>         compiling dir: '/Users/scott/sclang/SCClassLibrary'
>  >>
>  >>         compiling dir: '/Library/Application
>  >>  Support/SuperCollider/Extensions'
>  >>         compiling dir: '/Users/scott/Library/Application
>  >>  Support/SuperCollider/Extensions'
>  >>         pass 1 done
>  >>  ERROR: Parse error
>  >>    in file '/Platform/osx/OSXPlatform.sc'
>  >>    line 17 char 24:
>  >>         if ( this.hasFeature( /?emacs ) ) {
>  >>                 Document.implementationClass.startup;
>  >>  -----------------------------------
>  >>  ERROR: file '/Platform/osx/OSXPlatform.sc' parse failed
>  >>  error parsing
>  >>
>  >>         Extension overwriting SimpleNumber:asTimeString
>  >>                 in file '/Library/Application
>  >>  Support/SuperCollider/Extensions/ljpclasses/classes/LJP
>  >>  Classes/Extensions/SimpleNumber-asTimeString.sc'.
>  >>                 Original method in file '/Common/Math/SimpleNumber.sc'.
>  >>  WARNING: FunctionDef contains variable declarations and so will not be
>  >>  inlined.
>  >>    in file '/Users/scott/Library/Application
>  >>  Support/SuperCollider/Extensions/quarks/NonRT/batchNRT/batchNRT.sc'
>  >>    line 93 char 14:
>  >>                                         var psfr;? // Please ignore SC's
>  >>  warning about not inlining this function.
>  >>                                         psfr = SoundFile.new;
>  >>
>  >>  I'm sorry if I'm missing something obvious, but ...
>  >>
>  >>  thanks,
>  >>
>  >>  -S
>  >>
>  >>
>  >>
>  >>
>  >>
>  >>  scacinto wrote:
>  >>  >
>  >>  > word!  downloading ahora!
>  >>  >
>  >>  > -S
>  >>  >
>  >>  >
>  >>  >
>  >>  > blackrain-2 wrote:
>  >>  >>
>  >>  >> done.
>  >>  >> please svn update.
>  >>  >> try a build of sclang target.
>  >>  >> There is a new document 'README SCLang OSX' with steps to setup a
>  >>  >> library to work with sclang in os x.
>  >>  >>
>  >>  >> let me know how it goes.
>  >>  >>
>  >>  >> cheers,
>  >>  >>
>  >>  >> x
>  >>  >>
>  >>  >> On Sun, May 11, 2008 at 2:40 PM, scacinto
>  >> <scottpetersen@frontiernet.net>
>  >>  >> wrote:
>  >>  >>>
>  >>  >>>  Could you define what steps you are speaking of and provide a link?
>  >>  >>> Are they
>  >>  >>>  the same as the wiki?  I've tried all of the instructions on the
>  >> wiki
>  >>  >>> with
>  >>  >>>  two different computers and OSes and both fail to compile correctly
>  >>  >>> (with
>  >>  >>>  the modification of some files called for which are not present in
>  >> the
>  >>  >>>  current revision as per my original post.)
>  >>  >>>
>  >>  >>>  -S
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>
>  >>  >>>  blackrain-2 wrote:
>  >>  >>>  >
>  >>  >>>  > The steps I posted here ages ago still work.
>  >>  >>>  > All source files still exist and there is no need to mod them at
>  >> all
>  >>  >>>  > but make some defines/additions to the project.
>  >>  >>>  > The current xcode sclang project is wrong; it hooks the cocoa
>  >> views
>  >>  >>>  > primitives and other stuff that will make sclang fail but appear
>  >> like
>  >>  >>>  > all is good (launch, compile and finish); I will check in the
>  >> changes
>  >>  >>>  > soon to svn.
>  >>  >>>  > I got no clue about scons - I dont use it on osx.
>  >>  >>>  >
>  >>  >>>  > x
>  >>  >>>  >
>  >>  >>>  >
>  >>  >>>  > On Fri, May 9, 2008 at 6:10 PM, scacinto
>  >>  >>> <scottpetersen@frontiernet.net>
>  >>  >>>  > wrote:
>  >>  >>>  >>
>  >>  >>>  >>  I just tried to build sclang following the directions on the
>  >> wiki.
>  >>  >>> The
>  >>  >>>  >>  directions seem to be seriously outdated and flawed in several
>  >>  >>> respects,
>  >>  >>>  >>  including calling for the editing of several files which no
>  >> longer
>  >>  >>> seem
>  >>  >>>  >> to
>  >>  >>>  >>  exist.  I'll post the output of my attempt to run the
>  >> executable at
>  >>  >>> the
>  >>  >>>  >> end
>  >>  >>>  >>  of this post.
>  >>  >>>  >>
>  >>  >>>  >>  So I've tried two different methods described on the wiki,
>  >> using
>  >>  >>> scons
>  >>  >>>  >> and
>  >>  >>>  >>  using XCode, both of which failed.  This seems like a bit of a
>  >>  >>> problem,
>  >>  >>>  >>  especially if someone new (without the commitment of a
>  >> long-time
>  >>  >>> user)
>  >>  >>>  >> would
>  >>  >>>  >>  like to get sclang running on OS X.
>  >>  >>>  >>
>  >>  >>>  >>  Could someone post clear instructions on how to compile SC with
>  >>  >>> sclang
>  >>  >>>  >> using
>  >>  >>>  >>  scons or XCode if they have managed to do so?  Also, please
>  >> post
>  >>  >>> the
>  >>  >>>  >> version
>  >>  >>>  >>  of XCode you are using (My failed attempt used 2.4.1) the OS
>  >> (ex.
>  >>  >>>  >> 10.4.11)
>  >>  >>>  >>  and whether you are using a PPC or Intel mac.
>  >>  >>>  >>
>  >>  >>>  >>  It seems that getting a reliable and simple method of compiling
>  >>  >>> with the
>  >>  >>>  >>  sclang executable available for peruzal on the wiki, in the
>  >> how-to
>  >>  >>> page
>  >>  >>>  >> of
>  >>  >>>  >>  the sourceforge page or even, perhaps preferably, in the OS X
>  >>  >>> README, is
>  >>  >>>  >> a
>  >>  >>>  >>  must as more and more people I talk to seem a little
>  >> dissatisfied
>  >>  >>> with
>  >>  >>>  >> the
>  >>  >>>  >>  current Interpreter.
>  >>  >>>  >>
>  >>  >>>  >>  Thoughts?
>  >>  >>>  >>
>  >>  >>>  >>  Thanks,
>  >>  >>>  >>
>  >>  >>>  >>  -S
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>  Waz:/Applications/Audio_Applications/SuperCollider3/build
>  >> scott$
>  >>  >>>  >> ./sclang
>  >>  >>>  >>  init_OSC
>  >>  >>>  >>  compiling class library..
>  >>  >>>  >>         NumPrimitives = 551
>  >>  >>>  >>         compiling dir:
>  >>  >>>  >>
>  >>  >>>
>  >> '/Applications/Audio_Applications/SuperCollider3/build/SCClassLibrary'
>  >>  >>>  >>         compiling dir: '/Library/Application
>  >>  >>>  >>  Support/SuperCollider/Extensions'
>  >>  >>>  >>         compiling dir: '/Users/scott/Library/Application
>  >>  >>>  >>  Support/SuperCollider/Extensions'
>  >>  >>>  >>         pass 1 done
>  >>  >>>  >>         Extension overwriting SimpleNumber:asTimeString
>  >>  >>>  >>                 in file '/Library/Application
>  >>  >>>  >>  Support/SuperCollider/Extensions/ljpclasses/classes/LJP
>  >>  >>>  >>  Classes/Extensions/SimpleNumber-asTimeString.sc'.
>  >>  >>>  >>                 Original method in file
>  >>  >>> '/Common/Math/SimpleNumber.sc'.
>  >>  >>>  >>  WARNING: FunctionDef contains variable declarations and so will
>  >> not
>  >>  >>> be
>  >>  >>>  >>  inlined.
>  >>  >>>  >>    in file '/Users/scott/Library/Application
>  >>  >>>  >>
>  >> Support/SuperCollider/Extensions/quarks/NonRT/batchNRT/batchNRT.sc'
>  >>  >>>  >>    line 93 char 14:
>  >>  >>>  >>                                         var psfr;? // Please
>  >> ignore
>  >>  >>> SC's
>  >>  >>>  >>  warning about not inlining this function.
>  >>  >>>  >>                                         psfr = SoundFile.new;
>  >>  >>>  >>  -----------------------------------
>  >>  >>>  >>  numentries = 1124454 / 18350124 = 0.061
>  >>  >>>  >>         Method Table Size 9205632 bytes
>  >>  >>>  >>         Number of Method Selectors 5738
>  >>  >>>  >>         Number of Classes 3198
>  >>  >>>  >>         big table size 73400496
>  >>  >>>  >>         Number of Symbols 14287
>  >>  >>>  >>         Byte Code Size 500140
>  >>  >>>  >>         compiled 565 files in 4.92 seconds
>  >>  >>>  >>  compile done
>  >>  >>>  >>  // History.logFolder: /Users/scott/Library/Application
>  >>  >>>  >>  Support/SuperCollider/HistoryLogs
>  >>  >>>  >>  Class tree inited in 0.18 seconds
>  >>  >>>  >>  ERROR: A primitive was not bound. 0 550
>  >>  >>>  >>  Instance of Method {    (0175CDF0, gc=01, fmt=00, flg=11,
>  >> set=04)
>  >>  >>>  >>   instance variables [15]
>  >>  >>>  >>     raw1 : Float 3.885846e-318   00000000 000C0048
>  >>  >>>  >>     raw2 : Float 5.56268497783366e-309   00040000 04000304
>  >>  >>>  >>     code : instance of Int8Array (0175CF30, size=4, set=1)
>  >>  >>>  >>     selectors : nil
>  >>  >>>  >>     constants : nil
>  >>  >>>  >>     prototypeFrame : instance of Array (0175CEE0, size=4, set=2)
>  >>  >>>  >>     context : nil
>  >>  >>>  >>     argNames : instance of SymbolArray (0175CEA0, size=4, set=1)
>  >>  >>>  >>     varNames : nil
>  >>  >>>  >>     sourceCode : nil
>  >>  >>>  >>     ownerClass : class SCView (01713D70)
>  >>  >>>  >>     name : Symbol 'prInit'
>  >>  >>>  >>     primitiveName : Symbol '_SCView_New'
>  >>  >>>  >>     filenameSymbol : Symbol
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>
>  >> '/Applications/Audio_Applications/SuperCollider3/build/SCClassLibrary/Common/GUI/Base/SCView.sc'
>  >>  >>>  >>     charPos : Integer 6387
>  >>  >>>  >>  }
>  >>  >>>  >>  ERROR: Primitive 'none' failed.
>  >>  >>>  >>  Failed.
>  >>  >>>  >>  RECEIVER:
>  >>  >>>  >>    nil
>  >>  >>>  >>  CALL STACK:
>  >>  >>>  >>         MethodError:reportError   0166AE30
>  >>  >>>  >>                 arg this = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Nil:handleError   0166AEF0
>  >>  >>>  >>                 arg this = nil
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Thread:handleError   0166AE90
>  >>  >>>  >>                 arg this = <instance of Thread>
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Object:throw   0166ADD0
>  >>  >>>  >>                 arg this = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Object:primitiveFailed   0166AD70
>  >>  >>>  >>                 arg this = nil
>  >>  >>>  >>         SCView:init   0166AD10
>  >>  >>>  >>                 arg this = <instance of SCTopView>
>  >>  >>>  >>                 arg argParent = nil
>  >>  >>>  >>                 arg argBounds = <instance of Rect>
>  >>  >>>  >>         SCContainerView:init   0166ACB0
>  >>  >>>  >>                 arg this = <instance of SCTopView>
>  >>  >>>  >>                 arg argParent = nil
>  >>  >>>  >>                 arg argBounds = <instance of Rect>
>  >>  >>>  >>         SCWindow:initSCWindow   016AA430
>  >>  >>>  >>                 arg this = <instance of SCWindow>
>  >>  >>>  >>                 arg argName = "internal server"
>  >>  >>>  >>                 arg argBounds = <instance of Rect>
>  >>  >>>  >>                 arg resizable = false
>  >>  >>>  >>                 arg border = true
>  >>  >>>  >>                 arg scroll = false
>  >>  >>>  >>         Server:makeGui   01621CB0
>  >>  >>>  >>                 arg this = <instance of Server>
>  >>  >>>  >>                 arg w = nil
>  >>  >>>  >>                 var active = nil
>  >>  >>>  >>                 var booter = nil
>  >>  >>>  >>                 var killer = nil
>  >>  >>>  >>                 var makeDefault = nil
>  >>  >>>  >>                 var running = nil
>  >>  >>>  >>                 var booting = nil
>  >>  >>>  >>                 var stopped = nil
>  >>  >>>  >>                 var bundling = nil
>  >>  >>>  >>                 var recorder = nil
>  >>  >>>  >>                 var scoper = nil
>  >>  >>>  >>                 var countsViews = nil
>  >>  >>>  >>                 var ctlr = nil
>  >>  >>>  >>                 var dumping = false
>  >>  >>>  >>                 var label = "internal server"
>  >>  >>>  >>                 var gui = class CocoaGUI
>  >>  >>>  >>                 var font = <instance of Font>
>  >>  >>>  >>                 var volumeNum = nil
>  >>  >>>  >>         Server:makeWindow   0166AA70
>  >>  >>>  >>                 arg this = <instance of Server>
>  >>  >>>  >>                 arg w = nil
>  >>  >>>  >>         OSXPlatform:startup   01716400
>  >>  >>>  >>                 arg this = <instance of OSXPlatform>
>  >>  >>>  >>         Main:startup   017163A0
>  >>  >>>  >>                 arg this = <instance of Main>
>  >>  >>>  >>  ERROR: A primitive was not bound. 0 550
>  >>  >>>  >>  Instance of Method {    (02095980, gc=01, fmt=00, flg=11,
>  >> set=04)
>  >>  >>>  >>   instance variables [15]
>  >>  >>>  >>     raw1 : Float 3.885727e-318   00000000 000C0030
>  >>  >>>  >>     raw2 : Float 1.390671244457466e-309   00010000 01000001
>  >>  >>>  >>     code : instance of Int8Array (02095A30, size=1, set=1)
>  >>  >>>  >>     selectors : nil
>  >>  >>>  >>     constants : nil
>  >>  >>>  >>     prototypeFrame : instance of Array (013A6FC0, size=1, set=1)
>  >>  >>>  >>     context : nil
>  >>  >>>  >>     argNames : instance of SymbolArray (013A7000, size=1, set=1)
>  >>  >>>  >>     varNames : nil
>  >>  >>>  >>     sourceCode : nil
>  >>  >>>  >>     ownerClass : class Meta_CocoaDocument (02091B70)
>  >>  >>>  >>     name : Symbol 'prGetIndexOfListener'
>  >>  >>>  >>     primitiveName : Symbol '_TextWindow_GetIndexOfListener'
>  >>  >>>  >>     filenameSymbol : Symbol
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>
>  >> '/Applications/Audio_Applications/SuperCollider3/build/SCClassLibrary/Platform/osx/CocoaDocument.sc'
>  >>  >>>  >>     charPos : Integer 3010
>  >>  >>>  >>  }
>  >>  >>>  >>  ERROR: Primitive '_BasicAt' failed.
>  >>  >>>  >>  Index not an Integer
>  >>  >>>  >>  RECEIVER:
>  >>  >>>  >>  Instance of Array {    (016AAC90, gc=20, fmt=01, flg=00,
>  >> set=00)
>  >>  >>>  >>   indexed slots [0]
>  >>  >>>  >>  }
>  >>  >>>  >>  CALL STACK:
>  >>  >>>  >>         MethodError:reportError   013CAC50
>  >>  >>>  >>                 arg this = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Nil:handleError   013CABF0
>  >>  >>>  >>                 arg this = nil
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Thread:handleError   013CAB90
>  >>  >>>  >>                 arg this = <instance of Thread>
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Thread:handleError   013CAB30
>  >>  >>>  >>                 arg this = <instance of Routine>
>  >>  >>>  >>                 arg error = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Object:throw   013CAAD0
>  >>  >>>  >>                 arg this = <instance of PrimitiveFailedError>
>  >>  >>>  >>         Object:primitiveFailed   013CAA70
>  >>  >>>  >>                 arg this = [*0]
>  >>  >>>  >>         < FunctionDef in Method Meta_CocoaDocument:startup >
>  >> (no
>  >>  >>>  >> arguments
>  >>  >>>  >>  or variables)
>  >>  >>>  >>         Routine:prStart   0166AAD0
>  >>  >>>  >>                 arg this = <instance of Routine>
>  >>  >>>  >>                 arg inval = 4.991427843
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >>  scacinto wrote:
>  >>  >>>  >>  >
>  >>  >>>  >>  > Hi all,
>  >>  >>>  >>  >
>  >>  >>>  >>  > I've recently become dissatisfied with the supercollider
>  >>  >>> interpreter
>  >>  >>>  >> (for
>  >>  >>>  >>  > a number of reasons including no line numbers, no auto syntax
>  >>  >>>  >>  > highlighting, open windows all over causing headaches, etc.)
>  >> and
>  >>  >>> would
>  >>  >>>  >>  > like to be able to work with the sclang executable instead
>  >> via
>  >>  >>> another
>  >>  >>>  >>  > text editor.  I've attempted to build the executable from the
>  >>  >>> source
>  >>  >>>  >> using
>  >>  >>>  >>  > scons but get a host of errors.  Has anyone had success
>  >> building
>  >>  >>> the
>  >>  >>>  >>  > executable from source on a MacIntel with Leopard?  The error
>  >> (if
>  >>  >>> you
>  >>  >>>  >>  > care) is as follows.
>  >>  >>>  >>  >
>  >>  >>>  >>  > ...Source/lang/LangPrimSource/PyrSched.cpp: In function 'void
>  >>  >>>  >>  > syncOSCOffsetWithTimeOfDay()':
>  >>  >>>  >>  > Source/lang/LangPrimSource/PyrSched.cpp:290: error:
>  >>  >>> 'gettimeofday' was
>  >>  >>>  >> not
>  >>  >>>  >>  > declared in this scope
>  >>  >>>  >>  > scons: *** [Source/lang/LangPrimSource/PyrSched.os] Error 1
>  >>  >>>  >>  > scons: building terminated because of errors.
>  >>  >>>  >>  >
>  >>  >>>  >>  > If I edit out this section and try again, other files pop up
>  >> with
>  >>  >>>  >> errors.
>  >>  >>>  >>  >
>  >>  >>>  >>  > I know there are instructions on the wiki for ways to build
>  >> from
>  >>  >>>  >> source
>  >>  >>>  >>  > using XCode, and other means, but the instructions are rather
>  >>  >>> cryptic,
>  >>  >>>  >> and
>  >>  >>>  >>  > some didn't work for me at all.  Is there an easy (practical)
>  >> way
>  >>  >>> to
>  >>  >>>  >> do
>  >>  >>>  >>  > this that doesn't require hours of reading/editing?
>  >>  >>>  >>  >
>  >>  >>>  >>  > Another question.  Has anyone tried the text-editor Smultron?
>  >> It
>  >>  >>> has
>  >>  >>>  >> a
>  >>  >>>  >>  > number of nice features, from auto syntax highlighting to
>  >> auto
>  >>  >>> line
>  >>  >>>  >>  > numbering, in-window (quicklook) document opening so all docs
>  >> are
>  >>  >>>  >>  > contained within a single window, one need only click one to
>  >>  >>> access
>  >>  >>>  >> it.
>  >>  >>>  >>  > It has multiple view support and some other niceties.  It can
>  >>  >>> execute
>  >>  >>>  >>  > scripts, inline posts, etc.  It seems like one could easily
>  >>  >>> script
>  >>  >>>  >> this
>  >>  >>>  >>  > program to work like SCVim and get some of the features
>  >> missing
>  >>  >>> in the
>  >>  >>>  >>  > interpreter.
>  >>  >>>  >>  >
>  >>  >>>  >>  > I would love to hear what people are thinking about the
>  >> current
>  >>  >>> UI
>  >>  >>>  >>  > Interpreter and their workarounds for working with the sclang
>  >>  >>>  >> executable
>  >>  >>>  >>  > with other programs.
>  >>  >>>  >>  >
>  >>  >>>  >>  > Thanks,
>  >>  >>>  >>  >
>  >>  >>>  >>  > - Scott
>  >>  >>>  >>  >
>  >>  >>>  >>  >
>  >>  >>>  >>
>  >>  >>>  >>  --
>  >>  >>>  >>  View this message in context:
>  >>  >>>  >>
>  >>  >>>
>  >> http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17157927.html
>  >>  >>>  >>
>  >>  >>>  >>
>  >>  >>>  >> Sent from the Supercollider - User mailing list archive at
>  >>  >>> Nabble.com.
>  >>  >>>  >>
>  >>  >>>  >>  _______________________________________________
>  >>  >>>  >>  sc-users mailing list
>  >>  >>>  >>  sc-users@create.ucsb.edu
>  >>  >>>  >>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>  >>>  >>
>  >>  >>>  > _______________________________________________
>  >>  >>>  > sc-users mailing list
>  >>  >>>  > sc-users@create.ucsb.edu
>  >>  >>>  > http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>  >>>  >
>  >>  >>>  >
>  >>  >>>
>  >>  >>>  --
>  >>  >>>  View this message in context:
>  >>  >>>
>  >> http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17174023.html
>  >>  >>>
>  >>  >>>
>  >>  >>> Sent from the Supercollider - User mailing list archive at
>  >> Nabble.com.
>  >>  >>>
>  >>  >>>  _______________________________________________
>  >>  >>>  sc-users mailing list
>  >>  >>>  sc-users@create.ucsb.edu
>  >>  >>>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>  >>>
>  >>  >> _______________________________________________
>  >>  >> sc-users mailing list
>  >>  >> sc-users@create.ucsb.edu
>  >>  >> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>  >>
>  >>  >>
>  >>  >
>  >>  >
>  >>
>  >>  --
>  >>  View this message in context:
>  >> http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17181603.html
>  >>
>  >>
>  >> Sent from the Supercollider - User mailing list archive at Nabble.com.
>  >>
>  >>  _______________________________________________
>  >>  sc-users mailing list
>  >>  sc-users@create.ucsb.edu
>  >>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >>
>  > _______________________________________________
>  > sc-users mailing list
>  > sc-users@create.ucsb.edu
>  > http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>  >
>  >
>
>  --
>  View this message in context: http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17189816.html
>
>
> Sent from the Supercollider - User mailing list archive at Nabble.com.
>
>  _______________________________________________
>  sc-users mailing list
>  sc-users@create.ucsb.edu
>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
_______________________________________________
sc-users mailing list
sc-users@create.ucsb.edu
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

______________________________

Scott Petersen
Assistant Director, YalMusT
Music Technology Specialist
Department of Music
Yale University, New Haven, CT 06511
United States


Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by stefan kersten-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 12.05.2008, at 20:52, nescivi wrote:

> On Monday 12 May 2008 12:43:51 Josh Parmenter wrote:
>> Do you mean the lang XCode project fails? I got it all working this
>> morning, but need to figure out a few more things about getting
>> scsynth to work properly... also, I have things working in Aquaemacs.
>>
>> x - here are a couple things I noted... do these make sense to you?
>>
>> in ~/sclang/scel/el rename sclang-vars.el.in to sclang-vars.el. You
>> can do this in Finder, or if you are in the directory already:
>>
>> mv sclang-vars.el.in sclang-vars.el
>
> usually this file is changed during build with scons.
>
> It would be useful to have the scons script working properly on OSX  
> as well so
> that this works.

SC (including scel) builds fine with scons on 10.4, don't know about  
10.5

>> NOW - if you want to use a Cocoa or Carbon based Emacs  
>> (CarbonEmacs or
>> Aquamacs Emacs), you will need the new SCClassLibrary to be in your
>> home directory (anyway to set this to look in ~/sclang??? is this
>> defined in the Emacs interface, or is it because Aquamacs Emacs is
>> starting from home??? hmm...).
>
> Shouldn't it look in the platform defined locations for this?

on my system the class library is installed into and expected by  
sclang in /Library/Application\ Support/SuperCollider

<sk>

_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by blackrain-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, May 12, 2008 at 9:52 PM, scacinto
<scottpetersen@...> wrote:

>  2) I then have to edit the file /SCClassLibrary/Platform/osx/OSXPlatform.sc
>  so it looks like the following.
>
>         startup {
>                 Document.implementationClass.startup;
>                 // make server window
>                 //Server.internal.makeWindow;
>                 //Server.local.makeWindow;
>  //              if ( this.hasFeature( \emacs ) ) {
>   //       Document.implementationClass.startup;};
>                 this.loadStartupFiles;
>         }
>
>  This edit reflects the use of the "emacs" code suggested earlier in this
>  thread.  This caused an error however, so I've commented it out.
>

No. The reason of the errors you still get is that you keep working on
a modified version of the document  and 'svn update' will not restore
files that you have touched (say edited).
This is why the steps in 'README SCLang OSX' state clearly that you
should /export/ a fresh copy of SCClassLibrary and _then_ make the
editions on that copy.

The contents of OSXPlatform:startup (as noted on the instructions
file) should be the following:

        startup {
        // Document.implementationClass.startup;
                if ( this.hasFeature( \emacs ) ) {
                                Document.implementationClass.startup;
                };
                // make server window
        // Server.internal.makeWindow;
        // Server.local.makeWindow;
                this.loadStartupFiles;
        }

As I stated previously on this thread, these modifications will allow
scel Document implementation to take in if the package is installed
and do nothing if its not.
In your version, you are calling Document.implementationClass.startup
unconditionally.
This calls Cocoa primitives and thus, the 2 block long list of
warnings bells and whistles at lib compile time.

cheers,

x
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by scacinto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>No. The reason of the errors you still get is that you keep working on
>a modified version of the document  and 'svn update' will not restore
>files that you have touched (say edited)...

This makes sense, only I wasn't using svn update, I was downloading the entire thing from scratch every time.  I must have missed the instructions in the README.  Thanks!

-Scott
______________________________

Scott Petersen
Assistant Director, YalMusT
Music Technology Specialist
Department of Music
Yale University, New Haven, CT 06511
United States


Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by prko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is too complicate...
Is there another easy solution to use "line numbers' and "auto syntax
highlighting" in SC3 or something else?

Best

On 13.05.2008 17:28 Uhr, "scacinto" <scottpetersen@...> wrote:

>
>> No. The reason of the errors you still get is that you keep working on
>> a modified version of the document  and 'svn update' will not restore
>> files that you have touched (say edited)...
>
> This makes sense, only I wasn't using svn update, I was downloading the
> entire thing from scratch every time.  I must have missed the instructions
> in the README.  Thanks!
>
> -Scott

--
고 병량 (高 秉良)
PyoungRyang Ko

Tarostrasse 16 / Zi. 466
04103 Leipzig
Germany

Tel.
Handy (Homezone) : +49 - 341 -260 2869
Handy (away): +49 - 176 - 4002 4936

E-Mail:
pyoungryang.ko@...


_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by Josh Parmenter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I almost have things running with Aquamacs Emacs.app in OSX, and  
believe this is Universal Binary, so I can package it up and put it on  
the realizedsound download page. One thing I can't get to work at the  
moment though is Help file browsing. Doing a search for SinOsc just  
fails... any ideas? I put the Help dir into my sclang folder... do I  
need to point emacs to it in any way?

Any suggestions are appreciated... hopefully this will be a bit easier  
for other soon.

Best,

Josh

On May 13, 2008, at 8:28 AM, scacinto wrote:

>
>> No. The reason of the errors you still get is that you keep working  
>> on
>> a modified version of the document  and 'svn update' will not restore
>> files that you have touched (say edited)...
>
> This makes sense, only I wasn't using svn update, I was downloading  
> the
> entire thing from scratch every time.  I must have missed the  
> instructions
> in the README.  Thanks!
>
> -Scott
> --
> View this message in context: http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17211358.html
> Sent from the Supercollider - User mailing list archive at Nabble.com.
>
> _______________________________________________
> sc-users mailing list
> sc-users@...
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono
*/

_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by blackrain-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Josh,
M-x sclang-customize Sclang Interface -> Sclang Help Path
does the trick but no world is perfect. remember scel help system will
now summon w3m =)
so if help in scel is desired, it has to be installed too.

cheers,

x


On Tue, May 13, 2008 at 3:45 PM, Josh Parmenter <josh@...> wrote:

> Hi all,
>
>  I almost have things running with Aquamacs Emacs.app in OSX, and
>  believe this is Universal Binary, so I can package it up and put it on
>  the realizedsound download page. One thing I can't get to work at the
>  moment though is Help file browsing. Doing a search for SinOsc just
>  fails... any ideas? I put the Help dir into my sclang folder... do I
>  need to point emacs to it in any way?
>
>  Any suggestions are appreciated... hopefully this will be a bit easier
>  for other soon.
>
>  Best,
>
>  Josh
>
>
>
>  On May 13, 2008, at 8:28 AM, scacinto wrote:
>
>  >
>  >> No. The reason of the errors you still get is that you keep working
>  >> on
>  >> a modified version of the document  and 'svn update' will not restore
>  >> files that you have touched (say edited)...
>  >
>  > This makes sense, only I wasn't using svn update, I was downloading
>  > the
>  > entire thing from scratch every time.  I must have missed the
>  > instructions
>  > in the README.  Thanks!
>  >
>  > -Scott
>  > --
>  > View this message in context: http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17211358.html
>  > Sent from the Supercollider - User mailing list archive at Nabble.com.
>  >
>  > _______________________________________________
>  > sc-users mailing list
>  > sc-users@...
>  > http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
>
> ******************************************
>  /* Joshua D. Parmenter
>  http://www.realizedsound.net/josh/
>
>  "Every composer – at all times and in all cases – gives his own
>  interpretation of how modern society is structured: whether actively
>  or passively, consciously or unconsciously, he makes choices in this
>  regard. He may be conservative or he may subject himself to continual
>  renewal; or he may strive for a revolutionary, historical or social
>  palingenesis." - Luigi Nono
>  */
>
>  _______________________________________________
>
>
> sc-users mailing list
>  sc-users@...
>  http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by Josh Parmenter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks x,

I installed the w3m stuff earlier, and I THINK it is loaded. The path  
was the ticket, now I need to figure out why w3m is barfing!

Thanks,

Josh

On May 13, 2008, at 2:27 PM, blackrain wrote:

> Hi Josh,
> M-x sclang-customize Sclang Interface -> Sclang Help Path
> does the trick but no world is perfect. remember scel help system will
> now summon w3m =)
> so if help in scel is desired, it has to be installed too.
>
> cheers,
>
> x
>
>
> On Tue, May 13, 2008 at 3:45 PM, Josh Parmenter <josh@...
> > wrote:
>> Hi all,
>>
>> I almost have things running with Aquamacs Emacs.app in OSX, and
>> believe this is Universal Binary, so I can package it up and put it  
>> on
>> the realizedsound download page. One thing I can't get to work at the
>> moment though is Help file browsing. Doing a search for SinOsc just
>> fails... any ideas? I put the Help dir into my sclang folder... do I
>> need to point emacs to it in any way?
>>
>> Any suggestions are appreciated... hopefully this will be a bit  
>> easier
>> for other soon.
>>
>> Best,
>>
>> Josh
>>
>>
>>
>> On May 13, 2008, at 8:28 AM, scacinto wrote:
>>
>>>
>>>> No. The reason of the errors you still get is that you keep working
>>>> on
>>>> a modified version of the document  and 'svn update' will not  
>>>> restore
>>>> files that you have touched (say edited)...
>>>
>>> This makes sense, only I wasn't using svn update, I was downloading
>>> the
>>> entire thing from scratch every time.  I must have missed the
>>> instructions
>>> in the README.  Thanks!
>>>
>>> -Scott
>>> --
>>> View this message in context: http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17211358.html
>>> Sent from the Supercollider - User mailing list archive at  
>>> Nabble.com.
>>>
>>> _______________________________________________
>>> sc-users mailing list
>>> sc-users@...
>>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>>
>>
>> ******************************************
>> /* Joshua D. Parmenter
>> http://www.realizedsound.net/josh/
>>
>> "Every composer – at all times and in all cases – gives his own
>> interpretation of how modern society is structured: whether actively
>> or passively, consciously or unconsciously, he makes choices in this
>> regard. He may be conservative or he may subject himself to continual
>> renewal; or he may strive for a revolutionary, historical or social
>> palingenesis." - Luigi Nono
>> */
>>
>> _______________________________________________
>>
>>
>> sc-users mailing list
>> sc-users@...
>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>>
> _______________________________________________
> sc-users mailing list
> sc-users@...
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono
*/

_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by mr.proxxxy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Monumentally dumb question here, but in the standard OSX distribution, there are already sclang and scsynth files built ... (I'm able to start the server from sclang, but not able to append messages to the pipe ... but that's a seperate issue) why all this talk about building from source?  

scacinto wrote:
Hi all,

I've recently become dissatisfied with the supercollider interpreter (for a number of reasons including no line numbers, no auto syntax highlighting, open windows all over causing headaches, etc.) and would like to be able to work with the sclang executable instead via another text editor.  I've attempted to build the executable from the source using scons but get a host of errors.  Has anyone had success building the executable from source on a MacIntel with Leopard?  The error (if you care) is as follows.

...Source/lang/LangPrimSource/PyrSched.cpp: In function 'void syncOSCOffsetWithTimeOfDay()':
Source/lang/LangPrimSource/PyrSched.cpp:290: error: 'gettimeofday' was not declared in this scope
scons: *** [Source/lang/LangPrimSource/PyrSched.os] Error 1
scons: building terminated because of errors.

If I edit out this section and try again, other files pop up with errors.  

I know there are instructions on the wiki for ways to build from source using XCode, and other means, but the instructions are rather cryptic, and some didn't work for me at all.  Is there an easy (practical) way to do this that doesn't require hours of reading/editing?

Another question.  Has anyone tried the text-editor Smultron?  It has a number of nice features, from auto syntax highlighting to auto line numbering, in-window (quicklook) document opening so all docs are contained within a single window, one need only click one to access it.  It has multiple view support and some other niceties.  It can execute scripts, inline posts, etc.  It seems like one could easily script this program to work like SCVim and get some of the features missing in the interpreter.

I would love to hear what people are thinking about the current UI Interpreter and their workarounds for working with the sclang executable with other programs.

Thanks,

- Scott

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by blackrain-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The xcode project was not building sclang right.
now it does.
That is possibly the reason why you cant communicate with the lang
after launching it (it dies - ends?)

now future svn snapshots posted at the realized sounds sourceforge
d/ls site will include this osx build of sclang or you could d/l and
build it yourself.
the mods to the lib however, will have to be made by the end user.

The long thread is (or I believe it is) because of that - the mods
needed on OSXPlatform:startup to get sclang going in os x regardless
of scel presence and have the lib compile clean.
The svn source tree has a file with the steps to accomplish this. Its
real simple actually basically you just have to edit 2 lines on that
file.

also, Josh has mentioned he is working towards setting up a package
that will include scel on aquaemacs for those who want emacs as their
sc editor in osx.
keep your fingers crossed =)

cheers,

x

On Thu, May 15, 2008 at 8:10 PM, mr.proxxxy <mr.proxxxy@...> wrote:

>
> Monumentally dumb question here, but in the standard OSX distribution, there
> are already sclang and scsynth files built ... (I'm able to start the server
> from sclang, but not able to append messages to the pipe ... but that's a
> seperate issue) why all this talk about building from source?
>
>
> scacinto wrote:
>>
>> Hi all,
>>
>> I've recently become dissatisfied with the supercollider interpreter (for
>> a number of reasons including no line numbers, no auto syntax
>> highlighting, open windows all over causing headaches, etc.) and would
>> like to be able to work with the sclang executable instead via another
>> text editor.  I've attempted to build the executable from the source using
>> scons but get a host of errors.  Has anyone had success building the
>> executable from source on a MacIntel with Leopard?  The error (if you
>> care) is as follows.
>>
>> ...Source/lang/LangPrimSource/PyrSched.cpp: In function 'void
>> syncOSCOffsetWithTimeOfDay()':
>> Source/lang/LangPrimSource/PyrSched.cpp:290: error: 'gettimeofday' was not
>> declared in this scope
>> scons: *** [Source/lang/LangPrimSource/PyrSched.os] Error 1
>> scons: building terminated because of errors.
>>
>> If I edit out this section and try again, other files pop up with errors.
>>
>> I know there are instructions on the wiki for ways to build from source
>> using XCode, and other means, but the instructions are rather cryptic, and
>> some didn't work for me at all.  Is there an easy (practical) way to do
>> this that doesn't require hours of reading/editing?
>>
>> Another question.  Has anyone tried the text-editor Smultron?  It has a
>> number of nice features, from auto syntax highlighting to auto line
>> numbering, in-window (quicklook) document opening so all docs are
>> contained within a single window, one need only click one to access it.
>> It has multiple view support and some other niceties.  It can execute
>> scripts, inline posts, etc.  It seems like one could easily script this
>> program to work like SCVim and get some of the features missing in the
>> interpreter.
>>
>> I would love to hear what people are thinking about the current UI
>> Interpreter and their workarounds for working with the sclang executable
>> with other programs.
>>
>> Thanks,
>>
>> - Scott
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17265786.html
> Sent from the Supercollider - User mailing list archive at Nabble.com.
>
> _______________________________________________
> sc-users mailing list
> sc-users@...
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by Josh Parmenter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On May 16, 2008, at 1:22 AM, blackrain wrote:

>
> also, Josh has mentioned he is working towards setting up a package
> that will include scel on aquaemacs for those who want emacs as their
> sc editor in osx.
> keep your fingers crossed =)
>
It's close - but w3m is tricky (so help file support is lacking at the  
moment). More soon...

Josh

> cheers,
>
> x
>
> On Thu, May 15, 2008 at 8:10 PM, mr.proxxxy <mr.proxxxy@...>  
> wrote:
>>
>> Monumentally dumb question here, but in the standard OSX  
>> distribution, there
>> are already sclang and scsynth files built ... (I'm able to start  
>> the server
>> from sclang, but not able to append messages to the pipe ... but  
>> that's a
>> seperate issue) why all this talk about building from source?
>>
>>
>> scacinto wrote:
>>>
>>> Hi all,
>>>
>>> I've recently become dissatisfied with the supercollider  
>>> interpreter (for
>>> a number of reasons including no line numbers, no auto syntax
>>> highlighting, open windows all over causing headaches, etc.) and  
>>> would
>>> like to be able to work with the sclang executable instead via  
>>> another
>>> text editor.  I've attempted to build the executable from the  
>>> source using
>>> scons but get a host of errors.  Has anyone had success building the
>>> executable from source on a MacIntel with Leopard?  The error (if  
>>> you
>>> care) is as follows.
>>>
>>> ...Source/lang/LangPrimSource/PyrSched.cpp: In function 'void
>>> syncOSCOffsetWithTimeOfDay()':
>>> Source/lang/LangPrimSource/PyrSched.cpp:290: error: 'gettimeofday'  
>>> was not
>>> declared in this scope
>>> scons: *** [Source/lang/LangPrimSource/PyrSched.os] Error 1
>>> scons: building terminated because of errors.
>>>
>>> If I edit out this section and try again, other files pop up with  
>>> errors.
>>>
>>> I know there are instructions on the wiki for ways to build from  
>>> source
>>> using XCode, and other means, but the instructions are rather  
>>> cryptic, and
>>> some didn't work for me at all.  Is there an easy (practical) way  
>>> to do
>>> this that doesn't require hours of reading/editing?
>>>
>>> Another question.  Has anyone tried the text-editor Smultron?  It  
>>> has a
>>> number of nice features, from auto syntax highlighting to auto line
>>> numbering, in-window (quicklook) document opening so all docs are
>>> contained within a single window, one need only click one to  
>>> access it.
>>> It has multiple view support and some other niceties.  It can  
>>> execute
>>> scripts, inline posts, etc.  It seems like one could easily script  
>>> this
>>> program to work like SCVim and get some of the features missing in  
>>> the
>>> interpreter.
>>>
>>> I would love to hear what people are thinking about the current UI
>>> Interpreter and their workarounds for working with the sclang  
>>> executable
>>> with other programs.
>>>
>>> Thanks,
>>>
>>> - Scott
>>>
>>>
>>
>> --
>> View this message in context: http://www.nabble.com/Building-Sclang-Executable-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p17265786.html
>> Sent from the Supercollider - User mailing list archive at  
>> Nabble.com.
>>
>> _______________________________________________
>> sc-users mailing list
>> sc-users@...
>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>>
> _______________________________________________
> sc-users mailing list
> sc-users@...
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono
*/

_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by prko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear blackrain,

I followed your instruction.
However I have not got the following:

Add these two lines to your dot emacs file (create one if it doesn't exist).
(add-to-list 'load-path "~/sclang/el")
(require 'sclang)
save the changes.

I have installed Aquamacs Emacs.
How can I create dot emacs file?
I have not used Emacs.

The other things which are described in "README SCLang OSX" all OK!!!!

Thank you for your hints!

Best,
Prko


_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by blackrain-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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)
- type ~/.emacs and press enter.

~/ means your home directory.
notice the dot in front of emacs - without a space.
In UN!X like file systems, file names starting with a dot are 'hidden'
files. ie, these files wont be shown by the finder (or whatever window
manager is being used) so, File->Open cant be used in Aquamacs to edit
this file; we need to do Ctrl-x Ctrl-f.

The contents of your dot emacs file will appear in emacs; empty if the
file did not exist (it has just been created), or it has nothing on
it, or the buffer will show some configuration lines if you already
had something in there.

- type or paste these two lines at the top of the file:

(add-to-list 'load-path "~/sclang/el")
(require 'sclang)

- save the contents of the file
Menu File -> Save Buffer (in aquamax) or press Ctrl-x Ctrl-s

- quit emacs and relaunch it.

Now you need to customize your scel installation for things to work.

- press Option-x (that is Meta-x) and the mini buffer (at the bottom
of the emacs frame) will become active.
- type sclang-customize (so the mini buffer reads: M-x sclang-customize)
- press enter.

This will pop up a new Emacs frame (a new window) in Aquamacs - a yellow one.
- click on Sclang-Interface Go to Group
- click Sclang-options Go to Group (found at the very bottom)

Now edit and set the Sclang Runtime directory field to: ~/sclang
click on the 'state' button just below Sclang Runtime directory and
select "Save for Future sessions"

if the field already said ~/sclang and "Save for Future sessions" is
unavailable,  just re-edit the field's contents and the option will
become available.

The text next to the State button bellow "Sclang Runtime directory"
now will read:  "Saved and set."

close the customization frames.

>From now on, when emacs is launched you will:

- engage sclang mode in emacs with:
M-x sclang-mode
(again, this is Option x, the minibuffer becomes active, you type
sclang-mode and press enter).
* notice now you have a SClang menu.

- start the interpreter Ctrl-c Ctrl-l
the emacs buffer will be split in two, the lower part is the post
window and you will see the library compile there.

That is all.

Please consult scel's documentation found in linux/scel/README for
more information.

some additional notes:
- It would be a good idea to follow the Emacs tutorial found in Help
-> Emacs tutorial if you have never used emacs.

- At the moment there is no online Help support in Emacs under osx (Ctrl-h).
w3m relies on libraries that are somewhat a pain to be made into a
static universal library - gc (so the executable could be distributed
w/o dependencies to dev kits).

- The Emacs FAQ found in the Help menu, has all the information you
need to make Emacs use line numbers along with tons of other kewl
stuff.

cheers,

x



On Sat, May 17, 2008 at 12:47 PM, PyoungRyang Ko
<pyoungryang.ko@...> wrote:

> Dear blackrain,
>
> I followed your instruction.
> However I have not got the following:
>
> Add these two lines to your dot emacs file (create one if it doesn't exist).
> (add-to-list 'load-path "~/sclang/el")
> (require 'sclang)
> save the changes.
>
> I have installed Aquamacs Emacs.
> How can I create dot emacs file?
> I have not used Emacs.
>
> The other things which are described in "README SCLang OSX" all OK!!!!
>
> Thank you for your hints!
>
> Best,
> Prko
>
>
> _______________________________________________
> sc-users mailing list
> sc-users@...
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by blackrain-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Marije,
Sorry I missed your post.

We could do this in OSXPlatform:startup:

        startup {
                if ( this.hasFeature( \emacs )  or:{ this.hasFeature('CocoaDocument') }) {
                        Document.implementationClass.startup;
                };

and then,
1 - The user would have to manually disable the CocoaDocument class
(as in place the file in a 'test' folder) if they want to use the
library with sclang. Be it stand alone or in scel.
but...
2 - The method creates the servers windows and the interpreter will
whine if there is no views server so these would still have to be
commented out:

        startup {
                if ( this.hasFeature( \emacs )  or:{ this.hasFeature('CocoaDocument') }) {
                        Document.implementationClass.startup;
                };
                // make server window
        // Server.internal.makeWindow;
        // Server.local.makeWindow;
                this.loadStartupFiles;
        }

I dont see a better way to have this working clean w/o user mods.
Currently we dont have a way to tell if it is the app, scel, or
nothing at all (as in sclang from the command line) that is actually
compiling the library.

cheers,

x

On Mon, May 12, 2008 at 1:57 PM, nescivi <nescivi@...> wrote:

> Hiho,
>
> On Monday 12 May 2008 11:49:02 scacinto wrote:
>> Hey x,
>>      This actually fails with the same error.  I must be doing something
>> wrong in the build process, as I followed the rest of your instructions to
>> a tee (though I'm not sure what the problem was with the '\emacs \emacs'
>> thing... was that something wrong on my end?  (I haven't even installed
>> emacs, let alone called it for anything... perhaps that's the problem?...)
>
> The \emacs feature is set when the Emacs class has succesfully created a
> command FIFO between emacs and SC.
> So I guess, OSXPlatform should also have this bit in *startup, just like
> LinuxPlatform:
>
> if ( this.hasFeature( \emacs ) ) {
>        Document.implementationClass.startup;
> };
>
> (or maybe that should be moved to Main, assuming windows can theoretically
> also use the emacs interface).
>
> sincerely,
> Marije
> _______________________________________________
> sc-users mailing list
> sc-users@...
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by mr.proxxxy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 = <instance of SCTopView>
                arg argParent = nil
                arg argBounds = <instance of Rect>

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 = <instance of PrimitiveFailedError>
        Nil:handleError   017B6FB0
                arg this = nil
                arg error = <instance of PrimitiveFailedError>
        Thread:handleError   01066FB0
                arg this = <instance of Thread>
                arg error = <instance of PrimitiveFailedError>
        Object:throw   0107A8F0
                arg this = <instance of PrimitiveFailedError>
        Object:primitiveFailed   0106A0D0
                arg this = nil
        SCView:init   0106DE70
                arg this = <instance of SCTopView>
                arg argParent = nil
                arg argBounds = <instance of Rect>
        SCContainerView:init   01069EF0
                arg this = <instance of SCTopView>
                arg argParent = nil
                arg argBounds = <instance of Rect>
        SCWindow:initSCWindow   011DE9F0
                arg this = <instance of SCWindow>
                arg argName = "stethoscope"
                arg argBounds = <instance of Rect>
                arg resizable = true
                arg border = true
                arg scroll = false
        Stethoscope:makeWindow   0107AD10
                arg this = <instance of Stethoscope>
                arg view = nil
        Meta_Stethoscope:new   011DE4B0
                arg this = class Stethoscope
                arg server = <instance of Server>
                arg numChannels = 1
       arg bufsize = 4096
                arg zoom = nil
                arg rate = 'audio'
                arg view = nil
                arg bufnum = 1024
        Server:scope   011B13C0
                arg this = <instance of Server>
                arg numChannels = 1
                arg index = 0
                arg bufsize = 4096
                arg zoom = nil
                arg rate = 'audio'
                var gui = class CocoaGUI
        Function:scope   011E85F0
                arg this = <instance of Function>
                arg numChannels = 1
                arg outbus = 0
                arg fadeTime = 0.05
                arg bufsize = 4096
                arg zoom = nil
                var synth = <instance of Synth>
                var synthDef = <instance of SynthDef>
                var bytes = <instance of Int8Array>
                var synthMsg = [*9]
                var outUGen = <instance of Out>
                var server = <instance of Server>
                var gui = class CocoaGUI
        Interpreter:interpretPrintCmdLine   0119C250
                arg this = <instance of Interpreter>
                var res = nil
                var func = <instance of Function>
                var code = "
{SinOsc.ar(500,0,1.0)}.scope;
"
        Process:interpretPrintCmdLine   0107ED30
                arg this = <instance of Main>


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)

....

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by Josh Parmenter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

you'll have to use SwingOSC for the GUI. None of the cocoa gui widgets  
will work.

Josh

On May 17, 2008, at 4:30 PM, mr.proxxxy wrote:

>
> 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 = <instance of SCTopView>
>                arg argParent = nil
>                arg argBounds = <instance of Rect>
>
> 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 = <instance of PrimitiveFailedError>
>        Nil:handleError   017B6FB0
>                arg this = nil
>                arg error = <instance of PrimitiveFailedError>
>        Thread:handleError   01066FB0
>                arg this = <instance of Thread>
>                arg error = <instance of PrimitiveFailedError>
>        Object:throw   0107A8F0
>                arg this = <instance of PrimitiveFailedError>
>        Object:primitiveFailed   0106A0D0
>                arg this = nil
>        SCView:init   0106DE70
>                arg this = <instance of SCTopView>
>                arg argParent = nil
>                arg argBounds = <instance of Rect>
>        SCContainerView:init   01069EF0
>                arg this = <instance of SCTopView>
>                arg argParent = nil
>                arg argBounds = <instance of Rect>
>        SCWindow:initSCWindow   011DE9F0
>                arg this = <instance of SCWindow>
>                arg argName = "stethoscope"
>                arg argBounds = <instance of Rect>
>                arg resizable = true
>                arg border = true
>                arg scroll = false
>        Stethoscope:makeWindow   0107AD10
>                arg this = <instance of Stethoscope>
>                arg view = nil
>        Meta_Stethoscope:new   011DE4B0
>                arg this = class Stethoscope
>                arg server = <instance of Server>
>                arg numChannels = 1
>       arg bufsize = 4096
>                arg zoom = nil
>                arg rate = 'audio'
>                arg view = nil
>                arg bufnum = 1024
>        Server:scope   011B13C0
>                arg this = <instance of Server>
>                arg numChannels = 1
>                arg index = 0
>                arg bufsize = 4096
>                arg zoom = nil
>                arg rate = 'audio'
>                var gui = class CocoaGUI
>        Function:scope   011E85F0
>                arg this = <instance of Function>
>                arg numChannels = 1
>                arg outbus = 0
>                arg fadeTime = 0.05
>                arg bufsize = 4096
>                arg zoom = nil
>                var synth = <instance of Synth>
>                var synthDef = <instance of SynthDef>
>                var bytes = <instance of Int8Array>
>                var synthMsg = [*9]
>                var outUGen = <instance of Out>
>                var server = <instance of Server>
>                var gui = class CocoaGUI
>        Interpreter:interpretPrintCmdLine   0119C250
>                arg this = <instance of Interpreter>
>                var res = nil
>                var func = <instance of Function>
>                var code = "
> {SinOsc.ar(500,0,1.0)}.scope;
> "
>        Process:interpretPrintCmdLine   0107ED30
>                arg this = <instance of Main>
>
>
>
> 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
> sc-users@...
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono
*/

_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Building Sclang Executable on OS X (leopard or other) AND New Interpreter/Editor

by mr.proxxxy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok. I will.
Just curious, though. Why?


Josh Parmenter wrote:
you'll have to use SwingOSC for the GUI. None of the cocoa gui widgets  
will work.

Josh
< Prev | 1 - 2 - 3 | Next >