Hi BDS,
Thanks for the reply. After settings the LD_LIBRARY_PATH i executed the
command `ld components/libqecomp_FIREFOX_1.so` and it was successful.
However i tried to invoke the firefox it said segmentation fault error.
Regarding nonfrozen interfaces, yes i used most of the nonfrozen string
functions( *withconversion...), which i am trying to replace with the
proper substitute.
I had a doubt whether *WithConversion functions in strings will work in
Firefox 1.5 ?
One more question...
What are the libraries should i link my xpcom component to ? I am
currently linking it against following libraries,
libxpcomglue_s.a
-lxpcom , -lxpcom_core, -lplds4 ,-lplc4 ,-lnspr4, -lpthread ,-ldl
-lmozjs -lnss3 -lxpcom_compat -lpthread -ldl -lm
Please advice me whether i am doing right ?
Thanks & Regards,
Sabarinathan
Benjamin Smedberg wrote:
sabarinathan wrote:
I had built a xpcom component for Firefox 1.5 in linux.
Then i placed the component under firefox/components/ directory.
Now i tried to execute `*ld components/libqecomp_FIREFOX_1.so*` to
find any failed dependencies.
It throwed the error (given below Error from ld command). Hence as
given in the warning i executed `*ld -rpath .
components/libqecomp_FIREFOX_1.so*` from firefox folder. Then the ld
doesn't throw any error.
So i assume there may be a problem in linking while creating the
component.
No, it looks like your component is fine. The LD_LIBRARY_PATH
environment is munged by the "run-mozilla" script during startup,
besides which xpcom and xpcom_core are the ones who are going to be
actually loading your component, so you can be assured they will
already be present.
However, please be aware that if you're compiling your code with
MOZILLA_INTERNAL_API and linking against xpcom_core, your component is
using nonfrozen APIs and may not work in future versions of Firefox.
--BDS
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom