View Full Version : Need an X11 server to run 'sencha create jsb'?

5 Jan 2012, 3:37 PM
I'm trying to follow the instructions in http://docs.sencha.com/ext-js/4-0/#!/guide/getting_started

When I run 'sencha create jsb' it requires that I configure an X11 server:

$ sencha create jsb -a index.html -p app.jsb3
phantomjs.bin: cannot connect to X server

It doesn't actually seem to USE the X11 server once I configure it, but I'm not going to want the
deployment team to have to configure an X11 server when they do a 'make install'. Is there a way
to let this command know to not try to use the X server?

6 Jan 2012, 12:35 PM
I'm not too sure why a headless browser would have a dependance on a user interface layer but there isn't a way to configure the use of PhantomJS like that.

6 Jan 2012, 12:41 PM
It's likely that something in PhantomJS relies on library functions in the X server. XPM support, for example, or .au audio file support.

libgd (a graphics library) can be compiled with XPM support or without. If you compile with it, you have to have an X server installed.

Even though you have an X server installed, it doesn't mean you have to have a display or even run it. It just means you can run programs on the server that display on your workstation, assuming you have an X server running on the workstation.