Re: How to contribute to npapi-sdk ?

Qian Hong <[email protected]>
Newsgroups gmane.comp.mozilla.devel.plugins
Message-ID <CALd+sZSXncLiu3js3YaiBGvAi1qh-08Kz68rks3VuuEfum5CjQ@mail.gmail.com>
Hello,

Thanks for reply. Sorry for my late reply :<

On Fri, Jul 29, 2011 at 12:26 AM, Benjamin Smedberg
<[email protected]> wrote:
> On 7/28/2011 9:48 AM, Qian Hong wrote:
>>
>> Since the npapi-sdk project doesn't have a mailing list yet, I post my
>> question here for suggestion, please let me know if I get to the wrong
>> place ;-)
>> 1. Will npapi-sdk support mingw? If true how can I help?
>
> What do you mean by "support"? I believe that the headers are
> mingw-compatible. I don't think that mingw is a direction we'd want to
> recommend, since the MS compilers are free, better, and familiar to most
> Windows developers. So I doubt we'd want to add windows makefiles for the
> sample plugins.
>
It seems that the headers are not mingw-compatible completely.
When I try to build the npapi plugin with mingw32, I get two errors:
1.
../../headers/npruntime.h:103: error: expected
specifier-qualifier-list before ‘bool’
include stdbool.h will solve this problem;

2.
../../headers/npapi.h:530: error: expected specifier-qualifier-list
before ‘uintptr_t’
include stdint.h will sovle this one.

What about adding a _MINGW macro or someting like that in nptypes.h to fix
mingw32 build?

>> 2. Will npapi-sdk integrate all samples the same as the obsolete
>> GeckoPluginSDK-samplesWin32.zip ? If true how can I help?
>
> No. Most of those samples were horribly written and in many cases just
> wrong. There are basic samples in the SDK, and if you'd like to write new
> samples for Windows that would be great.
>
I just write a basic npapi plugin in C, which builds with mingw32 and runs well
with Firefox5. I'd like to contribute my code to npapi-sdk, but I don't know how
hard it will be. Could you review my code and give me some suggestions?

Here is my code:
git clone https://code.google.com/p/npapi-study/

Thanks very much!

> --BDS
>
>



-- 
Regards,
Qian Hong
-
请帮助我的同学 *姚勋元* 一家: http://goo.gl/HFhP5
Please help my classmate *Yao Xunyuan* and his family by a small
donation: http://goo.gl/91Q7X
-
Sent from Ubuntu
http://www.ubuntu.com/
_______________________________________________
dev-tech-plugins mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-plugins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.