LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2008, 05:59 AM   #1
brazilnut
Member
 
Registered: Nov 2007
Posts: 113

Rep: Reputation: 16
Browser Plugins


Hi, im wanting to find a starting point for a plugin (for firefox to start with), but all i can find is stuff for addons... can anyone show me an example please?
 
Old 06-22-2008, 06:33 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Programming Firefox may be what you are after. You could also look here: http://www.rietta.com/firefox/Tutorial/env.html

What sort of plugin do you want to make?
 
Old 06-22-2008, 06:52 AM   #3
brazilnut
Member
 
Registered: Nov 2007
Posts: 113

Original Poster
Rep: Reputation: 16
i've been looking through sourceforge for a simple svg plugin, but they all seem to have gone commercial.

basically im after being able to embed objects and draw to them, similar to svg or flash.
 
Old 06-22-2008, 09:25 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Plugger may be what you're after, but I don't use either Plugger or SVG, so I could be wrong.
 
Old 06-22-2008, 10:09 AM   #5
brazilnut
Member
 
Registered: Nov 2007
Posts: 113

Original Poster
Rep: Reputation: 16
i'm miles away...

i found this, but keep getting compile errors, and i seem to be stuck on one at the moment... as far as i can tell i have all the packages installed, here's my config thing:
Code:
. $topsrcdir ../obj-debug
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@
ac_add_options --disable-tests
ac_add_options --enable-application=browser
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-debug
ac_add_options --enable-default-toolkit=gtk2 --disable-freetype2 --enable-xft
ac_add_options --enable-system-cairo
ac_add_options --x-includes=/usr/include/X11/ --x-libraries=/usr/lib/ --with-x
and this is the tail of make's output:
Code:
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o): In function `nsCanvasRenderingContext2D::Destroy()':
/home/ai/z_firefox_dev/sdk/obj-debug/content/canvas/src/../../../../mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp:568: undefined reference to `XFreePixmap'
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o): In function `nsCanvasRenderingContext2D::SetDimensions(int, int)':
/home/ai/z_firefox_dev/sdk/obj-debug/content/canvas/src/../../../../mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp:823: undefined reference to `XRenderFindStandardFormat'
/home/ai/z_firefox_dev/sdk/obj-debug/content/canvas/src/../../../../mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp:826: undefined reference to `XListPixmapFormats'
/home/ai/z_firefox_dev/sdk/obj-debug/content/canvas/src/../../../../mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp:833: undefined reference to `XFree'
/home/ai/z_firefox_dev/sdk/obj-debug/content/canvas/src/../../../../mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp:838: undefined reference to `XCreatePixmap'
collect2: ld returned 1 exit status
gmake[3]: *** [libgklayout.so] Error 1
gmake[3]: Leaving directory `/home/ai/z_firefox_dev/sdk/obj-debug/layout/build'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/home/ai/z_firefox_dev/sdk/obj-debug/layout'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/home/ai/z_firefox_dev/sdk/obj-debug'
make: *** [default] Error 2
this'll prolly be obvious but...
 
Old 06-22-2008, 09:31 PM   #6
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Somehow, I don’t think you have the correct headers being included. For starters (and making sure your build environment is correct) I recommend the “NPAPI Hello World!” (available here).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Browser Plugins mkhan919 Mandriva 2 01-26-2007 05:58 AM
browser plugins Shadzilla Linux - Software 1 03-15-2005 02:24 AM
How can get plugins in my browser. comox *BSD 6 02-08-2005 12:32 AM
Browser Plugins mmurch01 Linux - Software 18 04-12-2004 11:50 AM
konqueror browser plugins RIgimp75 Linux - Software 3 09-03-2003 10:40 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration