Running AppJS i386 on Mac OS X

122 views
Skip to first unread message

Nicolas Embleton

unread,
Jun 30, 2012, 6:50:13 AM6/30/12
to appj...@googlegroups.com
Although that was very obvious, I tried to run AppJS app under MacOS X 10.6.8 "normally" ( meaning without specifying an architecture ). And of course it failed for the following reason:

Error: dlopen(/Users/nembleton/node_modules/appjs/node_modules/appjs-mac/build/Release/appjs.node, 1): no suitable image found.  Did find:
        /Users/nembleton/node_modules/appjs/node_modules/appjs-mac/build/Release/appjs.node: mach-o, but wrong architecture
    at Object.Module._extensions..node (module.js:480:11)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)

For all the dummies like me, I had a quick look and came to try this:

arch -i386 node app.js

This will run, output some "leaking" warnings and then come to your main on() function.

The default exemple ( on the appjs website: http://appjs.org/ ) runs just fine and outputs this:

Event WindowReady called
[0630/174407:ERROR:cef_context.cc(356)] No localized string available for id 16504
[0630/174407:ERROR:cef_context.cc(430)] No data resource available for id 4544

Hope that helps MacOS folks around.

Nicolas Embleton

unread,
Jun 30, 2012, 6:53:19 AM6/30/12
to appj...@googlegroups.com
Just a note: If you see that everything is launching well but don't see the window, don't panic. It is actually here. Just in the background ( and there's no app icon in the dock ). Just slide 4 fingers down to see all your windows and it'll be here.

Morteza Milani

unread,
Jun 30, 2012, 6:56:40 AM6/30/12
to appj...@googlegroups.com
Hi,

Thank you Nicolas. So it seems we don't have serious issues on running
the example. We only need to fix bugs in Mac OS. The most important
one is terminating the app after the window is closed.

Cheers,
Reply all
Reply to author
Forward
0 new messages