Embedding Mozilla in SDL on Linux

You can add a mozilla browser window to your SDL application under Linux!
Check out the code and x86 runtime at:
http://www.libsdl.org/cvs/mozilla-embed.tar.gz

Everything should already be built, except for the test app, which you
can build with: gcc -o test test.cpp sdl-config --cflags --libs

There seem to be problems with input focus, but otherwise it works great!

(BTW, this trick should work with any X11 window, not just SDL)

Enjoy!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

http://www.libsdl.org/cvs/mozilla-embed.tar.gz

5.2MB download.

Everything should already be built, except for the test app, which you
can build with: gcc -o test test.cpp sdl-config --cflags --libs

gcc -o test test.cpp sdl-config --cflags --libs:
undefined reference to __gxx_personality_v0
(???)
Using SDL 1.2.6, but not latest CVS. What’s missing?

Thanks,
JeffOn Sunday 23 November 2003 08:12 pm, Sam Lantinga wrote:

Hello !

gcc -o test test.cpp sdl-config --cflags --libs:
undefined reference to __gxx_personality_v0
(???)
Using SDL 1.2.6, but not latest CVS. What’s missing?

You have to use g++ not gcc.

CU

gcc -o test test.cpp sdl-config --cflags --libs:
undefined reference to __gxx_personality_v0
(???)
Using SDL 1.2.6, but not latest CVS. What’s missing?

You have to use g++ not gcc.

If that doesn’t work, it means that one was built with gcc2 and the
other is built with gcc3 and you’ve got an ABI conflict.

Build everything with the same compiler if you’ve got source code.

–ryan.

g++ compiled it without error, but when ‘test’ is run, it crashes with this
message:

Warning: Couldn’t load ./GtkBrowser.so: Failed loading GtkBrowser.so:
SDL_LoadObject() not implementedOn Monday 24 November 2003 07:11 am, Torsten Giebl wrote:

gcc -o test test.cpp sdl-config --cflags --libs:
undefined reference to __gxx_personality_v0

You have to use g++ not gcc.

What platform was this on? SDL_LoadObject() should be implemented for
nearly every platform SDL supports…

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment> On Monday 24 November 2003 07:11 am, Torsten Giebl wrote:

gcc -o test test.cpp sdl-config --cflags --libs:
undefined reference to __gxx_personality_v0

You have to use g++ not gcc.

g++ compiled it without error, but when ‘test’ is run, it crashes with this
message:

Warning: Couldn’t load ./GtkBrowser.so: Failed loading GtkBrowser.so:
SDL_LoadObject() not implemented

Red Hat Linux 7.2, SDL version 1.2.6

JeffOn Monday 24 November 2003 03:12 pm, Sam Lantinga wrote:

Warning: Couldn’t load ./GtkBrowser.so: Failed loading GtkBrowser.so:
SDL_LoadObject() not implemented

What platform was this on? SDL_LoadObject() should be implemented for
nearly every platform SDL supports…

man, 2003-11-24 kl. 19:12 skrev j_post:> On Monday 24 November 2003 07:11 am, Torsten Giebl wrote:

gcc -o test test.cpp sdl-config --cflags --libs:
undefined reference to __gxx_personality_v0

You have to use g++ not gcc.

g++ compiled it without error, but when ‘test’ is run, it crashes with this
message:

Warning: Couldn’t load ./GtkBrowser.so: Failed loading GtkBrowser.so:
SDL_LoadObject() not implemented
I had the same error, fixed it by extending LD_LIBRARY_PATH with "."
Although it doesn’t make sense that LoadObject should need this.


One file-format to rule them all
One parser to parse them all
And in code - bind them!

Best Regards/Venlig Hilsen
Rasmus Toftdahl Olesen
System Udvikler, Pohl Data I/S
http://halfdans.net
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dette er en digitalt underskrevet brevdel
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031124/bff9dbc7/attachment.pgp

Doesn’t make sense to me, either. Also doesn’t work on my system.
Still have the same problem. :frowning:

JeffOn Monday 24 November 2003 05:06 pm, Rasmus Toftdahl Olesen wrote:

Warning: Couldn’t load ./GtkBrowser.so: Failed loading GtkBrowser.so:
SDL_LoadObject() not implemented

I had the same error, fixed it by extending LD_LIBRARY_PATH with "."
Although it doesn’t make sense that LoadObject should need this.

Are there any plans for a Embededding of Moz in SDL under Windows?

Dominique
http://www.DelphiGamer.com := go on, write a game instead;

Are there any plans for a Embededding of Moz in SDL under Windows?

No, this was just a cheap trick I thought I’d share. It’s not supported
or anything. :slight_smile:

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment