Jason King wrote:
They're the same libraries you embed with on Windows. They may be "dylibs" rather than "dlls" now, but the lib names and the API are the same. Note that there is no Mac Framework, but you just need to be sure the libraries and support files are on the path, like with Windows.
This confuses me, as the Mac SDK definitely does include some frameworks: libembed_base_s.a, libxpcomglue_s.a, and libxpcomglue.a. Also, there is no "xxxEmbedxxx.dylib" in the sdk/bin/ directory, while there is "libxpcom.dylib". (For the record, I'm building 1.7rc3 source). If I were to use strictly .dylib's, which would contain the embedding components(not just XPCOM)? I'm sorry if there is an obvious answer I am missing.
I'm not sure what your exact setup is, but here are the LDFLAGS I pass for my OS X embedding app:
-framework Foundation [EMAIL PROTECTED]@/lib -lxpcom -lplc4 -lplds4 -lnspr4 -lembed_base_s
Replace @MOZ_DIST@ to the mozilla/dist directory of a compiled Mozilla source tree. I'm not sure if the -framework Foundation part is strictly necessary for linking with Mozilla, but I make some Foundation calls in my embedding code. xpcom, plc4, plds4, nspr4 are all dylibs, and embed_base_s is a static library.
Hope this helps. -- Brad Fish [EMAIL PROTECTED] TALL Group Programmer _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
