Jeremias Reith wrote:

Jeremias,

Well, you said in a different post that you solved your problems, but I'll 
respond anyway in case this is a new problem.  :)  You need to link to 
gtkmozembed.so, found in the ($MozillaInstallDir)/lib/ directory, in my 
case /usr/local/lib/mozilla-1.1/libgtkmozembed.so .

Dave

> David Fancella wrote:
>> Jeremias Reith wrote:
>> 
>> 
>>>Hi,
>>>
>>>I wan't to embed mozilla but have a lot of problems with unresolved
>>>symbols.
>>>
>>>Which dynamic and static mozilla librarys do I need at least to
>>>successfully embed mozilla?
>>>
>>>Currently I am using:
>>>
>>>-lxpcom -lnspr4 -lplc4 -lplds4 -lmozz -lmozjs
>>>
>>>and
>>>
>>>libembed_base_s.a
>> 
>> 
>> What platform are you on?
>> 
>> I've successfully run an embedded Mozilla linking only to XPCOM and
>> gtkmozembed.  From the looks of things it looks like you're missing the
>> platform specific part, but maybe libembed_base_s.a covers that?
>> 
>> Dave
> 
> I'm on Linux, but don't want to use gtk. Probably gtkmozembed already
> includes everything needed?
> 
> Here are some of the missing references:
> 
> c++  -g -O2  -o testEmbed  testEmbed.o ../../src/lib/libmozembed.a
> /home/jre/devel/mozilla1.2.1/dist/sdk/embed_base/bin/libembed_base_s.a
> -L/home/jre/devel/mozilla1.2.1/dist/sdk/base/bin
> -L/home/jre/devel/mozilla1.2.1/dist/sdk/xpcom/bin
> -L/home/jre/devel/mozilla1.2.1/dist/sdk/nspr/bin      -lxpcom -lnspr4 -lplc4
> -lplds4 -lmozz -lmozjs
> ../../src/lib/libmozembed.a(mozEmbed.o): In function
> `mozEmbed::QueryInterface(nsID const &, void **)':
> /home/jre/devel/mozilla1.2.1/dist/sdk/xpcom/include/nsID.h:80: undefined
> reference to `nsSupportsWeakReference type_info node'
> ../../src/lib/libmozembed.a(mozEmbed.o): In function `nsISupports
> type_info function':
> 
/home/jre/devel/src/lib/mozEmbed.cpp(.gnu.linkonce.t.__thunk_12_OnStateChange__8mozEmbedP14nsIWebProgressP10nsIRequestUiUi+0x6):
> undefined reference to `mozEmbed::OnStateChange(nsIWebProgress *,
> nsIRequest *, unsigned int, unsigned int)'
> 
/home/jre/devel/src/lib/mozEmbed.cpp(.gnu.linkonce.t.__thunk_12_OnProgressChange__8mozEmbedP14nsIWebProgressP10nsIRequestiiii+0x6):
> undefined reference to `mozEmbed::OnProgressChange(nsIWebProgress *,
> nsIRequest *, int, int, int, int)'
> 
/home/jre/devel/src/lib/mozEmbed.cpp(.gnu.linkonce.t.__thunk_12_OnLocationChange__8mozEmbedP14nsIWebProgressP10nsIRequestP6nsIURI+0x6):
> undefined reference to `mozEmbed::OnLocationChange(nsIWebProgress *,
> nsIRequest *, nsIURI *)'
> 
/home/jre/devel/src/lib/mozEmbed.cpp(.gnu.linkonce.t.__thunk_12_OnStatusChange__8mozEmbedP14nsIWebProgressP10nsIRequestUiPCUs+0x6):
> undefined reference to `mozEmbed::OnStatusChange(nsIWebProgress *,
> nsIRequest *, unsigned int, unsigned short const *)'
> ...
> 
> 
> Any ideas?
> 
> /Jeremias


Reply via email to