ReferenceError: "I" is not defined?

112 views
Skip to first unread message

rforte

unread,
Jun 14, 2011, 11:34:10 AM6/14/11
to Cappuccino & Objective-J
I just pulled from git and am trying to build a TestApp using capp gen
and xcodegen. I'm seeing the following errors in xcodegen's output:


Edited /Users/robertforte/devel/TestApp/AppController.j
Edited /Users/robertforte/devel/TestApp/Resources/MainMenu.xib
java.io.IOException: Cannot run program "fontinfo": error=2, No such
file or directory
Edited /Users/robertforte/devel/TestApp/Build/TestApp.build/Debug/
Browser.environment/Sources/AppController.j
org.mozilla.javascript.EcmaError: ReferenceError: "I" is not defined.
(file:/Users/robertforte/narwhal/packages/cappuccino/lib/xcodecapp/
Resources/FIXME_parser.j#45(eval)#1)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:
3753)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:
3731)
at
org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:
3816)
at
org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:
1826)
at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1765)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:
1781)
at script(file:/Users/robertforte/narwhal/packages/cappuccino/lib/
xcodecapp/Resources/FIXME_parser.j#45(eval):1)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:845)
at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:
164)
at
org.mozilla.javascript.ScriptRuntime.evalSpecial(ScriptRuntime.java:
2582)
at
org.mozilla.javascript.ScriptRuntime.callSpecial(ScriptRuntime.java:
2434)
at
org.mozilla.javascript.optimizer.OptRuntime.callSpecial(OptRuntime.java:
165)
at
org.mozilla.javascript.gen.file__Users_robertforte_narwhal_packages_cappuccino_lib_xcodecapp_Resources_FIXME_parser_j_16._c_anonymous_1(Unknown
Source)
at
org.mozilla.javascript.gen.file__Users_robertforte_narwhal_packages_cappuccino_lib_xcodecapp_Resources_FIXME_parser_j_16.call(Unknown
Source)
at
org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:
97)
at
org.mozilla.javascript.gen._Users_robertforte_narwhal_packages_objective_j_lib_objective_j_js_7._c_anonymous_401(Unknown
Source)
at
org.mozilla.javascript.gen._Users_robertforte_narwhal_packages_objective_j_lib_objective_j_js_7.call(Unknown
Source)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:
66)
at
org.mozilla.javascript.gen._Users_robertforte_narwhal_packages_objective_j_bin_objj_6._c_anonymous_0(Unknown
Source)
at
org.mozilla.javascript.gen._Users_robertforte_narwhal_packages_objective_j_bin_objj_6.call(Unknown
Source)
at
org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:
2504)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:
294)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:
129)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:
76)
at
org.mozilla.javascript.gen._Users_robertforte_narwhal_engines_rhino_bootstrap_js_1._c_anonymous_6(Unknown
Source)
at
org.mozilla.javascript.gen._Users_robertforte_narwhal_engines_rhino_bootstrap_js_1.call(Unknown
Source)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:
1702)
at script(/Users/robertforte/narwhal/packages/narwhal-lib/lib/narwhal/
sandbox.js:118)
at script(/Users/robertforte/narwhal/packages/narwhal-lib/lib/narwhal/
sandbox.js:241)
at script.narwhal(/Users/robertforte/narwhal/narwhal.js:290)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:845)
at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:
164)
at
org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:
97)
at
org.mozilla.javascript.gen._Users_robertforte_narwhal_engines_rhino_bootstrap_js_1._c_anonymous_1(Unknown
Source)
at
org.mozilla.javascript.gen._Users_robertforte_narwhal_engines_rhino_bootstrap_js_1.call(Unknown
Source)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:
76)
at
org.mozilla.javascript.gen._Users_robertforte_narwhal_engines_rhino_bootstrap_js_1._c_script_0(Unknown
Source)
at
org.mozilla.javascript.gen._Users_robertforte_narwhal_engines_rhino_bootstrap_js_1.call(Unknown
Source)
at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:
426)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:
3157)
at
org.mozilla.javascript.gen._Users_robertforte_narwhal_engines_rhino_bootstrap_js_1.call(Unknown
Source)
at
org.mozilla.javascript.gen._Users_robertforte_narwhal_engines_rhino_bootstrap_js_1.exec(Unknown
Source)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:
563)
at
org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:
485)
at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:451)
at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:
443)
at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:
196)
at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:117)
at org.mozilla.javascript.Context.call(Context.java:521)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:
535)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:179)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:157)
ReferenceError: "I" is not defined.


I see fontinfo is in the Tools directory but that the Tools path is
not in my $PATH. Is this something that should of happened when I ran
'jake install'?

Alexander Ljungberg

unread,
Jun 14, 2011, 12:35:46 PM6/14/11
to objec...@googlegroups.com
Yes `fontinfo` should have been installed by `jake install`. Try `jake clean` and a reinstall.

> --
> You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
> To post to this group, send email to objec...@googlegroups.com.
> To unsubscribe from this group, send email to objectivej+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/objectivej?hl=en.
>

rforte

unread,
Jun 14, 2011, 1:58:26 PM6/14/11
to Cappuccino & Objective-J
I just tried wiping out everything and starting from scratch. I now
get the following error when i run ./bootstrap:
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../src -
force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch i386 -c tc1.c
make[3]: *** No rule to make target `../src/libedit.la', needed by
`tc1'. Stop.
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [deps/libedit-20100424-3.0/src/.libs/libedit.dylib] Error 2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: building narwhal-jsc failed. Hit enter to continue.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

rforte

unread,
Jun 14, 2011, 2:10:32 PM6/14/11
to Cappuccino & Objective-J
Thanks to bdittmer for pointing out that i need to pull macports out
of my path. That solved my build issues.

Ross Boucher

unread,
Jun 14, 2011, 2:52:53 PM6/14/11
to objec...@googlegroups.com
narwhal-jsc is also not required, so everything should work without it.
Reply all
Reply to author
Forward
0 new messages