Jason King wrote:
I've been struggling with this for a while, and I just can't seem to get this to work. I'm trying to build my embedding app on an Intel-based mac. I did a Universal Binary shared build of Firefox 1.52, and I just can't seem to get this guy to link. Everything compiles OK, however.

I am linking to these libraries:

libembed_base_s.a
libxpcomglue_s.a
libxpcom.dylib
libnspr4.dylib
libplc4.dylib
libplds4.dylib

All the symbols my app needs are defined (well, it can't find typeinfo for nsSupportsWeakReference for some reason...), but libxpcom seems to be statically linked to libxpcom_core.dylib, which is not part of the sdk (yes, I realize this way of embedding is deprecated, but changing to XUL Runner is not feasible at this point).

Should I in fact be linking to libxpcom_core.dylib?

No. You want to specify -Wl,-executable-path,../path/to/Firefox.app/Contents/MacOS in your command line. That will tell the linker where to find libxpcom_core.dylib while not explicitly linking against it.

--BDS

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to