Install and use the cross-browser plug-in framework firebreath-a plug-in Windows

Source: Internet
Author: User
Install and use the cross-browser plug-in framework firebreath-a plug-in Windows

Cheungmine

2012-9

Firebreath is a browser plug-in framework that provides an easy-to-use cross-OS (Windows, Mac, and Linux) and cross-browser (ie, Firefox, chrome ,...) and ActiveX Code framework to automatically generate a solution.

We are generally familiar with the ATL plug-in generation framework under Windows + IE, Which is Microsoft's framework system and provides the most powerful and complete COM/ActiveX programming support under IE. However, with the popularity of other browsers on windows, we often encounter the problem of writing plug-ins across various browsers ). The plug-in system is divided into ActiveX Control School and npapi plug-in school. The former is a Microsoft system, and the latter is a Netscape System (npapi-Netscape plugin Application Programming Interface, is the plug-in standard for most browsers except for IE.

Compiling ActiveX with MFC or ATL is a painful and painful experience, and writing an npapi is a relatively simple process. The following link is the detailed preparation of the npapi provided by mozillia:

Http://mozilla.com.cn/post/21666/

The purpose of this article is to use the simplest example to give a brief introduction to firebreath, so that beginners can compile a cross-browser plug-in on windows within 10 minutes. Is it cool? Of course, there are many such examples on the Internet. I wrote articles for the purpose of taking notes and giving myself a wake up. After all, it is not a good thing to understand too much, and the brain capacity is limited. All right, let's talk nonsense. The development environment you need is:

Windows 7

Cygwin: (optional) This is an essential tool for developing cross-platform software on windows. You must install it.

Python2.7 and later: I installed it in cygwin.

Vs2010

Git

1. Download firebreathC:/nv_workspace/fb.zipIn cygwin, use the command line to download:

$ Ln-ST/usr/SSL/etc/SSL

$ Wget-O/cygdrive/C/nv_workspace/fb.zip https://github.com/firebreath/FireBreath/zipball/firebreath-1.6

-- 12:09:03 -- https://github.com/firebreath/FireBreath/zipball/firebreath-1.6
Resolving github.com (github.com)... 207.97.227.239
Connecting to github.com (github.com) | 207.97.227.239 |: 443... connected.
HTTP request sent, awaiting response... 302 found
Location: https://nodeload.github.com/firebreath/FireBreath/zipball/firebreath-1.6 [following]
-- 12:09:05 -- https://nodeload.github.com/firebreath/FireBreath/zipball/firebreath-1.6
Resolving nodeload.github.com (nodeload.github.com)... 207.97.227.252
Connecting to nodeload.github.com (nodeload.github.com) | 207.97.227.252 |: 443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1752858 (1.7 m) [application/octet-stream]
Saving to: '/cygdrive/C/nv_workspace/fb.zip'

100% [============================================== =======================>] 1,752,858 69.1 K/s in 19 s

12:09:26 (90.2 kb/s)-'/cygdrive/C/nv_workspace/fb.zip 'saved [1752858/1752858]

 

The following operations are performed in Windows:

2. Decompress fb.zip to c: \ nv_workspace \ firebreath-1.6

3. Run cmd as administrator and enter the following command to create the first plug-in Hello:

C: \ nv_workspace \ firebreath-1.6 \Python fbgen. py

Then you will be asked to input a bunch of information in lower case for convenience. As follows:

The Hello plug-in is created. Run the following command to prepare the hello plug-in project of vs2010:

C: \ nv_workspace \ firebreath-1.6 \Prep2010.cmd

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.