View Full Version : X.org dependancies for Sencha SDK Tools?

12 Oct 2011, 11:49 PM
SenchaSDKTools-1.2.3/phantomjs.bin: error while loading shared libraries: libSM.so.6

am I crazy or does this seem like a strange dependancy for a CLI program that people would include in their build process or continuous integration?

$ sudo apt-get install libsm6
$ sencha create jsb -a build.html -p ~/test.jsb3
phantomjs.bin: cannot connect to X server


31 Oct 2011, 8:57 AM
I'd like to know the answer to this too.

7 Nov 2011, 10:39 PM
guess we're not going to get one

14 Nov 2011, 1:03 PM
Actual I just came across this explanation from Jared Nicholls:

phantomjs/ext-theme use headless WebKit webviews, which require x server on linux because it has to process GUI event messages as if it were painting the web pages directly onto a window handle (it's not rendering things directly to memory...they aren't *that* good ;) ). In other words, do not expect these tools to run directly from a command line session, you need X running and processing event messages.


4 Dec 2011, 4:22 PM
except i'm not doing anything theme related, just creating a JSB file from app.js

5 Dec 2011, 7:42 AM
Actually JSB creation is the part that uses it I think. It is simulating page loading & events to determine which dependencies get loaded when.

11 Dec 2011, 7:07 PM
I have encountered such a thing before, but now the problem has been resolved! Thanks!/:)