Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XPCOM component compiles on Mac but won't get registered in compreg.dat for Firefox or XULRunner

7 views
Skip to first unread message

andrecp

unread,
May 12, 2008, 3:05:35 PM5/12/08
to
Hi, I've tried and successfully build an XPCOM component on Mac using
the gecko-sdk and XULRunner libraries from head of the 1.8 branch. The
build completes sucessfully and I get the xpt and dylib files, but
when I copy them to my firefox components folder and restart firefox,
the component doesn't get registered. I've tried deleting compreg.dat
and xpti.dat and touch .autoreg but it never works.
I also tried generating a xulrunner app that includes the components,
but that application's profile is also missing my component in it's
compreg.dat.

When I build the same component for windows and can get it to register
by calling regxpcom but when I try that on Mac I get this error :
dyld:Library not loaded: @executable_path/libplds4.dylib

I'm not sure if fixing that would fix the registration problem or not,
since my understanding is that firefox will automatically try
registering the new components when it re-generates the .dat files.

I'm using the sample from http://www.iosart.com/firefox/xpcom/ but
modified the make file to work on Mac using the make file from this
page as an example: http://rcrowley.org/2007/07/17/cross-platform-xpcom-a-howto/

Has anyone encountered this before? I'm not sure how to troubleshoot
since I don't know if the component was built improperly or if the
mozilla build I made is wrong.

andrecp

unread,
May 13, 2008, 4:30:42 PM5/13/08
to

Sorry, nevermind, I left out my module object file from the linking
part of my make file...it still compiled but I guess FF/XULRunner need
that to register (which makes perfect sense).

0 new messages