[brown paper bag]
With all the to'ing and fro'ing I ended up forgetting to make sure that the xpcomglue linking was passed after the .o files.

Now I've got a proper working reference, I'll see if I can get my main app working after lunch.

I've updated the http://slaine.org/files/testgtkembed.tar.bz2 file with the tweak so it should be usable if anyones interested in playing with it.

On 02/12/09 13:29, Glen Gray wrote:
I stupidly replied to another thread with my email on this yesterday. Reposting with some updates.

I've created a project for testing out my problems and I've copied it to http://slaine.org/files/testgtkembed.tar.bz2

This is basically an autotools project that tries to build TestGtkEmbed.cpp file from xulrunner/embedding/browser/gtk/tests/TestGtkEmbed.cpp

I've taken a look at yelp which does compile and run on my system, and I've replicated as much of their m4 macro for detecting the correct include paths and linker paths.

I've verified that the -I and -L params I'm seeing match that of what I see when I compile yelp. Yet, I'm still have failures at link time, like the following...

<SNIP>
....-L/usr/lib/xulrunner-sdk-1.9.1/sdk/lib -lxpcomglue -lplds4 -lplc4 -lnspr4 -lpthread -ldl -L/usr/lib/xulrunner-sdk-1.9.1/bin -lxpcomglue -o testgtkembed testgtkembed-TestGtkEmbed.o
testgtkembed-TestGtkEmbed.o: In function `main':
/home/glen/src/TestGtkEmbed/testgtkembed/src/TestGtkEmbed.cpp:210: undefined reference to `GRE_GetGREPathWithProperties' /home/glen/src/TestGtkEmbed/testgtkembed/src/TestGtkEmbed.cpp:216: undefined reference to `XPCOMGlueStartup'
testgtkembed-TestGtkEmbed.o: In function `GTKEmbedGlueStartup':
/usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed_glue.cpp:109: undefined reference to `XPCOMGlueLoadXULFunctions'
testgtkembed-TestGtkEmbed.o: In function `nsCOMPtr':
/usr/include/xulrunner-sdk-1.9.1/stable/nsCOMPtr.h:604: undefined reference to `nsCOMPtr_base::assign_from_gs_contractid(nsGetServiceByContractID, nsID const&)'
<SNIP>

Thanks in advance for any help



--
Glen Gray<sla...@slaine.org>
http://slaine.org

_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to