digitarald / make-fxos-install

Command-line tools to install packaged and hosted apps using the Firefox OS remote debugging protocols.
24 stars 8 forks source link

xpcshell: error while loading shared libraries: libxpcom.so: cannot open shared object file: No such file or directory #6

Open mossroy opened 11 years ago

mossroy commented 11 years ago

I face this error when trying to install an app on a device. I'm using an Ubuntu 12.04.2 amd64 desktop, with all current updates. The adb I use comes from https://launchpad.net/~nilarimogard/+archive/webupd8 The xulrunner comes from https://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/ . The behavior is the same with version 18.0.2 (amd64) and 21.0 (both amd64 and x86 versions)

In the makefile, I configured the variable as :

XPCSHELL = ~/firefoxOS/xulrunner-sdk/bin/xpcshell
ADB = adb

I finally found a workaround : in the Makefile, I prefixed the last line with :

env LD_LIBRARY_PATH=/home/xxx/firefoxOS/xulrunner-sdk/bin ${XPCSHELL} install.js ${ID} $(PORT_LOCAL)

The path needs to be a complete absolute path. For some kind of reason, it does not work if I use ~/firefoxOS/xulrunner-sdk/bin

sblondon commented 10 years ago

I got the same error and your fix works for me too (occured on Debian GNU/Linux testing (jessie)).

I think it would be better to provide a constant like XULRUNNER_PATH and use it to the libs and xpcshell paths. I can provide a pull/request if you're interested.