Re: gecko-mediaplayer build requirements

84 views
Skip to first unread message

Kevin DeKorte

unread,
Sep 14, 2012, 9:07:10 AM9/14/12
to Brandon Snider, gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/13/2012 10:49 PM, Brandon Snider wrote:
> Hi Kevin. I was wondering which headers are required for g-m to
> build. Obviously npapi.h is one. It looks like nsIPrefBranch.h
> nsIPrefService.h nsIServiceManager.h nsISupportsPrimitives.h are
> also required, or nspr.h. None of these files are provided in
> Ubuntu starting with 12.10. Here is the list of Firefox headers:
>
> /usr/include/firefox/npruntime.h
> /usr/include/firefox/npfunctions.h /usr/include/firefox/npapi.h
> /usr/include/firefox/nptypes.h
>
>
> Is that enough?

I was wrong to say we could cut some of those out, you need all the
headers. So you will have to figure out what is going on on Ubuntu.
Firefox 15 on Fedora 17 works fine. (I actually compile against
xulrunner 15) so I don't know why Ubuntu is failing. Perhaps you need
to change from firefox as the dependency to xulrunner or libxul.

Ubuntu and Debian are the hardest to compile against because they keep
changing library names. If you look in the configure.in file you see
all kinds of checks for iceape, libxul, firefox, etc. I would say that
80% of those in there are due to the way Debian did things. So you may
have to work with that a little.

Kevin

PS. please keep this on the list
- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBTK/0ACgkQ6w2kMH0L1dHU3ACfejjnmTXCO3WJ2DN6km4LikjN
wWIAn1lckstpNvrY9yw2zMbRLEspWrG7
=GDIB
-----END PGP SIGNATURE-----

Kevin DeKorte

unread,
Sep 14, 2012, 10:18:10 AM9/14/12
to Brandon Snider, gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

My only advice is to try it,and then see where it blows up. But you do
need nspr.

So if mozilla-sdk is missing and so is xulrunner-sdk, I'm not sure
what to do. You might want to look at the totem plugin and see what it
does, as we use similar tech to build.

Kevin



On 09/14/2012 08:02 AM, Brandon Snider wrote:
> The Mozilla-sdk has been removed from Ubuntu as of 12.10 because
> nothing builds against it, and it's too unstable/constantly
> changing anyway. The Xulrunner-sdk and all of the others you have
> code for in the config file are also not in Ubuntu.
>
> However, I do have access to nspr.h. If I use that, combined with
> the aforementioned libs, npapi.h and so forth, is that going to be
> enough to build gecko-mediaplayer?
>
> On Fri, Sep 14, 2012 at 9:07 AM, Kevin DeKorte <kdek...@gmail.com
> <mailto:kdek...@gmail.com>> wrote:
>
> On 09/13/2012 10:49 PM, Brandon Snider wrote:
>> Hi Kevin. I was wondering which headers are required for g-m to
>> build. Obviously npapi.h is one. It looks like nsIPrefBranch.h
>> nsIPrefService.h nsIServiceManager.h nsISupportsPrimitives.h are
>> also required, or nspr.h. None of these files are provided in
>> Ubuntu starting with 12.10. Here is the list of Firefox headers:
>
>> /usr/include/firefox/npruntime.h
>> /usr/include/firefox/npfunctions.h /usr/include/firefox/npapi.h
>> /usr/include/firefox/nptypes.h
>
>
>> Is that enough?
>
> I was wrong to say we could cut some of those out, you need all
> the headers. So you will have to figure out what is going on on
> Ubuntu. Firefox 15 on Fedora 17 works fine. (I actually compile
> against xulrunner 15) so I don't know why Ubuntu is failing.
> Perhaps you need to change from firefox as the dependency to
> xulrunner or libxul.
>
> Ubuntu and Debian are the hardest to compile against because they
> keep changing library names. If you look in the configure.in
> <http://configure.in> file you see all kinds of checks for iceape,
> libxul, firefox, etc. I would say that 80% of those in there are
> due to the way Debian did things. So you may have to work with that
> a little.
>
> Kevin
>
> PS. please keep this on the list
>
>

- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBTPKIACgkQ6w2kMH0L1dEaAgCbBeb1MQFFhLtBBpwvO/IduqOc
VRcAn1+GI/lTUxBJzqEvhJEtDqkcok0v
=cK8x
-----END PGP SIGNATURE-----

Brandon Snider

unread,
Sep 14, 2012, 12:53:51 PM9/14/12
to gecko-me...@googlegroups.com, Brandon Snider
I looked at totem-mozilla. It doesn't call any mozilla headers. I asked on debian-gnome's IRC channel, and they said it uses the npapi callbacks, but doesn't link to the code.

