http://developer.mozilla.org/en/docs/XULRunner:Deploying_XULRunner_1.8
in order to build a completely standalone XUL app on OS X (10.4.8). I
took an Foo.app directory created with xulrunner-bin --install-app and
tried to copy (using rsync -rl) the XUL.framework directory into a
Frameworks directory in the .app bundle and then deleting the
XUL.framework directory from /Library/Frameworks (to test whether my
app is actually stand-alone.) When I do that, running my app fails
silently. It works fine when the XUL.framework is installed in
/Library/Frameworks. Any suggestions?
-Peter
Also, your application is dynamically linked to the framework and
expects it to be at a certain location.
You can use the command 'otool -L myfile' on the app binary or any of
your dylibs to find out which libraries they depend on, and the
expected install location of the files themselves.
If you want to change any of these "hardcoded at compile time"
locations, you'll need to use install_name_tool. Or better yet, make
sure your build projects does this for you.
Either way, there are documents about this on www.cocoadev.com
/Håkan
peter....@gmail.com skrev:
I'm just saying that you probably want to define the path of the
framework at compile-time, rather than move it after the fact.
/Håkan
Hmmm, well the XULRunner deployment instructions imply that this should
work. Has anyone actually tried it?
-Peter
The packages of the Firefox release repackager
http://benjamin.smedbergs.us/release-repackager/ use the embedded framework
successfully. Please make sure you're using 1.8.0.4 or later (not 1.8.0.1,
which had a bug that prevented this from working properly).
--BDS
In this case you can (that's one of the reasons we have the standalone
glue). You should not ever need to use otool on the XUL.framework or your
application if you have linked them using the standalone glue.
This is mostly irrelevant for XUL applications anyway, since they're running
the xulrunner-bin binary.
--BDS
Hmmm, now it works. I wonder what I was doing wrong before. Anyway,
thanks for the example.
-Peter