Comment 44 for bug 568275

Revision history for this message
Raik (jinto) wrote :

The problem is that the path to the necessary library libmozjs.so changes with every xulrunner update. For 1.9.2.13 it is /usr/lib/xulrunner-1.9.2.13/libmozjs.so for example.

There are 2 possibilities to solve this problem (afaik). Hardcode the path at compile-time into the binary. That's what i do. This requires a new version for every new xulrunner version.

The second possibility is to write a wrapper script for mediatomb executable that assign the path to the LD_LIBRARY_PATH variable and then starts the real mediatomb executable. With that there would be no need for an update on every new xulrunner version as long as libmozjs.so stays binary compatible.