I was looking at the plugin.cpp code, and the include section lists nspr or those nsixx headers, but not both. So maybe it will build with nspr and npapi? If so, I need to know how to stop the code from looking in $XULRUNNER_SDK_PREFIX/include, because npapi is now in /usr/include/firefox, not /usr/include/firefox/include.

Kevin DeKorte

unread,
Sep 14, 2012, 2:31:20 PM9/14/12
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Ok, I was surprised that totem didn't use the mozilla-plugin package
config but it is true. They basically copied all the files locally and
have that code built in. Which is not ideal and something I'm not
really interested in providing.

So nothing in Ubuntu provides mozilla-plugin.pc, firefox-plugin.pc ,
npapi-sdk.pc, libxul.pc, or xulrunner-plugin.pc?

If none of those are provided then we're kinda sunk as I need one of
those packages to compile properly.

Kevin
> <http://configure.in> file you see all kinds of checks for iceape,
> libxul, firefox, etc. I would say that 80% of those in there are
> due to the way Debian did things. So you may have to work with that
> a little.
>
> Kevin
>
> PS. please keep this on the list
>
> -- You received this message because you are subscribed to the
> Google Groups "gecko-mediaplayer" group. To view this discussion on
> the web visit
> https://groups.google.com/d/msg/gecko-mediaplayer/-/9d29zPmihb8J.
> To post to this group, send email to
> gecko-me...@googlegroups.com. To unsubscribe from this group,
> send email to gecko-mediapla...@googlegroups.com. For
> more options, visit this group at
> http://groups.google.com/group/gecko-mediaplayer?hl=en.

- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBTd/gACgkQ6w2kMH0L1dFWXACglGeoXJcfPQGW6FNepSVfW3U0
+isAnRApp4OtVxSsqkJahEsTsl0UsUzL
=5+vU
-----END PGP SIGNATURE-----

Brandon Snider

unread,
Sep 14, 2012, 2:37:35 PM9/14/12
to gecko-me...@googlegroups.com
mozilla-plugin.pc is provided by the firefox-dev package. But that package has been reduced to only providing the files listed here: http://paste.ubuntu.com/1204072/

Now, this is a change in Quantal, where Precise had the whole Mozilla SDK. We no longer have the SDK at all. We only have the npapi sdk. But, we do have nspr.h. So back to my original question, is it enough to use the npapi sdk and nspr. Will that build gecko-mediaplayer?

If so, I need to know how to tell the code to find npapi in /usr/include/firefox. Right now whatever directory I pass to it ends up with /include patched onto the end of it.

Kevin DeKorte

unread,
Sep 14, 2012, 3:07:09 PM9/14/12
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Can you attach your config.log and the output of configure I want to
see what it is finding. The output of make might also be helpful.

I am unsure if those files are enough, as I don't have that
environment here.

Kevin
> <https://groups.google.com/d/msg/gecko-mediaplayer/-/9d29zPmihb8J>.
>>
>
To post to this group, send email to
>> gecko-me...@googlegroups.com <javascript:>. To unsubscribe from
> this group,
>> send email to gecko-mediapla...@googlegroups.com <javascript:>.
>> For more options, visit this group at
>> http://groups.google.com/group/gecko-mediaplayer?hl=en
> <http://groups.google.com/group/gecko-mediaplayer?hl=en>.
>
>
> -- You received this message because you are subscribed to the
> Google Groups "gecko-mediaplayer" group. To view this discussion on
> the web visit
> https://groups.google.com/d/msg/gecko-mediaplayer/-/pK6-Vkf1CoAJ.
> To post to this group, send email to
> gecko-me...@googlegroups.com. To unsubscribe from this group,
> send email to gecko-mediapla...@googlegroups.com. For
> more options, visit this group at
> http://groups.google.com/group/gecko-mediaplayer?hl=en.

- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBTgF0ACgkQ6w2kMH0L1dFUtACfZ5eGy+BtmkIeQtmLrRmUkHgz
VpwAmwclVMNZOEerZuPRHSWVP9a5QmLt
=xaF1
-----END PGP SIGNATURE-----

Brandon Snider

unread,
Sep 15, 2012, 7:42:23 PM9/15/12
to gecko-me...@googlegroups.com
Alright, by adding nspr headers, forcing nspr in configure.in and removing the check for mozilla-xpcom as well as the --with-xulrunner-sdk= flag, I got the software to build on 12.10.
Reply all
Reply to author
Forward
0 new messages