[Openmcl-devel] Currency Converter Example
mevins at mac.com
Thu Jan 1 15:28:09 PST 2009
On Jan 1, 2009, at 5:20 PM, B Rannode wrote:
> I just did a fresh install of the 64bit Mac Clozure .dmg and am
> having a few issues with the Currency Converter Cocoa example.
> First, I cannot get it to build the application when strictly
> following the instructions or using the attached example files at: http://trac.clozure.com/openmcl/wiki/AppleCurrencyConverterMakingaProject
> When I use my own or the included files I get:
>> ? (load "currency-converter")
>>> Error: Reader error on #<BASIC-FILE-CHARACTER-INPUT-STREAM
>> ("example_files/currency-converter.lisp"/4 ISO-8859-1)
>> #x300040EC013D>, near position 94, within "(ns:ns-obj":
>>> Reference to unknown package "NS".
>>> While executing: SIGNAL-READER-ERROR, in process listener(1).
> I have found that adding (require "COCOA") to the head of currency-
> converter.lisp gets me beyond this step. Is that acceptable? Is my
> installation flawed or is the tutorial out of date?
> Next, when building the application:
>> ? (require "build-application")
>> ("builder-utilities" "build-application")
>> ? (ccl::build-application :name "CurrencyConverter"
>> :main-nib-name "CurrencyConverter"
>> :nibfiles '(#P"CurrencyConverter.nib"))
>> ;; Clozure terminates
> I can run the Application bundle and it does convert, but I get a
> console with the error message found at: http://paste.lisp.org/display/72922
> Does anything stick out here to anyone? I have programmed in Obj-C++
> Cocoa before but it is not immediately clear to me what needs
> correction here.
> Thanks for any insight into these issues.
The Currency Converter example is indeed out of date. There has been
something of a flurry of activity in CCL development in the past few
months, and the Currency Converter code has not been kept up-to-date
with the latest changes. Perhaps between us, we can work out what
needs to be done to bring it up to date. We may want to wait to hear
from other Clozure folks about whether right now is a good time to
attack the example. They're doing some IDE work, and it might
destabilize things further until it's complete.
More information about the Openmcl-devel