Subj : Re: Compiling and using SpiderMonkey with Mac OS X To : netscape.public.mozilla.jseng From : Heath Raftery Date : Wed Jul 30 2003 03:33 am Brian Barnes wrote: > Brendan Eich wrote: >> Is that a hardship? >> >> Obviously, SpiderMonkey builds and works on OS X just fine in Mozilla >> 1.4, 1.5alpha, Camino, Mozilla Firebird, and other projects hosted >> outside of mozilla.org, such as Konfabulator >> (http://www.konfabulator.com/). >> I'll help get this integrated somehow. > No hardship for me, I was just answering the guys question :), and was > trying to figure out what exactly his problem was. Having it as a > regular old .a library is fine for me. Frameworks are very nice, but > not necessary. > Is the original message writter still out there :) I'm here, just on the other side of the world, it seems ;) I figured others had worked through the install as well, considering Mozilla OS X, et al. I don't think I want a framework at all, if your definition is anything like this guy's: I'd like to just #include a header or two and maybe link to a library, then I'm happy to instantiate and use a JS Interpreter object as seems to be the way presentally. It seems however, that I also need to include all the .o's which appear in the Darwin directly as well as the library, or get linker errors complaining about not being able to find JS_Evaluate and so forth. Does this sound right? My issues with compiling the library, IIRC, were: There's no gmake by default. The system make seemed to suffice. I had lots of issues with #define XP_MAC/XP_UNIX, and I couldn't find mention of this in the docs. In some source files I needed XP_MAC to compile and XP_UNIX in others. I ended up having to change a few of the #ifdef XP_MAC, #ifdef XP_UNIX to get it to compile. I can provide details if I do it again. Once the library is compiled, it is not obvious how to use it. Moving the ..a and .so to /usr/lib and /usr/lib/js/ helped (could be an install option?) but compiling with #include #jsapi.h and linking with gcc -ljs still failed until I added a few of the .o's to the gcc line (not all of them though). The name Darwin_DBG put me off too - doesn't sound like the directory the final, usable result would go. Is my experience contrary to The Way It's Supposed To Be? Heath -- *--------------------------------------------------------* | ^Nothing is foolproof to a sufficiently talented fool^ | | Heath Raftery, HRSoftWorks _\|/_ | *______________________________________m_('.')_m_________* .